/* HATI website — shared styles */

:root {
  --ink: #22334f;
  --ink-soft: #4b5a73;
  --ink-mute: #6b778b;
  --brand: #344f7d;
  --slate: #52668f;
  --blush: #efb3bc;
  --blush-soft: #fbe9ec;
  --rose: #b84a62;
  --pink-strong: #cf5e7e; /* brand pink, deepened so large text stays legible */
  --ivory: #f7f5f0;
  --paper: #ffffff;
  --line: #dde2ea;
  --line-soft: #ebeef3;

  /* status colors taken from the product's own calendar */
  --st-ok: #cdeedd;
  --st-ok-ink: #2f7a55;
  --st-caution: #f6dc8a;
  --st-urgent: #f2a35e;

  --font-display: "Wanted Sans Variable", "Wanted Sans", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Wanted Sans Variable", "Wanted Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  letter-spacing: -0.005em;
  font-feature-settings: "tnum" 1;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

.measure { max-width: 36em; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--brand);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: "Crimson Text", Georgia, serif; }
.brand-name { font-size: 1.55rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-tagline {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blush); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang span,
.lang button {
  font: inherit;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--ink-mute);
}
.lang [aria-current="true"] { background: var(--ink); color: #fff; }
.lang button[disabled] { cursor: not-allowed; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { margin: auto; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--brand); }
  .nav .lang { align-self: flex-start; margin-top: 1rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-quiet:hover { border-color: var(--slate); }

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blush);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--brand); }

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-ivory { background: var(--ivory); }
.section-ink { background: var(--ink); color: #fff; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head .lede { margin-top: 1.1rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.65; max-width: 34em; }
.section-ink .section-head .lede { color: #c9d1de; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero .wrap { position: relative; }
[data-parallax-layer] { will-change: transform; }

/* ---------- brand graphics: the logo taken apart ---------- */
/* the heart as a soft pink shape, the hand as a thin navy line; shapes live in img/brand-shapes.svg */

.g { position: absolute; display: block; overflow: visible; pointer-events: none; }
.g-heart { aspect-ratio: 350.3 / 247.2; color: #f8dbe1; }
.g-line { aspect-ratio: 525.2 / 241.2; color: rgba(52, 79, 125, 0.32); }

.hero-graphic { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-graphic .g-heart { width: min(32vw, 440px); top: 2rem; right: max(-3vw, -48px); }
.hero-graphic .g-line { width: min(70vw, 980px); right: -12%; bottom: -6%; }

.page-head { position: relative; overflow: clip; }
.page-head .wrap { position: relative; z-index: 1; }
.head-graphic { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* about: heart and hand pulled slightly apart, like the logo opening up */
.head-graphic--about .g-heart { width: 230px; top: 16%; right: 11%; }
.head-graphic--about .g-line { width: 500px; top: 46%; right: 2%; }
/* contact: heart above an open hand, bleeding off the right edge */
.head-graphic--contact .g-heart { width: 150px; top: 14%; right: 9%; }
.head-graphic--contact .g-line { width: 440px; top: 42%; right: -3%; }
/* milestones: a small, whole mark beside the title */
.head-graphic--milestones .g-heart { width: 120px; top: 16%; right: 11%; }
.head-graphic--milestones .g-line { width: 300px; top: 44%; right: 6%; }

.contact-band { position: relative; overflow: clip; }
.contact-band .wrap { position: relative; z-index: 1; }
.band-graphic { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.band-graphic .g-heart { width: 170px; top: 16%; right: 18%; }
.band-graphic .g-line { width: 520px; right: -4%; bottom: 8%; }

@media (max-width: 860px) {
  .hero-graphic .g-heart { width: 46vw; top: 0.5rem; right: -12vw; }
  .hero-graphic .g-line { width: 120vw; right: -40vw; bottom: 2%; }
  .head-graphic .g-heart { width: 110px; top: 1rem; right: -18px; left: auto; }
  .head-graphic .g-line { width: 220px; right: -40px; left: auto; top: auto; bottom: 8%; }
  .band-graphic .g-heart { width: 110px; left: auto; right: -10px; }
  .band-graphic .g-line { width: 260px; right: -60px; }
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { font-size: var(--step-4); font-weight: 750; line-height: 1.2; letter-spacing: -0.035em; }
.hero .sub { margin: 1.5rem 0 2.25rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 24em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ivory) url("img/hero-poster.jpg") center / cover no-repeat;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 51, 79, 0.72);
  color: #fff;
  font: 500 0.82rem/1 var(--font-body);
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 11; }
}

/* ---------- why: numbers + people figure ---------- */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.why-copy h2 { font-size: var(--step-3); }
.why-text { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.65; max-width: 30em; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  margin: 0;
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pink-strong);
  font-variant-numeric: tabular-nums;
}
.stat-num small { margin-left: 0.12em; font-size: 0.42em; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.stat-label { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.why-copy .source { margin: 1.25rem 0 0; font-size: 0.8rem; color: var(--ink-mute); }

/* 100 people, the hospitalised share fills in pink */
.people-figure { margin: 0; justify-self: end; width: min(100%, 440px); }
.people-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px 5px; }
.person { position: relative; aspect-ratio: 3 / 4; }
.person::before,
.person::after {
  content: "";
  position: absolute;
  background: #d7dce5;
  transition: background-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 28ms);
}
.person::before { left: 50%; top: 0; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; }
.person::after { left: 14%; right: 14%; bottom: 0; height: 46%; border-radius: 999px 999px 3px 3px; }
.person.on::before,
.person.on::after { background: var(--pink-strong); }
.people-figure figcaption { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.people-figure .hl { font-weight: 650; }

.roles-row {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.roles-row li { padding-top: 0.9rem; border-top: 2px solid var(--ink); color: var(--ink-soft); font-size: 0.98rem; }
.roles-row .who { display: block; margin-bottom: 0.25rem; color: var(--ink); font-weight: 650; font-size: 1.05rem; }
.roles-row + .interval { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .person::before, .person::after { transition: none; }
}
@media (max-width: 760px) {
  .why-layout { grid-template-columns: 1fr; }
  .people-figure { justify-self: start; }
  .roles-row { grid-template-columns: 1fr; }
}

/* ---------- interval diagram (the one bold element) ---------- */
/* a light card on the dark page; it keeps its own light palette */

.interval {
  --n: 14;
  --ink: #22334f;
  --ink-mute: #6b778b;
  --brand: #344f7d;
  --line: #dde2ea;
  --line-soft: #ebeef3;
  --rose: #b84a62;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
}
.interval-grid {
  display: grid;
  grid-template-columns: 9.5rem 4.5rem repeat(var(--n), minmax(0, 1fr)) 4.5rem;
  column-gap: 6px;
  row-gap: 0;
  align-items: center;
}
.lane-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  padding-right: 0.75rem;
}
.lane-label small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 0.82rem; margin-top: 0.15rem; }

.visit {
  grid-row: 1 / 6;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  position: relative;
}
.visit::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  background: #fff;
}
.visit::after {
  content: "";
  position: absolute;
  top: 4rem;
  bottom: 0;
  left: 50%;
  border-left: 1.5px dashed #b9c3d4;
}
.visit-start { grid-column: 2; }
.visit-end { grid-column: calc(var(--n) + 3); }

.day-head {
  height: 30px;
  display: grid;
  place-items: center;
}
.day-head span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

/* placement: col 1 labels, col 2 first visit, days, last col next visit */
.interval-grid { --off: 2; }
.interval-grid .day-head,
.interval-grid .lane-row { grid-column: calc(var(--c) + var(--off)); }
.r-head { grid-row: 1; }
.r-patient, .l-patient { grid-row: 2; }
.r-guardian, .l-guardian { grid-row: 3; }
.r-note { grid-row: 4; grid-column: calc(var(--c) + var(--off)) / span 8; }
.r-summary, .l-clin { grid-row: 5; }
.l-patient, .l-guardian, .l-clin { grid-column: 1; }
.l-clin { margin-top: 1.25rem; }

.lane-row { min-height: 78px; display: flex; align-items: center; justify-content: center; }

/* patient: two check-ins per day */
.checkins { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.checkins i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line-soft);
  border: 1.5px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-drawn .checkins i { background: var(--st-ok); border-color: #9fd8bb; }
.is-drawn .day-caution .checkins i { background: var(--st-caution); border-color: #e2bf4f; }
.is-drawn .checkins i.miss { background: #fff; border-color: var(--line); border-style: dashed; }

/* guardian: sees each day; flags the caution day */
.seen {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  transition: background-color 0.35s ease;
  transition-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.is-drawn .seen { background: var(--blush); }
.is-drawn .day-caution .seen { background: var(--rose); }

.guide-note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--rose);
  font-weight: 600;
  padding-top: 0.35rem;
  white-space: nowrap;
}

/* clinician: the whole interval arrives as one summary, ending at the next visit */
.summary-bar {
  grid-column: 3 / calc(var(--n) + 3);
  margin-top: 1.25rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(82, 102, 143, 0.06), rgba(82, 102, 143, 0.22));
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1) 1.1s;
}
.is-drawn .summary-bar { clip-path: inset(0 0 0 0 round 999px); }

.interval-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.key { display: inline-flex; align-items: center; gap: 0.45rem; }
.key i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .checkins i, .seen, .summary-bar { transition: none; }
}

@media (max-width: 860px) {
  .interval { --n: 9; padding: 1.25rem 0.85rem; }
  .interval .day-extra { display: none; }
  .interval-grid { --off: 1; grid-template-columns: 3rem repeat(var(--n), minmax(0, 1fr)) 3rem; column-gap: 3px; }
  .visit { grid-row: 1 / 7; font-size: 0.72rem; text-align: center; }
  .visit-start { grid-column: 1; }
  .visit-end { grid-column: calc(var(--n) + 2); }
  .visit::before { width: 22px; height: 22px; }
  .visit::after { top: 3.4rem; }
  .l-patient, .l-guardian, .l-clin { grid-column: 2 / calc(var(--n) + 2); padding: 0.9rem 0 0.15rem; }
  .l-patient { grid-row: 2; }
  .r-patient { grid-row: 3; }
  .l-guardian { grid-row: 4; }
  .r-guardian { grid-row: 5; }
  .r-note { grid-row: 6; grid-column: 2 / calc(var(--n) + 2); }
  .l-clin { grid-row: 7; margin-top: 0.5rem; }
  .r-summary { grid-row: 8; grid-column: 1 / -1; margin-top: 0.35rem; font-size: 0.8rem; justify-content: center; }
  .checkins i { width: 11px; height: 11px; }
  .seen { width: 14px; }
  .lane-row { min-height: 40px; }
  .guide-note { white-space: normal; }
}

.hl { color: var(--pink-strong); font-style: normal; }

.bridge {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: var(--step-2);
  color: var(--brand);
}

/* ---------- product ---------- */

.role {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.role:first-of-type { border-top: 0; padding-top: 0; }
.role-guardian { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.role-copy .who { display: block; color: var(--rose); font-weight: 600; margin-bottom: 0.6rem; }
.role-copy h3 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.role-copy p { color: var(--ink-soft); }
.role-copy ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.role-copy li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; color: var(--ink); border-top: 1px solid var(--line-soft); }
.role-copy li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush);
}

.phones { display: flex; gap: clamp(0.75rem, 2vw, 1.5rem); justify-content: center; align-items: flex-start; }
.phone {
  margin: 0;
  flex: 1 1 0;
  max-width: 290px;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #1d2638;
  background: #1d2638;
  aspect-ratio: 9 / 17;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-light { border-color: #e4e7ed; background: #e4e7ed; }
.phones .phone:nth-child(2) { margin-top: 3rem; }

.screen-desk {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f2ef;
}
.screen-desk .bar { display: flex; gap: 6px; padding: 10px 12px; background: #eceae5; }
.screen-desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfccc5; }
.screen-desk img { width: 100%; }

.role-media figcaption,
.figcap { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-mute); }

.role-clinic { grid-template-columns: minmax(0, 1fr); }
.role-clinic .role-copy { max-width: 40rem; }
.clinic-shots { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.25rem; align-items: start; }
.clinic-shots .card-shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .role { grid-template-columns: 1fr; }
  .role-guardian .role-media { order: 2; }
  .clinic-shots { grid-template-columns: 1fr; }
  .clinic-shots .card-shot { max-width: 420px; }
  .phones .phone:nth-child(2) { margin-top: 1.5rem; }
}

/* ---------- product: pinned copy on the left, one screen per panel on the right ---------- */

.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.scrolly-side {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scrolly-title { margin-bottom: clamp(1.25rem, 4vh, 2.5rem); font-size: 1.1rem; font-weight: 650; color: var(--ink-soft); letter-spacing: -0.01em; }
.scrolly-role {
  margin: 0;
  font-size: clamp(3.25rem, 2rem + 4.5vw, 5.75rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--pink-strong);
}
.scrolly-head {
  margin: 0.9rem 0 0;
  max-width: 15em;
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.rot { display: inline; }
.rot-word { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding-bottom: 0.08em; }
.rot-ch { display: inline-block; }
.scrolly-body { margin-top: 1.25rem; max-width: 28em; color: var(--ink-soft); transition: opacity 0.25s ease, transform 0.25s ease; }
.scrolly-body.is-swapping { opacity: 0; transform: translateY(6px); }
.scrolly-body p { margin: 0; }
.scrolly-body ul,
.panel-copy ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.scrolly-body li,
.panel-copy li { position: relative; padding: 0.5rem 0 0.5rem 1.4rem; border-top: 1px solid var(--line-soft); color: var(--ink); }
.scrolly-body li::before,
.panel-copy li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blush);
}
/* which of the three screens is showing */
.scrolly-progress { display: flex; gap: 6px; margin: clamp(1.25rem, 4vh, 2rem) 0 0; padding: 0; list-style: none; }
.scrolly-progress li { width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: width 0.3s ease, background-color 0.3s ease; }
.scrolly-progress li.is-on { width: 40px; background: var(--brand); }

.panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); padding: 2rem 0; }
.panel .phones { width: 100%; }
.phone-video { flex: 0 1 auto; width: min(300px, 100%); max-width: none; aspect-ratio: 554 / 1218; }
.phone-video video { width: 100%; height: 100%; object-fit: cover; }
/* the caregiver demo: a 375x812 phone page scaled into the frame; it scrolls on its own when the pointer is over it */
.phone-live { position: relative; flex: 0 1 auto; width: min(300px, 100%); max-width: none; aspect-ratio: 375 / 812; --s: 0.8; border: 0; box-shadow: 0 0 0 6px #e4e7ed; }
.phone-live iframe { position: absolute; top: 0; left: 0; width: 375px; height: 812px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: #f6f3ee; }
.demo-hint { text-align: center; }
.panel-copy .who { display: block; margin-bottom: 0.4rem; color: var(--pink-strong); font-weight: 650; }
.panel-copy h3 { margin-bottom: 0.75rem; font-size: var(--step-2); }
.panel-copy p { color: var(--ink-soft); }

.clinic-stack { position: relative; margin: 0 6% 12% 0; }
.clinic-stack .card-shot {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: 36%;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(34, 51, 79, 0.45);
}
.panel .figcap { margin-top: 0.75rem; }
/* clinician: dashboard behind, the visit summary report laid over its lower right like a printed sheet */
.clinic-duo { display: grid; }
.clinic-duo > * { grid-area: 1 / 1; }
.clinic-duo .screen-desk { width: 84%; align-self: start; justify-self: start; }
.clinic-duo .report-paper { width: 52%; margin-top: 17%; align-self: start; justify-self: end; }
.clinic-duo .report-paper::after { display: none; }
/* clinician: the top of the visit summary report, laid like a sheet of paper that continues below */
.report-paper {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(34, 51, 79, 0.45);
}
.report-paper img { width: 100%; }
.report-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

@media (min-width: 861px) {
  /* the pinned column shows this copy; it stays in the panel for screen readers */
  .panel-copy { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-side { position: static; height: auto; display: block; }
  .scrolly-title { margin-bottom: 0; font-size: var(--step-3); color: var(--ink); }
  .scrolly-live { display: none; }
  .panel { min-height: 0; padding: 2.5rem 0; border-top: 1px solid var(--line); }
  .panel:first-child { border-top: 0; }
  .panel-copy { margin-bottom: 1.5rem; }
}

/* the record pipeline: a real sequence, joined by one line through the icons */
.product-status .section-head h2 { font-size: var(--step-3); }
.pipeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: 22%;
  height: 1.5px;
  background: var(--line);
}
.pipeline li { position: relative; }
.pipe-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  background: var(--paper);
  color: var(--brand);
}
.pipeline li:last-child .pipe-icon { background: var(--brand); color: #fff; }
.pipeline h3 { margin-bottom: 0.4rem; font-family: var(--font-body); font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
.pipeline p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.device-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline::before { top: 26px; bottom: 26px; left: 25px; right: auto; width: 1.5px; height: auto; }
  .pipeline li { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; }
  .pipe-icon { grid-row: 1 / 3; margin: 0; }
}

/* stage bar: how far along an item is, read from the filled segments */
.stage { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.stage i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.stage span { margin-left: 0.5rem; }
.stage[data-stage="1"] i:nth-of-type(-n+1),
.stage[data-stage="2"] i:nth-of-type(-n+2),
.stage[data-stage="3"] i { background: var(--brand); }
.stage[data-stage="3"] span { color: var(--ink); }

/* ---------- safety: rules decide, AI explains ---------- */

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 96px;
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
}
.flow li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 12px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.45);
}
.flow b { font-size: 0.98rem; font-weight: 650; }
.flow span { font-size: 0.78rem; line-height: 1.35; color: rgba(255, 255, 255, 0.7); }
.flow .is-ai { border-color: var(--blush); background: rgba(239, 179, 188, 0.14); }
.flow .is-ai b { color: var(--blush); }
.flow .is-rule { border-color: #fff; background: #fff; color: var(--brand); }
.flow .is-rule span { color: var(--slate); }
.flow-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }
.flow-key span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.flow-key .k-rule { margin-left: 1rem; background: #fff; }
.flow-key .k-ai { border: 1px solid var(--blush); background: rgba(239, 179, 188, 0.3); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(1.75rem, 5vh, 3rem);
  padding-top: clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.metric-num {
  margin: 0;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.metric-num small { margin-left: 0.08em; font-size: 0.45em; font-weight: 650; color: var(--blush); }
.metric p + p { margin: 0.6rem 0 0; font-size: 0.88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.75); }
.metrics-note { margin: 1.25rem 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li + li::before { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
}

/* ---------- evidence: the paper, then the rest ---------- */

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
/* the lead item: clinical validation, its steps in order */
.clinic-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
}
.clinic-place { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 650; color: var(--pink-strong); }
.clinic-title { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.02em; }
.clinic-steps { margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: cstep; }
.clinic-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0 0.9rem 2.1rem;
  border-top: 1px solid var(--line-soft);
  counter-increment: cstep;
}
.clinic-steps li::before {
  content: counter(cstep);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}
.clinic-steps h4 { margin: 0 0 0.2rem; font-family: var(--font-body); font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
.clinic-steps p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.clinic-note { margin: 0.75rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--ink-mute); }
.evidence .paper-line { margin: 0.1rem 0 0.35rem; font-family: "Crimson Text", Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--ink); }

.evidence { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.evidence > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.evidence h3 { margin-bottom: 0.25rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; line-height: 1.45; letter-spacing: -0.01em; }
.evidence p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--ink-soft); }
.evidence-more { margin: 1.5rem 0 0; }

@media (max-width: 760px) {
  .evidence-layout { grid-template-columns: 1fr; }
  .evidence > li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- team ---------- */

.team-teaser {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.team-teaser h2 { font-size: var(--step-3); }
.team-teaser p { color: #c9d1de; margin-top: 1.25rem; }
.section-ink .text-link { color: #fff; }
.team-people { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.team-people li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.team-people b { font-size: 1.15rem; font-weight: 650; }
.team-people span { font-size: 0.9rem; text-align: right; color: #c9d1de; }
.team-people .advisor b { color: var(--blush); }
@media (max-width: 760px) {
  .team-teaser { grid-template-columns: 1fr; }
}

/* ---------- contact teaser ---------- */

.contact-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.contact-teaser h2 { font-size: var(--step-3); }
.purposes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.purposes li { padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.92rem; }
@media (max-width: 760px) { .contact-teaser { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--ink-mute); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.2rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--ink-mute); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- sub pages ---------- */

.page-head { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); max-width: 22em; line-height: 1.3; letter-spacing: -0.03em; }
.page-head .lede { margin-top: 1.5rem; font-size: var(--step-1); color: var(--ink-soft); max-width: 32em; }

.prose h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }

/* about: how it started, a three-step story */
.story {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  counter-reset: story;
}
.story li { padding-top: 1.1rem; border-top: 2px solid var(--ink); counter-increment: story; }
.story li::before {
  content: counter(story);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--pink-strong);
}
.story li:last-child { border-top-color: var(--pink-strong); }
.story h3 { margin-bottom: 0.5rem; font-family: var(--font-body); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.story p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* about: the plan ahead */
.plan { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.plan li { position: relative; padding: 1.5rem 1.5rem 0 0; border-top: 1.5px solid var(--line); }
.plan li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--brand);
}
.plan li:first-child::before { background: var(--brand); }
.plan-when { display: block; margin-bottom: 0.4rem; font-weight: 650; color: var(--pink-strong); }
.plan h3 { margin-bottom: 0.4rem; font-family: var(--font-body); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.plan p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }

@media (max-width: 760px) {
  .story, .plan { grid-template-columns: 1fr; }
  .plan li { padding-right: 0; }
}
.prose p { color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.people { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.people li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.people .name { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; display: block; }
.people .meta { color: var(--ink-mute); font-size: 0.92rem; margin-top: 0.3rem; }
.people p { margin-top: 0.9rem; font-size: 0.97rem; color: var(--ink-soft); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter button {
  font: 500 0.92rem/1 var(--font-body);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9.5rem; top: 0.5rem; bottom: 0; border-left: 1.5px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); padding-bottom: 2.75rem; position: relative; }
.timeline > li[hidden] { display: none; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(9.5rem - 6px);
  top: 0.55rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--brand);
}
.timeline .when { font-weight: 600; color: var(--brand); padding-right: 1.5rem; font-size: 0.95rem; }
.timeline .body { padding-left: 2rem; }
.timeline h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; margin: 0.35rem 0 0.5rem; line-height: 1.45; }
.timeline p { color: var(--ink-soft); margin: 0 0 0.5rem; font-size: 0.98rem; }
.timeline .cat { font-size: 0.85rem; color: var(--ink-mute); margin-left: 0.5rem; }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline > li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline > li::before { left: 0; }
  .timeline .body { padding-left: 0; }
}

/* ---------- form ---------- */

.form { display: grid; gap: 1.4rem; max-width: 40rem; }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-mute); font-size: 0.85rem; margin-left: 0.35rem; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--font-body);
  color: var(--ink);
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  width: 100%;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(82, 102, 143, 0.18); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.field .error { color: var(--rose); font-size: 0.88rem; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { padding: 1.1rem 1.2rem; background: var(--ivory); border-radius: var(--radius-md); font-size: 0.92rem; color: var(--ink-soft); }
.consent dl { display: grid; grid-template-columns: 6rem 1fr; gap: 0.3rem 1rem; margin: 0 0 0.9rem; }
.consent dt { color: var(--ink-mute); }
.consent dd { margin: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--brand); }

.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-md); font-size: 0.97rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--st-ok); color: #1f5a3d; }
.form-status.fail { background: var(--blush-soft); color: #8c2f45; }

.contact-aside h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-weight: 600; margin-top: 1.1rem; }
.contact-aside dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }

.snap-nav { display: none; }

/* ---------- home: scroll snap, one block per screen ---------- */
/* desktop only; on phones the blocks are taller than the screen, so normal scrolling stays */

@media (min-width: 861px) and (min-height: 640px) {
  html.snap { scroll-snap-type: y mandatory; scroll-padding-top: 68px; }
  html.snap .snap-screen {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(1.5rem, 4vh, 3rem);
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
    scroll-snap-align: start;
  }
  html.snap .role.snap-screen { display: grid; align-content: center; }
  html.snap .site-footer { scroll-snap-align: end; }

  html.snap #product { padding: 0; }
  html.snap .section-head { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
  html.snap .interval { margin-top: 0; }
  html.snap .bridge { margin-top: clamp(1.5rem, 4vh, 2.5rem); }
  html.snap .product-intro .role { padding-bottom: 0; }
  html.snap .phone { max-width: 230px; }
  html.snap .phones .phone:nth-child(2) { margin-top: 1.5rem; }
  html.snap .clinic-shots { max-width: min(980px, calc((100svh - 400px) * 1.7)); }
  html.snap .role-clinic { gap: clamp(1rem, 3vh, 2rem); }
  html.snap .role-clinic .role-copy h3 { margin-bottom: 0.6rem; }
  html.snap .phone { max-width: min(230px, calc((100svh - 400px) * 0.53)); }
  html.snap .phone-video { max-width: none; width: min(300px, calc((100svh - 150px) * 0.455)); }
  html.snap .phone-live { max-width: none; width: min(300px, calc((100svh - 190px) * 0.462)); }
  html.snap .evidence > li { padding: clamp(0.7rem, 1.8vh, 1.1rem) 0; }
  html.snap .clinic-card { padding: clamp(1.1rem, 2.4vh, 1.75rem) clamp(1.25rem, 2.5vw, 2rem); }
  html.snap .clinic-steps { margin-top: clamp(0.6rem, 1.6vh, 1.1rem); }
  html.snap .clinic-steps li { padding-top: clamp(0.55rem, 1.4vh, 0.9rem); padding-bottom: clamp(0.55rem, 1.4vh, 0.9rem); }
  html.snap .clinic-steps li::before { top: clamp(0.6rem, 1.45vh, 0.95rem); }
  html.snap .clinic-note { margin-top: 0.4rem; padding-top: 0.6rem; }
  html.snap .evidence-more { margin-top: clamp(0.5rem, 1.5vh, 1.25rem); }
  html.snap #evidence .section-head .lede { margin-top: 0.6rem; }
  html.snap .hero-media { aspect-ratio: 16 / 10; max-height: calc(100svh - 330px); width: 100%; }

  /* where-am-I dots for the snapped screens */
  .snap-nav {
    position: fixed;
    top: 50%;
    right: 14px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
  }
  .snap-nav button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .snap-nav button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #b7c0cf;
    transition: height 0.25s ease, background-color 0.25s ease;
  }
  .snap-nav button[aria-current="true"]::before { height: 20px; background: var(--brand); }
  .snap-nav.on-dark button::before { background: rgba(255, 255, 255, 0.45); }
  .snap-nav.on-dark button[aria-current="true"]::before { background: var(--blush); }
}
