/* Kality marketing site.
   Tokens mirror ios/Kality/Theme/Theme.swift (AppTheme): canvas, card, ink,
   the logo gradient and the macro colors, light + dark. */

:root {
  --canvas: #F5F5F3;
  --canvas-tint: #ECEBE7;
  --card: #FFFFFF;
  --ink: #0B0B0E;
  --ink-2: #17171B;
  --ink-3: #4A4A52;
  --hairline: #E0DED9;

  --sky: #06A8FD;
  --blue: #0361FC;
  --deep: #003AF9;
  --night: #041440;
  --night-2: #0A2160;

  --c-protein: #007AFF;
  --c-amber: #FF9500;
  --c-fat: #F2B800;
  --c-green: #34C759;
  --c-fiber: #AF52DE;
  --c-flame: #E85D3A;
  --c-heart: #FF2D55;

  --font-display: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(72px, 10vw, 128px);
  --shadow-phone: 0 40px 80px -30px rgba(3, 40, 120, 0.45), 0 12px 30px -12px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #08080A;
    --canvas-tint: #121215;
    --card: #1C1C1E;
    --ink: #F5F5F8;
    --ink-2: #F5F5F8;
    --ink-3: #E5E5EA;
    --hairline: #2E2E33;
    --night: #030B26;
    --night-2: #0A1A4A;
    --c-protein: #0A84FF;
    --c-amber: #FF9F0A;
    --c-fat: #FFD60A;
    --c-green: #30D158;
    --c-fiber: #BE6BE8;
    --c-heart: #FF375F;
    --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --canvas: #08080A;
  --canvas-tint: #121215;
  --card: #1C1C1E;
  --ink: #F5F5F8;
  --ink-2: #F5F5F8;
  --ink-3: #E5E5EA;
  --hairline: #2E2E33;
  --night: #030B26;
  --night-2: #0A1A4A;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--canvas); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--on-dark { color: #7FC4FF; }
.small { font-size: 15px; color: var(--ink-2); }

/* ── Buttons & links ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 16px/1 var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 24px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { padding: 10px 16px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--light { background: #fff; color: var(--night); }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow--on-dark { color: #fff; }

.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  border-radius: 14px;
  padding: 9px 20px 9px 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore svg { width: 28px; height: 28px; }
.appstore span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.appstore--light { background: #fff; color: #000; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__links a, .nav__cta { white-space: nowrap; }
@media (max-width: 1200px) { .nav__links { gap: 18px; } .nav__inner { gap: 20px; } }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__toggle { display: none; }
/* Coach sign-in: an account icon in the bar, icon + label in the mobile menu. */
.nav__links a.nav__coach-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid var(--hairline); color: var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1;
}
.nav__links a.nav__coach-login:hover { border-color: var(--ink); }
.nav__icon { width: 17px; height: 17px; flex-shrink: 0; }
/* Get the app: Apple logo before the label. */
.nav__cta { gap: 7px; }
.nav__apple { width: 16px; height: 16px; margin-top: -2px; }

@media (max-width: 1300px) {
  .nav__inner { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 0; border-radius: 12px;
    background: var(--card); color: var(--ink); cursor: pointer;
  }
  .nav__toggle span[aria-hidden] , .nav__toggle span[aria-hidden]::before, .nav__toggle span[aria-hidden]::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
  }
  .nav__toggle span[aria-hidden]::before { position: absolute; top: -6px; }
  .nav__toggle span[aria-hidden]::after { position: absolute; top: 6px; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a.nav__coach-login { display: flex; gap: 10px; padding: 12px 0; border: 0; border-radius: 0; color: var(--ink-2); font-size: 17px; font-weight: 600; }
  .nav.is-open .nav__links { display: flex; }
}

/* ── Phone frame ─────────────────────────────────────── */
.phone {
  --w: 300px;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 440 / 956;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #2A2A2E, #0B0B0E 40%, #1C1C20);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255,255,255,.08);
  position: relative;
  flex-shrink: 0;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * 0.14);
  background: var(--card);
}
/* Shown until a real screenshot exists at the img's src. */
.phone.is-missing img, .browser.is-missing img { visibility: hidden; }
.phone.is-missing::after, .browser.is-missing::after {
  content: attr(data-missing);
  position: absolute; inset: calc(var(--w, 300px) * 0.032);
  display: grid; place-items: center; text-align: center; padding: 20px;
  border-radius: calc(var(--w, 300px) * 0.14);
  background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep));
  color: #fff; font-weight: 700; font-size: 14px;
}
.browser.is-missing::after { inset: 44px 0 0 0; border-radius: 0 0 14px 14px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: clamp(36px, 6vw, 72px) 0 var(--section-pad); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
.hero__lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; scroll-margin-top: 100px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.hero__visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone--hero { --w: 318px; z-index: 2; }
.phone--peek { --w: 232px; position: absolute; right: -40px; bottom: -40px; z-index: 1; transform: rotate(6deg); opacity: .95; }
.hero__visual::before {
  content: ""; position: absolute; z-index: 0;
  width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--sky) 38%, transparent) 0%, transparent 65%);
  filter: blur(10px);
}

/* The spoken-sentence demo: the page's signature. */
.say {
  margin: 34px 0 0;
  padding: 22px 24px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--hairline), 0 18px 40px -24px rgba(3, 60, 170, 0.35);
  position: relative;
  max-width: 600px;
}
.say__mic { display: flex; align-items: center; gap: 3px; height: 18px; margin-bottom: 6px; }
.say__mic span { width: 3px; height: 6px; border-radius: 2px; background: var(--blue); }
.say.is-listening .say__mic span { animation: bar .9s ease-in-out infinite; }
.say__mic span:nth-child(2) { animation-delay: -.2s !important; }
.say__mic span:nth-child(3) { animation-delay: -.45s !important; }
.say__mic span:nth-child(4) { animation-delay: -.1s !important; }
.say__mic span:nth-child(5) { animation-delay: -.6s !important; }
@keyframes bar { 0%, 100% { height: 5px; } 50% { height: 18px; } }

.say__line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 2.05;
  letter-spacing: -0.01em;
  min-height: 2.05em;
  padding-top: 6px;
}
.say__line .w { opacity: 1; transition: opacity .18s ease; }
.say__line .w.is-hidden { opacity: 0; }
.food { position: relative; border-radius: 6px; padding: 0 2px; margin: 0 -2px; transition: background-color .3s ease, box-shadow .3s ease; }
.food.is-on { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 -2px 0 var(--c); }
.food--blue { --c: var(--c-protein); }
.food--amber { --c: var(--c-amber); }
.food--green { --c: var(--c-green); }
.food--purple { --c: var(--c-fiber); }
.kcal {
  position: absolute; left: 0; bottom: calc(100% + 1px);
  font: 700 12px/1 var(--font-body); font-style: normal; letter-spacing: 0;
  white-space: nowrap;
  color: #fff; background: var(--c);
  padding: 4px 7px; border-radius: 999px;
  opacity: 0; transform: translateY(4px) scale(.9);
  transition: opacity .25s ease, transform .25s cubic-bezier(.3, 1.6, .6, 1);
  pointer-events: none;
}
.food.is-on .kcal { opacity: 1; transform: none; }
.say__total {
  margin-top: 8px; padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  font-size: 15px; color: var(--ink-2);
  opacity: 1; transition: opacity .3s ease;
}
.say__total strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.say__total.is-hidden { opacity: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin-top: 12px; }
  .phone--hero { --w: min(300px, 72vw); }
  .phone--peek { --w: min(200px, 44vw); right: max(-10px, calc(50% - 250px)); bottom: -30px; }
  .say { padding: 18px 18px 14px; }
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section--tint { background: var(--canvas-tint); }
.section__head { max-width: 720px; margin-bottom: 48px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.feature--flip .feature__visual { order: 2; }
.feature__visual { display: flex; justify-content: center; align-items: flex-start; position: relative; }
.feature__visual--pair { gap: 0; }
.feature__visual--pair .phone { --w: 262px; }
.feature__visual--pair .phone--offset { margin-left: -60px; margin-top: 120px; }
.feature__copy h2 { margin-bottom: 20px; }
.feature__copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; max-width: 32em; }
.feature__copy > p.small { font-size: 15px; margin-top: 22px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__visual { order: 0; }
  .feature__visual { order: 2; }
  .feature__visual--pair .phone { --w: min(230px, 46vw); }
  .feature__visual--pair .phone--offset { margin-left: -12vw; margin-top: 70px; }
}

.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hairline);
}
.chips li:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }

.asks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; max-width: 420px; }
.asks li {
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  background: var(--card);
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  width: fit-content;
}
.asks li:nth-child(even) { margin-left: 28px; }

.pillars { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 460px; }
.pillars li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.pillars li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; }

/* ── Icon badge (feature tiles, coach cards, privacy) ── */
.ico {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
}
.ico svg { width: 22px; height: 22px; }
.tile .ico { margin-bottom: 6px; }
.coach__grid .ico { margin-bottom: 14px; background: color-mix(in srgb, var(--c) 18%, transparent); }

/* ── Bento ───────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile--share { grid-column: span 2; grid-row: span 2; justify-content: space-between; overflow: hidden; padding-bottom: 0; }
.tile--share img { width: 86%; margin: 18px auto -18%; border-radius: 50%; }
.tile--badges { grid-column: span 2; }
.badges { display: flex; gap: 6px; margin-top: 10px; }
.badges img { width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--share { grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--share, .tile--badges { grid-column: auto; }
}

/* ── Coaches ─────────────────────────────────────────── */
.coach {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(6, 168, 253, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 40%, rgba(0, 58, 249, 0.35), transparent 60%),
    var(--night);
  color: #fff;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.coach__head { max-width: 780px; }
.coach__head h2 { font-size: clamp(38px, 5.4vw, 66px); }
.coach__lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: #fff; max-width: 36em; }
.coach__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

.tour { margin-top: clamp(48px, 7vw, 80px); }
.tour__tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.tour__tabs button {
  font: 600 15px/1 var(--font-body);
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 16px; border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tour__tabs button:hover { color: #fff; background: rgba(255,255,255,.12); }
.tour__tabs button[aria-selected="true"] { background: #fff; color: var(--night); border-color: #fff; }
@media (max-width: 700px) {
  .tour__tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tour__tabs button { flex-shrink: 0; }
}

.browser {
  position: relative;
  border-radius: 16px;
  background: #1B1F2A;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; background: #22273A; }
.browser__bar > span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); }
.browser__url {
  margin: 0 auto; transform: translateX(-20px);
  font-size: 12.5px; color: #fff;
  background: rgba(0,0,0,.25); padding: 5px 14px; border-radius: 8px;
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top left; transition: opacity .2s ease; }
.browser img.is-swapping { opacity: .35; }
.browser video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; background: #f5f5f3; }
.browser [hidden] { display: none; }
.tour__tabs button[data-video]::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 7px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; vertical-align: 0; }
.tour__caption { margin-top: 16px; color: #fff; font-size: 16px; min-height: 1.6em; }

.coach__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.coach__grid article { padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.coach__grid p { margin-top: 8px; font-size: 15px; color: #fff; }
@media (max-width: 900px) { .coach__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .coach__grid { grid-template-columns: 1fr; } }

.connect {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 56px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: #fff; color: var(--night);
}
.connect__title { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.connect__steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.connect__steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 14px; color: #3C4257; font-size: 16px; }
.connect__steps li::before {
  content: counter(step);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep));
}
.connect__steps strong, .connect__notes strong { color: var(--night); }
.connect__notes { display: grid; gap: 16px; align-content: start; }
.connect__notes p { padding: 16px 18px; border-radius: 16px; background: #EEF4FF; color: #3C4257; font-size: 15px; }
@media (max-width: 800px) { .connect { grid-template-columns: 1fr; } }

/* ── Plans ───────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px; }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; }
.plan__sub { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 32px; font-size: 16px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan--premium { background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep)); color: #fff; }
.plan--premium .plan__sub { color: #fff; }
.plan--premium li::before { background-color: rgba(255,255,255,.22); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* ── Privacy ─────────────────────────────────────────── */
.privacy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.privacy__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy__list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--card); border-radius: 18px; padding: 20px 22px; color: var(--ink-2);
}

.privacy__list strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 800px) { .privacy { grid-template-columns: 1fr; gap: 28px; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq__list details { border-bottom: 1px solid var(--hairline); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 18px; font-weight: 700;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--blue); transition: transform .2s ease; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; gap: 16px; } }

/* ── Closing + footer ────────────────────────────────── */
.closing { padding: 0 0 var(--section-pad); }
.closing__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep));
  color: #fff;
}
.closing__inner > img { border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 20, 80, .35); }
.closing h2 { margin-top: 24px; font-size: clamp(38px, 5.4vw, 64px); }
.closing p { margin: 12px 0 30px; font-size: 19px; color: #fff; }

.footer { border-top: 1px solid var(--hairline); padding: 48px 0 44px; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 48px; }
.footer__brand p { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 22em; }
.brand--footer { font-size: 21px; }
.brand--footer img { border-radius: 7px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__cols h2 { font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 5px 0; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.footer__cols a:hover { color: var(--ink); }
.footer__legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .say__mic span { animation: none !important; }
}

/* ── Feature pages ───────────────────────────────────── */
.hero--page .hero__title--page { font-size: clamp(44px, 6.4vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs--on-dark, .crumbs--on-dark a { color: #fff; }
.section__lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.center { text-align: center; margin-top: 24px; }
.feature__copy .link-arrow { display: inline-block; margin-top: 24px; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; max-width: 32em; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.chips--quiet li:first-child { background: var(--card); border-color: var(--hairline); color: var(--ink); }
.chips--big li { font-size: 17px; padding: 11px 18px; }
.chips--big li:first-child { background: var(--card); border-color: var(--hairline); color: var(--ink); }

.bento--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .bento--three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento--three { grid-template-columns: 1fr; } }

/* Explore: cross-links between pages. */
.explore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .explore { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.explore__card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--radius); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.explore__card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(3, 60, 170, .45); }
.explore__shot { display: block; height: 200px; overflow: hidden; background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep)); padding: 22px max(34px, 20%) 0; }
.explore__shot--night { background: radial-gradient(120% 90% at 80% 0%, rgba(110, 107, 245, .55), transparent 60%), var(--sleep-ink); }
.explore__shot img { width: 100%; height: auto; border-radius: 18px 18px 0 0; box-shadow: 0 10px 30px rgba(0, 20, 80, .35); }
.explore__shot--wide { padding: 22px 0 0 22px; }
.explore__shot--wide img { width: 170%; max-width: none; border-radius: 10px 0 0 0; }
.explore__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.explore__body strong { font-size: 18px; letter-spacing: -.01em; }
.explore__body > span:not(.explore__cta) { font-size: 15px; color: var(--ink-2); }
.explore__cta { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; color: var(--blue); }
@media (max-width: 800px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }

/* Nutrients: the full list. */
.nutrient-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nutrient-index article { background: var(--card); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--c); }
.nutrient-index h3 { margin-bottom: 14px; }
.nutrient-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nutrient-index li { font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, transparent); }
@media (max-width: 900px) { .nutrient-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nutrient-index { grid-template-columns: 1fr; } }

/* Longevity: the VO2 max formula. */
.formula { margin: 26px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--hairline); max-width: 34em; }
.formula__eq { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; color: var(--blue); }
.formula__eq sub { font-size: .55em; }
.formula figcaption { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.formula strong { color: var(--ink); }

/* Coaches. */
.coach--hero { padding-top: clamp(40px, 6vw, 72px); }
.coach__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.coach--teaser { padding: clamp(64px, 8vw, 104px) 0; }
.coach-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.browser--tilt { transform: perspective(1400px) rotateY(-8deg); }
.browser--light { background: var(--card); box-shadow: 0 40px 80px -40px rgba(3, 40, 120, .45), 0 0 0 1px var(--hairline); }
.browser--light .browser__bar { background: var(--canvas-tint); }
.browser--light .browser__bar > span { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.feature--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.feature--wide.feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.feature--wide.feature--flip .feature__visual { order: 2; }
.closing__inner--coach { background: radial-gradient(700px 400px at 80% 0%, rgba(6, 168, 253, .4), transparent 60%), var(--night); }
.closing__inner--coach h2 { margin-top: 0; }
.coach__actions--center { justify-content: center; margin-top: 8px; }
@media (max-width: 900px) {
  .coach-teaser, .feature--wide, .feature--wide.feature--flip { grid-template-columns: 1fr; }
  .feature--wide.feature--flip .feature__visual { order: 0; }
  .browser--tilt { transform: none; }
}

/* ── Legal pages (privacy, terms) ─────────────────────── */
.wrap--legal { max-width: 820px; }
.legal-hero { padding: clamp(36px, 6vw, 72px) 0 8px; }
.legal-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.legal-meta { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.legal-lede { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.section--legal { padding-top: 32px; }
.legal { font-size: 17px; }
.legal h2 { font-size: clamp(26px, 3vw, 32px); margin: 56px 0 14px; scroll-margin-top: 96px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal ul, .legal ol { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.legal-summary { background: var(--card); border-radius: var(--radius); padding: 24px 26px; border-left: 4px solid var(--blue); }
.legal-summary h2 { margin: 0 0 10px; font-size: 22px; }
.legal-summary--warn { border-left-color: var(--c-amber); }
.legal-toc { margin-top: 28px; padding: 22px 26px; border: 1px solid var(--hairline); border-radius: var(--radius); }
.legal-toc h2 { margin: 0 0 8px; font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.legal-toc ol { columns: 2; column-gap: 32px; display: block; margin: 0; }
.legal-toc li { margin: 6px 0; break-inside: avoid; }
.legal-toc a { text-decoration: none; font-weight: 600; font-size: 15px; }
.legal-toc a:hover { text-decoration: underline; }
.legal-table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--hairline); border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.legal-table th { background: var(--canvas-tint); color: var(--ink); font-weight: 700; }
.legal-table td { color: var(--ink-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ── Family illustrations ────────────────────────────── */
:root { --plate: #FFFFFF; --plate-rim: #E9E7E2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --plate: #2A2A2E; --plate-rim: #1C1C1E; } }
.fam-card { margin: 0; width: min(400px, 100%); background: var(--card); border-radius: 26px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(3, 40, 120, .35), 0 0 0 1px var(--hairline); }
.fam-caption { margin-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; }
.hero__visual--illustration { min-height: 0; align-items: center; }
.fam-card--hero { padding: 30px; }
.fam-members { display: grid; gap: 6px; }
.fam-member { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--canvas-tint); }
.fam-member strong { display: block; font-size: 17px; }
.fam-member small { display: block; font-size: 14px; color: var(--ink-2); }
.fam-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(180deg, var(--sky), var(--blue) 60%, var(--deep)); }
.fam-avatar--b { background: linear-gradient(180deg, #FFB340, var(--c-amber)); }
.fam-avatar--sm { width: 32px; height: 32px; font-size: 11px; }
.fam-avatar--xs { width: 20px; height: 20px; font-size: 8px; background: linear-gradient(180deg, #FFB340, var(--c-amber)); }
.fam-link { display: flex; justify-content: center; }
.fam-link span { width: 2px; height: 18px; background: repeating-linear-gradient(var(--blue) 0 4px, transparent 4px 8px); }
.fam-free { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.fam-free__badge { padding: 5px 10px; border-radius: 999px; background: var(--c-green); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.split { display: grid; gap: 18px; }
.split__plate { width: 70%; margin: 0 auto; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }
.split__people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split__who { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--canvas-tint); font-size: 14px; color: var(--ink-2); }
.split__who small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.split__who strong { color: var(--ink); font-size: 16px; }
.split__pct { font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--c); }
.split__presets { display: flex; gap: 6px; justify-content: center; }
.split__presets span { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--canvas-tint); color: var(--ink-2); }
.split__presets .is-on { background: var(--ink); color: var(--canvas); }
.split__btn { text-align: center; padding: 14px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700; }

.share-invite { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--canvas-tint); }
.share-invite__head { display: flex; align-items: center; gap: 10px; }
.share-invite__meal { font-weight: 600; }
.share-invite__meta { color: var(--ink-2); font-size: 15px; }
.share-invite__meta strong { color: var(--ink); }
.share-invite__btns { display: flex; gap: 8px; margin-top: 6px; }
.share-invite__btns span { flex: 1; text-align: center; padding: 11px; border-radius: 12px; font-weight: 700; background: var(--card); border: 1px solid var(--hairline); }
.share-invite__btns .is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }

.shared-list__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.shared-list__head strong { font-size: 18px; }
.shared-list__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px 5px 5px; border-radius: 999px; background: color-mix(in srgb, var(--c-green) 16%, transparent); color: var(--ink); }
.shared-list ul { list-style: none; padding: 0; margin: 0; }
.shared-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.shared-list li small { margin-left: auto; color: var(--ink-3); font-weight: 600; }
.shared-list .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hairline); flex-shrink: 0; }
.shared-list .is-done { color: var(--ink-3); text-decoration: line-through; }
.shared-list .is-done .tick { border-color: var(--c-green); background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.shared-list__sync { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.shared-list__sync span { color: var(--c-green); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--sky), var(--blue) 55%, var(--deep)); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.section:not(.section--tint) .steps li { background: var(--canvas-tint); }

/* ── About ───────────────────────────────────────────── */
.about-hero { align-items: center; }
.story h2 { margin-bottom: 22px; }
.story p { font-size: 19px; color: var(--ink-2); }
.story p + p { margin-top: 16px; }
.story__quote { margin: 34px 0; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border-left: 4px solid var(--blue); }
.story__quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; color: var(--ink); }
.story__quote footer { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
/* Founder photo on the brand gradient. The cutout's bottom is still curved
   from its old circle, so it sits a little below the panel and is clipped. */
.founder-panel {
  position: relative; margin: 0; width: min(440px, 100%); aspect-ratio: 4 / 5;
  border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(60% 50% at 85% 90%, rgba(0, 20, 120, .45), transparent 70%),
    linear-gradient(165deg, var(--sky) 0%, var(--blue) 50%, var(--deep) 100%);
  box-shadow: 0 40px 80px -30px rgba(3, 60, 200, .55);
}
.founder-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.18) 0 28%, transparent 28.5%),
              radial-gradient(circle at 50% 42%, rgba(255,255,255,.08) 0 40%, transparent 40.5%);
}
.founder-panel img {
  position: absolute; left: 50%; bottom: -9%; transform: translateX(-50%);
  width: 92%; height: auto; max-width: none;
  filter: drop-shadow(0 20px 30px rgba(0, 20, 80, .35));
}
.founder-panel__tag {
  position: absolute; left: 20px; top: 20px; display: grid; gap: 1px;
  padding: 10px 14px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
}
.founder-panel__tag strong { font-size: 16px; }
.founder-panel__tag span { font-size: 13px; opacity: .9; }
.founder-panel__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 4px; padding: 64px 24px 22px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 18, 90, .78) 55%);
}
.founder-panel__caption strong { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -.01em; }
.founder-panel__caption > span { font-size: 15px; opacity: .92; }
.founder-panel__caption a { margin-top: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.founder-panel__caption a:hover { text-decoration: underline; }
.founder-panel--hero { width: min(460px, 100%); justify-self: center; }
@media (max-width: 900px) { .founder-panel--hero { width: min(380px, 100%); margin: 8px auto 0; } }
.center-block { text-align: center; }
.center-block .section__lede { margin-left: auto; margin-right: auto; }
.about-contact { margin: 26px 0 14px; }

/* ── Coach audience pages ────────────────────────────── */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.audience__card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: 0 0 0 1px var(--hairline); transition: transform .2s ease, box-shadow .2s ease; }
.audience__card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(3, 60, 170, .45), 0 0 0 1px var(--hairline); }
.audience__card strong { font-size: 18px; }
.audience__card > span:not(.explore__cta) { color: var(--ink-2); font-size: 15px; }
.audience__card .explore__cta { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }
.coach-hero-shot { margin-top: clamp(40px, 6vw, 64px); }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.guide-list a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.guide-list a::after { content: " →"; color: var(--blue); }
.guide-list a:hover { box-shadow: 0 0 0 1.5px var(--blue); }

/* ── Comparisons ─────────────────────────────────────── */
.compare-table td, .compare-table th[scope="row"] { font-size: 15px; }
.compare-table th[scope="row"] { font-weight: 700; color: var(--ink); background: transparent; width: 30%; }
.compare-table .yes { color: #1E8E3E; font-weight: 700; }
.compare-table .no { color: var(--ink-3); font-weight: 700; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 700px) { .compare-cols { grid-template-columns: 1fr; } }
.compare-sources a { word-break: break-word; }
.compare-pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.compare-pillars li { background: var(--card); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; box-shadow: inset 0 0 0 1px var(--hairline); }
.compare-pillars strong { color: var(--blue); font-size: 15px; }
.compare-pillars span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .compare-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .compare-pillars { grid-template-columns: 1fr; } }
.audience--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 900px) { .audience--three { grid-template-columns: 1fr; } }

/* About hero: its own soft blue band, with the founders photo filling the
   right half from top to bottom (full width under the text on phones). */
.hero--about { position: relative; padding: 0; background: linear-gradient(160deg, #EEF4FF 0%, #DCE7FF 100%); border-bottom: 1px solid #D3E0FB; }
.hero--about .about-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100vh - 84px), 860px); align-items: center; }
.hero--about .hero__copy { padding: 56px 0; }
.about-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.about-photo .founder-panel__tag { left: 24px; top: 24px; background: rgba(0, 24, 90, .55); border-color: rgba(255,255,255,.2); }
@media (max-width: 900px) {
  .hero--about .about-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero--about .hero__copy { padding: 28px 0 32px; }
  .about-photo { position: relative; width: 100%; aspect-ratio: 1 / 1; }
  .about-photo .founder-panel__tag { left: 16px; top: 16px; }
}

/* Homepage Family section: the founders photo instead of an illustration. */
.family-photo { position: relative; margin: 0; width: min(520px, 100%); aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(3, 60, 200, .45); }
.family-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.family-photo .founder-panel__tag { left: 18px; top: 18px; background: rgba(0, 24, 90, .55); border-color: rgba(255,255,255,.2); }

/* ── Sleep ───────────────────────────────────────────── */
/* Indigo night palette from the app's Sleep tab and the App Store sleep set. */
:root { --sleep: #6E6BF5; --sleep-ink: #0C0A2A; --sleep-ink-2: #1A1650; }
.free-pill {
  display: inline-block; vertical-align: 1px; margin-right: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--c-green); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
}

/* Night hero: the bedroom photo behind, fading into indigo. */
.hero--night { position: relative; isolation: isolate; color: #fff; background: var(--sleep-ink); padding-bottom: clamp(56px, 8vw, 104px); }
.night-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.night-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%; transform: scaleX(-1); opacity: .9; }
.hero--night .hero__visual { justify-content: flex-end; }
.night-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 42, .96) 0%, rgba(12, 10, 42, .78) 40%, rgba(12, 10, 42, .15) 62%, rgba(12, 10, 42, .5) 100%),
    linear-gradient(0deg, var(--sleep-ink) 0%, transparent 35%);
}
.hero--night .hero__lede, .hero--night .hero__note { color: rgba(255,255,255,.88); }
.hero--night .hero__note strong { color: #fff; }
.hero--night .hero__visual::before { background: radial-gradient(circle, rgba(110, 107, 245, .45) 0%, transparent 65%); }
@media (max-width: 900px) {
  .night-photo { bottom: auto; height: 420px; }
  .hero--night .hero__visual { justify-content: center; }
  .night-photo img { object-position: 20% 40%; }
  .night-photo::after { background: linear-gradient(180deg, rgba(12, 10, 42, .5) 0%, rgba(12, 10, 42, .72) 50%, var(--sleep-ink) 100%); }
}

/* Snore bands legend. */
.snore-bands { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.snore-bands li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--canvas-tint); border-top: 4px solid var(--c); }
.snore-bands strong { font-size: 16px; }
.snore-bands span { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
@media (max-width: 520px) { .snore-bands { grid-template-columns: 1fr 1fr; } }

.chips--remedy { margin-top: 10px; }
.chips--remedy li, .chips--remedy li:first-child { background: color-mix(in srgb, var(--sleep) 14%, var(--card)); border-color: color-mix(in srgb, var(--sleep) 35%, transparent); color: var(--ink); }

/* Privacy band. */
.night-band {
  padding: var(--section-pad) 0; color: #fff;
  background:
    radial-gradient(800px 460px at 85% 0%, rgba(110, 107, 245, .38), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(3, 97, 252, .25), transparent 60%),
    var(--sleep-ink);
}
.night-band__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.night-band h2 { font-size: clamp(36px, 4.8vw, 58px); }
.night-band__lede { margin-top: 20px; font-size: 19px; color: rgba(255,255,255,.88); max-width: 30em; }
.night-band__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.night-band__list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: 18px; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.night-band__list strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.night-band .ico { background: rgba(165, 165, 255, .16); }
@media (max-width: 800px) { .night-band__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Apple Watch frames around the rendered watch screens. */
.watches { display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.watch {
  --w: 210px; margin: 0; width: var(--w); flex-shrink: 0; position: relative; isolation: isolate;
  aspect-ratio: 422 / 514; padding: calc(var(--w) * .07);
  filter: drop-shadow(0 30px 40px rgba(3, 20, 80, .35));
}
/* Band behind, case on top of it, screen on top of both. */
.watch::before {
  content: ""; position: absolute; z-index: -1; left: 17%; right: 17%; top: -24%; bottom: -24%;
  border-radius: 26px; background: linear-gradient(90deg, #1B1B21, #34343C 50%, #1B1B21);
}
.watch::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: calc(var(--w) * .26);
  background: linear-gradient(145deg, #4A4A52, #141418 45%, #2C2C33);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.watch img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .19); background: #000; }
.watch--side { --w: 168px; opacity: .92; }
.watch--side:first-child { margin-right: -26px; transform: rotate(-8deg); }
.watch--side:last-child { margin-left: -26px; transform: rotate(8deg); }
.watches .watch:not(.watch--side) { z-index: 2; }
@media (max-width: 560px) {
  .watch { --w: 150px; }
  .watch--side { --w: 112px; }
}

.stat { font-size: 15px; color: var(--ink-2); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--sleep); margin-bottom: 6px; }
.tile .link-arrow { margin-top: auto; padding-top: 8px; }

/* Homepage: the sleep feature, on the night palette. */
.sleep-home { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--sleep-ink); padding: var(--section-pad) 0; }
.sleep-home .night-photo img { opacity: .7; }
.sleep-home .feature__copy > p:not(.eyebrow) { color: rgba(255,255,255,.88); }
.sleep-home .checks li::before { background-color: var(--sleep); }
.sleep-home .small { color: rgba(255,255,255,.8); }
.sleep-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.sleep-home .feature__visual { gap: 0; }
.sleep-home .phone { --w: 290px; }
.sleep-home .watch { --w: 150px; position: absolute; right: 2%; bottom: -6%; z-index: 3; transform: rotate(6deg); }
@media (max-width: 900px) {
  .sleep-home .phone { --w: min(270px, 64vw); }
  .sleep-home .watch { --w: 118px; right: max(0px, calc(50% - 200px)); }
}

/* Hero announcement pill (home). */
.announce {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none;
  background: color-mix(in srgb, var(--sleep) 12%, var(--card)); color: var(--ink);
  font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sleep) 30%, transparent);
}
.announce .free-pill { margin: 0; }
.announce:hover { box-shadow: inset 0 0 0 1.5px var(--sleep); }
.announce b { color: var(--sleep); }
.closing__inner--night { background: radial-gradient(700px 400px at 80% 0%, rgba(110, 107, 245, .55), transparent 60%), var(--sleep-ink); }
.faq__aside { margin-top: 18px; max-width: 24em; }

/* Language switch (EN / FR) in the nav. */
.nav__links a.nav__lang {
  padding: 5px 9px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline);
}
.nav__links a.nav__lang:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
@media (max-width: 1300px) { .nav__links a.nav__lang { display: inline-block; align-self: flex-start; margin: 10px 0 4px; border-bottom: 0; font-size: 14px; } }

/* Apple Watch page. */
.hero--watch {
  color: #fff;
  background:
    radial-gradient(800px 480px at 80% 10%, rgba(6, 168, 253, .30), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(110, 107, 245, .30), transparent 60%),
    var(--sleep-ink);
}
.hero--watch .hero__lede, .hero--watch .hero__note { color: rgba(255,255,255,.88); }
.hero--watch .hero__note strong { color: #fff; }
.hero__visual--watches { min-height: 0; }
.hero__visual--watches::before { display: none; }
.watches--hero { padding: 56px 0; }
.watches--hero .watch { --w: 230px; }
.watches--hero .watch--side { --w: 178px; }
.watches--pair { gap: clamp(20px, 5vw, 56px); padding: 56px 0; flex-wrap: wrap; }
.watches--pair .watch { --w: 230px; }
.section__head + .watches--pair { padding-top: 24px; }
.watches--pair + .bento { margin-top: 24px; }
@media (max-width: 560px) {
  .watches--hero .watch { --w: 150px; }
  .watches--hero .watch--side { --w: 112px; }
  .watches--pair .watch { --w: 150px; }
}
.feature__visual--phonewatch { position: relative; padding-bottom: 20px; }
.feature__visual--phonewatch .phone { --w: 290px; }
.feature__visual--phonewatch .watch { --w: 160px; position: absolute; right: 4%; bottom: -2%; z-index: 3; transform: rotate(6deg); }
@media (max-width: 900px) {
  .feature__visual--phonewatch .phone { --w: min(270px, 64vw); }
  .feature__visual--phonewatch .watch { --w: 118px; right: max(0px, calc(50% - 200px)); }
}
.feature .watches--pair { flex-wrap: nowrap; gap: 28px; }
.feature .watches--pair .watch { --w: 190px; }
@media (max-width: 560px) { .feature .watches--pair { gap: 18px; } .feature .watches--pair .watch { --w: 140px; } }

/* Nav: nine links plus EN/FR need more room than the 1180 page column. */
.nav__inner.wrap { max-width: 1400px; }
.nav__links { gap: 20px; }
@media (min-width: 1301px) and (max-width: 1500px) { .nav__coach-label { display: none; } .nav__links a.nav__coach-login { padding: 9px 11px; } }
