/* LIVQ website. One stylesheet, system fonts, no external requests.
   Colours follow mobile/src/design/tokens.ts. */

:root {
  color-scheme: light;

  --ink: #1f1a33;
  --ink-soft: #3a3352;
  --ink-muted: #5f5975;
  --paper: #fbfafe;
  --paper-raised: #ffffff;
  --lavender: #f3effc;
  --lavender-strong: #e8e1fa;
  --accent: #7a6bd3;
  --accent-deep: #5e4ebc;
  --accent-ink: #4a3ba3;
  --line: rgba(40, 30, 80, 0.12);
  --line-strong: rgba(40, 30, 80, 0.22);

  --mind: #3b82f6;
  --mind-deep: #1e40af;
  --body: #1e3a8a;
  --body-deep: #14245a;
  --care: #a855f7;
  --care-deep: #6b21a8;
  --circle: #10b981;
  --circle-deep: #065f46;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter,
    "Bitstream Charter", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.95rem;
}

.site-nav a:not(.button) {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fcfbff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.button:hover {
  background: var(--accent-ink);
  color: #fcfbff;
  text-decoration: none;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.button-small svg {
  width: 16px;
  height: 16px;
}

.text-link {
  font-weight: 600;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.section {
  padding-block: clamp(64px, 10vw, 128px);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 0%, var(--lavender-strong), transparent 70%),
    linear-gradient(180deg, var(--lavender), var(--paper) 85%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}

.hero .lede {
  max-width: 34rem;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.score-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
}

.score-figure figcaption {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}

.ring-arc {
  fill: none;
  stroke-width: 22;
  stroke-linecap: round;
  animation: draw 1.4s var(--ease) both;
}

.ring-arc.mind {
  stroke: var(--mind);
}
.ring-arc.body {
  stroke: var(--body);
  animation-delay: 0.12s;
}
.ring-arc.care {
  stroke: var(--care);
  animation-delay: 0.24s;
}
.ring-arc.circle {
  stroke: var(--circle);
  animation-delay: 0.36s;
}

.ring-track {
  fill: none;
  stroke: var(--lavender-strong);
  stroke-width: 22;
  stroke-linecap: round;
}

.ring-number {
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: -2px;
}

.ring-caption {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  fill: var(--ink-muted);
}

.ring-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
}

.ring-label.mind {
  fill: var(--mind-deep);
}
.ring-label.body {
  fill: var(--body);
}
.ring-label.care {
  fill: var(--care-deep);
}
.ring-label.circle {
  fill: var(--circle-deep);
}

/* Each arc grows from its start to the length set in its stroke-dasharray attribute. */
@keyframes draw {
  from {
    stroke-dasharray: 0 880;
  }
}

/* ---------- Pillars ---------- */

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.pillar {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 16px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-strong);
}

.pillar-mark {
  width: 56px;
  height: 56px;
}

.pillar-mark .track {
  fill: none;
  stroke: var(--lavender-strong);
  stroke-width: 7;
  stroke-linecap: round;
}

.pillar-mark .arc {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.pillar-mind .arc {
  stroke: var(--mind);
}
.pillar-body .arc {
  stroke: var(--body);
}
.pillar-care .arc {
  stroke: var(--care);
}
.pillar-circle .arc {
  stroke: var(--circle);
}

.pillar-title h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.pillar-mind h3 {
  color: var(--mind-deep);
}
.pillar-body h3 {
  color: var(--body);
}
.pillar-care h3 {
  color: var(--care-deep);
}
.pillar-circle h3 {
  color: var(--circle-deep);
}

.pillar-title p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.pillar-body-text p {
  color: var(--ink-soft);
}

.pillar ul.features {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
}

.pillar ul.features li {
  position: relative;
  padding-left: 22px;
}

.pillar ul.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.55;
}

.pillar-mind ul.features li::before {
  color: var(--mind);
}
.pillar-body ul.features li::before {
  color: var(--body);
}
.pillar-care ul.features li::before {
  color: var(--care);
}
.pillar-circle ul.features li::before {
  color: var(--circle);
}

/* ---------- Household ---------- */

.household {
  background: var(--lavender);
  border-block: 1px solid var(--line);
}

.household .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.household h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.household .copy {
  display: grid;
  gap: 20px;
}

.household .copy p {
  color: var(--ink-soft);
}

.share-sheet {
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-raised);
  box-shadow: 0 18px 48px -28px rgba(40, 30, 80, 0.35);
}

.share-sheet .sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--circle-deep);
  color: #f2fbf7;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.sheet-head strong {
  display: block;
  font-size: 1rem;
}

.sheet-head span {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.share-sheet ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-sheet li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.share-sheet li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.share-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.share-state.on {
  color: var(--circle-deep);
}

.share-state.off {
  color: var(--ink-muted);
}

.share-state svg {
  width: 16px;
  height: 16px;
}

.share-sheet figcaption {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ---------- Promises ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.promises div {
  padding: 28px clamp(0px, 2vw, 28px) 8px 0;
}

.promises div + div {
  padding-left: clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}

.promises dt {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.promises dd {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.promises-foot {
  margin-top: 36px;
}

/* ---------- Closing CTA ---------- */

.closing {
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--ink);
  color: #f4f1fc;
}

.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.closing h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.closing p {
  margin-top: 16px;
  max-width: 34rem;
  color: #c9c3dc;
}

.closing .button {
  background: #f4f1fc;
  color: var(--ink);
}

.closing .button:hover {
  background: #ffffff;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink-soft);
}

.disclaimer {
  flex-basis: 100%;
  max-width: 48rem;
  font-size: 0.84rem;
}

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero {
  background: linear-gradient(180deg, var(--lavender), var(--paper));
  border-bottom: 1px solid var(--line);
}

.doc-hero .wrap {
  padding-block: clamp(48px, 8vw, 96px) clamp(36px, 5vw, 56px);
}

.doc-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

.doc-hero .lede {
  max-width: 40rem;
  margin-top: 18px;
}

.doc-meta {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
  font-size: 0.9rem;
}

.toc h2 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  width: 1.6em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

.prose {
  max-width: 44rem;
}

.prose section {
  scroll-margin-top: 24px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.prose h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
}

.prose h3 {
  margin: 26px 0 10px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table {
  margin: 0 0 16px;
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--ink);
}

.callout {
  margin: 0 0 20px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--lavender);
  border: 1px solid var(--line);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.prose table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--lavender);
  color: var(--ink);
  font-weight: 650;
}

.prose td:first-child {
  color: var(--ink);
  font-weight: 600;
  min-width: 9rem;
}

/* ---------- Support ---------- */

.doc-support {
  max-width: 52rem;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-raised);
}

.contact-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.contact-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.contact-card .email {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.faq h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq summary:hover {
  color: var(--accent-ink);
}

.faq .answer {
  padding-bottom: 24px;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 80px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.not-found p {
  max-width: 30rem;
  margin: 18px auto 32px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap,
  .household .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .score-figure {
    width: min(100%, 340px);
  }

  .pillar {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .pillar-body-text {
    grid-column: 2;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    max-height: none;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-raised);
  }
}

@media (max-width: 720px) {
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .promises div,
  .promises div + div {
    padding: 22px 0 18px;
    border-left: 0;
  }

  .promises div + div {
    border-top: 1px solid var(--line);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .site-nav {
    gap: 14px;
  }

  .pillar {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar-mark {
    width: 44px;
    height: 44px;
  }

  .pillar-body-text {
    grid-column: auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  /* The data table reads as a stacked list on phones. */
  .prose table,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
  }

  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .prose tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .prose tr:last-child {
    border-bottom: 0;
  }

  .prose td,
  .prose tr:last-child td {
    padding: 0;
    border: 0;
  }

  .prose td:first-child {
    min-width: 0;
    margin-bottom: 4px;
  }
}

@media (max-width: 400px) {
  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .closing,
  .skip-link {
    display: none;
  }

  .doc-layout {
    display: block;
  }

  body {
    background: #fff;
  }
}
