/* =========================================================
   Oncoverse — site stylesheet
   Light + dark themes share one token set. Theme is set on
   <html data-theme="light|dark"> by assets/js/site.js.
   ========================================================= */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;

  /* brand (from the Oncoverse mark) */
  --brand-ocean: #086187;
  --brand-teal: #18b99f;

  /* light theme — paper tone matches the App Store / Play Store graphics */
  --bg: #f6f4ea;
  --bg-alt: #eeebdd;
  --surface: #ffffff;
  --ink: #0e3b42;
  --ink-soft: #3f5f66;
  --ink-faint: #6b8287;
  --line: #d9d5c3;
  --line-soft: #e6e2d3;
  --accent: #086187;
  --accent-hover: #064d6b;
  --on-accent: #ffffff;
  --highlight: #18b99f;
  --band: #0b4a55;
  --band-ink: #e9f3f0;
  --band-soft: #a9cdc8;
  --journey-a: #086187;
  --journey-b: #18b99f;
  --focus: #0a7cad;
  --shadow-phone: 0 40px 80px -30px rgba(11, 74, 85, 0.45), 0 12px 24px -12px rgba(11, 74, 85, 0.25);
  --notice-bg: #fbfaf4;

  --radius-card: 20px;
  --radius-input: 12px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #071f25;
  --bg-alt: #0a2830;
  --surface: #0e3039;
  --ink: #e6f0ec;
  --ink-soft: #aac3be;
  --ink-faint: #7f9d98;
  --line: #1f4751;
  --line-soft: #173b44;
  --accent: #3fd3b6;
  --accent-hover: #6ee2cb;
  --on-accent: #042127;
  --highlight: #3fd3b6;
  --band: #041a1f;
  --band-ink: #e6f0ec;
  --band-soft: #8fb3ad;
  --journey-a: #4aa6d0;
  --journey-b: #3fd3b6;
  --focus: #7fe3cf;
  --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(63, 211, 182, 0.08);
  --notice-bg: #0a2830;

  color-scheme: dark;
}

/* ---------- 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(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; color: var(--ink); flex-shrink: 0; }
.brand svg { height: 40px; width: auto; }
.brand:hover { color: var(--ink); }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-list a:hover { color: var(--ink); background: var(--line-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover,
.menu-toggle:hover { background: var(--line-soft); }
.theme-toggle svg,
.menu-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }
.site-header.nav-open .menu-toggle .icon-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 20px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { height: 52px; width: auto; }
.store-badge[data-pending] { position: relative; }
.store-note { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-faint); max-width: 44ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(150px, 15vw, 220px);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 11ch;
}
.hero-lede {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-actions { margin-top: 36px; }
.hero-secondary {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration-thickness: 1.5px;
}
.hero-secondary:hover { color: var(--accent); }

.hero-visual {
  --pw: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}

/* the journey line: loops that unwind into a calm path */
.journey {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}
.journey svg { width: 100%; height: 100%; overflow: visible; }
.journey path {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey .journey-mobile { display: none; }
.journey .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-journey 2.6s cubic-bezier(0.55, 0.08, 0.25, 1) 0.2s forwards;
}
@keyframes draw-journey { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .journey .draw { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Phone mockup (HTML rebuild of the app home screen) ---------- */
.phone {
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19.3;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(145deg, #2a3236, #11171a 55%, #252d31);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #eef4f3;
  font-family: var(--font-display);
  color: #10343a;
  display: flex;
  flex-direction: column;
}
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 27px;
  border-radius: 999px;
  background: #0b0f11;
  z-index: 3;
}
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 0 28px;
  font-size: 13px;
  font-weight: 700;
  height: 44px;
}
.app-status .sig { display: flex; gap: 4px; align-items: center; }
.app-status .sig i { display: block; background: #10343a; border-radius: 2px; }
.app-body { padding: 10px 14px 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.app-hello { display: flex; align-items: center; gap: 10px; }
.app-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #0d5a62; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.app-hello small { display: block; font-size: 11px; color: #6f8a8f; font-weight: 500; line-height: 1.2; }
.app-hello strong { font-size: 14px; line-height: 1.2; }
.app-report {
  position: relative;
  overflow: hidden;
  background: #0d5a62;
  color: #fff;
  border-radius: 20px;
  padding: 14px;
}
.app-report::after {
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}
.app-report .tile {
  width: 30px; height: 30px; border-radius: 8px;
  background: #fff; color: #18b99f;
  display: grid; place-items: center;
}
.app-report .tile svg { width: 17px; height: 17px; }
.app-report h4 { color: #fff; font-size: 14.5px; margin-top: 10px; letter-spacing: 0; }
.app-report p { font-size: 10.5px; line-height: 1.4; margin-top: 4px; color: rgba(255,255,255,0.86); font-weight: 500; }
.app-report .row { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.app-report .row span {
  flex: 1; text-align: center; background: #fff; color: #10343a;
  border-radius: 999px; font-size: 11px; font-weight: 700; padding: 8px 4px;
}
.app-report .row span + span { flex: 0.75; }
.app-card { background: #fff; border-radius: 18px; padding: 12px; }
.app-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.app-card-head svg { width: 13px; height: 13px; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.app-tile { border-radius: 14px; padding: 10px; border: 1px solid; }
.app-tile .ic { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.app-tile .ic svg { width: 12px; height: 12px; }
.app-tile b { display: block; font-size: 11.5px; line-height: 1.2; }
.app-tile small { display: block; font-size: 9.5px; color: #7a8d91; font-weight: 500; }
.app-tile.pink { background: #fdeef0; border-color: #f5c0c6; }
.app-tile.pink .ic { color: #e03a4e; }
.app-tile.blue { background: #eef0fd; border-color: #c5cdf6; }
.app-tile.blue .ic { color: #3558e0; }
.app-rx { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: #f3f7f7; border-radius: 12px; padding: 8px; }
.app-rx .ic { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #3558e0; flex-shrink: 0; }
.app-rx .ic svg { width: 13px; height: 13px; }
.app-rx b { display: block; font-size: 11px; }
.app-rx small { display: block; font-size: 9.5px; color: #7a8d91; }
.app-nav {
  display: flex; justify-content: space-around;
  background: #fff; padding: 9px 8px 18px;
  font-size: 9.5px; font-weight: 600; color: #8a9a9e;
  border-top: 1px solid #e3ecec;
}
.app-nav span { display: grid; justify-items: center; gap: 3px; }
.app-nav svg { width: 16px; height: 16px; }
.app-nav .on { color: #0d5a62; }
.app-fab {
  position: absolute; right: 14px; bottom: 68px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #2f7c86; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(13, 90, 98, 0.35);
}
.app-fab svg { width: 17px; height: 17px; }

.hero-chip {
  position: absolute;
  left: calc(50% - var(--pw) / 2 - 172px);
  bottom: 12%;
  width: 230px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 40px -20px rgba(11, 74, 85, 0.35);
  z-index: 3;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.hero-chip .ic {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--highlight) 16%, transparent);
  color: var(--highlight);
}
.hero-chip .ic svg { width: 18px; height: 18px; }
.hero-chip strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 0.9375rem; margin-bottom: 2px; }

/* ---------- Sections (shared rhythm) ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-title { font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; }
.section-intro { margin-top: 20px; color: var(--ink-soft); font-size: 1.1875rem; max-width: 58ch; }

/* ---------- Complexity statement ---------- */
.statement { border-top: 1px solid var(--line-soft); }
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.statement h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.statement-list { list-style: none; margin: 0; padding: 0; }
.statement-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-faint);
}
.statement-list li:first-child { border-top: 1px solid var(--line-soft); }
.statement-resolve {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
}
.statement-resolve::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--journey-a), var(--journey-b));
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature { border-top: 1.5px solid var(--ink); padding-top: 24px; }
html[data-theme="dark"] .feature { border-top-color: var(--line); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.375rem; line-height: 1.25; }
.feature p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- Screens gallery (dark band) ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .section-title,
.band h3 { color: var(--band-ink); }
.band .section-intro { color: var(--band-soft); }
.screens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}
.screens figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--band-soft); line-height: 1.4; }

/* ---------- How it works (steps on the journey line) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  --g: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--g);
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  left: 24px;
  right: calc((100% - 3 * var(--g)) / 4 - 24px);
  top: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--journey-a), var(--journey-b));
  border-radius: 2px;
}
.step { position: relative; counter-increment: step; }
.step-dot {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 2px solid var(--highlight);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
}
.step-dot::before { content: counter(step); }
.step:last-child .step-dot { background: var(--highlight); color: var(--on-accent); border-color: var(--highlight); }
html[data-theme="light"] .step:last-child .step-dot { color: #fff; }
.step h3 { margin-top: 24px; font-size: 1.3125rem; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- Built around patients / About ---------- */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about .about-grid .section-title { font-size: 1.25rem; letter-spacing: 0; color: var(--highlight); }
html[data-theme="light"] .about .about-grid .section-title { color: var(--accent); }
.about-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 20px 0 0;
}
.about-body p { color: var(--ink-soft); }
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--ink); }

/* ---------- Clinicians ---------- */
.clinic-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.clinic-grid .section-head { margin-bottom: 0; }
.clinic-grid .btn { margin-top: 32px; }
.clinic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.clinic-list li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.clinic-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.clinic-list li:nth-child(even) { padding-left: 28px; padding-right: 0; }
.clinic-list .ic { color: var(--accent); margin-bottom: 14px; }
.clinic-list .ic svg { width: 24px; height: 24px; }
.clinic-list h3 { font-size: 1.1875rem; }
.clinic-list p { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Testimonials ---------- */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.quote {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px 28px 28px;
}
.quote-mark { width: 32px; height: 32px; color: var(--highlight); }
.quote blockquote { margin: 18px 0 0; font-size: 1.1875rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.quote figcaption strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.quote figcaption span { font-size: 0.9375rem; color: var(--ink-faint); }

/* ---------- FAQ + contact ---------- */
.help-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); }
.faq summary .pm::before,
.faq summary .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.75px; background: var(--ink);
  translate: -50% -50%; border-radius: 2px;
  transition: rotate 0.2s ease;
}
.faq summary .pm::after { rotate: 90deg; }
.faq details[open] .pm::after { rotate: 0deg; }
.faq details[open] .pm { border-color: var(--highlight); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 12px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: 100px;
}
.contact-card h3 { font-size: 1.625rem; }
.contact-card > p { margin-top: 8px; color: var(--ink-soft); }
.form { margin-top: 24px; display: grid; gap: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .btn { width: 100%; }
.form-status { min-height: 1.5em; font-size: 1rem; }
.form-status.ok { color: #13866f; }
.form-status.err { color: #c2364a; }
html[data-theme="dark"] .form-status.ok { color: #5fe0c4; }
html[data-theme="dark"] .form-status.err { color: #ff8b9a; }
.success-msg { margin: 0; color: #13866f; font-size: 1rem; }
.error-msg { margin: 0; color: #c2364a; font-size: 1rem; }
html[data-theme="dark"] .success-msg { color: #5fe0c4; }
html[data-theme="dark"] .error-msg { color: #ff8b9a; }
.form-fine { font-size: 0.875rem; color: var(--ink-faint); }

/* ---------- Download band ---------- */
.download { text-align: left; }
.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 32px;
  background: var(--band);
  color: var(--band-ink);
  position: relative;
  overflow: hidden;
}
.download-inner h2 { color: var(--band-ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 16ch; }
.download-inner p { color: var(--band-soft); margin-top: 14px; max-width: 46ch; }
.download-inner .store-note { color: var(--band-soft); }

/* ---------- Medical notice ---------- */
.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--notice-bg);
}
.notice .ic { color: var(--accent); }
.notice .ic svg { width: 28px; height: 28px; }
.notice h2 { font-size: 1.375rem; }
.notice p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; max-width: 80ch; }
.notice p.emphasis { color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.footer-brand { color: var(--ink); }
.footer-brand svg { height: 44px; width: auto; }
.footer-about { margin-top: 18px; color: var(--ink-soft); font-size: 1rem; max-width: 34ch; }
.footer-h { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 16px; color: var(--ink); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 1rem; color: var(--ink-soft); }
.footer-contact svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.footer-contact small { display: block; font-size: 0.8125rem; color: var(--ink-faint); }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-social { margin-top: 28px; display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
}
.footer-social a:hover { border-color: var(--ink-soft); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem; color: var(--ink-faint);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); }
.legal-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; }
.legal-hero p { margin-top: 18px; max-width: 56ch; color: var(--ink-soft); font-size: 1.1875rem; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc p { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--line); }
.legal-toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1.5px;
  border-left: 1.5px solid transparent;
  color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; line-height: 1.35;
}
.legal-toc a:hover { color: var(--ink); border-left-color: var(--highlight); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: 24px; }
.prose p,
.prose ul { margin-top: 12px; color: var(--ink-soft); }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--highlight); }
.prose strong { color: var(--ink); }
.prose .lead-p { font-size: 1.1875rem; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 240px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .screens li { scroll-snap-align: start; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-header.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 14px 12px; font-size: 1.125rem; border-radius: 12px; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 12ch; }
  .hero-visual { margin-top: 24px; }
  .journey { height: 130px; bottom: 8px; }
  .journey .journey-desktop { display: none; }
  .journey .journey-mobile { display: block; }

  .statement-grid,
  .about-grid,
  .clinic-grid,
  .help-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .brand svg { height: 34px; }
  .hero-title { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .hero-visual { --pw: 272px; }
  .hero-chip { display: none; }
  .feature-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps::before { display: block; left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--journey-a), var(--journey-b)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .step h3 { margin-top: 10px; }
  .step p { grid-column: 2; }
  .clinic-list { grid-template-columns: 1fr; }
  .clinic-list li,
  .clinic-list li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .clinic-list li:nth-child(odd) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .store-badge img { height: 48px; }
}
