/* ============================================================
   Nestly marketing site
   Identity: GT Walsheim + Whitney · calm periwinkle on warm base
   ============================================================ */

:root {
  /* Palette (lifted from NSColors.swift) */
  --brand: #5c66a0;          /* calm periwinkle */
  --brand-deep: #424b7d;
  --band-bg: #5c66a0;         /* value band — stays saturated in dark theme */
  --footer-bg: #1b1d22;       /* footer — stays dark in dark theme */
  --cta-bg-start: #5c66a0;
  --cta-bg-end: #424b7d;
  --cta-btn-text: #424b7d;
  --base: #f9f7f2;           /* warm neutral */
  --base-elev: #fefdfb;
  --surface: #ffffff;
  --surface-muted: #f2f4f1;
  --ink: #1b1d22;
  --muted: #69707a;
  --hairline: #d5d8d4;

  /* Activity colors */
  --feed: #e6574a;           /* warm coral */
  --sleep: #2f3482;          /* deep indigo */
  --diaper: #278a5d;         /* fresh green */
  --medicine: #1367c2;       /* clear blue */
  --growth: #8063bc;         /* soft violet */
  --routine: #c78025;
  --parent: #bc4e78;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow-sm: 0 1px 2px rgba(27, 29, 34, 0.05), 0 8px 24px rgba(27, 29, 34, 0.06);
  --shadow-lg: 0 24px 60px rgba(40, 44, 78, 0.18);

  --font: "GT Walsheim", ui-sans-serif, sans-serif;
  --mono: "Whitney", ui-monospace, monospace;
}

:root { color-scheme: light; }

/* Dark theme (added in audit) — inverts the calm periwinkle/warm-neutral system, keeps activity accents. */
:root[data-theme="dark"] {
  --base:#15161c; --base-elev:#1b1d25; --surface:#1e2029; --surface-muted:#23262f; --hairline:#34384a;
  --ink:#f3f3f1; --muted:#a3aab6;
  --brand:#8b95d4; --brand-deep:#aab2e6;
  --band-bg:#5c66a0; --footer-bg:#1b1d22;
  --cta-bg-start:#5c66a0; --cta-bg-end:#424b7d; --cta-btn-text:#424b7d;
  --feed:#f07469; --sleep:#7b80de; --diaper:#46b582; --medicine:#4f9be6; --growth:#a98ad6; --routine:#dca24e; --parent:#d56f97;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 24px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --base:#15161c; --base-elev:#1b1d25; --surface:#1e2029; --surface-muted:#23262f; --hairline:#34384a;
    --ink:#f3f3f1; --muted:#a3aab6;
    --brand:#8b95d4; --brand-deep:#aab2e6;
    --band-bg:#5c66a0; --footer-bg:#1b1d22;
    --cta-bg-start:#5c66a0; --cta-bg-end:#424b7d; --cta-btn-text:#424b7d;
    --feed:#f07469; --sleep:#7b80de; --diaper:#46b582; --medicine:#4f9be6; --growth:#a98ad6; --routine:#dca24e; --parent:#d56f97;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:0 24px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* Theme toggle (added in audit) — 44px touch target, never flex-shrunk */
.theme-toggle {
  width:44px; height:44px; padding:0; flex:none; display:inline-grid; place-items:center;
  border:1.5px solid var(--hairline); border-radius:999px;
  background:var(--surface); color:var(--brand); cursor:pointer;
  transition:border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color:var(--brand); transform:translateY(-1px); }
.theme-toggle__mark { width:15px; height:15px; border-radius:50%; border:2px solid currentColor; background:linear-gradient(90deg, currentColor 0 50%, transparent 50%); }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--footer-bg); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: 999px;
  font-weight: 500; font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn--lg { min-height: 54px; padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(92, 102, 160, 0.32);
}
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.wordmark__dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.nav__links { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav__links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .96rem;
  padding: .4rem 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { white-space: nowrap; }

/* ---------- Mobile menu (mobile web pass) ----------
   Below 860px the inline links move into a disclosure menu — never a
   display:none nav without a replacement. Below 480px the bar CTA hands
   off to the menu (and the hero keeps its own), so a 320px viewport
   cannot overflow the bar. Rows are 48px for one-handed thumbs. */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; flex: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1.5px solid var(--hairline); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease;
}
.menu-toggle:hover { border-color: var(--brand); }
.menu-toggle__bar { width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
.nav__menu {
  position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; z-index: 99;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
}
.nav__menu[hidden] { display: none; } /* [hidden] must beat display:flex */
.nav__menu a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 .9rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 1rem;
}
.nav__menu a:hover { background: var(--surface-muted); }
.nav__menu a.btn { color: #fff; }
.nav__menu .btn { min-height: 48px; }
.nav__menu-cta { margin-top: .4rem; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { gap: 1rem; position: relative; }
  .menu-toggle { display: flex; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Eyebrows are sentence case, not tracked all-caps (patterns-to-avoid);
   the brand color carries the accent, the size stays in the 13-14px label band. */
.eyebrow {
  font-size: .84rem; font-weight: 500;
  color: var(--brand); margin-bottom: 1rem;
}
/* The single display-sized hero headline; the only Bold on the page. */
.hero__title { font-size: clamp(2.25rem, 4.8vw, 2.75rem); font-weight: 700; }
.hero__sub {
  margin-top: 1.25rem; font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--muted);
  max-width: 38ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.hero__note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__device { order: -1; justify-self: center; }
  .hero__sub { max-width: none; }
}

/* ---------- Phone frame ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px; max-width: 84vw;
  aspect-ratio: 300 / 620;
  background: #11131b;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #11131b; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  position: relative;
  height: 100%; width: 100%;
  background: linear-gradient(180deg, var(--base-elev), var(--base));
  border-radius: 34px;
  padding: 1.6rem 1.05rem 1.1rem;
  display: flex; flex-direction: column; gap: .85rem;
  overflow: hidden;
}
.appbar { display: flex; align-items: baseline; justify-content: space-between; margin-top: .35rem; }
.appbar__title { font-weight: 600; font-size: 1.05rem; }
.appbar__baby { font-size: .76rem; color: var(--muted); font-weight: 500; }

/* ---------- The breathing ring (signature motif) ---------- */
.ring-stage { display: flex; flex-direction: column; align-items: center; gap: .55rem; margin: .35rem 0 .2rem; }
.ring {
  position: relative; width: 178px; height: 178px;
  display: grid; place-items: center;
}
.ring--sm { width: 230px; height: 230px; }
.ring__halo {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sleep) 22%, transparent), transparent 68%);
  filter: blur(8px);
  animation: breathe 4s ease-in-out infinite;
}
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: color-mix(in srgb, var(--sleep) 16%, transparent); stroke-width: 10; }
.ring__progress {
  fill: none; stroke: var(--sleep); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 666; stroke-dashoffset: 200;
  animation: ring-breathe 4s ease-in-out infinite;
  transform-origin: center;
}
.ring__progress--feed { stroke: var(--feed); stroke-dashoffset: 320; }
.ring__center { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.ring__time {
  font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 6vw, 2.1rem); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ring--sm .ring__time { font-size: 2.6rem; }
.ring__label {
  font-size: .75rem; font-weight: 500;
  color: color-mix(in srgb, var(--sleep) 85%, var(--ink));
}
.ring__caption { font-size: .75rem; color: var(--muted); text-align: center; max-width: 24ch; }

@keyframes breathe {
  0%, 100% { transform: scale(.94); opacity: .5; }
  50% { transform: scale(1.06); opacity: .9; }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(.988); }
  50% { transform: scale(1.012); }
}
@media (prefers-reduced-motion: reduce) {
  .ring__halo, .ring__progress { animation: none; }
  .ring__halo { opacity: .6; }
}

/* ---------- Quick log row ---------- */
.quicklog { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.quicklog__btn {
  display: grid; place-items: center;
  min-height: 48px;
  font-size: .8rem; font-weight: 500;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-radius: var(--radius-sm);
}

/* ---------- Handoff card (in phone) ---------- */
.handoff {
  display: flex; gap: .65rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: .7rem .75rem;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}
.handoff__avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 600;
  color: var(--parent);
  background: color-mix(in srgb, var(--parent) 14%, transparent);
}
.handoff__body { display: flex; flex-direction: column; gap: .1rem; }
.handoff__title { font-size: .78rem; font-weight: 600; }
.handoff__text { font-size: .78rem; color: var(--ink); line-height: 1.35; }
.handoff__by { font-size: .75rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Value band ---------- */
.band {
  background: var(--band-bg);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.6rem) 0;
}
.band__grid {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.band__lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; }
/* Inline emphasis stays Medium, never Bold — the hero is the only Bold. */
.band__lead strong { color: #fff; font-weight: 500; }
.band__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.band__points li { display: grid; gap: .15rem; }
.band__k { font-weight: 500; font-size: 1.02rem; }
/* 90% white on the saturated band clears 4.5:1 (82% measured 4.2:1); body copy at 16px. */
.band__v { color: color-mix(in srgb, #fff 90%, var(--band-bg)); font-size: 1rem; }
@media (max-width: 760px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
/* Section headings sit in the 22-26px band at Medium — hierarchy from size
   and spacing, not from Bold (weight discipline). */
.section-title { font-size: clamp(1.4rem, 2.5vw, 1.65rem); font-weight: 500; }
.section-lede { margin-top: .9rem; color: var(--muted); font-size: 1.06rem; }

/* ---------- Features ---------- */
.features { padding: clamp(3rem, 7vw, 6rem) 0; }

.feature--hero {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.feature__media { display: grid; place-items: center; }
.feature__tag, .card__chip, .feature__tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  color: var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, var(--brand)) 12%, transparent);
  padding: .35rem .75rem; border-radius: 999px;
}
.feature__title { font-size: clamp(1.3rem, 2.4vw, 1.55rem); margin: .9rem 0 .8rem; }
.feature__copy p { color: var(--muted); font-size: 1.05rem; }
.feature__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.feature__list li {
  position: relative; padding-left: 1.5rem; font-size: 1rem; color: var(--ink);
}
.feature__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
}
@media (max-width: 820px) {
  .feature--hero { grid-template-columns: 1fr; }
  .feature__media { order: -1; }
}

/* feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card__chip {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  padding: .35rem .75rem; border-radius: 999px;
}
.card__chip--invert { color: #fff; background: color-mix(in srgb, var(--c) 60%, #fff); }

/* Mobile web AA pass: 12.5px chip text sat at 3.6:1 for the coral feed
   accent on white (and the report tick at 3.9:1). Chip TEXT darkens toward
   ink in light mode; the 12% tinted chip backgrounds are untouched, and the
   dark theme keeps its already-lightened accent variables. */
.card__chip, .feature__tag { color: color-mix(in srgb, var(--c, var(--brand)) 72%, #14161c); }
:root[data-theme="dark"] .card__chip,
:root[data-theme="dark"] .feature__tag { color: var(--c, var(--brand)); }
:root[data-theme="dark"] .report__ok { color: var(--diaper); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__chip,
  :root:not([data-theme="light"]) .feature__tag { color: var(--c, var(--brand)); }
  :root:not([data-theme="light"]) .report__ok { color: var(--diaper); }
}
/* Invert chip (Night Mode panel): after the darkening above, restate white
   text and deepen the accent mix — white on the 60% mix measured 3.5:1,
   on 82% it clears 6:1 on the fixed-dark panel in both themes. */
.card__chip--invert { color: #fff; background: color-mix(in srgb, var(--c) 82%, #fff); }
.card__title { font-size: 1.2rem; margin: .85rem 0 .55rem; }
.card p { color: var(--muted); font-size: 1rem; }

/* duo (reports + night mode) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.duo__panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.duo__panel p { color: var(--muted); }
.duo__panel .card__title { margin-top: .85rem; font-size: 1.4rem; }

.report { margin-top: 1.4rem; display: grid; gap: .45rem; }
.report__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem;
  background: var(--surface-muted); border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500;
}
.report__ok { color: color-mix(in srgb, var(--diaper) 72%, #14161c); font-weight: 500; }

.duo__panel--night {
  background: #14172a;
  border-color: #20243f;
  color: #e7e9f4;
}
.duo__panel--night .card__title { color: #fff; }
.duo__panel--night p { color: #a9adcf; }
.night {
  margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  padding: 1.5rem; border-radius: 18px;
  background: #0d0f1c; border: 1px solid #20243f;
}
.night__time {
  font-family: var(--mono); font-size: 2.6rem; color: #aeb3e0; font-variant-numeric: tabular-nums;
}
.night__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; }
.night__btn {
  min-height: 52px; display: grid; place-items: center;
  border-radius: 12px; font-weight: 500; font-size: .9rem;
  color: #cdd1f0; background: #1b1f3a; border: 1px solid #2a2f55;
}

/* ---------- How it works ---------- */
.how { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--surface); border-block: 1px solid var(--hairline); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--base); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 1.8rem 1.5rem;
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--mono); font-weight: 500; font-size: 1.15rem;
  color: #fff; background: var(--brand);
  margin-bottom: 1rem;
}
.step__title { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-head + .tiers, .tiers { margin-top: .5rem; }
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.tier {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.tier--plus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
  position: relative;
}
.tier--plus::before {
  content: "Most popular";
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
}
.tier__name { font-size: 1.3rem; }
.tier__price { margin: 1rem 0 .2rem; display: flex; align-items: baseline; gap: .25rem; }
/* Prices are stat numerals — Medium, never Bold (consumer-app occasion table). */
.tier__amt { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.03em; }
.tier__per { color: var(--muted); font-weight: 500; }
.tier__alt { color: var(--muted); font-size: .92rem; }
.tier__tagline { margin: .9rem 0 1.2rem; color: var(--ink); font-weight: 500; }
.tier__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .65rem; }
.tier__list li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 1rem; }
.tier__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 500;
}
.tier__cta { margin-top: auto; width: 100%; }
.pricing__foot {
  margin-top: 2rem; text-align: center; color: var(--muted); font-size: 1rem;
  max-width: 70ch; margin-inline: auto;
}
/* Inline price emphasis is Medium, not Bold. */
.pricing__foot strong { color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--surface); border-block: 1px solid var(--hairline); }
.faq__list { display: grid; gap: .75rem; max-width: 800px; }
.qa {
  background: var(--base); border: 1px solid var(--hairline);
  border-radius: 14px; padding: .35rem 1.25rem;
}
.qa summary {
  cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.05rem;
  padding: 1rem 2rem 1rem 0; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--muted); padding-bottom: 1.1rem; max-width: 65ch; }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta__inner {
  text-align: center;
  background: linear-gradient(160deg, var(--cta-bg-start), var(--cta-bg-end));
  color: #fff;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta__title { font-size: clamp(1.5rem, 3vw, 1.9rem); }
/* 92%/90% white mixes hold >=4.5:1 across the gradient (86% measured 4.3:1, 78% 4.0:1). */
.cta__sub { margin: 1rem auto 1.8rem; max-width: 46ch; color: color-mix(in srgb, #fff 92%, var(--cta-bg-start)); font-size: 1.1rem; }
.cta .btn--primary { background: #fff; color: var(--cta-btn-text); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta .btn--primary:hover { background: var(--base); }
.cta__note { margin-top: 1.1rem; font-size: .9rem; color: color-mix(in srgb, #fff 90%, var(--cta-bg-start)); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: #c8ccd6; padding: clamp(3rem, 5vw, 4rem) 0 2rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }
.wordmark--footer { color: #fff; }
.footer__tag { margin-top: .8rem; color: #9aa0ac; font-size: .95rem; max-width: 32ch; }
.footer__h { font-size: .8rem; font-weight: 500; color: #8d93a0; margin-bottom: 1rem; }
.footer__col { display: flex; flex-direction: column; gap: .35rem; }
.footer__col a {
  color: #c8ccd6; text-decoration: none; font-size: .96rem;
  min-height: 44px; display: flex; align-items: center;
}
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 1.8rem; color: #8d93a0; font-size: .85rem;
}
.footer__fine { max-width: 50ch; }
