/* ============================================================================
   BabyCheers — babycheers.com
   Tokens ported verbatim from the Gradient design system
   (BabyCheers/Docs/design/system/tokens/). Never invent a colour here: if a
   value is in question, that directory is the authority.
   ========================================================================= */

/* ---------- Fonts (self-hosted, subset to latin, variable weight) -------- */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colour tokens ----------------------------------------------- */
:root {
  color-scheme: light;

  /* Base palette */
  --gray-0: #ffffff;
  --gray-50: #fafafc;
  --gray-100: #f5f4f9;
  --gray-150: #f0eef6;
  --gray-200: #e7e4f0;
  --gray-300: #d7d3e3;
  --gray-400: #b5b0c6;
  --gray-500: #8b86a0;
  --gray-600: #6a6580;
  --gray-700: #4e4a5f;
  --gray-800: #35313f;
  --gray-900: #2e2a3a;
  --gray-950: #211e2b;

  --coral-50: #fff1f4;
  --coral-100: #ffe1e8;
  --coral-200: #ffc7d6;
  --coral-300: #ffa9be;
  --coral-400: #ff8fa3;
  --coral-500: #ff7e9b;
  --coral-600: #f45e82;
  --coral-700: #d8436a;

  --peri-50: #f0f2ff;
  --peri-100: #e6e9ff;
  --peri-200: #c9d2ff;
  --peri-300: #aab4ff;
  --peri-400: #8fa0ff;
  --peri-500: #7c8cff;
  --peri-600: #6472f0;
  --peri-700: #5059d6;

  --mint-100: #dff7ec;
  --mint-500: #57c99b;
  --mint-600: #3aae83;
  --mint-700: #2b8c69;

  --butter-100: #fff3d4;
  --butter-500: #edb02c;

  /* Semantic — light */
  --bg: var(--gray-0);
  --bg-subtle: #fbfafd;
  --surface: var(--gray-0);
  --surface-subtle: #f8f6fc;
  --surface-sunken: #f4f2f9;

  --border: var(--gray-150);
  --border-strong: var(--gray-200);
  --hairline: rgba(46, 42, 58, 0.08);

  /* ADR-010 supersedes the mirrored colors.css for these two: gray-500/400 measured
     3.49:1 and 2.10:1 on white, so both moved one step down the ramp. --text-subtle is
     reserved for de-emphasised marks, never for copy. */
  --text: var(--gray-900);
  --text-muted: var(--gray-600);   /* 5.55:1 on white */
  --text-subtle: var(--gray-500);  /* 3.49:1 — marks only */
  --text-on-accent: #ffffff;
  /* coral-600 is 3.10:1 on white — a link is copy, so it takes the darker ink. */
  --text-link: #b8325a;        /* 5.77:1 */
  --text-link-hover: #9a2b4c;  /* 7.43:1 */

  --accent: var(--coral-500);
  --accent-hover: var(--coral-600);
  --accent-soft: var(--coral-100);
  --accent-soft-text: var(--coral-700);
  /* Site-only, in the spirit of ADR-010. coral-700 measures 4.26:1 on white and
     3.49:1 on coral-100 — fine for icons and chips, short of AA for the small copy
     the eyebrow and the accent callout actually carry. 5.77:1 / 4.72:1. */
  --accent-ink: #b8325a;
  --secondary: var(--peri-500);
  --secondary-soft: var(--peri-100);
  --secondary-soft-text: var(--peri-700);
  --success-soft: var(--mint-100);
  --success-soft-text: var(--mint-700);

  --ring: var(--peri-400);

  /* Gradients — the brand's namesake */
  --grad-brand: linear-gradient(135deg, #ff7e9b 0%, #8c9dff 100%);
  --grad-brand-press: linear-gradient(135deg, #f45e82 0%, #6472f0 100%);
  --grad-hero: linear-gradient(135deg, #ffd6e0 0%, #dce1ff 50%, #d4f3e4 100%);
  --grad-warm: linear-gradient(135deg, #ffc7d6 0%, #ffe49e 100%);
  --grad-cool: linear-gradient(135deg, #c9d2ff 0%, #c6f1dc 100%);

  /* The aurora — threshold surfaces only (spec 10-color-and-background) */
  --aurora:
    linear-gradient(180deg, var(--bg), transparent 20%),
    radial-gradient(160% 105% at 50% 0%, #ffe4ec, #e9edff 48%, transparent 82%);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;
  --radius-card: 28px;

  /* Shadows — soft, plum-tinted, never black */
  --shadow-sm: 0 2px 8px -2px rgba(46, 42, 58, 0.10);
  --shadow-md: 0 8px 24px -10px rgba(46, 42, 58, 0.18);
  --shadow-lg: 0 18px 44px -16px rgba(46, 42, 58, 0.22);
  --shadow-xl: 0 30px 70px -24px rgba(46, 42, 58, 0.28);
  --shadow-card: 0 10px 30px -16px rgba(46, 42, 58, 0.22);
  --shadow-brand: 0 12px 28px -10px rgba(255, 110, 140, 0.5);
  --shadow-focus: 0 0 0 4px rgba(143, 160, 255, 0.35);

  /* Type */
  --font-display: 'Quicksand', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout rhythm */
  --page-x: 20px;
  --measure: 1120px;
  --section-y: clamp(64px, 9vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg: #16141e;
    --bg-subtle: #1c1927;
    --surface: #211e2c;
    --surface-subtle: #272334;
    --surface-sunken: #1a1724;

    --border: #312d40;
    --border-strong: #3d3850;
    --hairline: rgba(255, 255, 255, 0.08);

    --text: #f3f1f8;
    --text-muted: #b8b3c9;   /* ADR-010's dark-mode pair */
    --text-subtle: #9691a8;
    --text-link: var(--coral-300);
    --text-link-hover: var(--coral-200);

    --accent: var(--coral-400);
    --accent-hover: var(--coral-300);
    --accent-soft: rgba(255, 126, 155, 0.16);
    --accent-soft-text: var(--coral-300);
    --accent-ink: var(--coral-300);  /* already 10:1 on the dark canvas */
    --secondary: var(--peri-400);
    --secondary-soft: rgba(143, 160, 255, 0.16);
    --secondary-soft-text: var(--peri-300);
    --success-soft: rgba(87, 201, 155, 0.16);
    --success-soft-text: #a6e8c8;

    --grad-hero: linear-gradient(135deg, #3a2233 0%, #232544 50%, #1b3330 100%);
    --grad-warm: linear-gradient(135deg, #3a2233 0%, #3a3320 100%);
    --grad-cool: linear-gradient(135deg, #232544 0%, #1b3330 100%);

    --aurora:
      linear-gradient(180deg, var(--bg), transparent 22%),
      radial-gradient(160% 105% at 50% 0%,
        rgba(255, 126, 155, 0.20), rgba(143, 160, 255, 0.18) 48%, transparent 82%);

    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 18px 44px -16px rgba(0, 0, 0, 0.65);
    --shadow-xl: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
    --shadow-card: 0 14px 34px -18px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 12px 30px -10px rgba(255, 110, 140, 0.4);
    --shadow-focus: 0 0 0 4px rgba(143, 160, 255, 0.4);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

p { margin: 0; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }

::selection { background: var(--accent-soft); color: var(--accent-ink); }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}
.skip-link:focus { left: 20px; }

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

/* ---------- Layout ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--bg-subtle); }

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.h2 { font-size: clamp(28px, 4.2vw, 42px); }
.h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.26; }

.lede {
  margin-top: 18px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 110, 140, 0.58);
}
.btn--primary:active { background: var(--grad-brand-press); transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* App Store badge — drawn, not an image, so it stays crisp and themable */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 20px;
  border-radius: var(--radius-pill);
  background: var(--gray-900);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.store-badge svg { flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__sup { font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.01em; }
.store-badge__main { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .store-badge { background: var(--gray-0); color: var(--gray-900); }
  :root:not([data-theme='light']) .store-badge:hover { color: var(--gray-900); }
}

/* Android — a badge, deliberately not a control. Nothing to tap, nothing to break. */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1.5px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
}
.soon-badge svg { flex: none; opacity: 0.75; }
.soon-badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.soon-badge__sup { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.soon-badge__main { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-muted); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--hairline); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__links { display: flex; align-items: center; gap: 28px; }
/* Scoped to the text links only — `.site-nav a` would outrank `.btn--primary`
   on specificity and repaint the CTA's white label in muted grey. */
.site-nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.site-nav__links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
/* The aurora: melts at every edge, no rectangle cuts. Plum ink only on top. */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  background: var(--aurora);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.58;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__actions { margin-top: 36px; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.pill-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex: none;
}

/* ---------- Phone showcase --------------------------------------------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  filter: drop-shadow(0 40px 60px rgba(46, 42, 58, 0.24));
}
.phone img { width: 100%; height: auto; border-radius: 8%; }

.hero__stage { position: relative; display: flex; justify-content: center; }
.hero__stage .phone { max-width: 328px; }

/* the soft halo behind the hero phone */
.hero__stage::before {
  content: '';
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  top: 8%;
  border-radius: 50%;
  background: var(--grad-hero);
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
}

/* ---------- Feature spotlight (alternating) ----------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.spotlight + .spotlight { margin-top: clamp(72px, 9vw, 128px); }
.spotlight--flip .spotlight__media { order: -1; }

.spotlight__copy { max-width: 500px; }
.spotlight__body { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }

.spotlight__media { display: flex; justify-content: center; gap: 20px; }
.spotlight__media .phone { max-width: 268px; }
.spotlight__media--pair .phone { max-width: 232px; }
.spotlight__media--pair .phone:first-child { transform: rotate(-3deg) translateY(10px); }
.spotlight__media--pair .phone:last-child { transform: rotate(3deg) translateY(-10px); }

.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text-muted);
}
.checklist li strong { color: var(--text); font-weight: 700; }
.checklist .tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  display: grid;
  place-items: center;
}

/* ---------- Steps ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 20px; }
.step p { margin-top: 10px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Feature cards ---------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
.card {
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card__icon--coral { background: var(--accent-soft); color: var(--accent-soft-text); }
.card__icon--peri  { background: var(--secondary-soft); color: var(--secondary-soft-text); }
.card__icon--mint  { background: var(--success-soft); color: var(--success-soft-text); }
.card h3 { font-size: 19px; }
.card p { margin-top: 10px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Trust ------------------------------------------------------- */
.trust {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: clamp(32px, 5vw, 56px);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 44px);
  margin-top: 36px;
}
.trust__item h3 { font-size: 18px; }
.trust__item p { margin-top: 8px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.trust__note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- After-the-birth teaser --------------------------------------
   Deliberately quiet and narrow: it is a hint, not a feature. It must not
   compete with the reveal, which is this page's one hero. */
.teaser {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(32px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border-radius: var(--radius-2xl);
  background: var(--surface-subtle);
  border: 1.5px dashed var(--border-strong);
}
.teaser__seal {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.teaser .eyebrow { margin-bottom: 10px; }
.teaser p {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.teaser p strong { color: var(--text); }

/* ---------- Closing CTA -------------------------------------------------- */
.closer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px);
  text-align: center;
  background: var(--grad-hero);
  isolation: isolate;
}
.closer h2 { font-size: clamp(30px, 4.6vw, 46px); }
.closer p {
  margin-top: 18px;
  margin-inline: auto;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
}
.closer .cta-row { justify-content: center; margin-top: 36px; }
.closer .cta-note { justify-content: center; color: var(--gray-600); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .closer p { color: var(--text-muted); }
  :root:not([data-theme='light']) .closer .cta-note { color: var(--text-muted); }
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
  background: var(--bg-subtle);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__tag {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 34ch;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.footer-nav a { font-size: 14.5px; font-weight: 600; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Legal / prose pages ----------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% 0;
  z-index: -1;
  background: var(--aurora);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); }
.page-hero .lede { max-width: 60ch; }
.page-hero__meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.prose {
  max-width: 720px;
  padding-bottom: var(--section-y);
}
.prose h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  margin-top: 56px;
  padding-top: 4px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 32px; }
.prose p { margin-top: 16px; color: var(--text-muted); line-height: 1.7; }
.prose ul { margin-top: 16px; display: grid; gap: 12px; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  line-height: 1.7;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.prose strong { color: var(--text); font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* …but a button inside prose is still a button: `.prose a` outranks `.btn`. */
.prose a.btn { text-decoration: none; font-weight: 700; }

.callout {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.callout p { margin-top: 0; color: var(--text-muted); }
.callout p + p { margin-top: 12px; }
.callout--accent { background: var(--accent-soft); border-color: transparent; }
.callout--accent p { color: var(--accent-ink); }
.callout--accent strong { color: var(--accent-ink); }

.toc {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}
.toc p { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 15px; }
.toc li::before { content: counter(toc) '. '; color: var(--text-subtle); }
.toc a { color: var(--text-muted); font-weight: 600; }
.toc a:hover { color: var(--text-link); }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 14px; }
.faq details {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--text-subtle);
  border-bottom: 2.5px solid var(--text-subtle);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__body { padding: 0 26px 24px; }
.faq .faq__body p { margin-top: 0; color: var(--text-muted); line-height: 1.7; }
.faq .faq__body p + p { margin-top: 14px; }

.contact-card {
  margin-top: 32px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-2xl);
  background: var(--grad-hero);
  text-align: center;
}
.contact-card h2 { margin-top: 0; }
.contact-card p { color: var(--gray-700); }
.contact-card .btn { margin-top: 26px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .contact-card p { color: var(--text-muted); }
}

/* ---------- Small utilities ---------------------------------------------
   These exist so no element needs a `style="…"` attribute: the site ships a
   strict Content-Security-Policy (`style-src 'self'`, see `_headers`), and
   inline style attributes are blocked under it. */
.u-flush-top { margin-top: 0; }
.u-flush-bottom { margin-bottom: 0; }
.u-no-pad-top { padding-top: 0; }
.u-center { justify-content: center; text-align: center; }
.u-center-row { justify-content: center; }

/* ---------- 404 --------------------------------------------------------- */
.notfound {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound__inner { max-width: 560px; }
.notfound__mark { margin: 0 auto 28px; }
.notfound .cta-row { justify-content: center; margin-top: 34px; }
.notfound .cta-note { justify-content: center; margin-top: 28px; }

/* ---------- Motion ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero .cta-row, .hero .cta-note { justify-content: center; }
  .hero__stage { margin-top: 12px; }

  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight--flip .spotlight__media { order: 0; }
  .spotlight__copy { margin-inline: auto; }
  .checklist li { text-align: left; }
  .checklist { max-width: 420px; margin-inline: auto; }

  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .trust__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --page-x: 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row > * { width: 100%; justify-content: center; }
  .store-badge, .soon-badge { justify-content: center; }
  .spotlight__media--pair { gap: 10px; }
  .spotlight__media--pair .phone { max-width: 47%; }
  .site-footer__bottom { flex-direction: column; }
}
