/* ============================================================
   Scriben for Healthcare — healthcare.scriben.ai
   Brand tokens inherited from scriben-home, cooled down: more
   white, tighter type, brass reserved for interaction. The
   clinical green marks anything that traces back to evidence.
   ============================================================ */

:root {
  --paper: #f4f2ec;
  --cream: #fbfaf7;
  --white: #ffffff;
  --ink: #15150f;
  --muted: #6b675e;
  --faint: #928d82;
  --line: rgba(21, 21, 15, 0.13);
  --hair: rgba(21, 21, 15, 0.07);
  --brass: #b8833c;
  --brass-soft: #f0e4cf;
  --green: #4d6a58;
  --green-soft: #e4ede7;
  --slate: #2b3a3f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --shell: min(1560px, calc(100vw - 80px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell { width: var(--shell); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.06; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }

/* iOS paints a big play-button overlay on any video it has not started, and
   again whenever Low Power Mode refuses autoplay. These are decorative films
   with no audio and no controls — the chrome is never wanted. */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }

.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}

/* ---------------- buttons ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px;
  font-size: 15px; font-weight: 550; letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s;
}
/* Touch devices have no hover to leave; without this the lift sticks after a tap. */
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
}
.button--solid { background: var(--ink); color: var(--cream); }
.button--solid:hover { background: #000; }
.button--ghost { border-color: var(--line); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: 68px; display: flex; align-items: center;
  background: rgba(244, 242, 236, .84);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { width: var(--shell); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 108px; height: auto; }
.brand span {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brass);
}
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.nav-cta { display: none; }   /* menu-only; the desktop header carries its own buttons */
.site-nav a {
  font-size: 14.5px; color: var(--muted); text-decoration: none;
  transition: color .25s;
}
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { padding: 10px 20px; font-size: 14px; }
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.menu-button span { display: block; height: 1.5px; background: var(--ink); margin: 5px auto; width: 20px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------------- hero: full-bleed film ---------------- */
.hero-film {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  min-height: min(86vh, 780px); display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; background: #0a0e11;
}
.hero-video {
  position: absolute; inset: -8% 0 -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: center 32%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,10,13,.90) 0%, rgba(6,10,13,.66) 42%, rgba(6,10,13,.18) 78%),
    linear-gradient(0deg, rgba(6,10,13,.72) 0%, rgba(6,10,13,0) 46%);
}
.hero-inner { position: relative; padding: 120px 0 62px; flex: 1; display: flex; align-items: flex-end; will-change: transform, opacity; }
.eyebrow--light { color: rgba(246,244,238,.62); }
.hero-film h1 {
  margin-top: 18px; color: #f7f5ef;
  font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.022em;
}
.hero-film h1 em { font-style: italic; color: var(--brass-light, #e2c58e); }
.hero-deck {
  margin-top: 22px; max-width: 540px; color: rgba(246,244,238,.78);
  font-size: 18.5px; line-height: 1.55;
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button--brass { background: var(--brass); color: #17140d; font-weight: 600; }
.button--brass:hover { background: #c9924a; }
.button--onfilm { border-color: rgba(247,245,239,.4); color: #f7f5ef; }
.button--onfilm:hover { border-color: #f7f5ef; background: rgba(247,245,239,.09); }

/* marquee strip along the base of the film */
.hero-ticker {
  position: relative; border-top: 1px solid rgba(247,245,239,.16);
  background: rgba(6,10,13,.42); backdrop-filter: blur(6px); overflow: hidden;
}
.hero-ticker-inner { display: flex; gap: 54px; white-space: nowrap; padding: 14px 0;
  animation: drift 38s linear infinite; width: max-content; }
.hero-ticker span {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(246,244,238,.62); display: inline-flex; align-items: center; gap: 54px;
}
.hero-ticker span::after { content: "·"; color: var(--brass); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------------- traceability console ---------------- */
.console {
  margin-top: 52px; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(21,21,15,.5);
}
.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px;
  border-bottom: 1px solid var(--hair); background: var(--cream);
}
.console-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.console-bar .who { font-size: 13.5px; font-weight: 560; white-space: nowrap; }
.console-bar .meta { font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.console-bar .synthetic {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass); background: var(--brass-soft); padding: 4px 10px; border-radius: 100px;
  white-space: nowrap; flex: none;
}
.console-body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
.pane { min-width: 0; }
.pane + .pane { border-left: 1px solid var(--hair); }
.pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px 12px; border-bottom: 1px solid var(--hair);
}
.pane-head h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.pane-scroll { height: 430px; overflow-y: auto; padding: 8px 0 18px; scroll-behavior: smooth; }
.pane-scroll::-webkit-scrollbar { width: 8px; }
.pane-scroll::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 4px; }

/* transcript */
.turn {
  display: grid; grid-template-columns: 46px 1fr; gap: 12px;
  padding: 9px 22px; cursor: pointer; border-left: 2px solid transparent;
  transition: background .25s, border-color .25s;
}
.turn time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding-top: 3px; transition: color .25s; }
.turn .speaker { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 2px; transition: color .25s; }
.turn p { font-size: 14.5px; line-height: 1.5; color: var(--muted); transition: color .25s; }

/* Three states, deliberately distinct: hover is the lightest touch, preview is
   the echo in the opposite pane, pinned is the one the reader chose. */
.turn:hover { background: var(--cream); }
.turn.is-preview { background: var(--green-soft); border-left-color: rgba(77,106,88,.45); }
.turn.is-preview p { color: var(--ink); }
.turn.is-lit { background: var(--green-soft); border-left-color: var(--green); }
.turn.is-lit p { color: var(--ink); }
.turn.is-lit .speaker, .turn.is-lit time { color: var(--green); }

/* note */
.note-body { padding: 16px 24px 4px; }
.note-section { margin-bottom: 18px; }
.note-section h4 {
  font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 6px;
}
.note-section p { font-size: 15px; line-height: 1.62; color: var(--ink); }
.sent {
  position: relative; cursor: pointer; border-bottom: 1.5px solid var(--green-soft);
  border-radius: 2px; padding: 1px 2px; margin: 0 -2px;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.sent:hover { background: var(--green-soft); }
.sent.is-preview { background: var(--green-soft); border-bottom-color: rgba(77,106,88,.55); }
.sent.is-lit { background: var(--green-soft); border-bottom-color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }

.sent.no-src { border-bottom: 1.5px dotted var(--brass); }
.sent.no-src:hover, .sent.no-src.is-lit, .sent.no-src.is-preview { background: var(--brass-soft); }
.sent.no-src.is-lit { box-shadow: none; border-bottom-color: var(--brass); }

/* The clock reads the pinned moment; on an unsourced line it has nothing to read. */
.console-bar .meta { transition: color .25s; }
.console-bar .meta.is-dead { color: var(--brass); }
.console-bar .srcs {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--green); background: var(--green-soft);
  padding: 3px 9px; border-radius: 100px; white-space: nowrap; flex: none;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.console-bar .srcs.is-on { opacity: 1; transform: none; }
.console-bar .srcs.is-dead { color: var(--brass); background: var(--brass-soft); }

.console-legend {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 13px 22px; border-top: 1px solid var(--hair); background: var(--cream);
  font-size: 12.5px; color: var(--muted);
}
.console-legend .key { display: inline-flex; align-items: center; gap: 7px; }
.console-legend .swatch { width: 22px; height: 0; border-bottom: 1.5px solid var(--green); }
.console-legend .swatch.dotted { border-bottom-style: dotted; border-color: var(--brass); }
.console-legend .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.console-hint { font-size: 13px; color: var(--faint); margin-top: 14px; text-align: center; }

/* ---------------- trust band ---------------- */
.trust {
  margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); }
.trust-item b { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -.02em; }

/* ---------------- generic section ---------------- */
.section { padding: 108px 0; }
.section--tight { padding: 78px 0; }
.section-head { max-width: 900px; }
.section-head h2 { font-size: clamp(40px, 5vw, 72px); margin-top: 14px; }
.section-head h2 em { font-style: normal; color: var(--brass); }
.section-head p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; }

/* ---------------- problem / film ---------------- */
.film { position: relative; margin-top: 48px; border-radius: 18px; overflow: hidden; background: #0d1114; }
.film video { width: 100%; height: clamp(340px, 52vh, 560px); object-fit: cover; opacity: .74; }
.film-copy { position: absolute; inset: auto 0 0 0; padding: 44px clamp(24px, 4vw, 56px); color: #f3f1ea;
  background: linear-gradient(0deg, rgba(6,9,11,.88), rgba(6,9,11,0)); }
.film-copy p { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.18; max-width: 700px; }
.film-copy small { display: block; margin-top: 14px; font-size: 13px; color: rgba(243,241,234,.62); }

/* ---------------- capture ---------------- */
.capture { background: var(--cream); }
.capture-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.paper-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #ded7c8; box-shadow: 0 40px 80px -46px rgba(21,21,15,.6);
  transform: rotate(-1.4deg); transition: transform .7s var(--ease);
}
.capture-media:hover .paper-frame { transform: rotate(0deg); }
.paper-frame video { width: 100%; display: block; }
.capture-caption { margin-top: 18px; font-size: 13.5px; color: var(--faint); text-align: center; }
.capture-copy h2 { font-size: clamp(40px, 4.6vw, 68px); margin: 14px 0 22px; }
.capture-copy h2 em { font-style: normal; color: var(--brass); }
.capture-lead { font-size: 18.5px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.capture-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.capture-list li {
  font-size: 16px; color: var(--muted); padding: 15px 0 15px 30px;
  border-top: 1px solid var(--line); position: relative;
}
.capture-list li:last-child { border-bottom: 1px solid var(--line); }
.capture-list li b { color: var(--ink); font-weight: 600; }
.capture-list li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 12px; height: 7px; border-left: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass);
  transform: rotate(-45deg);
}

/* ---------------- workflow ---------------- */
.flow { margin-top: 56px; border-top: 1px solid var(--line); }
.flow-step {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: opacity .5s var(--ease);
}
.js .flow-step { opacity: .42; }
.js .flow-step.is-in { opacity: 1; }
.flow-step .num { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 6px; }
.flow-step h3 { font-size: 27px; }
.flow-step p { font-size: 15.5px; color: var(--muted); padding-top: 5px; }
.flow-step .tag {
  display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); background: var(--green-soft);
  padding: 4px 10px; border-radius: 100px;
}

/* ---------------- cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); margin-top: 52px; border: 1px solid var(--line); }
.card { background: var(--paper); padding: 34px 30px 38px; }
.card h3 { font-size: 25px; margin: 12px 0 12px; }
.card p { font-size: 15px; color: var(--muted); }
.card .mark { width: 30px; height: 30px; color: var(--brass); }

/* ---------------- the three jobs ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.pillar { background: var(--paper); padding: 34px 30px 30px; }
.pillar-k { font-family: var(--mono); font-size: 12px; color: var(--brass); margin-bottom: 14px; }
.pillar h3 { font-size: 27px; margin-bottom: 12px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.pillar p b { color: var(--ink); font-weight: 600; }
.pillar-src {
  display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--green);
  text-decoration: none; border-bottom: 1px solid var(--green-soft); transition: border-color .25s;
}
.pillar-src:hover { border-bottom-color: var(--green); }

/* ---------------- E/M worksheet ---------------- */
.em { margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.em-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; border-bottom: 1px solid var(--hair); background: var(--cream);
}
.em-head h3 { font-family: var(--sans); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.em-sub { font-size: 13px; color: var(--faint); }
.em-elements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); }
.em-el { background: var(--white); padding: 22px 24px 24px; }
.em-label { font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.em-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.em-opt {
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.em-opt.is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.em-ev { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--green); }
.em-out { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 1px; background: var(--hair); border-top: 1px solid var(--hair); }
.em-verdict, .em-gap { background: var(--cream); padding: 22px 24px 26px; }
.em-code {
  font-family: var(--mono); font-size: 40px; font-weight: 600; color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
  transition: color .3s var(--ease);
}
.em-code.is-moved { color: var(--brass); }
.em-why { margin-top: 10px; font-size: 14px; color: var(--muted); }
.em-gaptext { font-size: 14px; color: var(--muted); line-height: 1.6; }
.em-gaptext b { color: var(--brass); font-weight: 600; }
.em-foot { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* ---------------- assembled claim ---------------- */
.claim { margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.claim-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; border-bottom: 1px solid var(--hair); background: var(--cream);
}
.claim-head h3 { font-family: var(--sans); font-size: 12px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.claim-tag {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.claim-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.claim-table th {
  text-align: left; font-family: var(--sans); font-size: 10.5px; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  padding: 12px 24px; border-bottom: 1px solid var(--hair);
}
.claim-table td { padding: 14px 24px; border-bottom: 1px solid var(--hair); color: var(--muted); }
.claim-table td.c { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.claim-table + .claim-table th { border-top: 1px solid var(--hair); }
.claim-foot { padding: 18px 24px 22px; font-size: 13.5px; line-height: 1.62; color: var(--faint); background: var(--cream); }
.claim-foot b { color: var(--ink); font-weight: 600; }

/* ---------------- the front desk ---------------- */
.desk { background: var(--cream); }
.desk-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.desk-copy h2 { font-size: clamp(38px, 4.4vw, 62px); margin-top: 14px; }
.desk-lead { font-size: 18.5px; line-height: 1.55; color: var(--muted); max-width: 560px; margin-top: 18px; }
.desk-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.desk-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--muted); }
.desk-list b { color: var(--ink); font-weight: 600; }

/* phone mockup — drawn, not a screenshot, because the real console holds PHI */
.phone {
  width: 100%; max-width: 360px; margin-inline: auto;
  border: 10px solid #1b1b16; border-radius: 42px; background: #1b1b16;
  box-shadow: 0 30px 60px -24px rgba(21,21,15,.45);
}
.phone-screen { background: var(--paper); border-radius: 32px; padding: 20px 16px 16px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 10px; }
.app-back { color: var(--faint); font-size: 20px; line-height: 1; }
.app-title { font-family: var(--serif); font-size: 21px; }
.app-sync { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.app-date { margin: 4px 0 16px; font-size: 12px; color: var(--faint); }
.appt {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center;
  padding: 11px 10px; border-radius: 10px; border: 1px solid var(--hair); background: var(--white); margin-bottom: 7px;
}
.appt-t { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.appt b { display: block; font-size: 13.5px; font-weight: 600; }
.appt span:not(.appt-t):not(.pill) { font-size: 11.5px; color: var(--faint); }
.appt.is-done { opacity: .62; }
.appt.is-live { border-color: var(--green); background: var(--green-soft); }
.appt.is-warn { border-color: var(--brass); background: var(--brass-soft); }
.pill {
  font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 100px; color: var(--faint); background: var(--cream); white-space: nowrap;
}
.pill--filed { color: var(--green); background: var(--green-soft); }
.pill--draft { color: var(--ink); background: #e8e5dc; }
.pill--warn { color: var(--brass); background: #fff; }
.pill--rec { color: #fff; background: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.pill--rec i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: recpulse 1.4s var(--ease) infinite; }
@keyframes recpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.app-foot { margin-top: 14px; padding: 12px 12px 14px; border-radius: 10px; background: var(--cream); border: 1px solid var(--hair); }
.app-foot p { font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.app-foot b { color: var(--ink); }

/* ---------------- engines ---------------- */
.engines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 52px; border: 1px solid var(--line); }
.engine { background: var(--paper); padding: 30px 26px 34px; }
.engine.is-key { background: var(--cream); }
.engine > .eyebrow { color: var(--brass); }
.engine h3 { font-size: 22px; margin: 10px 0 16px; }
.engine ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.engine li { font-size: 14.5px; color: var(--muted); padding-left: 15px; position: relative; }
.engine li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.engine li b { color: var(--ink); font-weight: 600; }

/* ---------------- ehr ---------------- */
.ehr-row { display: flex; align-items: center; gap: 52px; flex-wrap: wrap; margin-top: 44px; }
.ehr-row img { height: 26px; width: auto; opacity: .82; }
.ehr-row img.small { height: 20px; }
.ehr-row .mark { height: 30px; width: 30px; border-radius: 6px; }

/* ---------------- refusals ---------------- */
.refusals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); margin-top: 46px; border: 1px solid var(--line); }
.refusal { background: var(--paper); padding: 26px 24px 30px; }
.refusal h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.refusal p { font-size: 14px; color: var(--muted); }

/* ---------------- closing ---------------- */
.closing { padding: 120px 0 130px; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(46px, 7vw, 96px); }
.closing p { margin: 22px auto 0; max-width: 520px; font-size: 18px; color: var(--muted); }
.closing .hero-actions { justify-content: center; margin-top: 34px; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h5 { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14.5px; color: var(--muted); text-decoration: none; padding: 5px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand img { width: 116px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--faint); max-width: 290px; }
.footer-legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* ---------------- reveal ---------------- */
/* Content is visible by default. Only a page that has JS running hides it to
   animate it in — otherwise a blocked script leaves a blank page. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-ticker-inner { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .flow-step { opacity: 1; }
  .button:hover { transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .capture-grid { grid-template-columns: 1fr; gap: 44px; }
  .paper-frame { transform: none; max-width: 520px; }
  :root { --shell: calc(100vw - 48px); }
  .console-body { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--hair); }
  .pane-scroll { height: 300px; }
  .engines { grid-template-columns: 1fr; }
  .coding { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .em-elements { grid-template-columns: 1fr; }
  .em-out { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 1fr; gap: 46px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-film { min-height: 620px; }
  .hero-inner { padding: 96px 0 44px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(6,10,13,.92) 8%, rgba(6,10,13,.32) 62%, rgba(6,10,13,.5) 100%); }
}
@media (max-width: 720px) {
  :root { --shell: calc(100vw - 32px); }
  body { font-size: 16px; }
  .site-nav { display: none; }
  /* Brand + two pills + burger does not fit a phone header — it was squeezing
     "HEALTHCARE" out of the wordmark. The buy CTA moves into the menu, and the
     hero's own brass button is on screen at this point anyway. */
  .header-actions .button { display: none; }
  .header-actions { margin-left: auto; }   /* nothing else is left to push the burger right */
  .menu-button { display: block; margin-left: auto; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; width: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  }
  .site-nav.is-open a { padding: 14px 4px; border-bottom: 1px solid var(--hair); font-family: var(--serif); font-size: 22px; color: var(--ink); }
  .site-nav.is-open .nav-cta {
    display: inline-flex; margin-top: 18px; border-bottom: 0;
    font-family: var(--sans); font-size: 15px; color: var(--cream); padding: 14px 26px;
  }
  .hero { padding-top: 44px; }
  .section { padding: 76px 0; }
  .flow-step { grid-template-columns: 34px 1fr; }
  .flow-step p { grid-column: 2; padding-top: 0; }
  .trust-inner { gap: 26px; }
  .claim-table th, .claim-table td { padding-inline: 16px; }
  .em-el, .em-verdict, .em-gap { padding-inline: 18px; }
  .em-code { font-size: 34px; }
}
@media (max-width: 560px) {
  /* Side by side these two pills need 350px and never shrink, so below this
     they wrapped into a ragged 194px / 144px stack. Stack them deliberately
     and at one width instead. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .button { width: 100%; }
  /* Three nowrap items in one row do not fit a phone; give the badge its own line. */
  .console-bar { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .console-bar .synthetic { margin-left: 0; order: 3; width: 100%; text-align: center; }
  .console-bar .meta { margin-left: auto; }
}
