/* ──────────────────────────────────────────────────────────────
 * HuddleCare marketing site — huddlecare.app
 * Tokens lifted from design-reference/phase-3d (hifi-tokens.css +
 * p3d-tokens-ext.css). Light + dark via prefers-color-scheme.
 * ────────────────────────────────────────────────────────────── */

:root {
  --color-teal-primary: #1D9E75;
  --color-teal-dark: #0F6E56;
  --color-teal-deep: #085041;
  --color-teal-mid: #5DCAA5;
  --color-teal-light: #9FE1CB;
  --color-teal-tint: #E1F5EE;
  --color-on-tint: #085041;
  --color-amber-primary: #BA7517;
  --color-amber-tint: #FAEEDA;
  --color-neutral-dark: #444441;
  --color-neutral-mid: #888780;
  --color-neutral-light: #D3D1C7;
  --color-neutral-bg: #F1EFE8;
  --color-neutral-surface: #FFFFFF;
  --color-elder: #7B9EBE;  --color-elder-tint: #EBF2F8;  --color-elder-text: #3A6A8C;
  --color-child: #C4855A;  --color-child-tint: #F7EDE6;  --color-child-text: #8C4A22;
  --color-pet: #7BAE7F;    --color-pet-tint: #EBF3EC;    --color-pet-text: #2E6B35;

  --page-bg: #FFFFFF;
  --section-bg-alt: #F1EFE8;
  --section-bg-tint: #E1F5EE;
  --section-bg-deep: #085041;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --hairline: #E8E6DC;
  --hairline-strong: #D3D1C7;
  --card-border: 1px solid #EAE7DC;
  --shadow-sm: 0 1px 3px rgba(8, 80, 65, 0.08);
  --wordmark-color: #085041;
  --display-color: #085041;
  --tagline-color: #BA7517;
  --legal-prose: #2E2E2B;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-teal-deep: #0D2A22;
    --color-teal-tint: #1B4A3D;
    --color-on-tint: #9FE1CB;
    --color-amber-tint: #3A2F1A;
    --color-neutral-dark: #E0DDD0;
    --color-neutral-mid: #A5A399;
    --color-neutral-light: #4A4A44;
    --color-neutral-bg: #232320;
    --color-neutral-surface: #232320;
    --color-elder-tint: #1E2B36;  --color-elder-text: #A8C4DC;
    --color-child-tint: #362A1F;  --color-child-text: #DCAF8C;
    --color-pet-tint: #20301F;    --color-pet-text: #A8CCA8;

    --page-bg: #1A1A18;
    --section-bg-alt: #141413;
    --section-bg-tint: #102822;
    --section-bg-deep: #0A1E18;
    --nav-bg: rgba(26, 26, 24, 0.94);
    --hairline: #2E2E2A;
    --hairline-strong: #3A3A36;
    --card-border: 1px solid #2E2E2A;
    --shadow-sm: none;
    --wordmark-color: #5DCAA5;
    --display-color: #F0EEE6;
    --tagline-color: #EF9F27;
    --legal-prose: #E2DFD3;
  }
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover { text-decoration: none; }
::selection { background: var(--color-teal-light); color: #085041; }

.container { max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ── Type scale ───────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--color-teal-primary);
  margin-bottom: 14px;
}
.display {
  font-size: clamp(36px, 6vw, 56px); font-weight: 500; line-height: 1.05;
  letter-spacing: -1.2px; color: var(--display-color); text-wrap: balance;
}
.display-sm {
  font-size: clamp(28px, 4.5vw, 42px); font-weight: 500; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--display-color); text-wrap: balance;
}
.h1 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.18;
  letter-spacing: -0.5px; text-wrap: balance;
}
.caption { font-size: 12.5px; line-height: 1.5; color: var(--color-neutral-mid); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 9999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.1px;
  white-space: nowrap; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s, transform .12s;
}
.btn:active { transform: scale(0.985); }
.btn--primary { background: var(--color-teal-primary); color: #fff; }
.btn--primary:hover { background: var(--color-teal-dark); }
.btn--secondary {
  background: transparent; color: var(--color-teal-primary);
  border: 1.5px solid var(--color-teal-primary);
}
.btn--secondary:hover { background: var(--color-teal-tint); }
.btn--ghost { background: transparent; color: var(--color-teal-primary); }
.btn--ghost:hover { background: var(--color-teal-tint); }
.btn--ondeep { background: #fff; color: #085041; }
.btn--ondeep:hover { background: var(--color-teal-light); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 8px; border-radius: 9999px;
  font-size: 11px; font-weight: 500;
}
.pill--teal { background: var(--color-teal-tint); color: var(--color-on-tint); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; line-height: 1; }
.wordmark:hover { text-decoration: none; }
.wordmark__mark { width: 28px; height: 30px; flex-shrink: 0; }
.wordmark__text {
  font-size: 19px; font-weight: 500; letter-spacing: -0.4px;
  color: var(--wordmark-color);
}
.wordmark__stack { display: flex; flex-direction: column; gap: 3px; }
.wordmark__tagline {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1px;
  color: var(--tagline-color);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { color: var(--color-neutral-dark); font-size: 15px; }
.nav__links > a.btn { color: #fff; }
.nav__links > a.btn--secondary { color: var(--color-teal-primary); }
.nav__links > a.is-active { color: var(--color-teal-primary); font-weight: 500; }
.nav__divider { width: 1px; height: 24px; background: var(--hairline-strong); }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px;
  color: var(--color-neutral-dark); cursor: pointer;
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--page-bg); border-bottom: 1px solid var(--hairline);
    padding: 12px 24px 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 10px 0; font-size: 16px; }
  .nav__links > a.btn { margin-top: 8px; }
  .nav__divider { display: none; }

  /* The legal + support pages carry a slim nav (Terms/Privacy links plus a
     desktop-only Get-started button) and NO hamburger, so they must never
     become the absolute dropdown panel above — with no toggle to close it,
     it sits permanently open and covers the top of the article (it hid the
     <h1> on every legal page). Two short links fit inline at 375px, so keep
     them in flow at every width; the button hides below 860px. */
  .nav__links--inline {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: none;
    border-bottom: 0;
    padding: 0;
  }
  .nav__links--inline > a { padding: 0; font-size: 15px; }
  .nav__links--inline > a.btn { display: none; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: var(--section-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__sub {
  color: var(--color-neutral-mid); font-size: 17px;
  max-width: 600px; margin: 14px auto 0;
}
.section__cta { text-align: center; margin-top: 36px; }
@media (max-width: 860px) { .section { padding: 56px 0; } .section__head { margin-bottom: 36px; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { background: var(--section-bg-alt); padding: 88px 0 96px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 64px; align-items: center;
}
.hero__sub {
  font-size: 19px; color: var(--color-neutral-mid);
  max-width: 540px; margin: 22px 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__stores-rule {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.hero__stores-rule span { height: 1px; background: var(--hairline-strong); }
.hero__stores-rule span:first-child { width: 24px; }
.hero__stores-rule span:last-child { flex: 1; }
.hero__stores-rule em {
  font-style: normal; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--color-neutral-mid);
}
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.store-badges img { height: 48px; width: auto; opacity: 0.9; }
.store-badges--sm img { height: 40px; }
.hero__stores .caption { margin-top: 8px; }
.hero__note { margin-top: 22px; font-size: 13px; }

.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone {
  width: min(320px, 80vw);
  border-radius: 32px; overflow: hidden;
  border: 6px solid #26251F;
  box-shadow: 0 24px 60px -18px rgba(8, 80, 65, 0.35), 0 8px 20px -8px rgba(0,0,0,0.18);
  background: #26251F;
}
.phone img { border-radius: 24px; width: 100%; height: auto; }
.hero__shot-note { margin-top: 14px; text-align: center; }

.chip {
  background: var(--color-neutral-surface);
  border: var(--card-border);
  box-shadow: 0 10px 24px rgba(8, 80, 65, 0.18);
  border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--color-neutral-dark);
}
.chip small { color: var(--color-neutral-mid); font-size: 11px; }
.chip--float { position: absolute; z-index: 2; }
.chip--tl { top: 6%; left: -4%; }
.chip--br { bottom: 10%; right: -6%; }
.chip__dot {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip__dot--success { background: #1D9E75; }
.chip__dot--tint { background: var(--color-teal-tint); color: var(--color-on-tint); }

@media (max-width: 940px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .chip--tl { left: 0; }
  .chip--br { right: 0; }
}

/* ── Capability bar ───────────────────────────────────────── */
.proof { background: var(--section-bg-tint); padding: 22px 0; }
.proof__inner {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 14px 32px;
  color: var(--color-on-tint); font-size: 14px; font-weight: 500;
}
.proof__inner i {
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--color-teal-mid); opacity: 0.6;
}
@media (max-width: 640px) { .proof__inner i { display: none; } }

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step { text-align: center; }
.step__art {
  width: 120px; height: 120px; margin: 0 auto 24px;
  border-radius: 24px; background: var(--color-teal-tint);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.step__n {
  position: absolute; top: -10px; left: -10px;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--color-teal-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
}
.step h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--color-neutral-mid); max-width: 280px; margin: 0 auto; font-size: 15px; }
.typechip {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.typechip--elder { background: var(--color-elder-tint); }
.typechip--child { background: var(--color-child-tint); }
.typechip--pet { background: var(--color-pet-tint); }
.avatars { display: flex; }
.avatars b {
  width: 36px; height: 36px; border-radius: 999px;
  border: 2.5px solid var(--color-teal-tint);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
}
.avatars b + b { margin-left: -10px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* ── Huddle types ─────────────────────────────────────────── */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 9999px;
  background: transparent; color: var(--color-neutral-mid);
  border: 1.5px solid var(--hairline-strong);
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab--elder.is-active { background: var(--color-elder-tint); color: var(--color-elder-text); border-color: var(--color-elder); }
.tab--child.is-active { background: var(--color-child-tint); color: var(--color-child-text); border-color: var(--color-child); }
.tab--pet.is-active   { background: var(--color-pet-tint);   color: var(--color-pet-text);   border-color: var(--color-pet); }

.typepanel {
  display: none;
  grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
}
.typepanel.is-active { display: grid; }
.typepanel__art {
  border-radius: 28px; aspect-ratio: 1 / 0.85;
  display: flex; align-items: center; justify-content: center;
}
.typepanel__art span { font-size: 84px; }
.typepanel__art--elder { background: var(--color-elder-tint); }
.typepanel__art--child { background: var(--color-child-tint); }
.typepanel__art--pet   { background: var(--color-pet-tint); }
.typepanel .h1 { margin-bottom: 20px; }

.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 999px; background: var(--color-teal-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D9E75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.ticks--sm { gap: 10px; font-size: 14px; }
.ticks--sm li::before { width: 18px; height: 18px; background-size: 11px; margin-top: 2px; }
@media (max-width: 860px) {
  .typepanel { grid-template-columns: 1fr; gap: 28px; }
  .typepanel__art { max-width: 300px; margin: 0 auto; width: 100%; }
}

/* ── Feature rows ─────────────────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 96px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.feature__copy .h1 { margin: 0 0 16px; max-width: 460px; }
.feature__copy p { color: var(--color-neutral-mid); max-width: 480px; font-size: 16px; }
.feature__shot { justify-self: center; }
.feature--flip .feature__copy { order: 2; }
.feature--flip .feature__shot { order: 1; }
.features__note { text-align: center; margin-top: -24px; }
@media (max-width: 860px) {
  .features { gap: 56px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature__copy { order: 1; }
  .feature--flip .feature__shot { order: 2; }
  .features__note { margin-top: 0; }
}

/* ── Trust pillars ────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--color-neutral-surface);
  border: var(--card-border); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.pillar { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pillar__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-teal-tint); color: var(--color-on-tint);
  display: inline-flex; align-items: center; justify-content: center;
}
.pillar h3 { font-size: 20px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.pillar p { color: var(--color-neutral-mid); font-size: 15px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ── Pricing ──────────────────────────────────────────────── */
.cycle { text-align: center; }
.cycle__toggle {
  display: inline-flex; align-items: center; padding: 4px; gap: 4px;
  background: var(--color-neutral-bg); border: 1px solid var(--hairline);
  border-radius: 9999px;
}
.cycle__opt {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 9999px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--color-neutral-mid);
  transition: all .15s;
}
.cycle__opt.is-active {
  background: var(--color-neutral-surface);
  color: var(--color-neutral-dark);
  box-shadow: 0 2px 6px rgba(8, 80, 65, 0.10);
}
/* Dark mode: --color-neutral-bg and --color-neutral-surface are the SAME
   value there (#232320) and --shadow-sm is none, so the light-mode
   treatment (white thumb on beige track) collapses into "no visible
   selection at all". Mark the active option with the teal tint instead. */
@media (prefers-color-scheme: dark) {
  .cycle__opt.is-active {
    background: var(--color-teal-tint);
    color: var(--color-on-tint);
    box-shadow: none;
  }
  /* The "Save 2 months" pill is teal-tint too — restate it on teal-deep
     so it stays visible when it sits ON the active teal background. */
  .cycle__opt.is-active .pill--teal { background: var(--color-teal-deep); }
}
.cycle__note { margin: 10px 0 36px; font-size: 13px; }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
}
.plan {
  position: relative;
  background: var(--color-neutral-surface);
  border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.plan--featured {
  border: 2px solid var(--color-teal-primary);
  box-shadow: 0 24px 48px -20px rgba(29, 158, 117, 0.30), 0 8px 16px -8px rgba(0,0,0,0.10);
}
@media (min-width: 861px) { .plan--featured { transform: translateY(-8px); } }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 14px; border-radius: 9999px;
  color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); white-space: nowrap;
}
.plan__badge--teal { background: var(--color-teal-primary); }
.plan__badge--amber { background: var(--color-amber-primary); }
.plan h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.plan__tag { font-size: 14px; color: var(--color-neutral-mid); min-height: 42px; }
.plan__price {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.plan__price strong {
  font-size: 40px; font-weight: 500; letter-spacing: -1px;
  color: var(--color-neutral-dark);
}
.plan__price span { font-size: 14px; color: var(--color-neutral-mid); }
.plan__cta { width: 100%; }
.plan__fine { text-align: center; margin-top: -10px; }
.plans__foot { text-align: center; margin-top: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.disclosure {
  margin-top: auto;
  padding: 14px 16px; border-radius: 10px;
  background: var(--color-neutral-bg);
  border-left: 3px solid var(--color-neutral-light);
  font-size: 13px; line-height: 1.55;
  color: var(--color-neutral-mid);
}
.disclosure strong { color: var(--color-neutral-dark); font-weight: 500; }
.footer__brand .disclosure { margin-top: 22px; max-width: 380px; }
@media (prefers-color-scheme: dark) {
  .plan .disclosure { background: #1C1C1A; }
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; gap: 28px; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  background: var(--color-neutral-surface);
  border: 1px solid var(--hairline); border-radius: 14px;
  margin-bottom: 8px; padding: 0 20px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; color: var(--color-neutral-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888780' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain; transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(180deg); }
.faq p { padding: 0 0 20px; color: var(--color-neutral-mid); font-size: 15px; }
.faq__more { text-align: center; margin-top: 24px; }

/* ── Final CTA ────────────────────────────────────────────── */
.finale { background: var(--section-bg-deep); padding: 96px 0; text-align: center; }
.finale h2 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 500; line-height: 1.1;
  letter-spacing: -1px; color: #fff; text-wrap: balance; margin-bottom: 18px;
}
.finale > .container > p {
  font-size: 18px; color: rgba(255,255,255,0.78);
  max-width: 540px; margin: 0 auto 32px;
}
.finale__note { margin-top: 22px; color: rgba(255,255,255,0.55); font-size: 13px; }
@media (max-width: 860px) { .finale { padding: 64px 0; } }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); padding: 72px 0 32px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px;
}
.footer__brand p { margin: 14px 0 0; max-width: 340px; font-size: 14px; color: var(--color-neutral-mid); }
.footer__brand .store-badges { margin-top: 18px; }
.footer__brand .caption { margin-top: 10px; max-width: 340px; }
.footer__col h4 {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--color-neutral-mid); margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--color-neutral-dark); font-size: 14px; }
.footer__bar {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (max-width: 860px) {
  .footer { padding: 48px 0 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bar { flex-direction: column; }
}

/* ── Legal + support pages ────────────────────────────────────
   Shell per design-reference/phase-3d/p3d-legal.jsx: slim nav,
   sticky "On this page" TOC on desktop, eyebrow + brand h1,
   numbered section headings, --legal-prose body, footer pointer
   card. The legal WORDING comes from src/content/legal.ts —
   these styles are only the page shell around it. */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 1100px; }
.legal__grid {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.legal article { max-width: 720px; }
.legal [id] { scroll-margin-top: 88px; }

.legal__toc {
  position: sticky; top: 88px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  padding-right: 12px;
}
.legal__toc .eyebrow { margin-bottom: 16px; }
.legal__toc ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.legal__toc a {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--color-neutral-mid);
  font-size: 13px; line-height: 1.4; padding: 4px 0;
}
.legal__toc a:hover { color: var(--color-teal-primary); text-decoration: none; }
.legal__toc i {
  font-style: normal; flex-shrink: 0; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--color-neutral-bg); color: var(--color-neutral-mid);
  font-size: 11px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 48px); font-weight: 500; line-height: 1.1;
  letter-spacing: -1px; color: var(--display-color); margin-bottom: 12px;
}
.legal__meta, .legal__lede {
  padding-bottom: 24px; margin-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}
.legal__meta { font-size: 14px; color: var(--color-neutral-mid); }
.legal__meta strong { color: var(--color-neutral-dark); font-weight: 500; }
.legal__lede { font-size: 17px; line-height: 1.7; color: var(--color-neutral-dark); }

.legal section { margin-bottom: 40px; }
.legal h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.3px;
  color: var(--color-neutral-dark); margin: 0 0 14px;
}
.legal__num {
  font-size: 13px; font-weight: 500; color: var(--color-teal-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.legal h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.legal p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--legal-prose); }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--legal-prose); }
.legal li { margin-bottom: 6px; font-size: 16px; line-height: 1.7; }
.legal strong { color: var(--color-neutral-dark); font-weight: 600; }

.legal__foot {
  margin-top: 56px; padding: 24px;
  background: var(--color-neutral-bg); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.legal__foot p { margin: 0 0 4px; font-size: 13px; color: var(--color-neutral-mid); }
.legal__foot a[href^="mailto:"] { font-size: 16px; font-weight: 500; }

@media (max-width: 940px) {
  .legal { padding: 32px 0 80px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
  .legal article { max-width: 720px; }
}
