/* Sovara Medical website v1.2
   Layout: editorial 12-column grid, left-aligned type, deep-teal hero carrying a
   pulse line that resolves into the Sovara checkmark; product screens framed as objects. */
/* Brand typefaces, self-hosted (SIL Open Font License) */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/sora-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --teal: #1D5C6E;
  --teal-deep: #164A59;
  --teal-night: #10363F;
  --coral: #D9532F;
  --coral-text: #B03F1E;
  --light: #F3F7F7;
  --mist: #E6EEEF;
  --line: #D3DFE1;
  --ink: #1E2A33;
  --secondary: #55626A;
  --white: #FFFFFF;
  --on-teal-soft: #C9DCE0;

  --f-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --s-section: clamp(72px, 10vw, 144px);
  --radius-frame: 14px;
  --shadow-frame: 0 1px 0 rgba(16, 54, 63, .06), 0 30px 60px -28px rgba(16, 54, 63, .45);
  color-scheme: light;
}

*, *::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(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--white); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--teal); padding: 10px 16px; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: inherit; margin: 0; text-wrap: balance; }
.d1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 1.02; letter-spacing: -0.035em; }
.d2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.03em; }
.d3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.d4 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--secondary); max-width: 38em; }
p { margin: 0; max-width: 40em; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.kicker { font-family: var(--f-mono); font-size: 13px; color: var(--secondary); letter-spacing: .02em; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--light); }
.btn-ghost { border-color: currentColor; color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--light); }
.on-teal .btn-ghost { color: var(--white); }
.on-teal .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-block; font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1.5px solid var(--coral); padding-bottom: 2px; }
.text-link:hover { color: var(--teal-deep); border-bottom-width: 2.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: block; flex: none; margin-left: -14px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--light); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.nav .btn { margin-left: 12px; padding: 12px 20px; font-size: 15px; }
.nav a.btn { color: var(--white); }
.nav a.btn:hover { background: var(--teal-deep); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 600 15px var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--mist); font-size: 18px; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--coral-text); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.bg-light { background: var(--light); }
.bg-teal { background: var(--teal); color: var(--white); }
.bg-night { background: var(--teal-night); color: var(--white); }
.on-teal .lede, .on-teal p { color: var(--on-teal-soft); }
.on-teal .kicker { color: var(--on-teal-soft); }
.on-teal a:not(.btn) { color: var(--white); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 48px; }
.c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; } .c-12 { grid-column: 1 / -1; }
.push-7 { grid-column: 8 / -1; } .col-r6 { grid-column: 7 / -1; } .push-8 { grid-column: 9 / -1; }
@media (max-width: 900px) { .grid > * { grid-column: 1 / -1 !important; } }
.min0 { min-width: 0; }

.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.sec-head > h2 { grid-column: 1 / span 7; }
.sec-head > p { grid-column: 8 / -1; }
@media (max-width: 900px) { .sec-head > h2, .sec-head > p { grid-column: 1 / -1; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--teal); color: var(--white); overflow: hidden; padding-top: clamp(56px, 8vw, 112px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 85% -10%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { max-width: 11.5em; }
.hero .lede { color: var(--on-teal-soft); margin-top: 28px; max-width: 34em; }
.hero .btn-row { margin-top: 40px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--on-teal-soft); margin-bottom: 32px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(217,83,47,.22); }
.status.dark { color: var(--secondary); }

/* the pulse */
.pulse { display: block; width: 100%; height: auto; margin-top: clamp(48px, 6vw, 80px); overflow: visible; }
.pulse .line { fill: none; stroke: rgba(255,255,255,.88); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse .check { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; }
/* First pass draws the trace and the coral check. After that the check stays and
   the white trace keeps sweeping like a monitor: a short gap runs left to right,
   erasing the old trace just ahead of the new one. */
.pulse .line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.2s cubic-bezier(.6,.05,.25,1) .25s both, hide 0s linear 2.9s forwards; }
.pulse .check { stroke-dasharray: 1; animation: draw .5s cubic-bezier(.3,.6,.3,1) 2.3s both; }
.pulse .trace { stroke-dasharray: .93 .07; stroke-dashoffset: 1; opacity: 0; animation: show 0s linear 2.9s forwards, sweep 3.6s linear 2.9s infinite; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hide { to { opacity: 0; } }
@keyframes show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse .line, .pulse .check { animation: none; } .pulse .trace { display: none; } }

.hero-shot { padding-top: clamp(28px, 3vw, 44px); }
.hero-shot .frame { margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-tail { background: linear-gradient(180deg, transparent 0 50%, var(--white) 50% 100%); }

/* page hero (interior) */
.phero { background: var(--teal); color: var(--white); padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; right: -4%; bottom: 0; width: 46%; height: 70%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70H120L140 22L168 118L188 48L204 70H400' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat right bottom / 100% 60%; pointer-events: none; }
.phero h1 { max-width: 13em; }
.phero .lede { color: var(--on-teal-soft); margin-top: 24px; }
.crumb { font-family: var(--f-mono); font-size: 13px; color: var(--on-teal-soft); margin-bottom: 24px; display: block; }
.crumb a { color: var(--white); text-decoration: none; }

/* ---------- Frames ---------- */
.frame { border-radius: var(--radius-frame); overflow: hidden; background: var(--white); box-shadow: var(--shadow-frame); border: 1px solid rgba(16,54,63,.10); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #C3D1D4; }
.frame img { width: 100%; }
figure { margin: 0; }
figcaption { font-family: var(--f-mono); font-size: 12.5px; color: var(--secondary); margin-top: 14px; }
.on-teal figcaption { color: var(--on-teal-soft); }

.phone { width: 100%; max-width: 300px; border-radius: 40px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(16,54,63,.55); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.phones .phone:nth-child(2) { margin-top: 56px; }
.phones .phone:nth-child(3) { margin-top: 112px; }
@media (max-width: 700px) {
  .phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .phones .phone { scroll-snap-align: start; margin-top: 0 !important; }
}

/* ---------- Statement ---------- */
.statement { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.22; letter-spacing: -0.025em; color: var(--ink); max-width: 22em; text-wrap: balance; }
.statement strong { font-weight: 600; color: var(--teal); }

/* three systems → one */
.merge { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto minmax(0, 1.2fr); align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.merge .was { border: 1px dashed #A9BCC0; border-radius: 10px; padding: 18px 18px; color: var(--secondary); font-size: 15.5px; }
.merge .was b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.merge .arrow { width: 54px; height: 2px; background: var(--coral); position: relative; }
.merge .arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--coral); border-right: 0; }
.merge .is { background: var(--teal); color: var(--white); border-radius: 12px; padding: 22px 24px; }
.merge .is b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.merge .is span { color: var(--on-teal-soft); font-size: 15.5px; }
@media (max-width: 900px) { .merge { grid-template-columns: 1fr; } .merge .arrow { width: 2px; height: 36px; margin-left: 24px; } .merge .arrow::after { right: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 9px solid var(--coral); border-bottom: 0; } }

/* ---------- Visit stepper ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { border-bottom: 1px solid var(--line); }
.step-btn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; width: 100%; padding: 20px 4px; cursor: pointer; }
.step-btn .n { font-family: var(--f-mono); font-size: 13px; color: var(--secondary); padding-top: 5px; }
.step-btn .t { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--secondary); transition: color .2s; }
.step-btn .x { grid-column: 2; font-size: 16px; color: var(--secondary); display: none; }
.step-btn[aria-selected="true"] .t { color: var(--teal); }
.step-btn[aria-selected="true"] .n { color: var(--coral-text); }
.step-btn[aria-selected="true"] .x { display: block; }
.step-btn:hover .t { color: var(--teal); }
.step-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }
.visit-view { position: sticky; top: 100px; }
.visit-view img { transition: opacity .25s; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .visit-view { position: static; order: -1; } }

/* ---------- Split (two practice types) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split > a { display: block; padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 56px) 0; text-decoration: none; color: inherit; }
.split > a + a { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 48px); }
.split h3 { margin-bottom: 16px; }
.split p { color: var(--secondary); }
.split ul { margin: 24px 0 28px; }
.split .go { font-weight: 600; color: var(--teal); border-bottom: 1.5px solid var(--coral); padding-bottom: 2px; }
.split > a:hover .go { border-bottom-width: 2.5px; }
.split > a:hover h3 { color: var(--teal); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split > a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* ticks list */
:where(.ticks) { margin: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 62 88'%3E%3Cpath d='M5 38L23 75L49 5' fill='none' stroke='%23D9532F' stroke-width='11' stroke-linejoin='bevel'/%3E%3C/svg%3E") no-repeat center / contain; }
.on-teal .ticks li { color: var(--white); }

/* ---------- Receipt (payments motif) ---------- */
.receipt { background: var(--white); color: var(--ink); border-radius: 6px; padding: 28px 28px 24px; font-family: var(--f-mono); font-size: 14px; line-height: 1.9; box-shadow: var(--shadow-frame); max-width: 420px; position: relative; font-variant-numeric: tabular-nums; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--white) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--white) 0) 0 0 / 14px 10px repeat-x; }
.receipt .r-h { display: flex; justify-content: space-between; color: var(--secondary); font-size: 12.5px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.receipt .row { display: flex; gap: 8px; }
.receipt .row span:first-child { white-space: nowrap; }
.receipt .row .dots { flex: 1; overflow: hidden; color: #A9BCC0; }
.receipt .row .dots::before { content: "................................................................................"; }
.receipt .row span:last-child { white-space: nowrap; }
.receipt .muted { color: var(--secondary); }
.receipt .total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-weight: 600; }
.receipt .ok { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .04em; color: var(--teal); }
.receipt .ok svg { width: 22px; height: 30px; flex: none; }
.receipt .ok small { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; color: var(--secondary); font-size: 12.5px; margin-left: auto; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 140px); }
.feature.flip > :first-child { order: 2; }
.feature .copy { min-width: 0; }
.feature .copy > * + * { margin-top: 20px; }
.feature .copy .ticks { margin-top: 28px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--teal); }
.chip.planned { background: #FBEDE8; color: var(--coral-text); }
.on-teal .chip { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- Module index (platform page) ---------- */
.modules { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mod-nav { position: sticky; top: 104px; }
.mod-nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.mod-nav a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--secondary); text-decoration: none; font-size: 15.5px; }
.mod-nav a:hover { color: var(--teal); }
.mod-nav a.active { color: var(--teal); border-left-color: var(--coral); font-weight: 600; }
.mod { scroll-margin-top: 104px; padding-bottom: clamp(64px, 8vw, 112px); }
.mod + .mod { padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.mod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.mod .cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 40px; margin-top: 28px; }
.mod figure { margin-top: 40px; }
@media (max-width: 1000px) { .modules { grid-template-columns: 1fr; } .mod-nav { display: none; } }
@media (max-width: 640px) { .mod .cols { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.principles > div { padding: 36px 32px 8px 0; }
.principles > div + div { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.18); }
.principles h3 { margin-bottom: 14px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); } }

/* ---------- Roadmap (true sequence) ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: r; }
.road li { position: relative; padding: 36px 24px 0 0; border-top: 2px solid var(--line); }
.road li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); }
.road li.done { border-top-color: var(--teal); }
.road li.done::before { background: var(--teal); border-color: var(--teal); }
.road li.now::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px rgba(217,83,47,.18); }
.road .when { font-family: var(--f-mono); font-size: 12.5px; color: var(--secondary); display: block; margin-bottom: 8px; }
.road h3 { margin-bottom: 8px; }
.road p { color: var(--secondary); font-size: 16px; }
@media (max-width: 800px) { .road { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; } .road li { border-top: 0; padding: 0 0 36px 28px; } .road li::before { top: 4px; left: -8px; } }

/* ---------- Family ---------- */
.family { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); }
.family > div { padding: 28px 24px 8px 0; }
.family > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.family h3 { font-size: 19px; margin-bottom: 6px; }
.family p { font-size: 15.5px; color: var(--secondary); }
.family .chip { margin-top: 14px; }
.family .here { position: relative; }
.family .here::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--coral); }
@media (max-width: 900px) { .family { grid-template-columns: 1fr 1fr; } .family > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .family { grid-template-columns: 1fr; } .family > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- CTA band ---------- */
.cta { background: var(--teal-night); color: var(--white); padding-block: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.cta .grid { align-items: end; }
.cta p { color: var(--on-teal-soft); }
.cta-mark { position: absolute; right: clamp(-60px, -2vw, 0px); top: 50%; transform: translateY(-50%); width: clamp(160px, 22vw, 300px); opacity: .9; pointer-events: none; }
@media (max-width: 900px) { .cta-mark { display: none; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--secondary); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--f-body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29,92,110,.14); }
.field [aria-invalid="true"] { border-color: var(--coral-text); }
.field .err { color: var(--coral-text); font-size: 14.5px; margin-top: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14.5px; color: var(--secondary); }
.form-msg { border-radius: 12px; padding: 20px 22px; font-size: 16.5px; }
.form-msg.ok { background: var(--mist); color: var(--teal); }
.form-msg.ok strong { display: block; font-family: var(--f-display); font-size: 20px; margin-bottom: 4px; }
.form-msg.fail { background: #FBEDE8; color: var(--coral-text); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-card { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-card + .contact-card { margin-top: 32px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p, .contact-card address { font-style: normal; color: var(--secondary); font-size: 16.5px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); font-size: 17.5px; }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 22px; margin: 16px 0; display: grid; gap: 8px; }
.prose .updated { font-family: var(--f-mono); font-size: 13px; color: var(--secondary); margin-bottom: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C4C9; font-size: 15.5px; padding-block: clamp(64px, 7vw, 96px) 40px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.ft-brand img { height: 54px; width: auto; margin-left: -16px; }
.ft-brand p { margin-top: 18px; max-width: 26em; color: #B9C4C9; }
.ft-col h2 { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; letter-spacing: .01em; }
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-col a { color: #B9C4C9; text-decoration: none; }
.ft-col a:hover { color: var(--white); text-decoration: underline; }
.ft-legal { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; font-size: 13.5px; color: #93A1A8; }
.ft-legal p { max-width: none; }
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.center-404 { min-height: 50vh; display: grid; align-content: center; }
.note { font-size: 15px; color: var(--secondary); }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
