/* Public landing page (templates/landing.html), redesigned 2026-10.
   Self-contained: the app's Tailwind/app.css are NOT loaded here. Motion lives in
   static/js/landing.js: the hero particle field, module previews and the three
   scroll-driven walk-throughs (visit, head CT, breast ultrasound). */
/* Layout concept: a white clinical page in the current MedScribe teal. Motion
   lives in four instruments: the hero's particle field (behind everything),
   and three scroll-driven walk-throughs — the visit, head CT, ultrasound. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f4f8f7;
  --ink: #10201f;
  --text: #2c3d3b;
  --muted: #5b716e;
  --line: #e1eae8;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --teal-soft: #e6f4f1;
  --red: #e11d48;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --scan-bg: #05090b;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --head: 4.1rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.sec--tint { background: var(--tint); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--teal); margin-bottom: .8rem; }
.intro { max-width: 40rem; margin-top: 1.1rem; color: var(--muted); font-size: 1.12rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 10px; font: 600 1rem var(--font); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.btn:hover { border-color: #b9cfcb; }
.btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--primary:hover { background: #0b5f59; border-color: #0b5f59; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 2rem; height: var(--head); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.brand svg { width: 1.9rem; height: 1.9rem; color: var(--teal); }
.brand small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.nav { display: flex; gap: 1.6rem; font-size: .96rem; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: .7rem; font-size: .88rem; color: var(--muted); }
.lang b { color: var(--ink); font-weight: 600; }
.top .btn { padding: .55rem 1rem; font-size: .93rem; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 440px) { .lang, .brand small { display: none; } }

/* hero: the particle canvas sits behind the whole section */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; pointer-events: none; }
.hero a, .hero button { pointer-events: auto; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.hero .intro { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__sub { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.field { position: relative; aspect-ratio: 1 / 1; max-width: 100%; }
.field__label { position: absolute; left: 0; right: 0; bottom: -.4rem; font-size: .85rem; color: #93a7a4; display: flex; justify-content: center; gap: 1.1rem; }
.field__label span { transition: color .4s; }
.field__label span.on { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .field { max-width: 24rem; width: 100%; margin-inline: auto; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); background: rgba(255, 255, 255, .78); }
.fact { padding: 1.4rem 1.4rem 0 0; min-width: 0; }
.fact + .fact { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.fact b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; }
.fact span { font-size: .93rem; color: var(--muted); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 460px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.2rem; } }

/* modules */
.mods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.mod { grid-column: span 2; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; background: #fff; min-width: 0; display: flex; flex-direction: column; gap: .7rem; transition: border-color .25s, box-shadow .25s; }
.mod:hover { border-color: #c5d8d4; box-shadow: 0 14px 34px -22px rgba(16, 32, 31, .35); }
.mod--wide { grid-column: span 3; }
.mod__ic { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.mod__ic svg { width: 1.35rem; height: 1.35rem; }
.mod h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.mod p { color: var(--muted); font-size: .98rem; }
.mod ul { margin: .2rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .93rem; color: var(--text); }
.mod li { padding-left: 1rem; position: relative; }
.mod li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--teal); }
.acc { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .86rem; }
.acc div { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 3.3rem); align-items: center; padding: .5rem .7rem; border-top: 1px solid var(--line); }
.acc div:first-child { border-top: 0; color: var(--muted); font-size: .78rem; background: var(--tint); }
.acc div span:not(:first-child) { justify-self: center; }
.sw { width: 2rem; height: 1.15rem; border-radius: 999px; background: #cfdcda; position: relative; transition: background .35s; display: inline-block; vertical-align: middle; }
.sw::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; transition: transform .35s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sw.on { background: var(--teal-2); }
.sw.on::after { transform: translateX(.85rem); }
@media (max-width: 900px) { .mod, .mod--wide { grid-column: span 3; } }
@media (max-width: 620px) { .mods { grid-template-columns: minmax(0, 1fr); } .mod, .mod--wide { grid-column: auto; } }

/* scroll-driven walk-throughs (visit, CT, ultrasound) */
.scrolly { position: relative; height: 380vh; }
.scrolly--tint { background: var(--tint); }
.scrolly__stick { position: sticky; top: calc(var(--head) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--head)); display: grid; align-items: center; }
.scrolly__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.scrolly--flip .scrolly__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.scrolly--flip .scrolly__text { order: 2; }
.steps { display: grid; gap: 1.4rem; margin-top: 2rem; }
.st { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .9rem; opacity: .38; transition: opacity .4s; }
.st.on { opacity: 1; }
.st i { font-style: normal; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 600; color: var(--muted); transition: all .4s; }
.st.on i { background: var(--teal); border-color: var(--teal); color: #fff; }
.st h3 { font-size: 1.12rem; font-weight: 600; }
.st p { color: var(--muted); font-size: .96rem; margin-top: .2rem; }
.st__bar { grid-column: 2; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: .5rem; }
.st__bar b { display: block; height: 100%; width: 0; background: var(--teal); }
@media (max-width: 880px) {
  .scrolly__grid, .scrolly--flip .scrolly__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .scrolly--flip .scrolly__text { order: 0; }
  .scrolly__text h2, .scrolly__text .intro { display: none; }
  .steps { margin-top: 0; }
  .st:not(.on) { display: none; }
}

/* the app window (visit) */
.app { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -36px rgba(16, 32, 31, .45); overflow: hidden; min-width: 0; }
.app__bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: #0c3a36; color: #e6f4f1; font-size: .85rem; white-space: nowrap; overflow: hidden; }
.app__bar b { font-weight: 600; }
.app__bar span { color: #9cc7c0; overflow: hidden; text-overflow: ellipsis; }
.app__steps { display: flex; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); overflow: hidden; }
.app__steps span { display: flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 8px; transition: all .3s; white-space: nowrap; }
.app__steps span.on { background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.app__steps span.done::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--teal-2); }
.app__body { position: relative; height: clamp(20rem, 52vh, 27rem); }
.pane { position: absolute; inset: 0; padding: 1.2rem 1.3rem; opacity: 0; transition: opacity .35s; overflow: hidden; }
.pane.on { opacity: 1; }
.rec { display: grid; place-items: center; align-content: center; gap: 1.2rem; height: 100%; text-align: center; }
.mic { width: 5.4rem; height: 5.4rem; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: #fff; position: relative; }
.mic::before, .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-2); animation: ring 2.2s infinite; }
.mic::after { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.mic svg { width: 2rem; height: 2rem; }
#recWave { width: min(26rem, 90%); height: 3.5rem; }
.rec__t { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.rec__t small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.turn { display: flex; gap: .6rem; margin-bottom: .65rem; max-width: 88%; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.turn.show { opacity: 1; transform: none; }
.turn.pt { margin-left: auto; flex-direction: row-reverse; }
.turn em { font-style: normal; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--teal-soft); color: var(--teal); }
.turn.pt em { background: #ede9fe; color: #6d28d9; }
.turn div { padding: .5rem .8rem; border-radius: 12px; background: #f1f8f6; font-size: .92rem; color: var(--ink); }
.turn.pt div { background: #f6f4fd; }
.turn small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rowx { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: .65rem .9rem; border-top: 1px solid var(--line); font-size: .9rem; }
.rowx:first-child { border-top: 0; }
.rowx b { color: var(--teal); font-weight: 600; }
.rowx span { color: var(--ink); min-height: 1.4em; }
@media (max-width: 480px) { .rowx { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }
.flagbox { margin-bottom: .8rem; padding: .7rem .85rem; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: .88rem; color: #78350f; opacity: 0; transition: opacity .4s; }
.flagbox.show { opacity: 1; }
mark.fl { background: var(--amber-soft); box-shadow: inset 0 -2px 0 var(--amber); color: inherit; border-radius: 3px; padding: 0 .12em; }
.emr { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; border: 1px solid #d5dde1; border-radius: 10px; overflow: hidden; background: #f3f5f6; }
.emr__url { padding: .45rem .7rem; background: #e3e8eb; font-size: .78rem; color: #52606d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emr__form { padding: .9rem; display: grid; gap: .45rem; align-content: start; }
.emr__form label { font-size: .72rem; color: #616e7c; }
.emr__form div { min-height: 2rem; padding: .38rem .6rem; border: 1px solid #cbd2d9; border-radius: 6px; background: #fff; font-size: .86rem; color: #1f2933; transition: border-color .3s, box-shadow .3s; }
.full { border-color: var(--teal-2) !important; box-shadow: 0 0 0 3px rgba(20, 184, 166, .14); }
.emr__note { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* imaging instruments */
.instr { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(16, 32, 31, .45); min-width: 0; }
.viewer__img { position: relative; background: var(--scan-bg); aspect-ratio: 16 / 10; max-width: 100%; }
.viewer__img canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: .8rem; right: .8rem; top: .7rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .74rem; color: #9fb3b0; font-variant-numeric: tabular-nums; pointer-events: none; }
.hud--b { top: auto; bottom: .7rem; }
.hud .ai { color: #fda4af; font-weight: 600; opacity: 0; transition: opacity .3s; }
.hud .ai.show { opacity: 1; }
.instr__info { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .8rem; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.kv div { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; min-width: 0; transition: border-color .3s, background .3s; }
.kv span { display: block; font-size: .76rem; color: var(--muted); }
.kv b { font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.kv .hot { border-color: #fecdd3; background: #fff1f2; }
.kv .hot b { color: var(--red); }
.wl { position: relative; height: 7.6rem; }
.wl div { position: absolute; left: 0; right: 0; height: 2.3rem; display: grid; grid-template-columns: .6rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; background: #fff; transition: top .55s cubic-bezier(.2, .7, .2, 1), border-color .3s, background .3s; }
.wl div[data-pos="0"] { top: 0; } .wl div[data-pos="1"] { top: 2.65rem; } .wl div[data-pos="2"] { top: 5.3rem; }
.wl i { width: .55rem; height: .55rem; border-radius: 50%; background: #cbd5d3; }
.wl .urgent.found { border-color: #fecdd3; background: #fff1f2; }
.wl .urgent.found i { background: var(--red); }
.wl small { color: var(--muted); font-size: .78rem; }
.wl .urgent.found small { color: var(--red); font-weight: 600; }
.us-panes { position: relative; height: 12.5rem; }
.us-pane { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.us-pane.on { opacity: 1; }
.files { display: grid; gap: .45rem; }
.files div { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; }
.files em { font-style: normal; font-size: .68rem; font-weight: 700; text-align: center; padding: .2rem 0; border-radius: 5px; background: var(--teal-soft); color: var(--teal); }
.files small { color: var(--muted); }
.files .ok small { color: var(--teal); font-weight: 600; }
.mt { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.mt td { padding: .38rem .4rem; border-top: 1px solid var(--line); opacity: 0; transition: opacity .3s; }
.mt tr.show td { opacity: 1; }
.mt td:nth-child(2) { font-weight: 600; color: var(--ink); text-align: right; }
.mt td:nth-child(3) { color: var(--teal); text-align: right; width: 4rem; }
.mt tr.warn td:nth-child(3) { color: #b45309; font-weight: 600; }
.chart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12rem); gap: 1rem; align-items: center; height: 100%; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart .c { fill: none; stroke-width: 1.6; }
.chart .p50 { stroke: var(--teal); } .chart .p5, .chart .p95 { stroke: #a8bbb8; stroke-dasharray: 4 4; }
.chart text { font: 10px var(--font); fill: var(--muted); }
.chart .pt { fill: var(--teal); }
.verdict { font-size: .88rem; display: grid; gap: .5rem; }
.verdict div { padding: .5rem .65rem; border-radius: 8px; background: var(--teal-soft); color: var(--teal); }
.verdict div.amb { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.doc { height: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; font-size: .82rem; color: var(--ink); display: grid; align-content: start; gap: .35rem; background: #fcfdfd; }
.doc b { font-size: .9rem; }
.doc p { min-height: 1.2em; color: var(--text); }
.doc .fmt { margin-top: .3rem; display: flex; gap: .4rem; }
.doc .fmt span { font-size: .72rem; font-weight: 600; padding: .15rem .45rem; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }

/* control + data */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }
.grid4 h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: .45rem; padding-top: 1rem; border-top: 2px solid var(--teal); }
.grid4 p { color: var(--muted); font-size: .96rem; }
.grid4 .ex { margin-top: .7rem; font-size: .92rem; color: var(--ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin-top: 3rem; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 1.7rem; background: #fff; min-width: 0; }
.box h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.box p { color: var(--muted); }
.box dl { margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.box dl div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; font-size: .94rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.box dt { color: var(--muted); }
.box dd { margin: 0; color: var(--ink); }
@media (max-width: 460px) { .box dl div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }

/* pilot */
.pilot { background: var(--teal); color: #e6f4f1; }
.pilot h2 { color: #fff; }
.pilot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; align-items: end; }
@media (max-width: 760px) { .pilot__grid { grid-template-columns: minmax(0, 1fr); } }
.pilot p { color: #cde8e3; max-width: 38rem; margin-top: 1rem; font-size: 1.08rem; }
.pilot__act { display: grid; gap: .7rem; justify-items: start; }
.pilot .btn--light { background: #fff; color: var(--teal); border-color: #fff; }
.pilot .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.pilot__h { font-size: .9rem; color: #cde8e3; user-select: all; }
.foot { padding-block: 1.8rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }


/* teal sections */
.scrolly--teal { background: #0b3b37; }
.scrolly--teal .kicker { color: #5eead4; }
.scrolly--teal h2 { color: #fff; }
.scrolly--teal .intro, .scrolly--teal .st p { color: #a9cbc5; }
.scrolly--teal .st h3 { color: #fff; }
.scrolly--teal .st i { background: transparent; border-color: rgba(255, 255, 255, .25); color: #cde8e3; }
.scrolly--teal .st.on i { background: var(--teal-2); border-color: var(--teal-2); color: #062a27; }
.scrolly--teal .st__bar { background: rgba(255, 255, 255, .15); }
.scrolly--teal .st__bar b { background: #5eead4; }
.scrolly--teal .instr { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); border-color: rgba(255, 255, 255, .08); }
.sec--teal { background: var(--teal); }
.sec--teal .kicker { color: #99f6e4; }
.sec--teal h2, .sec--teal h3 { color: #fff; }
.sec--teal .grid4 h3 { border-top-color: #5eead4; }
.sec--teal .grid4 p { color: #cde8e3; }
.sec--teal .grid4 .ex { color: #fff; }
.sec--teal mark.fl { background: rgba(254, 243, 199, .2); color: #fef3c7; }
.pilot { background: #0b3b37; }
.hud .ai--teal { color: #5eead4; }
.found { display: grid; gap: .5rem; font-size: .92rem; }
.found b { color: var(--ink); }
.found .fmt, .doc .fmt { display: flex; gap: .4rem; flex-wrap: wrap; }
.found .fmt span { font-size: .8rem; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.found .fmt span:first-child { background: var(--teal); border-color: var(--teal); color: #fff; }
.cats { display: flex; gap: .35rem; margin-bottom: .7rem; }
.cats span { min-width: 2.6rem; text-align: center; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: #a8bbb8; transition: all .3s; }
.cats span.ok.lit { color: var(--teal); border-color: #9fd8cf; background: var(--teal-soft); }
.cats span.chosen { background: var(--teal); border-color: var(--teal); color: #fff; }
.credit { font-size: .74rem; color: var(--muted); }

/* steps: only the active one shows its description, so the column never outgrows the screen */
.st:not(.on) p { display: none; }
.steps { gap: 1.1rem; }
@media (max-height: 820px) { .scrolly__text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); } .scrolly__text .intro { display: none; } .steps { margin-top: 1.2rem; } }
.scrolly--teal .credit { color: var(--muted); }

/* modules: bento grid, a live preview in every card */
.mods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.mod { grid-column: span 2; padding: 0; overflow: hidden; gap: 0; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.mod:hover { transform: translateY(-4px); border-color: #9fd8cf; box-shadow: 0 24px 50px -30px rgba(15, 118, 110, .45); }
.mod--scribe { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.mod--ct { grid-column: span 2; }
.mod__txt { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; }
.mod__vis { position: relative; height: 11.5rem; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.mod--scribe .mod__vis { height: auto; min-height: 15rem; border-bottom: 0; border-right: 1px solid var(--line); padding: 1.2rem; display: grid; gap: .55rem; align-content: center; }
.vw { display: flex; align-items: center; gap: 3px; height: 2.6rem; }
.vw i { flex: 1; height: 20%; border-radius: 2px; background: var(--teal-2); opacity: .8; }
.mods.live .vw i { animation: vw 1.1s ease-in-out infinite; animation-delay: var(--d); }
@keyframes vw { 0%, 100% { height: 18%; } 50% { height: var(--h); } }
.vb { max-width: 85%; padding: .45rem .7rem; border-radius: 10px; font-size: .84rem; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.vb--p { margin-left: auto; background: #f6f4fd; border-color: #e9e4ff; }
.vrow { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .82rem; }
.vrow b { color: var(--teal); font-weight: 600; }
.mods.live .vb, .mods.live .vrow { animation: vin 6s infinite both; }
.mods.live .vb--p { animation-delay: .8s; } .mods.live .vrow { animation-delay: 1.6s; }
@keyframes vin { 0% { opacity: 0; transform: translateY(8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.vis-ct { background: #05090b; display: grid; place-items: center; }
.vis-ct svg { height: 92%; }
.vis-ct .bleed { stroke-dasharray: 160; stroke-dashoffset: 160; }
.mods.live .vis-ct .bleed { animation: outline 4s ease-in-out infinite; }
@keyframes outline { 0% { stroke-dashoffset: 160; fill-opacity: 0; } 45%, 85% { stroke-dashoffset: 0; fill-opacity: 1; } 100% { stroke-dashoffset: 0; fill-opacity: 0; } }
.vtag { position: absolute; left: .8rem; bottom: .7rem; padding: .2rem .55rem; border-radius: 6px; background: rgba(255, 255, 255, .92); font-size: .76rem; font-weight: 600; color: var(--ink); }
.vis-ct .vtag { color: var(--red); }
.vis-us { background: #05090b; }
.vis-us svg { width: 100%; height: 100%; display: block; }
.vis-us .les { stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.mods.live .vis-us .les { animation: les 5s ease-in-out infinite; }
@keyframes les { 0% { stroke-dashoffset: 2000; fill-opacity: 0; } 50%, 88% { stroke-dashoffset: 0; fill-opacity: 1; } 100% { stroke-dashoffset: 0; fill-opacity: 0; } }
.vis-emr { padding: 1.1rem 1.2rem; display: grid; gap: .55rem; align-content: center; }
.vf label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.vf b { display: block; height: 1.7rem; border-radius: 6px; border: 1px solid #cbd2d9; background: linear-gradient(90deg, #d7efea var(--fill, 0%), #fff var(--fill, 0%)); position: relative; }
.vf b::after { content: ""; position: absolute; left: .5rem; top: 50%; height: .35rem; border-radius: 3px; background: #9cc7c0; width: 0; transform: translateY(-50%); }
.mods.live .vf b::after { animation: fill 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fill { 0% { width: 0; } 30%, 85% { width: calc(var(--w) - 1rem); } 100% { width: calc(var(--w) - 1rem); opacity: 0; } }
.vis-adm { padding: 1rem 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem 1rem; align-content: center; }
.vs { grid-column: 1; display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--text); padding: .3rem .5rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.mods.live .vflip { animation: flip 3s steps(1) infinite; }
@keyframes flip { 0%, 49% { background: #cfdcda; } 50%, 100% { background: var(--teal-2); } }
.mods.live .vflip::after { animation: flipk 3s infinite; }
@keyframes flipk { 0%, 45% { transform: none; } 55%, 100% { transform: translateX(.85rem); } }
.vbars { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: flex-end; gap: .3rem; height: 100%; min-height: 6rem; }
.vbars i { flex: 1; height: 8%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal-2), #b7e4dc); transition: height 1s cubic-bezier(.2, .7, .2, 1); }
.mods.live .vbars i { height: var(--h); }
@media (max-width: 900px) { .mod, .mod--ct { grid-column: span 3; } .mod--scribe { grid-column: span 6; } }
@media (max-width: 620px) { .mods { grid-template-columns: minmax(0, 1fr); } .mod, .mod--ct, .mod--scribe { grid-column: auto; } .mod--scribe { grid-template-columns: minmax(0, 1fr); } .mod--scribe .mod__vis { border-right: 0; border-bottom: 1px solid var(--line); } }


/* modules: each card clearly its own object */
.mods { gap: 1.25rem; }
.mod { border: 1px solid #cfdfdb; box-shadow: 0 1px 2px rgba(16, 32, 31, .05), 0 14px 34px -26px rgba(16, 32, 31, .4); }
.mod__vis { background: #fff; border-bottom: 1px solid #dce8e5; }
.mod--scribe .mod__vis { background: #f9fcfb; border-right: 1px solid #dce8e5; }
.vis-emr, .vis-adm { background-image: linear-gradient(#eef4f2 1px, transparent 1px), linear-gradient(90deg, #eef4f2 1px, transparent 1px); background-size: 18px 18px; }
.mod__txt h3 { font-size: 1.22rem; }
.vis-ct canvas { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* language switch (a real form posting to accounts:set_language) */
.lang { display: flex; gap: .2rem; margin: 0; }
.lang button { border: 0; background: none; padding: .25rem .4rem; border-radius: 6px; font: 500 .88rem var(--font); color: var(--muted); cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.hero__sub a { color: var(--teal); font-weight: 600; }
.foot a { color: inherit; }

/* Sign-in first (2026-11-21): doctors come to the landing page to sign in. */
.btn--signin svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 100%; } }
