/* ============================================================
   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);
}

/* The mockup is not a re-imagining of the app — these are the shipped tokens
   from mobile/src/theme/colors.ts, so the screens on this page and the screens
   on a phone are the same product. */
:root {
  --a-bg: #faf8f4;        /* ivory ground        */
  --a-card: #ffffff;
  --a-ink: #1b1917;       /* charcoal            */
  --a-muted: #8a8377;     /* warm grey           */
  --a-faint: #b3ab9b;
  --a-line: #ece6db;
  --a-stroke: #e3dbcb;
  --a-cream: #f5eee0;
  --a-gold: #ae8a4b;      /* the app's accent    */
  --a-goldink: #8a6a2f;   /* gold, legible small */
  --a-dark: #2a2622;
  --a-rec: #e5484d;
  --a-green: #4d6a58;
  --a-greensoft: #e4ede7;
}

* { 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; }

.preview-notice {
  min-height: 38px; padding: 9px max(20px, calc((100vw - 1320px) / 2));
  display: flex; align-items: center; justify-content: center; gap: 8px 16px;
  background: var(--ink); color: rgba(247,245,239,.76);
  font-size: 12.5px; line-height: 1.35; text-align: center;
}
.preview-notice strong { color: #fff; }
.preview-notice a { color: var(--brass-light); text-underline-offset: 3px; }

/* ---------------- 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; }



/* ---------------- 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: 1.6fr 1fr 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; }
  .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) {
  .preview-notice { padding-block: 10px; flex-wrap: wrap; gap: 3px 10px; }
  /* 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; }
}

/* ============================================================
   The app — iOS mockups.
   Drawn to Apple's own vocabulary rather than ours: system
   greys, SF type, inset grouped lists, a real status bar and
   tab bar. Brand colour appears only where the product would
   actually use it (evidence green, an amber warning), because
   a screen that is brass all over reads as a brochure, not
   software.
   ============================================================ */
.app { background: var(--cream); }
.ios-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 52px); margin-top: 56px; align-items: start;
}
.ios { display: flex; flex-direction: column; align-items: center; }
.ios figcaption {
  margin-top: 22px; max-width: 300px; text-align: center;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
}
.ios--lift .ios-phone { transform: translateY(-26px); }

.ios-phone {
  position: relative; width: 100%; max-width: 306px; aspect-ratio: 393 / 852;
  background: #16140f; border-radius: 52px; padding: 10px;
  box-shadow: 0 0 0 1.5px #3a352c, 0 40px 70px -34px rgba(22,20,15,.45);
}
.ios-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 25px; background: #000; border-radius: 14px; z-index: 4;
}
.ios-screen {
  position: relative; height: 100%; border-radius: 43px; overflow: hidden;
  background: var(--a-bg); display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
  color: var(--a-ink);
}

/* status bar */
.ios-status {
  color: var(--a-ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px 0; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
}
.ios-icons { display: inline-flex; align-items: center; gap: 5px; }
.ios-icons svg { display: block; fill: currentColor; }

/* nav + large title */
.ios-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 0; font-size: 15px; color: var(--a-gold);
}
.ios-nav-r { font-weight: 500; }
.ios-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: -.024em; line-height: 1.1;
  padding: 4px 20px 0;
}
.ios-sub { padding: 3px 20px 0; font-size: 12.5px; color: var(--a-muted); }
.ios-hdr {
  padding: 18px 22px 6px; font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--a-muted);
}

/* inset grouped list */
.ios-group {
  margin: 14px 12px 0; background: #fff; border-radius: 12px; overflow: hidden;
}
.ios-row-i {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border-bottom: .5px solid var(--a-line);
}
.ios-row-i:last-child { border-bottom: 0; }
.ios-t { font-size: 11.5px; color: var(--a-muted); width: 34px; flex: none; font-variant-numeric: tabular-nums; }
.ios-m { flex: 1; min-width: 0; }
.ios-m b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.ios-m span { display: block; font-size: 11.5px; color: var(--a-muted); }
.ios-chev { color: var(--a-faint); font-size: 17px; }
.ios-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 100px; background: #f3eee4; color: var(--a-muted);
  white-space: nowrap; flex: none;
}
.ios-badge--green { background: var(--a-greensoft); color: var(--a-green); }
.ios-badge--amber { background: var(--a-cream); color: var(--a-goldink); }
.ios-badge--rec { background: var(--a-rec); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.ios-badge--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: .3 } }
.ios-row-i.is-live { background: rgba(255,59,48,.05); }

/* the note screen */
.ios-note { padding: 4px 14px 14px; }
.ios-sec { margin-top: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; color: var(--a-green); }
.ios-p { margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--a-ink); }
.ios-p u { text-decoration: none; box-shadow: inset 0 -1.5px 0 rgba(77,106,88,.55); }
.ios-p u.dotted { box-shadow: none; border-bottom: 1.5px dotted var(--a-gold); }
.ios-flag {
  margin-top: 14px; padding: 9px 11px; border-radius: 9px;
  background: var(--a-cream);
}
.ios-flag b { display: block; font-size: 11.5px; color: var(--a-goldink); }
.ios-flag span { font-size: 11px; color: var(--a-muted); }

/* the billing screen */
.ios-em { padding: 2px 0; }
.ios-emrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-bottom: .5px solid var(--a-line); font-size: 12.5px;
}
.ios-emrow:last-child { border-bottom: 0; }
.ios-emrow span { color: var(--a-muted); }
.ios-emrow b { font-weight: 600; }
.ios-level {
  margin: 12px 12px 0; padding: 13px 14px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: space-between;
}
.ios-level p { font-size: 11.5px; color: var(--a-muted); }
.ios-level strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Mono", monospace;
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
}

/* tab bar */
.ios-tabs {
  /* Four tabs since Ask landed — auto-fit so adding a fifth cannot silently
     wrap one onto a second row again. */
  margin-top: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 8px 0 22px; background: rgba(250,248,244,.94);
  border-top: .5px solid var(--a-stroke); backdrop-filter: blur(12px);
}
.ios-tabs span {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9.5px; color: var(--a-muted);
}
.ios-tabs span.is-on { color: var(--a-gold); }
.ios-tabs i { width: 17px; height: 17px; background: currentColor; display: block; }
.tab-day { clip-path: polygon(8% 0,92% 0,92% 100%,8% 100%,8% 26%,92% 26%,92% 18%,8% 18%); border-radius: 2px; }
.tab-note { clip-path: polygon(14% 0,86% 0,86% 100%,14% 100%); border-radius: 2px; }
.tab-bill { clip-path: circle(46% at 50% 50%); }

@media (max-width: 1080px) {
  .ios-row { grid-template-columns: 1fr; gap: 56px; justify-items: center; }
  .ios--lift .ios-phone { transform: none; }
}

/* A 5-column claim will not fit a phone. It scrolls inside its own box rather
   than widening the page — the alternative is a silently clipped last column. */
.claim-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.claim-wrap .claim-table { min-width: 430px; }

/* The nav collapses well before phone width: six links plus two pills need
   more room than a tablet header has. */
@media (max-width: 940px) {
  .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;
  }
}

/* tab bar icons — SF Symbols shapes, not clip-path approximations */
.ios-tabs i { display: none; }
.ios-tabs svg { width: 21px; height: 21px; display: block; }

/* Ask — retrieval over the patient's own encounters */
.ios-chat { padding: 12px 12px 0; overflow: hidden; }
.ios-q {
  margin: 0 0 8px auto; max-width: 84%; width: fit-content;
  background: var(--a-dark); color: #faf8f4; font-size: 12px; line-height: 1.4;
  padding: 8px 11px; border-radius: 15px 15px 4px 15px;
}
.ios-a {
  margin-bottom: 10px; max-width: 92%; background: #fff;
  border-radius: 15px 15px 15px 4px; padding: 10px 11px;
}
.ios-a p { font-size: 11.5px; line-height: 1.45; color: var(--a-ink); }
.ios-a p + p { margin-top: 5px; }
.ios-cite {
  display: block; margin-top: 2px; font-size: 9.5px; color: var(--a-green);
  font-variant-numeric: tabular-nums;
}
.ios-gapline { margin-top: 7px; padding-top: 6px; border-top: .5px solid var(--a-line); color: var(--a-goldink) !important; }
.ios-composer {
  margin: 6px 12px 0; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 100px; padding: 8px 12px;
}
.ios-composer span { flex: 1; font-size: 11.5px; color: #a9a193; }
.ios-composer i { width: 19px; height: 19px; border-radius: 50%; background: var(--a-gold); flex: none; }

.ios-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) { .ios-row { grid-template-columns: repeat(2, 1fr); row-gap: 60px; } .ios--lift .ios-phone { transform: none; } }
@media (max-width: 720px)  { .ios-row { grid-template-columns: 1fr; } }

/* ---------------- memory ---------------- */
.memory { background: var(--cream); }
.mem { display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,1fr); gap: clamp(28px, 4vw, 64px); margin-top: 52px; align-items: start; }
.mem-cap { font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.mem-track { list-style: none; position: relative; padding-left: 22px; }
.mem-track::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 12px; width: 1px; background: var(--line); }
.mem-track li { position: relative; padding-bottom: 26px; }
.mem-track li:last-child { padding-bottom: 0; }
.mem-dot { position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); }
.mem-track .is-now .mem-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.mem-track b { display: block; font-size: 15px; font-weight: 600; }
.mem-track span:not(.mem-dot) { font-size: 13.5px; color: var(--faint); }
.mem-card { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin-bottom: 10px; }
.mem-card.is-open { border-color: var(--brass); background: #fffdf9; }
.mem-k { font-family: var(--sans); font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.mem-card.is-open .mem-k { color: var(--brass); }
.mem-card ul { list-style: none; }
.mem-card li { font-size: 14.5px; line-height: 1.5; color: var(--ink); padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.mem-card li em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.mem-foot { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--faint); }
.mem-foot b { color: var(--ink); font-weight: 600; }

/* ---------------- integrations ---------------- */
.intg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 52px; }
.intg-col { background: var(--paper); padding: 32px 30px 30px; }
.intg-k { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.intg-d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.intg-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 18px; }
.intg-m {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 14px 8px 10px; min-height: 40px;
}
.intg-m img, .intg-m svg { width: 18px; height: 18px; object-fit: contain; flex: none; }
.intg-m img.wm { width: auto; height: 15px; max-width: 104px; }
.intg-m b { font-size: 13.5px; font-weight: 600; }
.intg-n { font-size: 13px; line-height: 1.6; color: var(--faint); }

/* ---------------- front desk, as a day rather than a list ---------------- */
.desk-list { list-style: none; margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 1px solid var(--line); }
.desk-list li { background: var(--cream); padding: 24px 24px 26px; border-bottom: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); position: relative; }
.desk-list li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.desk-list li::before {
  content: counter(desk, decimal-leading-zero); counter-increment: desk;
  font-family: var(--mono); font-size: 11px; color: var(--brass); display: block; margin-bottom: 12px;
}
.desk-list { counter-reset: desk; }

@media (max-width: 1080px) {
  .mem { grid-template-columns: 1fr; gap: 36px; }
  .intg { grid-template-columns: 1fr; }
  .desk-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Optical typography.
   One tracking value across every size is the single most
   common type mistake: what reads tight at 96px reads cramped
   at 20px. Tracking is assigned by role — negative as display
   type grows, near zero at body, positive on small caps.
   ============================================================ */
.hero-film h1        { letter-spacing: -.024em; line-height: 1.01; }
.section-head h2,
.closing h2          { letter-spacing: -.021em; }
.capture-copy h2,
.desk-copy h2        { letter-spacing: -.019em; }
.pillar h3,
.intg-k,
.coding-note h3,
.refusal h4,
.engine h3           { letter-spacing: -.012em; line-height: 1.16; }
.ios-title           { letter-spacing: -.026em; }
.mem-track b,
.desk-list li b      { letter-spacing: -.009em; }
body, p, li          { letter-spacing: 0; }
.eyebrow, .mem-k, .intg-k, .em-label, .claim-table th { font-feature-settings: "kern" 1; }
.em-code, .ios-level strong, .claim-table td.c { font-variant-numeric: tabular-nums; }

/* Scroll edges fade rather than cut. A hard line at the top of a scrolling
   pane reads as a border; a fade reads as more content. */
.pane-scroll {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
}

/* Instant feedback: the press registers on the way down, not on release. */
.em-opt:active, .button:active { transform: scale(.975); transition: transform 100ms ease-out; }
.em-opt.is-pressing { background: var(--green-soft); border-color: var(--green); }

/* ---- accessibility signals, each independent ---- */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); backdrop-filter: none; }
  .hero-ticker { background: #0a0e11; backdrop-filter: none; }
  .ios-tabs { background: #faf8f4; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #4a463e; --faint: #5d584e; --line: rgba(21,21,15,.34); --hair: rgba(21,21,15,.2); }
  .site-header { background: var(--paper); backdrop-filter: none; border-bottom-color: var(--line); }
  .sent { border-bottom-width: 2px; }
  .button--ghost, .intg-m, .mem-card { border-width: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
  /* A full-viewport moving background is the first thing to go. */
  .hero-video { display: none; }
  .hero-film { background: #0a0e11; }
  .hero-ticker-inner { animation: none; }
  .ios-badge--rec i { animation: none; }
  .pane-scroll { scroll-behavior: auto; }
  .trust-badge-scan, .trust-standard p::before { animation: none; }
}

/* Wayfinding: the nav says which section you are actually in. */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a.is-here { color: var(--ink); }
.site-nav a.is-here::after { transform: scaleX(1); }

/* ============================================================
   The clinician console — two real screens, side by side.
   The frame is drawn; what is inside it is a screenshot of the
   shipping product. A hand-built HTML console used to live here,
   and the moment the real UI moved on, the page was showing a
   picture of software that did not exist.
   ============================================================ */
.macs {
  margin-top: clamp(60px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 46px);
  /* Top, not stretch: the two captions differ in length and centring them
     would leave the shorter screen floating off its own baseline. */
  align-items: start;
}
/* Inside the row each figure sets its own top margin to zero — the grid owns
   the rhythm now, and a leftover margin here would push one lid below the
   other for no visible reason. */
.macs .mac { margin-top: 0; }
.mac { margin-top: clamp(60px, 7vw, 96px); }
.mac-lid {
  background: #16140f; border-radius: 16px; padding: 12px 12px 0;
  box-shadow: 0 0 0 1.5px #3a352c, 0 50px 90px -44px rgba(22,20,15,.5);
}
/* Literal, not var(--c-bg): that variable was defined on the drawn console
   that used to sit in here, so it resolves to nothing now. */
.mac-screen { border-radius: 8px 8px 0 0; overflow: hidden; background: #f6f4ef; }
/* The screenshot is 3:2 and fills the lid exactly. `display:block` kills the
   inline-baseline gap that would otherwise show as a hairline of lid colour
   along the bottom edge. */
.mac-screen img { display: block; width: 100%; height: auto; }
.mac-foot {
  height: 13px; border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #2a2622 0%, #16140f 62%, #0e0d09 100%);
  box-shadow: 0 12px 22px -14px rgba(22,20,15,.6);
  width: 104%; margin-left: -2%;
}
/* the lip you grip to open it — subtle, or it reads as a rendering artifact */
.mac-foot::after {
  content: ""; display: block; width: 86px; height: 3px; margin: 0 auto;
  border-radius: 0 0 4px 4px; background: rgba(255,255,255,.055);
}
.mac figcaption {
  margin: 26px auto 0; max-width: 660px; text-align: center;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}

/* Two lids side by side need real width. Below this the screenshots would be
   too small to read a code or a citation from, which is the only reason they
   are on the page — so they stack and each gets the full column. */
@media (max-width: 1080px) {
  .macs { grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px); }
}

/* ============================================================
   Trust (#trust)
   Plain-text status records make the section easy to scan without
   presenting an audit-in-progress as a completed certification.
   ============================================================ */
.trust-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(52px, 7vw, 112px);
}

.trust-layout .section-head { max-width: 610px; }

.trust-badge-cluster {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: var(--ink);
}

.trust-badge-scan {
  position: absolute;
  z-index: 1;
  top: -64px;
  right: 7%;
  left: 7%;
  height: 64px;
  opacity: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(82, 163, 197, .015) 68%, rgba(82, 163, 197, .09) calc(100% - 1px), rgba(183, 134, 55, .52));
  filter: drop-shadow(0 5px 10px rgba(82, 163, 197, .13));
  pointer-events: none;
  animation: trust-badge-scan 6.8s ease-in-out infinite alternate;
}

@keyframes trust-badge-scan {
  0% { top: -64px; opacity: .18; }
  12%, 88% { opacity: .56; }
  100% { top: calc(100% - 64px); opacity: .18; }
}

.trust-badge-cluster::before,
.trust-badge-cluster::after {
  position: absolute;
  border: 1px solid var(--hair);
  border-radius: 50%;
  content: "";
}

.trust-badge-cluster::before { inset: 28px 62px; }
.trust-badge-cluster::after { inset: 102px 136px; border-color: var(--line); }

.trust-badge-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 130px;
  height: 152px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  transform: translate(-50%, -50%);
}

.trust-badge-core img {
  width: 62px;
  height: 72px;
  object-fit: contain;
}

.trust-badge-core span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-standard {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 218px;
  min-height: 84px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.trust-standard--hipaa { top: 28px; left: 0; }
.trust-standard--gdpr { top: 28px; right: 0; }
.trust-standard--soc { right: 0; bottom: 28px; }
.trust-standard--ccpa { right: 0; bottom: 28px; }

.trust-standard-mark {
  display: block;
  width: 50px;
  height: 50px;
  background: var(--trust-mark) center / contain no-repeat;
  filter: drop-shadow(0 5px 11px rgba(22, 20, 15, .13));
  transition: transform 240ms ease, filter 240ms ease;
}

.trust-standard:hover .trust-standard-mark { transform: translateY(-2px); filter: drop-shadow(0 8px 16px rgba(22, 20, 15, .2)); }
.trust-standard--pending .trust-standard-mark { opacity: .88; }
.trust-standard h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.trust-standard p { display: flex; gap: 6px; margin: 0; color: var(--faint); font-size: 9.5px; line-height: 1.4; }

.trust-standard p::before {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  content: "";
  animation: trust-standard-lock 2.8s ease-in-out infinite;
}

.trust-standard--soc p::before { animation-delay: -1.4s; }

@keyframes trust-standard-lock {
  0%, 100% { opacity: .42; transform: scale(.76); }
  50% { opacity: 1; transform: scale(1); }
}

.trust-standard--pending p::before { border-color: var(--faint); background: transparent; }
.trust-mark-note { position:absolute; right:18px; bottom:4px; left:18px; margin:0; color:var(--faint); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:6.5px; line-height:1.4; letter-spacing:.05em; text-align:center; text-transform:uppercase; }

.trust-rows { margin-top: 56px; border-top: 1px solid var(--line); }

.trust-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 320px) minmax(0, 1fr);
  gap: 0 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}

.trust-row .num { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 9px; }
.trust-row h3 { font-size: 22px; margin: 0; line-height: 1.25; }
.trust-row p { font-size: 15.5px; color: var(--muted); margin: 0; padding-top: 4px; }

.trust-row .tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .trust-layout { grid-template-columns: 1fr; gap: 44px; }
  .trust-badge-cluster { width: min(100%, 680px); margin-inline: auto; }
  .trust-row { grid-template-columns: 34px 1fr; gap: 0 16px; }
  .trust-row p { grid-column: 2; padding-top: 8px; }
  .trust-row h3 { font-size: 20px; }
}

@media (max-width: 620px) {
  .trust-badge-cluster {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .trust-badge-cluster::before,
  .trust-badge-cluster::after { display: none; }
  .trust-badge-scan { display: none; }
  .trust-badge-core {
    position: static;
    width: 100%;
    height: 126px;
    transform: none;
  }
  .trust-badge-core img { width: 50px; height: 58px; }
  .trust-standard { position: static; width: 100%; min-height: 100px; transform: none; }
  .trust-mark-note { position:static; grid-column:1 / -1; padding-top:6px; text-align:left; }
}
