/* MSK Navigator landing page (site/index.html): a measured replica of the ouraring.com home page, re-cast for MSK Navigator.
 * Spec: docs/03-oura-spec.md (boxes, type, spacing and motion per role; parity: spec/templates/parity-ref.mjs).
 * Every colour, easing and duration below is a token on :root (the harness reads this sheet's :root as the
 * landing's token set). Breakpoints are Oura's: 768, 1024, 1280, 1440. Faces: Albert Sans and Instrument Serif
 * (SIL OFL), self-hosted as 'MSK Navigator Landing Sans' and 'MSK Navigator Landing Serif'. */

@font-face { font-family: 'MSK Navigator Landing Sans'; src: url('../fonts/landing-sans.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'MSK Navigator Landing Serif'; src: url('../fonts/landing-display.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* Fallbacks sized to the two faces' widths, so text wraps the same before and after they load (no layout shift) */
@font-face { font-family: 'MSK Navigator Landing Sans Fallback'; src: local('Arial'); size-adjust: 107%; }
@font-face { font-family: 'MSK Navigator Landing Serif Fallback'; src: local('Times New Roman'); size-adjust: 83%; }

:root {
  --l-font-sans: 'MSK Navigator Landing Sans', 'MSK Navigator Landing Sans Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --l-font-serif: 'MSK Navigator Landing Serif', 'MSK Navigator Landing Serif Fallback', ui-serif, Georgia, serif;
  /* Weights: Oura's 300 / 400 / 700 sans render as 240 / 460 / 580 here; the serif is one weight (spec §3.1). */
  --l-light: 240;
  --l-regular: 460;
  --l-bold: 580;

  /* Colour roles (spec §4) */
  --l-paper: #f7f1e8;
  --l-paper-2: #efe6db;
  --l-ink: #4a4741;
  --l-ink-strong: #000000;
  --l-ink-muted: #838280;
  --l-ink-soft: #a8a5a0;
  --l-ink-label: #c9c4bc;
  --l-hairline: #d3d1ce;
  --l-hairline-dark: rgba(131, 130, 128, 0.2);
  --l-dark: #1c1b1a;
  --l-dark-2: #3a3837;
  --l-chip-dark: #404040;
  --l-glass: rgba(34, 36, 40, 0.4);
  --l-nav-glass: rgba(74, 71, 65, 0.1);
  --l-ring: rgba(74, 71, 65, 0.25);
  --l-promo: #ced4b8;
  --l-white: #ffffff;
  --l-white-60: rgba(255, 255, 255, 0.6);
  --l-white-50: rgba(255, 255, 255, 0.5);
  --l-white-06: rgba(255, 255, 255, 0.06);
  --l-paper-40: rgba(247, 241, 232, 0.4);
  --l-paper-80: rgba(247, 241, 232, 0.85);
  --l-paper-16: rgba(247, 241, 232, 0.16);
  --l-shadow: rgba(0, 0, 0, 0.25);
  --l-scrim: rgba(28, 27, 26, 0.6);
  --l-card-scrim: rgba(28, 27, 26, 0.6);
  --l-card-veil: rgba(28, 27, 26, 0.72);
  --l-card-veil-soft: rgba(28, 27, 26, 0.3);
  /* The CTA is MSK Navigator teal (the kit's --color-brand). Hover = Oura's own hover step (OKLCH: L -0.104, chroma x 0.78)
   * applied to the teal: #2a6964 -> #1b4a46 (white on it 9.9:1). Oura has no separate press colour. */
  --l-cta: #2a6964;
  --l-cta-hover: #1b4a46;

  /* The app as it appears in the miniatures (cards, phones, the website read, the verification card): K3's kit
   * values (kit.css :root, docs/04-kit.md), kept as landing tokens; kit.css is not loaded here. */
  --l-app-desk: #f7f1e8;          /* kit --color-ground */
  --l-app-desk-2: #efe6db;        /* --color-ground-2: desks, tracks, an asked line */
  --l-app-card: #ffffff;          /* --color-surface */
  --l-app-ink: #22201c;           /* --color-ink */
  --l-app-ink-2: #4a4741;         /* --color-ink-2 */
  --l-app-muted: #6b665e;         /* --color-ink-3 */
  --l-app-ink-4: #8f8a81;         /* --color-ink-4: non-text */
  --l-app-border: #e6ded2;        /* --color-hairline */
  --l-app-border-strong: #d6ccbe; /* --color-hairline-strong */
  --l-app-brand-tint: #e2eeeb;    /* --color-brand-tint */
  --l-app-brand-mark: #4f8b85;    /* --color-brand-mark */
  --l-app-success: #376e3e;
  --l-app-you: #85580a;           /* --color-warning: a "You · N min" tag */
  --l-app-you-tint: #f6ecd5;
  --l-app-shadow-edge: rgba(52, 40, 24, 0.05);
  --l-app-shadow-1: rgba(52, 40, 24, 0.06);
  --l-app-shadow-2: rgba(52, 40, 24, 0.1);
  --l-app-veil: rgba(22, 20, 17, 0.56);
  --l-app-veil-0: rgba(22, 20, 17, 0);
  --l-app-track: rgba(255, 255, 255, 0.35);
  --l-phone-shadow: rgba(0, 0, 0, 0.35);
  --l-scan: rgba(66, 132, 126, 0.28);
  /* Medallion materials (kit --mat-*): hi, mid, deep, and deep at 45% for the disc's far edge */
  --l-mat-clay-hi: #f7ebe2;  --l-mat-clay: #ebd3c2;  --l-mat-clay-deep: #8c4d31;  --l-mat-clay-45: rgba(140, 77, 49, 0.45);
  --l-mat-slate-hi: #edf2f5; --l-mat-slate: #d3dee6; --l-mat-slate-deep: #3f5b72; --l-mat-slate-45: rgba(63, 91, 114, 0.45);
  --l-mat-sage-hi: #eef2e8;  --l-mat-sage: #d5e0cc;  --l-mat-sage-deep: #4d6847;  --l-mat-sage-45: rgba(77, 104, 71, 0.45);
  --l-mat-teal-hi: #ebf4f2;  --l-mat-teal: #cde3df;  --l-mat-teal-deep: #24605b;  --l-mat-teal-45: rgba(36, 96, 91, 0.45);
  --l-medal-sheen: rgba(255, 255, 255, 0.55);
  --l-medal-rim: rgba(255, 255, 255, 0.9);
  /* The sample clinic's own brand (juniperspine.com): it appears only on its packet pages */
  --l-clinic: #2e5b4d;
  --l-clinic-tint: #e4ede8;
  --l-clinic-accent: #b5853a;
  /* Radii (spec §3.4 for the retained sections; the kit's 4 · 8 · 12 · 20 · 28 · pill for the miniatures). Miniatures
   * scale with their phone or card, so they take a fixed radius from this scale rather than an em multiple. */
  --l-radius-xs: 4px;
  --l-radius-tag: 6px;
  --l-radius-sm: 8px;
  --l-radius-md: 12px;
  --l-radius-lg: 20px;
  --l-radius-glass: 24px;
  --l-radius-xl: 28px;
  --l-radius-footer: 48px;
  --l-radius-full: 9999px;
  --l-radius-phone: 16px;
  --l-radius-screen: 13px;
  /* Motion (spec §7): Oura's curves; landing reveals stay within 600 ms (01-standards P5.1) */
  --l-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --l-ease-out: cubic-bezier(0, 0, 0.58, 1);
  --l-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --l-ease-label: cubic-bezier(0, 0, 0.2, 1);
  --l-fast: 150ms;
  --l-label: 200ms;
  --l-base: 300ms;
  --l-glass-t: 400ms;
  --l-slow: 500ms;
  --l-reveal: 600ms;

  /* Page grid: 22 columns between gutters (24, 64 from 1024; from 1440 the content stops at 1312) */
  --l-g: 24px;
  --l-col: calc((100vw - 2 * var(--l-g)) / 22);
}
@media (min-width: 768px) { :root { --l-radius-phone: 28px; --l-radius-screen: 24px; } }
@media (min-width: 1024px) { :root { --l-g: 64px; --l-radius-phone: 36px; --l-radius-screen: 32px; } }
@media (min-width: 1440px) { :root { --l-g: calc((100vw - 1312px) / 2); } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; transition-timing-function: var(--l-ease); animation-timing-function: var(--l-ease); }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--l-paper);
  color: var(--l-ink);
  font-family: var(--l-font-sans);
  font-weight: var(--l-regular);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 2px; }
.news :focus-visible, .notes :focus-visible, .footer :focus-visible, .card :focus-visible { outline-color: var(--l-paper); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 24px; border-radius: var(--l-radius-full); background: var(--l-ink); color: var(--l-paper); text-decoration: none; }
.skip:focus { top: 16px; }
.page { position: relative; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--l-radius-full);
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--l-regular);
  text-align: center;
  text-decoration: none;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.pill-cta { background: var(--l-cta); color: var(--l-white); font-weight: var(--l-bold); }
.pill-cta:hover { background: var(--l-cta-hover); }
.pill-teal { background: var(--l-cta); color: var(--l-white); }
.pill-teal:hover { background: var(--l-cta-hover); }
.pill-dark { background: var(--l-ink); color: var(--l-paper); }
.pill-dark:hover { background: var(--l-dark); }
.pill-ghost { background: transparent; color: var(--l-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pill-ghost:hover { background: var(--l-nav-glass); }
.pill-light { background: var(--l-paper); color: var(--l-ink); }
.pill-light:hover { background: var(--l-paper-2); }
.pill-arrow svg { display: inline-block; width: 11px; height: 11px; margin-left: 6px; vertical-align: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------------------------------------------------------------- announcement bar and header */
.top-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.promo {
  height: 52px;
  padding: 14px 4px;
  background: var(--l-promo);
  text-align: center;
  pointer-events: auto;
}
.promo-text {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  margin-top: 2px;
  vertical-align: top;
  font-size: 14px;
  line-height: 21px;
  font-weight: var(--l-bold);
  text-align: center;
  color: var(--l-ink);
  background: var(--l-promo);
}
.promo-text a { text-underline-offset: 3px; }

.nav {
  position: sticky;
  top: 0;
  height: 90px;
  padding: 8px 0;
  pointer-events: auto;
  transition: all var(--l-slow) var(--l-ease);
}
.nav.is-hidden { top: -112px; }
.nav-nav { position: relative; z-index: 2; margin-top: 8px; padding: 8px 0; }
.nav-glass {
  position: absolute;
  top: 0; bottom: 0; left: 12px; right: 12px;
  border-radius: var(--l-radius-sm);
  background: var(--l-nav-glass);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  opacity: 0;
  transition: opacity var(--l-glass-t) var(--l-ease);
}
.nav.is-scrolled .nav-glass { opacity: 1; }
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin: 0 var(--l-g);
}
.nav-logo { display: block; padding: 12px 0; color: var(--l-ink); line-height: 0; }
.logo { display: block; width: 82.7px; height: 24.04px; }
.nav-links { display: none; transition: opacity var(--l-fast) var(--l-ease); }
.nav-link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--l-radius-full);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.nav-link span {
  text-align: left;
  text-decoration: underline transparent;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition-property: color, text-decoration-color;
  transition-duration: var(--l-base);
  transition-timing-function: var(--l-ease);
}
.nav-link:hover span { text-decoration-color: var(--l-ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; transition: opacity var(--l-fast) var(--l-ease); }
.nav-login {
  display: inline-block;
  height: 40px;
  padding: 8px 16px;
  border-radius: var(--l-radius-full);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-base);
  transition-timing-function: var(--l-ease);
}
.nav-login:hover { background: var(--l-nav-glass); }
.nav-cta {
  display: inline-block;
  height: 40px;
  padding: 7px 16px;
  border: 1px solid var(--l-ink);
  border-radius: var(--l-radius-full);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition-property: color, background-color, border-color;
  transition-duration: var(--l-base);
  transition-timing-function: var(--l-ease);
}
.nav-cta:hover { background: var(--l-ink); color: var(--l-paper); }
@media (max-width: 389.98px) { .nav-login { display: none; } }
.nav-menu {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--l-ring);
  border-radius: var(--l-radius-full);
  background: transparent;
  cursor: pointer;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-base);
  transition-timing-function: var(--l-ease);
}
.nav-menu:hover { border-color: var(--l-ink); background: var(--l-nav-glass); }
.nav-menu span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  border-radius: var(--l-radius-xs);
  background: var(--l-ink);
  transition: transform var(--l-base) var(--l-ease-in-out);
}
.nav-menu span:first-child { transform: translateY(-3px); }
.nav-menu span:last-child { transform: translateY(3px); }
.nav-menu[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  height: 0;
  overflow: hidden;
  background: var(--l-paper);
  box-shadow: 0 25px 50px -12px var(--l-shadow);
  visibility: hidden;
  transition: height var(--l-glass-t) var(--l-ease-in-out), visibility 0s linear var(--l-glass-t);
}
.nav.is-open .mobile { height: 100vh; height: 100svh; visibility: visible; transition: height var(--l-glass-t) var(--l-ease-in-out); }
.mobile-list { display: flex; flex-direction: column; padding: 112px 0 80px; }
.mobile-items { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mobile-item, .mobile-subitem {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--l-radius-full);
  font-size: 30px;
  line-height: 36px;
  text-decoration: none;
}
.mobile-sub { display: flex; flex-direction: column; align-items: flex-start; margin-top: 32px; }
.mobile-orgs { display: flex; flex-direction: column; align-items: flex-start; margin: -4px 0 4px 16px; }
.mobile-org { display: block; padding: 8px 24px; border-radius: var(--l-radius-full); font-size: 18px; line-height: 26px; text-decoration: none; }
.mobile-org:hover { background: var(--l-nav-glass); }
.mobile-subitem { font-size: 16px; line-height: 24px; }
.mobile-item:hover, .mobile-subitem:hover { background: var(--l-nav-glass); }

@media (min-width: 768px) {
  .nav-glass { left: 24px; right: 24px; }
  .nav-bar { padding: 0 32px; }
  .nav-actions { gap: 16px; }
  .nav-login { height: 48px; padding: 12px 24px; }
  .nav-cta { height: 48px; padding: 11px 24px; }
  .nav-menu { width: 48px; height: 48px; }
  .mobile-list { margin: 0 32px; padding-bottom: 16px; }
}
@media (min-width: 1024px) {
  .nav-bar { padding: 0; height: auto; }
  .logo { width: 103.3px; height: 30.06px; }
  .nav-links { display: flex; margin: 0 auto; }
  .nav-menu, .mobile { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--l-paper); isolation: isolate; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 200px;
  background: linear-gradient(to bottom, var(--l-paper) 45%, transparent);
  opacity: 0.92;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to bottom, transparent, var(--l-scrim));
}
.hero-content {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--l-g);
  right: var(--l-g);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 48px;
}
.hero-stack { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 320px; max-width: 100%; text-align: center; color: var(--l-paper); }
.hero-title {
  font-family: var(--l-font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 52.8px;
  letter-spacing: -2.4px;
  text-wrap: pretty;
  max-width: 460px;
}
.hero-lede { font-size: 20px; line-height: 22px; letter-spacing: -0.5px; text-wrap: pretty; }
/* "Become the clinic" + one ending at a time. Every ending sits in the same grid cell, so the H1 keeps the height of the
 * tallest at every width and nothing below it moves (CLS 0); landing.js turns them, one every 3.2 s, with a soft
 * vertical crossfade. Under reduced motion only the first shows. Screen readers get the .vh sentence. */
.hero-h { display: block; }
.rot { display: grid; }
.rot-end { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(0.28em); transition: opacity var(--l-reveal) var(--l-ease), transform var(--l-reveal) var(--l-ease), visibility 0s var(--l-ease) var(--l-reveal); }
.rot-end.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rot-end.is-out { transform: translateY(-0.28em); }
.hero-cta-wrap { position: relative; display: block; }
.hero-note { position: absolute; left: 50%; top: 100%; width: max-content; margin-top: 10px; transform: translateX(-50%); font-size: 14px; line-height: 21px; color: var(--l-paper); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-cta-wrap { animation: hero-in var(--l-reveal) var(--l-ease-out) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(25px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (min-width: 768px) {
  .hero-title { font-size: 72px; line-height: 79.2px; letter-spacing: -3.6px; max-width: none; }
}
/* Every ending breaks at the same place (.rb), so the H1 wraps the same at each one: two lines below 768 and from 1280;
 * between, the copy is wide enough for "Become the clinic" and any ending on one line each. */
.rb { display: block; }
@media (min-width: 768px) and (max-width: 1279.98px) { .hero-copy { width: 660px; } .rb { display: none; } }
@media (min-width: 1280px) {
  .hero { min-height: 800px; }
  .hero-media::after { display: none; }
  .hero-content { right: auto; width: calc(var(--l-col) * 10); justify-content: center; align-items: flex-start; padding-bottom: 0; }
  .hero-stack { align-items: flex-start; gap: 40px; }
  .hero-copy { align-items: flex-start; width: 480px; text-align: left; color: var(--l-ink); }
  .hero-note { left: -10px; transform: none; padding: 2px 10px; border-radius: var(--l-radius-full); background: var(--l-paper-80); color: var(--l-ink); }
  .hero-title { font-size: 80px; line-height: 88px; letter-spacing: -4px; }
}

/* ---------------------------------------------------------------- statement */
.statement { overflow: hidden; padding-bottom: 64px; }
.st-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100vw - 2 * var(--l-g));
  margin: 64px auto 0;
  text-align: center;
}
.st-title {
  font-family: var(--l-font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 61.6px;
  letter-spacing: -2.04px;
  text-wrap: balance;
}
.st-lede { align-self: stretch; margin-top: 24px; font-size: 24px; line-height: 30px; letter-spacing: -0.6px; }
.st-pills { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) {
  .st-copy { width: calc(var(--l-col) * 16); }
  .st-title { font-size: 60px; line-height: 66px; }
}
@media (min-width: 1024px) {
  .st-copy { margin-top: 128px; }
  .st-title { font-size: 68px; line-height: 74.8px; }
  .st-lede { letter-spacing: -1.2px; }
  .st-pills { flex-direction: row; }
}
@media (min-width: 1280px) { .st-copy { width: calc(var(--l-col) * 14); } }

/* ---------------------------------------------------------------- find your path: four calm tiles, each a link */
.paths { padding: 40px 0; }
.paths-head { display: flex; flex-direction: column; align-items: flex-start; margin: 0 var(--l-g); }
.paths-row { display: grid; grid-template-columns: 100%; gap: 16px; margin: 40px var(--l-g) 0; }
.paths-row > li { display: flex; }
.path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 24px;
  border-radius: var(--l-radius-sm);
  background: var(--l-paper-2);
  color: var(--l-ink);
  text-decoration: none;
  transition: box-shadow var(--l-base) var(--l-ease);
}
.path:hover { box-shadow: inset 0 0 0 1px var(--l-ring); }
.path-mark { display: block; flex: none; width: 44px; height: 44px; fill: none; stroke: var(--l-cta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.path-mark .pm-fill { fill: var(--l-app-brand-tint); stroke: none; }
.path-mark .pm-soft { stroke: var(--l-app-brand-mark); }
.path-h { margin-top: 20px; font-family: var(--l-font-serif); font-weight: 400; font-size: 26px; line-height: 30px; color: var(--l-ink-strong); }
.path-text { margin-top: 8px; font-size: 16px; line-height: 24px; }
.path-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-weight: var(--l-bold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.path-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--l-base) var(--l-ease); }
.path:hover .path-link svg { transform: translateX(3px); }
.paths-line { margin: 32px var(--l-g) 0; font-size: 16px; line-height: 24px; }
@media (min-width: 768px) {
  .paths-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .path { padding: 28px; }
  .path-h { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .paths { padding: 80px 0; }
  .paths-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-mark { width: 48px; height: 48px; }
  .path-h { margin-top: 48px; font-size: 28px; line-height: 32px; }
  .paths-line { margin-top: 40px; }
}
@media (min-width: 1280px) {
  .path { padding: 32px; }
  .path-text { font-size: 18px; line-height: 27px; }
}

/* ---------------------------------------------------------------- how it works: the four parts (a swipe row below 1024, one grid from 1024) */
.how { padding-top: 24px; }
.how-eyebrow { margin: 0 var(--l-g); }
.cards { margin: 32px 0 0 var(--l-g); }
.cards-track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 24px 0 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cards-track::-webkit-scrollbar { display: none; }
.cards-track > li { flex: none; scroll-snap-align: start; }
.card {
  position: relative;
  width: 312px;
  height: 420px;
  padding-bottom: 32px;
  transition: all var(--l-slow) var(--l-ease);
}
.card-frame {
  position: relative;
  height: 100%;
  border-radius: var(--l-radius-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--l-dark);
  color: var(--l-paper);
}
.card-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, var(--l-card-scrim), var(--l-card-scrim) 20%, transparent 60%);
  pointer-events: none;
  transition: background-color var(--l-base) var(--l-ease);
}
.card-media {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  transform: translateY(-20%);
  will-change: transform;
}
.card-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  overflow: hidden;
  isolation: isolate;
}
.chip-glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--l-radius-glass);
  background: var(--l-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.chip-icon { display: block; flex: none; width: 24px; height: 20px; overflow: hidden; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-icon-sm { height: 18px; }
.chip-label { font-size: 12px; line-height: 18px; }
.card-plus {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: block;
  width: 45px;
  height: 45px;
  padding: 16px;
  border: 0;
  border-radius: var(--l-radius-full);
  background: var(--l-paper);
  color: var(--l-ink);
  cursor: pointer;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.card-plus:hover { background: var(--l-paper-2); }
.card-plus svg { display: block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--l-base) var(--l-ease); }
.card.is-open .card-plus svg { transform: rotate(45deg); }
.card-body { position: absolute; left: 24px; bottom: 24px; z-index: 1; width: min(376px, calc(100% - 48px)); }
.card-title { font-size: 28px; line-height: 28px; font-weight: var(--l-light); }
.card-text, .card-cta-wrap, .card-aside { display: none; }
.card-text { margin-top: 16px; font-size: 16px; line-height: 22px; }
.card-cta-wrap { margin-top: 16px; }
.card.is-open .card-text, .card.is-open .card-cta-wrap { display: block; animation: fade-in var(--l-base) var(--l-ease-out) both; }
.card.is-open .card-chip { visibility: hidden; }
@media (max-width: 767.98px) { .card.is-open .card-title { display: none; } .card.is-open .card-text { margin-top: 0; } }
.card.is-open .card-frame::after { background-color: var(--l-card-veil); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.card-aside { position: absolute; right: 0; bottom: 0; z-index: 1; width: calc(25% - 12px); padding: 0 24px 24px 0; }
.aside-quote { position: relative; padding: 16px; isolation: isolate; }
.aside-quote::before, .tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--l-radius-md);
  background: var(--l-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.aside-who { display: flex; align-items: center; gap: 16px; }
.aside-av { flex: none; width: 50px; height: 50px; border-radius: var(--l-radius-full); overflow: hidden; }
.aside-av img { width: 50px; height: 50px; aspect-ratio: 50 / 50; object-fit: cover; }
.aside-name { font-size: 16px; line-height: 24px; }
.aside-role { display: flex; font-size: 14px; line-height: 21px; }
.aside-text { margin-top: 24px; font-family: var(--l-font-serif); font-weight: 400; font-size: 18px; line-height: 27px; }
.aside-stat { margin-top: 24px; aspect-ratio: 220 / 138.64; }
.tile { position: relative; height: 100%; padding: 16px; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.tile-k { font-size: 12px; line-height: 18px; color: var(--l-paper); }
.tile-v { margin-top: 4px; font-size: 18px; line-height: 24px; }
.tile-bar { height: 4px; margin-top: 12px; border-radius: var(--l-radius-xs); background: var(--l-paper-16); overflow: hidden; }
.tile-bar span { display: block; height: 100%; border-radius: var(--l-radius-xs); background: var(--l-paper); }

.cards-controls { margin-right: 24px; }
.cards-rule { position: relative; height: 1px; overflow: hidden; background: var(--l-hairline); }
.cards-progress {
  position: absolute;
  inset: 0;
  background: var(--l-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--l-base) var(--l-ease);
}
.cards-arrows { display: flex; justify-content: flex-end; gap: 16px; padding: 24px 0 16px; }
.arrow {
  display: block;
  width: 45px;
  height: 44px;
  padding: 16px 12px;
  border: 0;
  border-radius: var(--l-radius-full);
  background: var(--l-ink);
  color: var(--l-paper);
  cursor: pointer;
}
.arrow svg { display: block; width: 21px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arrow:disabled { background: var(--l-paper); color: var(--l-ink-muted); cursor: default; }

@media (min-width: 768px) {
  .card { width: 493px; height: 658px; }
  .card-chip { padding: 16px 24px; }
  .card-plus { width: 53px; height: 53px; padding: 20px; }
  .card-title { font-size: 32px; line-height: 32px; }
  .card-text { margin-top: 24px; font-size: 18px; line-height: 24.75px; }
  .card-cta-wrap { margin-top: 24px; }
}
/* From 1024 the four parts are one grid (two by two, four across from 1280): no sideways scroll, no arrows.
 * "+" opens a part in place: the miniature gives way to the words, the quote and the button. */
@media (min-width: 1024px) {
  .how { padding-top: 40px; }
  .cards { margin: 40px var(--l-g) 0; }
  .cards-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; overflow: visible; scroll-snap-type: none; }
  .cards-track > li { min-width: 0; }
  .cards-controls { display: none; }
  .card { width: auto; height: 600px; padding-bottom: 0; }
  .card-title { font-size: 40px; line-height: 40px; }
  .card.is-open .card-title { display: none; }
  .card.is-open .card-text { margin-top: 0; }
  .card.is-open .card-aside { display: block; animation: fade-in var(--l-base) var(--l-ease-out) both; }
  .card-aside { left: 24px; right: 24px; top: 96px; bottom: auto; width: auto; padding: 0; }
  .aside-stat { display: none; }
}
@media (min-width: 1280px) {
  .cards-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { height: 640px; }
  .card-frame { container-type: inline-size; }
  .card-chip { top: 20px; left: 20px; padding: 12px 16px; }
  .card-plus { top: 20px; right: 20px; width: 45px; height: 45px; padding: 16px; }
  .card-frame .card-obj { top: 92px; width: calc(100cqw - 32px); font-size: calc((100cqw - 32px) / 28.6); }
  .card-body { left: 20px; bottom: 20px; width: calc(100% - 40px); }
  .card-title { font-size: 32px; line-height: 34px; }
  .card-text { margin-top: 16px; font-size: 16px; line-height: 22px; }
  .card-cta-wrap { margin-top: 16px; }
  .card-aside { left: 20px; right: 20px; top: 84px; }
  .aside-quote { padding: 14px; }
  .aside-who { gap: 12px; }
  .aside-av, .aside-av img { width: 40px; height: 40px; }
  .aside-text { margin-top: 12px; font-size: 16px; line-height: 22px; }
}

/* The system, drawn in each card: K3's kit parts in miniature, floating over the photo (hidden while a card is open).
 * Sizes are in em of the card's miniature scale (9 px below 768, 13 px from 768): kit radii 28/20/12/8 → 2.2/1.5/0.9/0.6 em. */
.card-obj {
  position: absolute;
  top: 74px;
  left: 50%;
  z-index: 1;
  width: calc(100% - 48px);
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--l-app-ink);
  text-align: left;
}
.card.is-open .card-obj { visibility: hidden; opacity: 0; }
@media (max-width: 767.98px) {
  .sr-name span, .sr .sr-found, .obj-plan .pp-next, .pp-w, .pp-bar { display: none; }
  .sr-brand { padding: 0.55em 0.75em; }
  .pp { padding: 0.7em 0.9em 0.8em; }
  .pp-ch { gap: 0.2em; margin-top: 0.4em; }
  .pp-ch li { padding: 0.35em 0.5em; }
  .pp-n { font-size: 1.5em; }
}
.card-obj.obj-week, .card-obj.obj-badge { width: max-content; max-width: calc(100% - 48px); }
@media (min-width: 768px) {
  .card-obj { top: 112px; width: 372px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 1279.98px) { .obj-plan .pp-next, .obj-plan .sr-found li:nth-child(5) { display: none; } }
.ic { display: inline-block; flex: none; width: 1.25em; height: 1.25em; vertical-align: -0.25em; }

/* the kit's card: white, radius 28, shadow-1 */
.sr, .pp, .obj-week, .obj-courses, .obj-badge { border-radius: var(--l-radius-lg); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.15em 0.3em var(--l-app-shadow-1), 0 1.4em 3em -1em var(--l-phone-shadow); }
.obj-plan { display: flex; flex-direction: column; gap: 0.8em; }
.sr { padding: 0.9em; }
.sr-url { position: relative; display: flex; align-items: center; gap: 0.6em; height: 2.9em; padding: 0 0.45em 0 1em; overflow: hidden; border-radius: var(--l-radius-md); background: var(--l-app-card); box-shadow: inset 0 0 0 1px var(--l-app-ink-4); }
.sr-url::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--l-scan), transparent); transform: translateX(-100%); opacity: 0; }
.sr-globe { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: var(--l-app-muted); stroke-width: 1.2; }
.sr-addr { flex: 1; min-width: 0; font-weight: 500; font-size: 1.05em; }
.sr-state { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.3em 0.8em; border-radius: var(--l-radius-full); background: var(--l-app-brand-tint); color: var(--l-cta); font-weight: 500; font-size: 0.92em; }
.sr-state i { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--l-cta); }
.sr-brand { display: flex; align-items: center; gap: 0.75em; margin-top: 0.7em; padding: 0.75em 0.8em; border-radius: var(--l-radius-md); background: var(--l-app-desk); }
.sr-mark { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: var(--l-radius-md); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-border); }
.sr-mark img { width: 1.7em; height: 1.7em; }
.sr-name { flex: 1; min-width: 0; line-height: 1.25; }
.sr-name b { display: block; font-family: var(--l-font-serif); font-weight: 400; font-size: 1.5em; line-height: 1.1; color: var(--l-app-ink); }
.sr-name span { color: var(--l-app-muted); }
.sr-swatches { display: flex; flex: none; }
.sr-swatches i { width: 1.3em; height: 1.3em; margin-left: -0.3em; border-radius: 50%; box-shadow: 0 0 0 0.16em var(--l-app-desk); background: var(--l-clinic); }
.sr-swatches i:nth-child(2) { background: var(--l-clinic-accent); }
.sr-swatches i:nth-child(3) { background: var(--l-clinic-tint); }
.sr-found { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: 0.65em; }
.sr-found li { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.25em 0.7em 0.25em 0.4em; border-radius: var(--l-radius-full); background: var(--l-app-desk-2); color: var(--l-app-ink-2); }
.sr-tick { position: relative; width: 1em; height: 1em; border-radius: 50%; background: var(--l-cta); }
.sr-tick::after { content: ''; position: absolute; left: 0.32em; top: 0.2em; width: 0.26em; height: 0.46em; border: solid var(--l-white); border-width: 0 0.12em 0.12em 0; transform: rotate(45deg); }

/* the plan: the kit's compact path (a track, done dots, the current ring), with the four phases named under it */
.pp { padding: 0.9em 1.1em 1em; }
.pp-k { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; font-size: 1.05em; }
.pp-k span + span { font-weight: 400; font-size: 0.9em; color: var(--l-app-muted); }
/* Your 90 days (landing card 1): the four chapters in words, as the app's Home, two by two */
.pp-ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4em; margin-top: 0.6em; }
.pp-ch li { display: flex; gap: 0.5em; padding: 0.55em 0.7em; border-radius: var(--l-radius-md); line-height: 1.25; color: var(--l-app-muted); }
.pp-ch .is-here { background: var(--l-app-brand-tint); color: var(--l-app-ink); }
.pp-ch li:not(.is-here) .pp-s { color: inherit; }
.pp-n { flex: none; font-family: var(--l-font-serif); font-weight: 400; font-size: 1.7em; line-height: 0.95; color: var(--l-cta); }
.pp-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pp-t b { font-weight: 500; color: var(--l-app-ink); }
.pp-s { color: var(--l-app-ink-2); }
.pp-bar { display: block; height: 0.3em; margin-top: 0.4em; border-radius: var(--l-radius-full); background: var(--l-white); overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--l-cta); }
.pp-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.7em; margin-top: 0.8em; }
.pp-next span { color: var(--l-app-muted); }
.pp-next b { font-weight: 500; }
.pp-next em { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.7em 0.2em 0.5em; border-radius: var(--l-radius-full); background: var(--l-app-you-tint); color: var(--l-app-you); font-style: normal; font-size: 0.92em; }
.pp-next .ic { width: 1.1em; height: 1.1em; }

/* this week's packets: the kit's packet card (a desk with the stack and its count, caps label, a display title, the channel split) */
.obj-week { display: flex; align-items: center; gap: 1.3em; padding: 1em 1.4em 1em 1em; }
.wk-desk { position: relative; flex: none; display: grid; place-items: center; width: 8.4em; height: 8.4em; border-radius: var(--l-radius-md); background: var(--l-app-desk-2); box-shadow: inset 0 0.08em 0.15em var(--l-app-shadow-1); }
.wk-stack { position: relative; width: 4.4em; height: 5.6em; }
.wk-stack span { position: absolute; inset: 0; border-radius: var(--l-radius-xs); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.15em 0.3em var(--l-app-shadow-1), 0 0.8em 1.6em var(--l-app-shadow-2); }
.wk-stack span:nth-child(1) { transform: rotate(-8deg) translate(-0.3em, 0.15em); }
.wk-stack span:nth-child(2) { transform: rotate(5deg) translate(0.3em, -0.1em); }
.wk-stack span:nth-child(3)::after { content: ''; position: absolute; left: 0.5em; right: 0.5em; top: 0.6em; height: 3.6em; background: linear-gradient(var(--l-clinic-tint) 0 0.5em, transparent 0.5em) 0 0 / 100% 1.1em no-repeat, repeating-linear-gradient(transparent 0 1.1em, var(--l-app-desk-2) 1.1em 1.3em, transparent 1.3em 1.6em); }
.wk-n { position: absolute; right: 0.8em; bottom: 0.8em; min-width: 1.9em; padding: 0.1em 0.5em; border-radius: var(--l-radius-full); background: var(--l-cta); color: var(--l-white); font-weight: 500; font-size: 0.92em; text-align: center; }
.wk-copy { min-width: 0; max-width: 17em; }
.wk-caps { font-size: 0.85em; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--l-app-muted); }
.wk-v { margin-top: 0.3em; font-family: var(--l-font-serif); font-size: 1.75em; line-height: 1.08; letter-spacing: -0.01em; }
.wk-s { margin-top: 0.3em; color: var(--l-app-muted); }
.wk-split { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.6em; }
.wk-split li { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.7em 0.2em 0.5em; border-radius: var(--l-radius-full); background: var(--l-app-desk-2); color: var(--l-app-ink-2); font-size: 0.92em; }
.wk-split .ic { width: 1.1em; height: 1.1em; }

/* keep learning: the kit's media cards (a cover with the veil, time left and the progress track on it) */
.obj-courses { padding: 1em 1em 1.1em; }
.co-head { font-weight: 500; font-size: 1.05em; }
.co-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; margin-top: 0.6em; }
.co { display: flex; flex-direction: column; }
.co-cover { order: -2; position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--l-radius-md); background: var(--l-mat-sage); }
.co-cover img { width: 100%; height: 100%; object-fit: cover; }
.co-cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, var(--l-app-veil), var(--l-app-veil-0)); }
.co-over { position: absolute; left: 0.5em; right: 0.5em; bottom: 0.45em; z-index: 1; display: flex; flex-direction: column; gap: 0.3em; color: var(--l-white); }
.co-left { display: flex; justify-content: space-between; font-size: 0.85em; font-weight: 500; line-height: 1.2; }
.co-track { height: 0.28em; border-radius: var(--l-radius-full); background: var(--l-app-track); overflow: hidden; }
.co-track i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--l-white); transform-origin: left center; }
.co-k { order: -1; margin-top: 0.45em; color: var(--l-app-muted); font-size: 0.92em; }
.co-t { margin-top: 0.1em; font-weight: 500; line-height: 1.25; }

/* a badge: the kit's medallion */
.obj-badge { display: flex; flex-direction: column; align-items: center; padding: 1.6em 2.4em 1.4em; text-align: center; }
.obj-badge .md { --md: 8.6em; }
.medal-name { margin-top: 0.8em; font-weight: 500; font-size: 1.25em; line-height: 1.3; }
.medal-date { margin-top: 0.1em; color: var(--l-app-muted); }

/* The kit's medallion, in CSS: a material disc with a white rim, an inner face, a sheen and the emblem (earned);
 * a disc in a progress ring (in progress); a plain disc with a lock (next) */
.md { --md: 6em; position: relative; display: block; flex: none; width: var(--md); height: var(--md); border-radius: 50%; background: linear-gradient(155deg, var(--m-hi), var(--m-mid) 55%, var(--m-45)); box-shadow: inset 0 0 0 1px var(--m-45); color: var(--m-deep); }
.md-face { position: absolute; inset: 12.5%; border-radius: 50%; background: linear-gradient(335deg, var(--m-hi), var(--m-mid)); box-shadow: 0 0 0 calc(var(--md) / 60) var(--l-medal-rim); }
.md::after { content: ''; position: absolute; left: 15%; top: 16%; width: 43%; height: 18%; border-radius: 50%; background: var(--l-medal-sheen); transform: rotate(-28deg); }
.md-em { position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; --ic-tint: var(--m-mid); }
.md.is-prog { background: conic-gradient(var(--l-cta) calc(var(--p) * 1%), var(--l-app-border) 0); box-shadow: none; }
.md.is-prog .md-face { inset: 5%; background: var(--m-mid); box-shadow: inset 0 0 0 calc(var(--md) * 0.05) var(--m-mid), inset 0 0 0 calc(var(--md) * 0.068) var(--l-medal-rim); }
.md.is-off { background: none; box-shadow: none; color: var(--l-app-ink-4); }
.md.is-off .md-face { inset: 8.3%; background: var(--m-mid); box-shadow: inset 0 0 0 calc(var(--md) * 0.05) var(--m-mid), inset 0 0 0 calc(var(--md) * 0.068) var(--l-medal-rim); }
.md.is-prog::after, .md.is-off::after { display: none; }
.md.is-off .md-em { --ic-tint: transparent; }
.md-lock { position: absolute; right: 2%; bottom: 2%; display: grid; place-items: center; width: 26%; height: 26%; border-radius: 50%; background: var(--l-app-card); color: var(--l-app-muted); box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.1em 0.3em var(--l-app-shadow-2); }
.md-lock .ic { width: 55%; height: 55%; }
.md--clay { --m-hi: var(--l-mat-clay-hi); --m-mid: var(--l-mat-clay); --m-deep: var(--l-mat-clay-deep); --m-45: var(--l-mat-clay-45); }
.md--slate { --m-hi: var(--l-mat-slate-hi); --m-mid: var(--l-mat-slate); --m-deep: var(--l-mat-slate-deep); --m-45: var(--l-mat-slate-45); }
.md--sage { --m-hi: var(--l-mat-sage-hi); --m-mid: var(--l-mat-sage); --m-deep: var(--l-mat-sage-deep); --m-45: var(--l-mat-sage-45); }
.md--teal { --m-hi: var(--l-mat-teal-hi); --m-mid: var(--l-mat-teal); --m-deep: var(--l-mat-teal-deep); --m-45: var(--l-mat-teal-45); }
.md-sm { --md: 72px; }

/* The read and the cards' objects play once when they come into view (landing.js adds .is-play; off under reduced motion) */
.reveal-on [data-play] .sr-brand, .reveal-on [data-play] .sr-found li, .reveal-on [data-play] .pp,
.reveal-on [data-play] .wk-stack span, .reveal-on [data-play] .co, .reveal-on [data-play].obj-badge .md { opacity: 0; }
.reveal-on [data-play].is-play .sr-url::after { animation: scan var(--l-reveal) var(--l-ease-in-out) 2 both; }
.reveal-on [data-play].is-play .sr-brand { animation: lift var(--l-slow) var(--l-ease-out) 1000ms both; }
.reveal-on [data-play].is-play .sr-found li { animation: lift var(--l-base) var(--l-ease-out) both; animation-delay: calc(1200ms + var(--i) * 150ms); }
.reveal-on [data-play].is-play .pp { animation: lift var(--l-slow) var(--l-ease-out) 2000ms both; }
.reveal-on [data-play].is-play .wk-stack span { animation: lift var(--l-slow) var(--l-ease-out) both; }
.reveal-on [data-play].is-play .wk-stack span:nth-child(2) { animation-delay: 150ms; }
.reveal-on [data-play].is-play .wk-stack span:nth-child(3) { animation-delay: 300ms; }
.reveal-on [data-play].is-play .co { animation: lift var(--l-slow) var(--l-ease-out) both; }
.reveal-on [data-play].is-play .co:nth-child(2) { animation-delay: 120ms; }
.reveal-on [data-play].is-play .co:nth-child(3) { animation-delay: 240ms; }
.reveal-on [data-play].is-play .co-track i { animation: grow var(--l-reveal) var(--l-ease-out) 400ms both; }
.reveal-on [data-play].is-play .md { animation: medal-in var(--l-reveal) var(--l-ease-out) both; }
@keyframes scan { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(250%); } }
@keyframes lift { from { opacity: 0; transform: translateY(0.8em); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes medal-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@media (min-width: 1440px) { .cards-controls { margin-right: var(--l-g); } }

/* ---------------------------------------------------------------- the outcome */
.stat { padding: 40px 0; }
.stat-copy { width: calc(100vw - 2 * var(--l-g)); margin: 0 auto; text-align: center; }
.stat-title {
  font-family: var(--l-font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 61.6px;
  letter-spacing: -2.04px;
  text-wrap: balance;
}
.stat-title sup { font-size: 14px; line-height: 14px; vertical-align: super; }
.stat-title sup a { text-decoration: none; }
.stat-lede { margin-top: 24px; font-size: 24px; line-height: 30px; letter-spacing: -0.6px; }
.stat-note { margin-top: 16px; font-size: 14px; line-height: 21px; }
.stat-cta-wrap { padding-top: 24px; }
.stat-frame { position: relative; margin-top: 48px; overflow: hidden; }
.stat-media { position: relative; width: 123%; margin-left: -11.5%; aspect-ratio: 2600 / 1341; container-type: inline-size; }
@media (min-width: 768px) {
  .stat-copy { width: calc(var(--l-col) * 16); }
  .stat-title { font-size: 60px; line-height: 66px; }
}
@media (min-width: 1024px) {
  .stat { padding: 80px 32px; }
  .stat-copy { width: calc((100vw - 192px) * 16 / 22); }
  .stat-title { font-size: 68px; line-height: 74.8px; }
  .stat-lede { letter-spacing: -1.2px; }
  .stat-frame { margin-top: 80px; }
  .stat-media { width: 100%; margin-left: 0; }
}
@media (min-width: 1280px) {
  .stat-copy { width: calc((100vw - 192px) * 14 / 22); }
  .stat-frame { max-width: 1248px; margin: 80px auto 0; width: calc(100% - 128px); }
}
@media (min-width: 1440px) { .stat-copy { width: 794.18px; } }

/* ---------------------------------------------------------------- phones: our app, drawn in HTML */
.fan { position: absolute; inset: 0; }
.fan:focus-visible { outline-offset: -2px; }
.phone {
  position: absolute;
  aspect-ratio: 9 / 19.5;
  padding: 0.42em;
  border-radius: var(--l-radius-phone);
  background: var(--l-dark);
  box-shadow: 0 1.6em 3.2em -1.2em var(--l-phone-shadow);
}
.phone-c { left: 38.57%; top: 2%; height: 96%; z-index: 3; font-size: 1.09cqw; }
.phone-s1 { left: 19.5%; top: 8%; height: 84%; z-index: 2; font-size: 0.952cqw; }
.phone-s2 { left: 60.5%; top: 8%; height: 84%; z-index: 2; font-size: 0.952cqw; }
.phone-o1 { left: 3.43%; top: 14%; height: 72%; z-index: 1; font-size: 0.815cqw; }
.phone-o2 { left: 79.43%; top: 14%; height: 72%; z-index: 1; font-size: 0.815cqw; }
/* Below 768 the fan would shrink past reading: the phones become a swipe row at a legible size, Home first */
@media (max-width: 767.98px) {
  .stat-media { width: auto; margin-left: 0; aspect-ratio: auto; }
  .fan { position: static; display: flex; gap: 16px; padding: 8px var(--l-g) 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--l-g); scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan .phone { position: relative; left: auto; top: auto; flex: none; width: 236px; height: auto; font-size: 11.3px; scroll-snap-align: start; }
  .fan .phone-c { order: -1; }
}
.screen { position: relative; height: 100%; padding: 0.9em 1.1em; border-radius: var(--l-radius-screen); overflow: hidden; }
/* The app in the phones: K3's kit parts at phone scale (1 em ≈ the kit's 13 px meta) */
.app-ui { background: var(--l-app-desk); color: var(--l-app-ink); font-family: var(--l-font-sans); font-size: 1em; line-height: 1.4; font-weight: 400; text-align: left; }
.app-ui p { margin: 0; }
.ui-status { display: flex; justify-content: space-between; align-items: center; padding: 0.2em 0.6em 0.9em; font-size: 0.9em; font-weight: 500; }
.ui-status i { display: block; width: 2.2em; height: 0.9em; border-radius: var(--l-radius-xs); border: 0.12em solid var(--l-app-ink); }
.ui-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 0.7em 0.4em 1.5em; background: var(--l-app-card); box-shadow: 0 -1px 0 var(--l-app-border); font-size: 0.7em; color: var(--l-app-muted); }
.ui-tabs span { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.ui-tabs .ic { width: 1.9em; height: 1.9em; }
.ui-tabs .is-on { color: var(--l-cta); font-weight: 500; --ic-tint: var(--l-app-brand-tint); }
.ui-title { margin-top: 0.15em; font-family: var(--l-font-serif); font-weight: 400; font-size: 2.2em; line-height: 1.1; letter-spacing: -0.01em; }
.ui-caps { margin-top: 1.1em; font-size: 0.72em; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--l-app-muted); }
.ui-k { font-size: 0.82em; color: var(--l-app-muted); }
.ui-ct { font-weight: 500; }
.ui-h { margin-top: 0.2em; font-family: var(--l-font-serif); font-size: 1.5em; line-height: 1.1; letter-spacing: -0.01em; }
.ui-mt { font-weight: 500; }
.ui-card { margin-top: 0.7em; padding: 0.9em 1em; border-radius: var(--l-radius-md); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.08em 0.15em var(--l-app-shadow-1), 0 0.3em 0.9em var(--l-app-shadow-1); }
.ui-btn { display: inline-block; margin-top: 0.8em; padding: 0.6em 1.2em; border-radius: var(--l-radius-full); background: var(--l-cta); color: var(--l-white); font-weight: 500; font-size: 0.88em; }
/* the top bar: the clinic's mark and name, Navigator's face, the account */
.ui-top { display: flex; align-items: center; gap: 0.5em; padding-bottom: 0.7em; font-size: 0.85em; }
.ui-top b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-top img { width: 2em; height: 2em; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0.12em var(--l-app-brand-mark); }
.ui-jmark { display: inline-grid; flex: none; place-items: center; width: 2em; height: 2em; border-radius: var(--l-radius-sm); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-border); }
.ui-jmark img { width: 1.45em; height: 1.45em; border-radius: 0; box-shadow: none; }
/* Home: Navigator speaks first, then the objects */
.ui-who { display: flex; align-items: center; gap: 0.4em; margin-top: 0.4em; font-size: 0.75em; color: var(--l-app-muted); }
.ui-who img { width: 1.8em; height: 1.8em; border-radius: 50%; object-fit: cover; }
.ui-who b { font-weight: 500; color: var(--l-app-ink-2); }
.ui-greet { margin-top: 0.4em; font-family: var(--l-font-serif); font-size: 1.62em; line-height: 1.1; letter-spacing: -0.01em; }
.ui-bridge { margin-top: 0.5em; font-size: 0.8em; line-height: 1.4; color: var(--l-app-ink-2); }
.ui-acts { display: flex; align-items: center; gap: 0.9em; }
.ui-lnk { margin-top: 0.8em; font-size: 0.82em; font-weight: 500; color: var(--l-cta); }
.ui-days { padding: 0.8em 0.8em 0.6em; }
.ui-days .ui-ct { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0.2em; font-size: 0.95em; }
.ui-ch { margin-top: 0.4em; }
.ui-ch li { display: flex; gap: 0.55em; padding: 0.4em 0.5em; border-radius: var(--l-radius-md); line-height: 1.25; font-size: 0.82em; color: var(--l-app-muted); }
.ui-ch .is-here { background: var(--l-app-brand-tint); color: var(--l-app-ink-2); }
.ui-chn { flex: none; width: 0.7em; font-family: var(--l-font-serif); font-weight: 400; font-size: 1.9em; line-height: 0.95; color: var(--l-cta); }
.ui-cht { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ui-cht b { font-weight: 500; color: var(--l-app-ink); font-size: 1.1em; }
.ui-chs { color: var(--l-app-ink); }
.ui-bar { display: block; height: 0.3em; margin-top: 0.4em; border-radius: var(--l-radius-full); background: var(--l-app-card); overflow: hidden; }
.ui-bar i { display: block; height: 100%; border-radius: inherit; background: var(--l-cta); }
.ui-sec { margin-top: 1.15em; font-family: var(--l-font-serif); font-size: 1.45em; line-height: 1.1; letter-spacing: -0.01em; }
.ui-sec .ui-k { margin-left: 0.4em; font-family: var(--l-font-sans); font-size: 0.5em; letter-spacing: 0; }
.ui-wkrows { padding: 0.7em 0.8em; }
.ui-wkrows .ui-mt { font-size: 0.88em; }
.ui-wkrows .ui-k { margin-top: 0.35em; }
.ui-you { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.15em 0.6em 0.15em 0.4em; border-radius: var(--l-radius-full); background: var(--l-app-you-tint); color: var(--l-app-you); }
.ui-pill { margin-left: 0.4em; padding: 0.25em 0.8em; border-radius: var(--l-radius-full); background: var(--l-app-card); box-shadow: inset 0 0 0 1px var(--l-app-border-strong); font-weight: 500; color: var(--l-app-ink); }
.ui-desk { position: relative; display: grid; place-items: center; height: 5.6em; border-radius: var(--l-radius-md); background: var(--l-app-desk-2); box-shadow: inset 0 0.08em 0.15em var(--l-app-shadow-1); }
/* A packet */
.ui-desk-tall { height: 15em; margin-top: 0.7em; }
.ui-paper { display: flex; flex-direction: column; gap: 0.55em; width: 10.5em; height: 13.6em; padding: 0.9em 0.8em; border-radius: var(--l-radius-xs); background: var(--l-app-card); box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.15em 0.3em var(--l-app-shadow-1), 0 0.9em 2.2em var(--l-app-shadow-2); transform: rotate(-1.5deg); }
.ui-lh { display: flex; align-items: center; gap: 0.4em; padding-bottom: 0.45em; border-bottom: 0.1em solid var(--l-clinic); font-family: var(--l-font-serif); font-size: 0.8em; color: var(--l-clinic); }
.ui-lh .ui-jmark { width: 1.5em; height: 1.5em; background: none; box-shadow: none; }
.ui-lh .ui-jmark img { width: 100%; height: 100%; }
.ui-p { font-size: 0.66em; color: var(--l-app-ink-2); }
.ui-l { height: 0.32em; border-radius: var(--l-radius-full); background: var(--l-app-desk-2); }
.ui-l-s { width: 60%; }
.ui-recip { display: flex; flex-direction: column; margin-top: 0.7em; padding-top: 0.6em; box-shadow: 0 -1px 0 var(--l-app-border); font-size: 0.9em; }
.ui-recip b { font-weight: 500; }
.ui-seg { display: flex; gap: 0.2em; margin-top: 0.55em; padding: 0.2em; border-radius: var(--l-radius-full); background: var(--l-app-desk-2); font-size: 0.78em; }
.ui-seg span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; padding: 0.35em 0; border-radius: var(--l-radius-full); color: var(--l-app-muted); }
.ui-seg .is-on { background: var(--l-app-card); color: var(--l-app-ink); box-shadow: 0 0.05em 0.15em var(--l-app-shadow-2), 0 0 0 1px var(--l-app-shadow-edge); }
.ui-seg .is-on .ic { color: var(--l-cta); }
.ui-note { display: flex; align-items: center; gap: 0.5em; margin-top: 0.7em; padding: 0.6em 0.7em; border-radius: var(--l-radius-md); background: var(--l-app-brand-tint); font-size: 0.78em; line-height: 1.3; }
.ui-note img { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; object-fit: cover; }
/* Learn */
.ui-cover { position: relative; margin-top: 0.5em; aspect-ratio: 16 / 10; border-radius: var(--l-radius-md); overflow: hidden; box-shadow: 0 0 0 1px var(--l-app-shadow-edge), 0 0.3em 0.9em var(--l-app-shadow-1); }
.ui-cover img { width: 100%; height: 100%; object-fit: cover; }
.ui-cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: linear-gradient(to top, var(--l-app-veil), var(--l-app-veil-0)); }
.ui-play { position: absolute; left: 50%; top: 42%; z-index: 1; width: 2.8em; height: 2.8em; margin: -1.4em 0 0 -1.4em; border-radius: 50%; background: var(--l-app-card); }
.ui-play::after { content: ''; position: absolute; left: 1.08em; top: 0.8em; border-style: solid; border-width: 0.6em 0 0.6em 0.95em; border-color: transparent transparent transparent var(--l-app-ink); }
.ui-over { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.7em; z-index: 1; display: flex; flex-direction: column; gap: 0.35em; color: var(--l-white); }
.ui-left { display: flex; justify-content: space-between; font-size: 0.78em; font-weight: 500; }
.ui-track { height: 0.3em; border-radius: var(--l-radius-full); background: var(--l-app-track); overflow: hidden; }
.ui-track i { display: block; height: 100%; border-radius: inherit; background: var(--l-white); }
.ui-cover + .ui-k { margin-top: 0.55em; }
.ui-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 0.5em; }
.ui-covers img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--l-radius-md); object-fit: cover; }
.ui-covers p { margin-top: 0.3em; font-size: 0.8em; font-weight: 500; line-height: 1.25; }
/* Badges */
.ui-medals { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3em 0.6em; margin-top: 1.2em; text-align: center; font-size: 0.85em; }
.ui-medals .md { --md: 5.6em; margin: 0 auto 0.6em; }
.ui-medals p { font-weight: 500; line-height: 1.25; }
.ui-medals .ui-k { margin-top: 0.1em; font-weight: 400; }
/* Navigator: the kit's panel (the face, the AI-guide line, what was asked on a sunk pill, what Navigator says as text, action chips, the ask field) */
.ui-navhead { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.8em; box-shadow: 0 1px 0 var(--l-app-border); }
.ui-panel { background: var(--l-app-card); }
.ui-navhead img { width: 2.6em; height: 2.6em; border-radius: 50%; object-fit: cover; }
.ui-navhead div { flex: 1; }
.ui-navname { font-weight: 500; }
.ui-x { position: relative; width: 1.2em; height: 1.2em; }
.ui-x::before, .ui-x::after { content: ''; position: absolute; left: 50%; top: 0; width: 0.12em; height: 100%; margin-left: -0.06em; background: var(--l-app-ink-2); transform: rotate(45deg); }
.ui-x::after { transform: rotate(-45deg); }
.ui-chat { display: flex; flex-direction: column; gap: 0.75em; margin-top: 1.1em; }
.ui-says { font-size: 1.08em; line-height: 1.4; color: var(--l-app-ink); }
.ui-asked { align-self: flex-end; max-width: 80%; padding: 0.4em 0.9em; border-radius: var(--l-radius-lg) var(--l-radius-lg) var(--l-radius-xs) var(--l-radius-lg); background: var(--l-app-desk-2); font-size: 0.95em; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: 1em; }
.ui-chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.45em 0.9em; border-radius: var(--l-radius-full); font-size: 0.82em; background: var(--l-app-card); box-shadow: inset 0 0 0 1px var(--l-app-border-strong); color: var(--l-app-ink); }
.ui-ask { position: absolute; left: 1.1em; right: 1.1em; bottom: 1.5em; display: flex; align-items: center; justify-content: space-between; padding: 0.35em 0.35em 0.35em 1.1em; border-radius: var(--l-radius-full); background: var(--l-app-card); box-shadow: inset 0 0 0 1px var(--l-app-ink-4); font-size: 0.85em; color: var(--l-app-muted); }
.ui-ask i { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--l-app-border-strong); color: var(--l-app-ink); }

/* Navigator: the face, labelled as an AI guide, and the companion on a phone */
.nav-stage { position: absolute; inset: 0; margin: auto; width: min(100cqw, 133.33cqh); height: min(75cqw, 100cqh); container-type: size; }
.nav-portrait { position: absolute; left: 15.6%; top: 12%; height: 76%; aspect-ratio: 4 / 5; border-radius: var(--l-radius-lg); overflow: hidden; }
.nav-portrait img { width: 100%; height: 100%; object-fit: cover; }
.nav-badge {
  position: absolute;
  left: 4%;
  bottom: 4%;
  padding: 0.5em 0.9em;
  border-radius: var(--l-radius-full);
  background: var(--l-paper);
  color: var(--l-ink);
  font-size: 2.1cqw;
  line-height: 1.3;
  font-weight: var(--l-bold);
  white-space: nowrap;
}
.phone-nav { left: 56.6%; top: 7%; height: 86%; font-size: 1.42cqw; z-index: 1; }

/* ---------------------------------------------------------------- new sections, built from the feature's anatomy and tokens */
.pc-title, .std-title, .paths-title { align-self: stretch; margin-top: 24px; font-family: var(--l-font-serif); font-weight: 400; font-size: 40px; line-height: 44px; text-wrap: balance; }
.pc-text, .std-text { align-self: stretch; margin-top: 16px; font-size: 20px; line-height: 30px; }
@media (min-width: 768px) {
  .pc-title, .std-title, .paths-title { margin-top: 32px; font-size: 56px; line-height: 61.6px; }
}

/* Packets, close up: the copy, the real packet (P3's renderer, assets/js/packet.js) fanned, then the three ways it goes out.
 * The pages wear the clinic's brand from packet.css; everything around them uses this sheet's tokens. */
.pc { padding: 40px 0; }
.pc-grid { display: grid; grid-template-columns: 100%; row-gap: 40px; margin: 0 var(--l-g); }
.pc-copy { display: flex; flex-direction: column; align-items: flex-start; }
.pc-copy .pill { margin-top: 24px; }
.pc-stage { padding: 6% 4% 5% 3%; border-radius: var(--l-radius-glass); background: var(--l-paper-2); }
.pc-fan { position: relative; aspect-ratio: 100 / 134; container-type: inline-size; }
.sheet {
  --s: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: calc(10 - var(--s));
  width: 68cqw;
  aspect-ratio: 816 / 1056;
  border-radius: var(--l-radius-xs);
  background: var(--l-white);
  box-shadow: 0 1.6cqw 4cqw -1.6cqw var(--l-phone-shadow);
  transform: translate(calc(var(--s) * 10cqw), calc((3 - var(--s)) * 15cqw)) rotate(calc(var(--s) * 1.6deg - 2deg));
  transition: transform var(--l-base) var(--l-ease);
}
.sheet[data-page="care-summary"] { --s: 1; }
.sheet[data-page="clinic-profile"] { --s: 2; }
.sheet[data-page="referral-form"] { --s: 3; }
.sheet-btn { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: var(--l-radius-xs); background: none; cursor: pointer; }
.sheet-btn:focus-visible { outline: 2px solid var(--l-ink); outline-offset: 4px; }
.pc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 16px; }
.pc-tab { padding: 4px 6px; border: 0; background: none; font-size: 14px; line-height: 20px; color: var(--l-ink); cursor: pointer; text-decoration: underline transparent; text-underline-offset: 6px; transition: text-decoration-color var(--l-base) var(--l-ease); }
.pc-tab:hover { text-decoration-color: var(--l-ink-muted); }
.pc-tab[aria-pressed="true"] { color: var(--l-ink-strong); font-weight: var(--l-bold); text-decoration-color: var(--l-ink-strong); }
@media (min-width: 768px) {
  .pc-fan { aspect-ratio: 100 / 110; }
  .sheet { width: 60cqw; transform: translate(calc(var(--s) * 13cqw), calc((3 - var(--s)) * 10.6cqw)) rotate(calc(var(--s) * 1.8deg - 2.5deg)); }
  .pc-tab { font-size: 16px; line-height: 24px; }
}
@media (min-width: 1024px) {
  .pc { padding: 80px 0; }
  .pc-grid { grid-template-columns: calc(var(--l-col) * 7) 1fr; column-gap: var(--l-col); align-items: center; }
}

/* The three ways a packet goes out */
.pc-channels { display: flex; gap: 16px; margin: 32px 0 0; padding: 0 var(--l-g); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--l-g); scrollbar-width: none; }
.pc-channels::-webkit-scrollbar { display: none; }
.ch { flex: none; width: 78%; scroll-snap-align: start; }
.ch-stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--l-radius-lg); background: var(--l-paper-2); container-type: inline-size; overflow: hidden; }
.ch-cap { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: var(--l-bold); text-align: center; }
@media (min-width: 768px) {
  .pc-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px var(--l-g) 0; padding: 0; overflow: visible; }
  .ch { width: auto; }
}
.ch-env { width: 88cqw; transform: rotate(-2deg); }
.ch-fax { position: relative; width: 46cqw; aspect-ratio: 816 / 1056; }
.ch-fax > * { position: absolute; inset: 0; }
.ch-fax > :first-child { transform: translate(16%, -5%) rotate(5deg); }
.ch-email { position: absolute; left: 7%; top: 8%; width: 600px; transform-origin: 0 0; }

/* A code a doctor can scan (the verification card) */
.pg-qr { flex: none; display: block; width: 3.4em; height: 3.4em; color: var(--l-app-ink); }
.pg-qr svg { display: block; width: 100%; height: 100%; }

/* Our standard: the five practices, and what a doctor sees when they scan a badge */
.std { padding: 40px 0; }
.std-grid { display: grid; grid-template-columns: 100%; row-gap: 48px; margin: 0 var(--l-g); }
.std-copy { display: flex; flex-direction: column; align-items: flex-start; }
.std-list { align-self: stretch; margin-top: 32px; border-top: 1px solid var(--l-hairline); counter-reset: none; }
.std-list li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--l-hairline); font-size: 18px; line-height: 26px; color: var(--l-ink-strong); }
.std-n { flex: none; width: 24px; font-family: var(--l-font-serif); font-size: 30px; line-height: 28px; color: var(--l-ink); }
.std-fig { position: relative; display: flex; flex-direction: column; align-items: center; }
.vf { position: relative; width: 100%; max-width: 460px; border-radius: var(--l-radius-lg); background: var(--l-white); box-shadow: 0 30px 60px -30px var(--l-phone-shadow); color: var(--l-app-ink); }
.vf-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--l-app-border); }
.vf-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--l-app-border); }
.vf-bar span { flex: 1; margin-left: 10px; padding: 3px 12px; border-radius: var(--l-radius-full); background: var(--l-app-desk); font-size: 13px; line-height: 18px; color: var(--l-app-muted); text-align: center; }
.vf-body { padding: 28px 28px 32px; }
.vf-top { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.vf-clinic { font-size: 14px; line-height: 20px; color: var(--l-app-muted); }
.vf-badge { margin-top: 2px; font-family: var(--l-font-serif); font-size: 32px; line-height: 34px; letter-spacing: -0.01em; }
.vf-date { margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: var(--l-bold); color: var(--l-app-success); }
.vf-text { margin-top: 22px; font-size: 17px; line-height: 26px; color: var(--l-app-ink); }
.vf-src { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--l-app-border); font-size: 14px; line-height: 21px; color: var(--l-app-muted); }
.vf-scan { position: absolute; right: -10px; bottom: -22px; display: block; width: 76px; height: 76px; padding: 9px; border-radius: var(--l-radius-sm); background: var(--l-white); box-shadow: 0 12px 30px -12px var(--l-phone-shadow); transform: rotate(6deg); }
.vf-scan .pg-qr { width: 100%; height: 100%; }
.std-cap { margin-top: 40px; font-size: 16px; line-height: 24px; text-align: center; }
.std-small { margin: 40px var(--l-g) 0; font-size: 14px; line-height: 21px; }
@media (min-width: 1024px) {
  .std { padding: 80px 0; }
  .std-grid { grid-template-columns: 1fr calc(var(--l-col) * 9); column-gap: var(--l-col); align-items: center; }
  .std-list li { font-size: 20px; line-height: 28px; padding: 18px 0; }
}

/* Questions owners ask: pairs on hairlines; from 768 the heading takes the first cell of a two-column grid */
.qa { padding: 40px 0; }
.qa-grid { display: grid; grid-template-columns: 100%; column-gap: 30px; margin: 0 var(--l-g); }
.qa-head { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 32px; }
.qa-title { align-self: stretch; margin-top: 24px; font-family: var(--l-font-serif); font-weight: 400; font-size: 40px; line-height: 44px; }
.qa-item { padding: 24px 0; border-top: 1px solid var(--l-hairline); }
.qa-item h3 { font-family: var(--l-font-serif); font-weight: 400; font-size: 26px; line-height: 30px; color: var(--l-ink-strong); }
.qa-item p { margin-top: 10px; font-size: 18px; line-height: 27px; }
.qa-item a { text-underline-offset: 3px; }
@media (min-width: 768px) {
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .qa-head { grid-column: 1 / -1; max-width: calc(var(--l-col) * 16); padding-bottom: 40px; }
  .qa-title { margin-top: 32px; font-size: 56px; line-height: 61.6px; }
  .qa-item { padding: 32px 0 40px; }
}
@media (min-width: 1024px) {
  .qa { padding: 80px 0; }
  .qa-grid { column-gap: var(--l-col); }
  .qa-item h3 { font-size: 30px; line-height: 36px; }
  .qa-item p { max-width: 34em; font-size: 20px; line-height: 30px; }
}

/* ---------------------------------------------------------------- stories */
.stories { padding: 40px 0; }
.stories-row { display: flex; flex-direction: column; gap: 24px; margin: 0 var(--l-g); }
.story { display: flex; flex-direction: column; padding: 24px; border-radius: var(--l-radius-sm); background: var(--l-paper-2); }
.story-tagwrap { padding-bottom: 24px; }
.story-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--l-radius-tag);
  background: var(--l-chip-dark);
  color: var(--l-paper);
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--l-bold);
  text-transform: uppercase;
}
.story-tag span { display: block; line-height: 18px; }
.story-quote { padding-bottom: 24px; font-family: var(--l-font-serif); font-weight: 400; font-size: 18px; line-height: 22.5px; color: var(--l-ink-strong); quotes: '\201C' '\201D'; }
.story-quote::before { content: open-quote; display: block; }
.story-quote::after { content: close-quote; }
.story-person { display: flex; align-items: center; margin-top: auto; }
.story-person img { flex: none; width: 32px; height: 32px; aspect-ratio: 60 / 60; border-radius: var(--l-radius-full); object-fit: cover; }
.story-label { padding-left: 16px; font-size: 13px; line-height: 18px; color: var(--l-ink); }
.story-name { padding-left: 16px; font-size: 16px; line-height: 24px; font-weight: var(--l-bold); }
@media (min-width: 768px) {
  .stories { padding: 80px 0; }
  .stories-row { flex-direction: row; gap: 30px; }
  .story { flex: 1 1 0; min-width: 0; padding: 28px; }
  .story-tagwrap { padding-bottom: 48px; }
  .story-quote { font-size: 24px; line-height: 30px; }
}
@media (min-width: 1024px) {
  .story { padding: 40px; }
  .story-person img { width: 60px; height: 60px; }
  .story-name { font-size: 20px; line-height: 30px; }
}

/* ---------------------------------------------------------------- Meet Navigator */
.feature { padding: 40px 0; }
.feature-grid { display: grid; grid-template-columns: 100%; row-gap: 24px; margin-left: var(--l-g); }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 0; margin-right: var(--l-g); }
.eyebrow { align-self: stretch; font-size: 16px; line-height: 24px; font-weight: var(--l-bold); text-transform: uppercase; letter-spacing: 1.28px; }
.feature-title { align-self: stretch; margin-top: 24px; font-family: var(--l-font-serif); font-weight: 400; font-size: 40px; line-height: 44px; }
.feature-text { align-self: stretch; margin-top: 4px; font-size: 20px; line-height: 30px; }
.feature-copy .pill { margin-top: 24px; }
.feature-note { display: block; margin-top: 12px; font-size: 16px; line-height: 24px; }
.feature-media {
  grid-row: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--l-radius-glass) 0 0 var(--l-radius-glass);
  overflow: hidden;
  background: var(--l-dark);
  container-type: size;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: calc(var(--l-col) * 8) 1fr; column-gap: var(--l-col); align-items: stretch; }
  .feature-copy { margin-right: 0; }
  .feature-media { grid-row: auto; aspect-ratio: auto; }
  .eyebrow { letter-spacing: 1.6px; }
  .feature-title { margin-top: 32px; font-size: 56px; line-height: 61.6px; }
  .feature-copy .pill { margin-top: 32px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .feature-title span { display: inline-block; max-width: 180px; } }
@media (min-width: 1024px) {
  .feature { padding: 80px 0; }
  .feature-title { margin-top: 40px; }
  .feature-copy .pill { margin-top: 40px; }
}
@media (min-width: 1280px) {
  .feature-grid { align-items: center; }
  .feature-media { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- from the library (dark band) */
.news { padding: 32px 0; background: var(--l-dark); color: var(--l-paper); }
.news-eyebrow { margin: 0 var(--l-g); font-size: 18px; line-height: 27px; font-weight: var(--l-bold); text-transform: uppercase; letter-spacing: 0.9px; }
.news-grid { margin-top: 40px; }
.news-feature { position: relative; height: 600px; margin: 0 var(--l-g); }
.news-frame { position: absolute; inset: 0; border-radius: var(--l-radius-sm); overflow: hidden; }
.news-img { position: absolute; top: 0; left: 0; width: 100%; height: 115%; max-width: none; object-fit: cover; will-change: transform; }
.news-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 66.67%; opacity: 0.4; background: linear-gradient(to bottom, transparent, var(--l-ink-strong)); }
.news-body { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; height: 100%; padding: 32px; }
.chip-light { padding: 8px 12px; border-radius: var(--l-radius-tag); background: var(--l-paper); color: var(--l-ink-strong); font-size: 12px; line-height: 16px; font-weight: var(--l-bold); text-transform: uppercase; }
.chip-light span { display: block; line-height: 18px; }
.news-bottom { align-self: stretch; }
.news-ftitle { font-size: 28px; line-height: 35px; letter-spacing: -1.4px; font-weight: var(--l-regular); }
.news-bottom .pill { margin-top: 32px; }
.news-list {
  display: flex;
  gap: 24px;
  margin: 24px 0 0 var(--l-g);
  padding-right: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.news-list::-webkit-scrollbar { display: none; }
.news-list > li { flex: none; width: 75vw; scroll-snap-align: start; }
.news-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 24px; border-radius: var(--l-radius-sm); overflow: hidden; background: var(--l-paper); color: var(--l-ink-strong); }
.news-title { margin-bottom: 144px; font-size: 24px; line-height: 30px; font-weight: var(--l-regular); }
.news-arrow {
  display: block;
  align-self: flex-end;
  width: 45px;
  height: 45px;
  padding: 16px;
  border-radius: var(--l-radius-full);
  background: var(--l-ink);
  color: var(--l-paper);
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.news-arrow:hover { background: var(--l-dark); }
.news-arrow svg { display: block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.news-card .news-arrow:focus-visible { outline-color: var(--l-ink); }
.news-pager { display: flex; align-items: center; justify-content: space-between; height: 25px; margin: 16px var(--l-g); }
.pager-count { font-size: 16px; line-height: 24px; }
.pager-dots { display: flex; gap: 8px; }
.pager-dot { display: inline-block; width: 24px; height: 24px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.pager-dot span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--l-paper-40); }
.pager-dot.is-on span { background: var(--l-paper); }
@media (min-width: 768px) {
  .news-grid { display: grid; grid-template-columns: calc(var(--l-col) * 13) calc(var(--l-col) * 8); column-gap: var(--l-col); align-items: stretch; margin: 40px var(--l-g) 0; }
  .news-feature { height: auto; margin: 0; }
  .news-ftitle { font-size: 32px; line-height: 40px; letter-spacing: -1.6px; }
  .news-list { flex-direction: column; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .news-list > li { width: auto; }
  .news-card { height: auto; }
  .news-title { margin-bottom: 48px; }
  .news-pager { display: none; }
}
@media (min-width: 1024px) {
  .news { padding: 64px 0; }
  .news-ftitle { font-size: 40px; line-height: 50px; letter-spacing: -2px; }
}
@media (min-width: 1280px) { .news-bottom { padding-right: 200px; } }

/* ---------------------------------------------------------------- notes */
.notes { padding: 64px 0 32px; background: var(--l-dark); color: var(--l-paper); }
.notes-rule { display: flex; flex-direction: column; gap: 24px; margin: 0 var(--l-g); padding: 24px 0 20px; border-top: 1px solid var(--l-hairline-dark); }
.notes-list { display: flex; flex-direction: column; gap: 4px; }
.notes-list li { font-size: 14px; line-height: 21px; }
.notes-list li { margin-bottom: 4px; }
.notes-list sup { font-size: 10px; line-height: 0; }

/* ---------------------------------------------------------------- footer */
.footer { position: relative; z-index: 1; margin-top: -48px; padding-top: 48px; color: var(--l-paper); isolation: isolate; }
.footer-shape { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.footer-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--l-radius-footer) var(--l-radius-footer) 0 0;
  background: radial-gradient(120% 120% at 10% 20%, var(--l-dark-2), var(--l-dark));
}
.footer-in { padding: 64px var(--l-g); }
.footer-top { display: flex; flex-direction: column; gap: 40px; }
.footer-logo { display: block; width: 161.6px; height: 46.97px; overflow: hidden; color: var(--l-paper); }
.footer-main { display: flex; flex-direction: column-reverse; gap: 48px; margin-top: 40px; }
.signup { display: grid; grid-template-columns: 100%; row-gap: 24px; column-gap: 40px; align-content: start; }
.signup-title { font-family: var(--l-font-serif); font-weight: 400; font-size: 28px; line-height: 35px; letter-spacing: -0.7px; color: var(--l-ink-soft); }
.signup-form { position: relative; height: 64px; }
.signup-label {
  position: absolute;
  left: 20px;
  top: 32px;
  z-index: 1;
  width: calc(100% - 68px);
  overflow: hidden;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  color: var(--l-ink-label);
  pointer-events: none;
  transform-origin: left top;
  transition: all var(--l-label) var(--l-ease-label);
}
.signup-input {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 40px;
  padding: 8px 48px 8px 20px;
  border: 0;
  border-radius: var(--l-radius-md);
  background: var(--l-ink);
  color: var(--l-paper);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 0 var(--l-white-06);
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.signup-input:focus { outline: none; }
.signup-input:focus-visible { outline: 2px solid var(--l-white-50); outline-offset: 0; }
.signup-input:focus + .signup-submit, .signup-form:focus-within .signup-label, .signup-input:not(:placeholder-shown) ~ .signup-label { color: var(--l-paper); }
.signup-form:focus-within .signup-label, .signup-form.has-value .signup-label { transform: translateY(-32px) scale(0.75); }
.signup-submit {
  position: absolute;
  right: 8px;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--l-radius-sm);
  background: transparent;
  color: var(--l-white-60);
  cursor: pointer;
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--l-fast);
  transition-timing-function: var(--l-ease);
}
.signup-submit:hover { color: var(--l-white); }
.signup-submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.signup-done { position: absolute; left: 0; top: 0; font-size: 14px; line-height: 21px; color: var(--l-paper); }
.signup-done:empty { display: none; }
.signup-form.is-done .signup-label, .signup-form.is-done .signup-input, .signup-form.is-done .signup-submit { visibility: hidden; }
.signup-privacy { display: none; font-size: 12px; line-height: 18px; color: var(--l-ink-soft); }
.signup-privacy a { text-underline-offset: 3px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 32px; align-content: start; min-height: 568px; }
.footer-col h2 { margin-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: var(--l-bold); color: var(--l-ink-soft); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 16px; line-height: 24px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-rule { height: 1px; margin-top: 40px; background: var(--l-ink); }
.legal { display: grid; grid-template-columns: 100%; row-gap: 24px; margin-top: 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-links li { font-size: 12px; line-height: 18px; }
.legal-links a, .legal-btn { font-size: 12px; line-height: 16px; color: var(--l-ink-soft); text-decoration: none; }
.legal-links a:hover, .legal-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-btn { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.legal-links li:first-child a { display: inline-block; min-width: 106.86px; }
.copyright, .credits { font-size: 12px; line-height: 18px; color: var(--l-ink-soft); }
@media (min-width: 768px) {
  .signup { grid-template-columns: 440px 240px; grid-template-rows: auto 18px; row-gap: 8px; }
  .signup-title { grid-column: 1; grid-row: 1; font-size: 32px; line-height: 40px; letter-spacing: -0.8px; }
  .signup-form { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); min-height: 304px; }
  .legal { row-gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .hide-md { display: none; } }
@media (min-width: 1024px) {
  .footer-top { flex-direction: row; gap: 8px; }
  .footer-main { flex-direction: row; margin-top: 64px; }
  .signup { flex: none; width: 256px; grid-template-columns: 256px; grid-template-rows: none; row-gap: 32px; }
  .signup-title { grid-column: auto; grid-row: auto; font-size: 40px; line-height: 50px; letter-spacing: -1px; }
  .signup-form { grid-column: auto; grid-row: auto; align-self: auto; width: 241px; }
  .signup-privacy { display: block; }
  .footer-cols { flex: 1; min-width: 0; grid-template-columns: repeat(3, 1fr); row-gap: 0; align-content: stretch; min-height: 424px; }
}
@media (min-width: 1280px) {
  .signup { width: 384px; grid-template-columns: 384px; }
  .signup-form { width: 320px; }
  .footer-cols { min-height: 328px; }
}
@media (min-width: 1440px) { .footer-cols { min-height: 304px; } }

/* ---------------------------------------------------------------- scroll entrances (landing.js adds .reveal-on when motion is allowed) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--l-reveal) var(--l-ease-out), transform var(--l-reveal) var(--l-ease-out); }
.reveal-on [data-reveal="fade"] { transform: none; transition: opacity var(--l-reveal) var(--l-ease-out); }
.reveal-on [data-reveal="blur"] { transform: none; filter: blur(5px); transition: opacity var(--l-reveal) var(--l-ease-out), filter var(--l-reveal) var(--l-ease-out); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------------- reduced motion: everything still, nothing waits */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  .card-media, .news-img { transform: none !important; top: -5%; }
}
