/* ==========================================================================
   FamilyHub — marketing homepage
   --------------------------------------------------------------------------
   Self-contained: the app's iOS token files (colors_and_type.css,
   tokens-extended.css) stay with the app prototypes in app/. This page has
   its own warmer, editorial palette aimed at parents of young kids.

   Theme: <html data-theme="light|dark"> is resolved by the inline script in
   index.html before first paint; the media query below covers no-JS.
   ========================================================================== */

:root {
  --bg:        #FBF8F3;
  --bg-2:      #F3EDE3;
  --surface:   #FFFFFF;
  --surface-2: #FAF6EF;
  --ink:       #17202D;
  --ink-2:     #4B5565;
  --ink-3:     #7D8594;
  --line:      rgba(23, 32, 45, 0.10);
  --line-2:    rgba(23, 32, 45, 0.16);

  --brand:      #1B67E0;
  --brand-2:    #3D9DFF;
  --brand-soft: rgba(27, 103, 224, 0.10);
  --on-brand:   #FFFFFF;

  --sage:    #4F8F68;  --sage-soft:    rgba(79, 143, 104, 0.14);
  --apricot: #D9803F;  --apricot-soft: rgba(217, 128, 63, 0.14);
  --rose:    #C95A70;  --rose-soft:    rgba(201, 90, 112, 0.13);
  --lilac:   #7A68CF;  --lilac-soft:   rgba(122, 104, 207, 0.13);

  --glow-a: rgba(255, 196, 150, 0.55);
  --glow-b: rgba(160, 200, 255, 0.50);

  --shadow-sm: 0 1px 2px rgba(23, 32, 45, 0.06), 0 2px 8px rgba(23, 32, 45, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 32, 45, 0.05), 0 14px 36px rgba(23, 32, 45, 0.10);
  --shadow-lg: 0 4px 12px rgba(23, 32, 45, 0.06), 0 30px 70px rgba(23, 32, 45, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1320; --bg-2: #111A2A; --surface: #162033; --surface-2: #1A2539;
    --ink: #F3EEE6; --ink-2: rgba(243, 238, 230, 0.74); --ink-3: rgba(243, 238, 230, 0.50);
    --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.15);
    --brand: #4C93FF; --brand-2: #7DB6FF; --brand-soft: rgba(76, 147, 255, 0.16); --on-brand: #0B1220;
    --sage: #7CC49A; --sage-soft: rgba(124, 196, 154, 0.16);
    --apricot: #F2A66C; --apricot-soft: rgba(242, 166, 108, 0.16);
    --rose: #EE8A9E; --rose-soft: rgba(238, 138, 158, 0.15);
    --lilac: #A897F2; --lilac-soft: rgba(168, 151, 242, 0.16);
    --glow-a: rgba(242, 166, 108, 0.16); --glow-b: rgba(76, 147, 255, 0.22);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1320; --bg-2: #111A2A; --surface: #162033; --surface-2: #1A2539;
  --ink: #F3EEE6; --ink-2: rgba(243, 238, 230, 0.74); --ink-3: rgba(243, 238, 230, 0.50);
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.15);
  --brand: #4C93FF; --brand-2: #7DB6FF; --brand-soft: rgba(76, 147, 255, 0.16); --on-brand: #0B1220;
  --sage: #7CC49A; --sage-soft: rgba(124, 196, 154, 0.16);
  --apricot: #F2A66C; --apricot-soft: rgba(242, 166, 108, 0.16);
  --rose: #EE8A9E; --rose-soft: rgba(238, 138, 158, 0.15);
  --lilac: #A897F2; --lilac-soft: rgba(168, 151, 242, 0.16);
  --glow-a: rgba(242, 166, 108, 0.16); --glow-b: rgba(76, 147, 255, 0.22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ─── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 300ms ease, color 300ms ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px;
  background: var(--surface); color: var(--ink); border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); transform: translateY(-160%); transition: transform 200ms;
}
.skip-link:focus { transform: none; }

/* theme-dependent logos */
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-for-light { display: none; }
  :root:not([data-theme]) .logo-for-dark { display: block; }
}

/* ─── Type ────────────────────────────────────────────────────────────── */
.display, .h2, .display-sm {
  font-family: var(--font-display); font-weight: 420;
  font-variation-settings: "SOFT" 50, "opsz" 120;
  letter-spacing: -0.022em; color: var(--ink);
}
.display { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; }
.display em, .display-sm em, .h2 em {
  font-style: italic; font-weight: 380;
  color: var(--brand);
}
.hero .display em {
  display: inline-block; padding-right: 0.08em; margin-right: -0.08em;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.16) 60%);
          mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, 0.16) 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
}
.js .hero .display em { animation: ink 1300ms 650ms cubic-bezier(.45, 0, .25, 1) backwards; }
@keyframes ink {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; }
.display-sm { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.6; }
.lede em { font-style: normal; color: var(--ink); font-weight: 600; }

.section-head { max-width: 740px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head .lede { margin: 20px auto 0; max-width: 620px; }

section { padding: var(--section) 0; position: relative; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-text); padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--ease), background-color 200ms, box-shadow 200ms, border-color 200ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--surface); border-color: var(--line-2); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color 300ms, border-color 300ms, backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 160ms; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 16px; font-size: 14px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 250ms var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile {
  display: flex; flex-direction: column; padding: 8px var(--gutter) 22px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 13px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 16px; border-bottom: 0; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: clamp(120px, 15vw, 170px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -10% -10% auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 45% at 78% 30%, var(--glow-b), transparent 70%),
    radial-gradient(35% 40% at 58% 62%, var(--glow-a), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 28px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.hero-tagline {
  margin-top: 18px; font-family: var(--font-display); font-style: italic; font-weight: 380;
  font-variation-settings: "SOFT" 50, "opsz" 48;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; color: var(--ink-2); letter-spacing: -0.01em;
}
.hero-sub { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-proof svg { width: 18px; height: 18px; color: var(--sage); }

.hero-stage { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.phone {
  position: relative; width: min(310px, 76vw); aspect-ratio: 310 / 672;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(155deg, #3A3F48, #0E1014 45%, #22262D);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
/* Live layer: sits exactly over the screenshot (same 10px inset). Sizes
   use cqw so they track the screenshot's scale: 1cqw = 6.2 screenshot px. */
.phone-live { position: absolute; inset: 10px; border-radius: 42px; overflow: hidden; container-type: inline-size; pointer-events: none; }
.live-zone {
  position: absolute; left: 19.03%; top: 12.05%; width: 48.2%; height: 31.85%;
  border-radius: 8cqw; opacity: 0;
  background: rgba(48, 209, 88, 0.30); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45);
}
.live-pin { position: absolute; left: 37.1%; top: 22.3%; width: 0; height: 0; }
.live-halo {
  position: absolute; width: 21.3cqw; height: 21.3cqw; translate: -50% -50%; border-radius: 50%;
  background: rgba(70, 200, 150, 0.10);
}
.live-dot {
  position: absolute; width: 11cqw; height: 11cqw; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; background: #FF375F; border: 0.7cqw solid #FBFCFC;
  font: 700 3.6cqw/1 -apple-system, "SF Pro Text", var(--font-text); color: #fff; letter-spacing: 0.02em;
  box-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.45);
}
.live-row {
  position: absolute; left: 19.5%; top: 76.25%; width: 47%; height: 2.45%; padding-left: 0.85%;
  display: flex; align-items: center; background: #171B1E; color: #ADAEAF;
  font: 400 3.55cqw/1 -apple-system, "SF Pro Text", var(--font-text); white-space: nowrap;
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0;
  width: 92px; height: 27px; background: #000; border-radius: 20px;
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 14px; line-height: 1.3; max-width: 290px;
}
.float-card b { display: block; font-weight: 600; color: var(--ink); }
.float-card small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.fc-arrive { top: 16%; left: -8%; }
.fc-hub    { bottom: 16%; right: -10%; }
.fc-lock   { bottom: 3%; left: 2%; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-2); gap: 8px; }
.fc-lock svg { width: 16px; height: 16px; color: var(--sage); }

.fc-icon, .tile-icon {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
}
.fc-icon svg, .tile-icon svg { width: 20px; height: 20px; }
.tone-sage    { background: var(--sage-soft);    color: var(--sage); }
.tone-apricot { background: var(--apricot-soft); color: var(--apricot); }
.tone-blue    { background: var(--brand-soft);   color: var(--brand); }
.tone-rose    { background: var(--rose-soft);    color: var(--rose); }
.tone-lilac   { background: var(--lilac-soft);   color: var(--lilac); }

.hub-avatar { flex: none; width: 38px; height: 38px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hub-avatar img { width: 100%; height: 100%; }
.hub-avatar.sm { width: 22px; height: 22px; border-radius: 7px; display: inline-block; vertical-align: -6px; margin-right: 8px; }

/* ─── Promise band ────────────────────────────────────────────────────── */
.promise { padding: 0 0 var(--section); }
.promise-lead {
  text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 380;
  font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-2); margin-bottom: 36px;
}
.promise-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promise-row li { padding: 30px 20px; text-align: center; }
.promise-row li + li { border-left: 1px solid var(--line); }
.promise-row strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.promise-row span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ─── A day ───────────────────────────────────────────────────────────── */
/* --day-bg / --map-* / --night are scrubbed by homepage.js as the timeline
   scrolls from morning to night; the fallbacks are the morning state. */
.day { background: var(--day-bg, var(--bg-2)); }
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.day-list { list-style: none; margin: 0; padding: 0; position: relative; }
.day-list::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--line-2), var(--line-2)) no-repeat;
}
.moment {
  position: relative; padding: 0 0 0 44px; min-height: 42vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.38; transition: opacity 400ms ease;
}
.moment::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--line-2);
  transition: background-color 300ms, border-color 300ms, box-shadow 300ms;
}
.moment.active { opacity: 1; }
.moment.active::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.moment time { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--brand); text-transform: uppercase; }
.moment h3 { font-family: var(--font-display); font-weight: 450; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -0.015em; }
.moment p { color: var(--ink-2); max-width: 440px; }

.day-stage { position: sticky; top: calc(50vh - 280px); display: flex; justify-content: center; }
.day-phone {
  position: relative; width: 300px; height: 560px; border-radius: 48px; padding: 10px;
  background: linear-gradient(155deg, #3A3F48, #0E1014 45%, #22262D);
  box-shadow: var(--shadow-lg);
}
.day-map { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--map-bg, #EEF1EA); }
.day-map-svg { width: 100%; height: 100%; }
.day-map-svg .road { stroke: var(--map-road, #FFFFFF); stroke-width: 14; }
.day-map-svg .road.thin { stroke-width: 8; }
.day-map-svg .park { fill: var(--map-park, #D3E4CC); stroke: none; }
.day-map-svg .fence { fill: rgba(79,143,104,0.14); stroke: #4F8F68; stroke-width: 2; stroke-dasharray: 5 5; }
.day-map-svg .fence.home { fill: rgba(27,103,224,0.10); stroke: #1B67E0; }
.day-map-svg .map-label { font: 700 9px var(--font-text); letter-spacing: 0.14em; fill: #7D8594; stroke: none; text-anchor: middle; }
.day-map-svg .route { stroke: #1B67E0; stroke-width: 4; stroke-dasharray: 6 8; opacity: 0.55; }
.day-map-svg .house-body { fill: var(--map-road, #FFFFFF); stroke: #7D8594; stroke-width: 1.5; }
.day-map-svg .house-window { stroke: none; fill: #FFD27A; opacity: var(--night, 0); }
.day-map-svg .house { filter: drop-shadow(0 0 calc(var(--night, 0) * 8px) rgba(255, 210, 122, 0.9)); }
.day-map-svg .stars circle { fill: #FFF6DC; stroke: none; opacity: var(--night, 0); }
.day-dot {
  position: absolute; left: 30%; top: 78.5%; width: 22px; height: 22px; translate: -50% -50%;
  border-radius: 50%; background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(27,103,224,0.22), var(--shadow-md);
  transition: left 900ms var(--ease), top 900ms var(--ease);
}
.day-note {
  position: absolute; left: 22px; right: 22px; top: 52px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 14px; line-height: 1.3;
  transition: opacity 260ms ease, translate 260ms var(--ease);
}
.day-note.swap { opacity: 0; translate: 0 -8px; }
.day-note b { display: block; font-weight: 600; }
.day-note small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* ─── Assistant ───────────────────────────────────────────────────────── */
.assistant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.assistant-copy .lede { margin: 22px 0 30px; }
code { font-family: var(--font-mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); rotate: -45deg;
}

.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--sage); font-weight: 500; }
.chat-head small svg { width: 13px; height: 13px; }
.chat-faces { display: flex; }
.chat-faces img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.chat-faces img + img { margin-left: -10px; }
.chat-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; background: var(--surface-2); }
.bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45;
  transition: opacity 450ms var(--ease), translate 450ms var(--ease);
}
.bubble i { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .bubble.out { color: var(--on-brand); }
.bubble.sys {
  align-self: center; max-width: 94%; text-align: center; font-size: 13px; color: var(--ink-2);
  background: var(--sage-soft); border-radius: 999px; padding: 7px 14px;
}
.bubble.hub {
  align-self: flex-start; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-bottom-left-radius: 6px;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.bubble.hub i { color: var(--brand); }
.chat-body.playing > .bubble:not(.shown) { opacity: 0; translate: 0 10px; }
.typing {
  align-self: flex-start; display: none; gap: 4px; padding: 12px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
}
.typing.on { display: inline-flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat-foot {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.chat-foot svg { width: 16px; height: 16px; flex: none; color: var(--brand); }

/* ─── Privacy ─────────────────────────────────────────────────────────── */
.privacy { background: var(--bg-2); }
.lens {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.lens-side { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lens-us { background: #111827; color: #D6DEEA; }
:root[data-theme="dark"] .lens-us { background: #080C14; }
.lens-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.lens-us .lens-label { color: #8A96A8; }
.lens-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
}
.lens-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.lens-card b { display: block; font-size: 15.5px; }
.lens-card small { display: block; font-size: 13.5px; color: var(--ink-2); }
.pill-ok { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--sage); background: var(--sage-soft); padding: 4px 10px; border-radius: 999px; }
.lens-divider { position: relative; width: 1px; background: var(--line); }
.lens-divider span {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 0 0 8px var(--surface), var(--shadow-md);
}
.lens-divider svg { width: 22px; height: 22px; }
.cipher {
  margin: 0; flex: 1; min-height: 124px; padding: 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  font: 12.5px/1.6 var(--font-mono); color: #7FA7D9;
  white-space: pre-wrap; word-break: break-all; overflow: hidden;
}
.lens-note { font-size: 13.5px; color: #97A3B6; }

/* The seal: a copy of Mia's card travels into the lock and comes out the
   other side as ciphertext (homepage.js, Web Animations API). */
.lens-ghost {
  position: absolute; z-index: 3; margin: 0; pointer-events: none;
  box-shadow: var(--shadow-md); background: var(--surface);
}
.lens-divider span { transition: scale 300ms var(--ease), box-shadow 300ms; z-index: 4; }
.lens-divider .shackle { transition: translate 260ms cubic-bezier(.3, 1.6, .5, 1); }
.lens.seal-open .lens-divider .shackle { translate: 0 -3px; }
.lens.sealing .lens-divider span { scale: 1.14; box-shadow: 0 0 0 8px var(--surface), 0 0 0 16px var(--brand-soft), var(--shadow-md); }
.cipher { transition: border-color 400ms, color 400ms, background-color 400ms; }
.cipher.burst { border-color: rgba(125, 182, 255, 0.55); color: #B9D5FF; background: rgba(76, 147, 255, 0.08); }
.lens-actions { display: flex; justify-content: center; margin-top: 18px; min-height: 36px; }
.replay {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font: 500 14px var(--font-text); cursor: pointer; transition: color 200ms, background-color 200ms;
}
.replay:hover { color: var(--ink); background: var(--surface); }
.replay svg { width: 16px; height: 16px; }
.replay[hidden] { display: none; }

.principles {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.p-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand); margin-bottom: 18px;
}
.p-icon svg { width: 21px; height: 21px; }
.principles h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.005em; }
.principles p { font-size: 15px; color: var(--ink-2); }

/* ─── Grows with you ──────────────────────────────────────────────────── */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stage {
  padding: 28px 24px 30px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: translate 300ms var(--ease), box-shadow 300ms;
}
.stage:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.stage-age {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  margin-bottom: 22px;
}
.stage:nth-child(1) .stage-age { background: var(--apricot-soft); color: var(--apricot); }
.stage:nth-child(2) .stage-age { background: var(--sage-soft); color: var(--sage); }
.stage:nth-child(3) .stage-age { background: var(--brand-soft); color: var(--brand); }
.stage:nth-child(4) .stage-age { background: var(--lilac-soft); color: var(--lilac); }
.stage h3 { font-family: var(--font-display); font-weight: 450; font-size: 23px; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.01em; }
.stage p { font-size: 15px; color: var(--ink-2); }

/* ─── Bento features ──────────────────────────────────────────────────── */
.features { background: var(--bg-2); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  grid-column: span 2; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; position: relative;
}
.tile h3 { font-size: 18px; font-weight: 600; margin: 18px 0 8px; letter-spacing: -0.01em; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile-map {
  grid-column: span 4; grid-row: span 2; padding: 32px 32px 0;
  display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.tile-map h3 { font-family: var(--font-display); font-weight: 450; font-size: clamp(26px, 2.8vw, 34px); margin: 0 0 10px; letter-spacing: -0.015em; }
.tile-map p { max-width: 420px; font-size: 16px; }
.tile-map img {
  margin-top: auto; width: 100%; border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--shadow-md);
}

/* ─── Platforms ───────────────────────────────────────────────────────── */
.device-row {
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 3vw, 40px);
}
.device { margin: 0; text-align: center; flex: none; }
.device figcaption { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.device .screen { background: #0C0E12; box-shadow: var(--shadow-lg); overflow: hidden; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d-phone .screen { width: 180px; height: 380px; border-radius: 36px; padding: 8px; }
.d-phone img { border-radius: 29px; }
.d-mac .screen { width: 370px; height: 234px; border-radius: 14px; padding: 24px 0 0; position: relative; }
.d-mac .screen::before {
  content: ""; position: absolute; top: 9px; left: 13px; width: 7px; height: 7px; border-radius: 50%;
  background: #FF5F57; box-shadow: 12px 0 #FEBC2E, 24px 0 #28C840;
}
.d-tv .screen { width: 330px; height: 190px; border-radius: 10px; border: 5px solid #0C0E12; }
.d-watch .screen { width: 130px; height: 160px; border-radius: 38px; padding: 8px; }
.d-watch img { border-radius: 30px; }

/* ─── Steps ───────────────────────────────────────────────────────────── */
.steps { padding-top: 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step-list li { padding: 30px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-size: 19px; background: var(--ink); color: var(--bg); margin-bottom: 22px;
}
.step-list h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-list p { font-size: 15px; color: var(--ink-2); }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.pricing { background: var(--bg-2); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  padding: 34px 30px 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.price { font-size: 15px; color: var(--ink-3); margin-top: -12px; }
.price span { font-family: var(--font-display); font-size: 52px; font-weight: 400; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.price-card .ticks { flex: 1; }
.price-card.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-lg); }
.badge {
  position: absolute; top: -13px; left: 30px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
}

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 17px; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; translate: 0 -70%;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); rotate: 45deg;
  transition: rotate 250ms var(--ease), translate 250ms var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); font-size: 16px; }

/* ─── Download ────────────────────────────────────────────────────────── */
.download { padding-top: 0; }
.download-card {
  text-align: center; padding: clamp(56px, 8vw, 100px) var(--gutter); border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 20% 0%, var(--glow-a), transparent 70%),
    radial-gradient(60% 80% at 85% 100%, var(--glow-b), transparent 70%),
    var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.snap { white-space: nowrap; display: inline-block; }
.snap-lock {
  width: 0.46em; height: 0.46em; margin-left: 0.16em; vertical-align: -0.02em;
  stroke-width: 2.4; color: var(--brand); overflow: visible;
}
.snap-lock .shackle { translate: 0 -5px; }
.snap.snapped .snap-lock .shackle { translate: 0 0; transition: translate 280ms cubic-bezier(.3, 1.8, .5, 1); }
.snap.snapped { animation: snapShake 420ms 240ms ease-out; }
.snap.snapped .snap-lock { animation: lockPop 420ms 200ms var(--ease); }
@keyframes snapShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 75% { transform: translateX(-1px); }
}
@keyframes lockPop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.25); } }
.download-card .lede { margin: 18px auto 0; max-width: 520px; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 17px; line-height: 1.15;
  transition: transform 200ms var(--ease), box-shadow 200ms;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.store svg { width: 26px; height: 26px; }
.store-web { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .store-web { color: var(--on-brand); }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.footer-cols a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); transition: color 160ms; }
.footer-cols a:hover { color: var(--ink); }
.footer-base {
  display: flex; align-items: center; gap: 16px; margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3);
}
.footer-base .qsparx { height: 20px; width: auto; opacity: 0.85; }

/* ─── Checkout modal ──────────────────────────────────────────────────── */
.modal {
  width: min(440px, calc(100vw - 32px)); padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(10, 14, 22, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.modal-close svg { width: 16px; height: 16px; }
.modal h3 { font-family: var(--font-display); font-weight: 450; font-size: 28px; margin-bottom: 6px; }
.modal-plan { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }
.modal-plan strong { color: var(--ink); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 16px var(--font-text);
}
.field input:disabled { color: var(--ink-3); }
.modal-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ─── Reveal ──────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 800ms var(--ease), translate 800ms var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
[data-float] { animation: float 7s ease-in-out infinite; }
.fc-hub  { animation-delay: -2.3s; }
.fc-lock { animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-cta .btn-quiet { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .device-row { flex-wrap: wrap; }
  .d-tv { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .assistant-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 20px; }
  .fc-arrive { left: 0; }
  .fc-hub { right: 0; }
  .day-grid { grid-template-columns: 1fr; }
  .day-stage { display: none; }
  .moment { min-height: 0; padding-bottom: 36px; opacity: 1; }
  .moment::before { top: 10px; translate: none; }
  .lens { grid-template-columns: 1fr; }
  .lens-divider { width: auto; height: 1px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-map { grid-column: span 1; grid-row: auto; }
  .tile-map { grid-column: 1 / -1; }
  .step-list, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .promise-row { grid-template-columns: repeat(2, 1fr); }
  .promise-row li:nth-child(3) { border-left: 0; }
  .promise-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .principles, .stages, .bento { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { max-width: 230px; font-size: 13px; }
  .fc-arrive { top: 8%; }
  .fc-hub { bottom: 12%; }
  .d-mac, .d-watch { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .tile-map { padding: 26px 22px 0; }
}

/* ─── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .snap-lock .shackle, .lens.seal-open .lens-divider .shackle { translate: none; }
}
