/* Surgery Center Front Desk (surgerycenterfrontdesk.com), by Peregrine.
   Brand sheet: see README "Brand". Light theme only: administrators read this at a desk during the day.
   Hue 195 (scrub teal) tints every neutral. Amber = needs auth / attention. Green = cleared.
   Type: Schibsted Grotesk (display), Public Sans (text). 4pt spacing scale. */

:root {
  --hue: 195;
  --paper: oklch(0.982 0.004 var(--hue));
  --surface: oklch(0.996 0.002 var(--hue));
  --wash: oklch(0.958 0.009 var(--hue));
  --wash-2: oklch(0.935 0.012 var(--hue));
  --line: oklch(0.888 0.011 var(--hue));
  --line-strong: oklch(0.8 0.014 var(--hue));
  --ink: oklch(0.245 0.035 215);
  --text: oklch(0.33 0.026 215);
  --muted: oklch(0.47 0.02 215);
  --scrub: oklch(0.43 0.075 192);
  --scrub-ink: oklch(0.36 0.07 194);
  --scrub-tint: oklch(0.94 0.028 190);
  --on-scrub: oklch(0.97 0.008 170);
  --amber: oklch(0.76 0.135 72);
  --amber-tint: oklch(0.95 0.04 80);
  --amber-ink: oklch(0.47 0.1 60);
  --ok: oklch(0.52 0.11 155);
  --ok-tint: oklch(0.945 0.035 155);
  --info-tint: oklch(0.95 0.015 230);
  --info-ink: oklch(0.42 0.06 240);
  --err: oklch(0.52 0.17 27);
  --night: oklch(0.255 0.04 210);
  --night-2: oklch(0.3 0.04 210);
  --night-line: oklch(0.38 0.035 210);
  --on-night: oklch(0.95 0.01 200);
  --on-night-muted: oklch(0.8 0.02 200);

  --display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 12px;
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 215 / .06);
  --shadow: 0 1px 2px oklch(0.25 0.03 215 / .06), 0 8px 24px -12px oklch(0.25 0.03 215 / .18);
  --shadow-lg: 0 2px 4px oklch(0.25 0.03 215 / .05), 0 24px 56px -24px oklch(0.25 0.03 215 / .32);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--text-font); font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: var(--scrub-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--scrub); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.t, .num, .wl-t, .strip-k { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }
section { padding: var(--section) 0; }

.kicker { font: 600 13px/1.4 var(--text-font); letter-spacing: .08em; text-transform: uppercase; color: var(--scrub); margin-bottom: var(--space-md); }
.kicker-inv { color: var(--amber); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.sub { color: var(--muted); font-size: 18px; line-height: 1.6; margin-top: var(--space-md); max-width: 62ch; text-wrap: pretty; }
.sec-head { max-width: 760px; margin-bottom: var(--space-3xl); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 10px;
  font: 600 16px/1.2 var(--text-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--scrub); color: var(--on-scrub); box-shadow: 0 1px 0 oklch(1 0 0 / .12) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--scrub-ink); color: var(--on-scrub); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--scrub); color: var(--scrub-ink); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: var(--space-lg); text-decoration: none; }
.text-link svg { transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-md); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark { display: grid; font: 700 15px/1.05 var(--display); letter-spacing: -0.01em; }
.wordmark b:last-child { color: var(--scrub); }
.by { font-size: 13px; color: var(--muted); padding-left: var(--space-md); border-left: 1px solid var(--line); line-height: 1.2; }
.by a { color: var(--muted); }
.nav { display: flex; gap: var(--space-xl); }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--scrub-ink); }
@media (max-width: 920px) { .nav { display: none; } }
@media (max-width: 520px) { .by { display: none; } }

/* Hero */
.hero { padding: clamp(32px, 4.5vw, 56px) 0 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
h1 { font-size: clamp(36px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 800; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--text); margin: var(--space-lg) 0 var(--space-xl); max-width: 58ch; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.cta-note { margin-top: var(--space-md); font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .hero-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }

/* Fact strip */
.strip { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: var(--space-lg) 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.strip li { display: grid; gap: 2px; padding: 0 var(--space-lg); border-left: 1px solid var(--line); align-content: start; }
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip-k { font: 700 24px/1.1 var(--display); color: var(--scrub); letter-spacing: -0.02em; margin-bottom: 6px; }
.strip-t { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.35; }
.strip-d { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) {
  .strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) 0; }
  .strip li, .strip li:first-child { border-left: 0; padding: 0 var(--space-md) 0 0; }
  .strip li:first-child { grid-column: 1 / -1; }
}

/* Worklist (hero product visual) */
.wl { margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.wl-bar { display: flex; align-items: center; gap: var(--space-sm); padding: 10px 18px; background: var(--wash); border-bottom: 1px solid var(--line); }
.wl-title { font: 700 14px/1 var(--display); color: var(--ink); }
.wl-sub { color: var(--muted); font-size: 13px; }
.wl-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.wl-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.wl-table { width: 100%; border-collapse: collapse; }
.wl-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 9px 18px 7px; border-bottom: 1px solid var(--line); }
.wl-table td { padding: 8px 18px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.wl-table tbody tr:last-child td { border-bottom: 0; }
.wl-me td { background: var(--scrub-tint); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pill-info { background: var(--info-tint); color: var(--info-ink); }
.pill-warn { background: var(--amber-tint); color: var(--amber-ink); }
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pills { display: inline-grid; }
.pills .pill { grid-area: 1 / 1; opacity: 0; transform: translateY(3px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.wl-detail { border-top: 1px solid var(--line-strong); padding: 14px 18px 4px; }
.wl-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.wl-dh b { font: 700 15px/1.2 var(--display); color: var(--ink); }
.wl-dh span { color: var(--muted); font-size: 13px; }
.wl-log { list-style: none; margin: 0; padding: 0; }
.wl-log li { display: grid; grid-template-columns: 62px 14px 1fr; gap: 10px; align-items: start; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; position: relative; opacity: .22; transition: opacity .45s var(--ease), background .45s var(--ease); }
.wl-log li::after { content: ""; position: absolute; left: calc(8px + 62px + 10px + 6px); top: 24px; bottom: -6px; width: 2px; background: var(--line); }
.wl-log li:last-child::after { display: none; }
.wl-t { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.wl-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); margin-top: 3px; position: relative; z-index: 1; }
.wl-info .wl-dot { border-color: var(--info-ink); }
.wl-warn .wl-dot { border-color: var(--amber); background: var(--amber-tint); }
.wl-ok .wl-dot { border-color: var(--ok); background: var(--ok); }
.wl-x { display: grid; gap: 1px; }
.wl-x b { color: var(--ink); font-weight: 600; font-size: 14px; }
.wl-x span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.wl figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 18px 12px; }
/* Step states: first n log lines shown, the latest one highlighted, the matching status pill shown. */
.wl[data-step="1"] .wl-log li:nth-child(-n+1), .wl[data-step="2"] .wl-log li:nth-child(-n+2), .wl[data-step="3"] .wl-log li:nth-child(-n+3),
.wl[data-step="4"] .wl-log li:nth-child(-n+4), .wl[data-step="5"] .wl-log li:nth-child(-n+5), .wl[data-step="6"] .wl-log li { opacity: 1; }
.wl[data-step="1"] .wl-log li:nth-child(1), .wl[data-step="2"] .wl-log li:nth-child(2), .wl[data-step="3"] .wl-log li:nth-child(3),
.wl[data-step="4"] .wl-log li:nth-child(4), .wl[data-step="5"] .wl-log li:nth-child(5), .wl[data-step="6"] .wl-log li:nth-child(6) { background: var(--wash); }
.wl[data-step="1"] .pill[data-on="0"], .wl[data-step="2"] .pill[data-on="1"], .wl[data-step="3"] .pill[data-on="2"],
.wl[data-step="4"] .pill[data-on="3"], .wl[data-step="5"] .pill[data-on="4"], .wl[data-step="6"] .pill[data-on="5"] { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .c-surg { display: none; }
  .wl-table th, .wl-table td { padding-left: 12px; padding-right: 12px; }
  .wl-table td { font-size: 13.5px; }
  .wl-bar, .wl-detail, .wl figcaption { padding-left: 14px; padding-right: 14px; }
  .wl-sub { display: none; }
  .wl-log li { grid-template-columns: 54px 14px 1fr; gap: 8px; }
  .wl-log li::after { left: calc(8px + 54px + 8px + 6px); }
}

/* Video + live demo */
.try { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.try-video { max-width: 880px; margin: 0 auto clamp(48px, 6vw, 72px); }
.yt, .try-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; overflow: hidden; background: var(--night); padding: 0; cursor: pointer; box-shadow: var(--shadow-lg); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--on-scrub); color: var(--scrub-ink); display: grid; place-items: center; transition: transform .25s var(--ease); box-shadow: 0 8px 24px -8px oklch(0 0 0 / .4); }
.yt-play svg { margin-left: 3px; }
.yt:hover .yt-play { transform: scale(1.05); }
.poster { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--night); box-shadow: var(--shadow-lg); }
.poster-lines { position: absolute; inset: 12% 10% 34%; display: grid; gap: 14%; align-content: start; opacity: .5; }
.poster-lines i { height: 10px; border-radius: 5px; background: var(--night-line); }
.poster-lines i:nth-child(2) { width: 78%; } .poster-lines i:nth-child(3) { width: 88%; } .poster-lines i:nth-child(4) { width: 52%; background: var(--amber); opacity: .75; }
.poster .yt-play { position: relative; inset: auto; margin: 0; }
.poster-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px; background: linear-gradient(transparent, oklch(0.2 0.03 210 / .92)); color: var(--on-night); display: grid; gap: 4px; }
.poster-cap b { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; max-width: 34ch; }
.poster-cap span { font-size: 14px; color: var(--on-night-muted); }
/* Phones: caption moves below the play area so nothing overlaps. */
@media (max-width: 600px) {
  .poster { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
  .poster .yt-play { margin: 56px auto 44px; }
  .poster-cap { position: static; background: none; width: 100%; border-top: 1px solid var(--night-line); }
}
@media (max-width: 520px) { .poster-cap { padding: 14px 16px; } .poster-cap b { font-size: 15px; } .poster-cap span { font-size: 13px; } .yt-play { width: 58px; height: 58px; } .poster-lines { display: none; } }

.try-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .try-in { grid-template-columns: 1fr; } }
.ways { margin-top: var(--space-xl); display: grid; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.way { display: flex; align-items: center; gap: var(--space-md); padding: 16px 18px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s; }
.way:first-child { border-top: 0; }
.way:hover { background: var(--scrub-tint); color: var(--ink); }
.way svg { flex: none; color: var(--scrub); }
.way span { display: grid; }
.way b { font-weight: 600; }
.way small { color: var(--muted); font-size: 14px; }
.callme { margin-top: var(--space-md); padding: 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.callme > label { font-weight: 600; font-size: 15px; color: var(--ink); display: block; margin-bottom: 8px; }
.callme-row { display: flex; gap: 10px; }
.callme-row input { flex: 1; min-width: 0; }

.console { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--scrub); color: var(--on-scrub); display: grid; place-items: center; font: 700 17px/1 var(--display); }
.who .avatar { color: var(--on-scrub); }
.who b { display: block; font-weight: 600; color: var(--ink); line-height: 1.25; }
.who div span { font-size: 13px; color: var(--muted); }
.state { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
body[data-call="open"] .state { color: var(--err); border-color: color-mix(in oklch, var(--err) 30%, var(--line)); }
body[data-call="open"] .state::before { background: var(--err); animation: beat 1.2s ease-in-out infinite; }
body[data-call="connecting"] .state::before { background: var(--amber); }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.console-body { padding: 16px 20px 18px; }
.sample-label { font-size: 13px; color: var(--muted); margin: 0 0 10px; display: flex; gap: 10px; }
.sample-label .t { color: var(--ink); font-weight: 600; }
.transcript { height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; font-size: 15.5px; scrollbar-width: thin; }
.transcript p { padding: 10px 14px; border-radius: 12px; max-width: 88%; line-height: 1.45; }
.transcript p b { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; color: var(--muted); }
.transcript p.ava { background: var(--wash); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.transcript p.you { background: var(--scrub); color: var(--on-scrub); align-self: flex-end; border-bottom-right-radius: 4px; }
.transcript p.you b { color: color-mix(in oklch, var(--on-scrub) 80%, transparent); }
body[data-call="open"] #talk { background: var(--err); }
.status { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; min-height: 1.4em; }
.status.err { color: var(--err); }
.console-foot { padding: 12px 20px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--paper); }
.code-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.code-row label { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Forms */
input[type=text], input[type=tel], input[type=email], select, input:not([type]) {
  width: 100%; min-height: 50px; font: 17px/1.2 var(--text-font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23526570' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus { outline: none; border-color: var(--scrub); box-shadow: 0 0 0 3px color-mix(in oklch, var(--scrub) 22%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: var(--space-md); line-height: 1.55; }
.check b { color: var(--ink); font-weight: 600; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--scrub); }
.msg { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; color: var(--muted); }
.msg.ok { color: var(--ok); font-weight: 500; }
.msg.err { color: var(--err); }
.msg a { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Journey */
.journey { padding-bottom: 0; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flow-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.flow-step:first-child { border-top: 0; padding-top: 0; }
.flow-step:nth-child(even) .flow-copy { order: 2; }
.flow-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: var(--space-md); }
.flow-n .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--scrub); color: var(--scrub-ink); font: 700 16px/1 var(--display); }
.flow-n .k { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.by-tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--wash-2); color: var(--text); }
.by-tag.by-you { background: var(--amber-tint); color: var(--amber-ink); }
.by-tag.by-ava { background: var(--scrub-tint); color: var(--scrub-ink); }
.flow-copy h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.flow-copy > p:last-child { margin-top: var(--space-md); color: var(--text); max-width: 54ch; }
@media (max-width: 900px) {
  .flow-step { grid-template-columns: 1fr; gap: var(--space-lg); }
  .flow-step:nth-child(even) .flow-copy { order: 0; }
}

/* Artifacts */
.art { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; font-size: 15px; max-width: 560px; }
.flow-step:nth-child(odd) .flow-art .art { margin-left: auto; }
@media (max-width: 900px) { .flow-step .flow-art .art { margin-left: 0; } }
.art-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font: 700 16px/1.3 var(--display); color: var(--ink); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.flds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.fld dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fld dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
@media (max-width: 340px) { .flds { grid-template-columns: 1fr; } }

.art-fax { background: oklch(0.985 0.008 90); border-color: oklch(0.86 0.02 90); transform: rotate(-0.6deg); }
.fax-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed oklch(0.8 0.02 90); }
.fax-top span:first-child { color: var(--ink); }
.fax-from { display: grid; margin: 14px 0; }
.fax-from b { font: 700 18px/1.25 var(--display); color: var(--ink); }
.fax-from span { color: var(--muted); font-size: 14px; }
.fax-grid { display: grid; gap: 10px; margin: 0; }
.fax-grid .fld { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.fax-grid .fld dd { margin: 0; font-weight: 400; color: var(--text); }
.fax-scan { display: grid; gap: 8px; margin-top: 16px; }
.fax-scan i { height: 6px; border-radius: 3px; background: oklch(0.9 0.012 90); }
.fax-scan i:nth-child(2) { width: 86%; } .fax-scan i:nth-child(3) { width: 64%; }

.dupe { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--ok-tint); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.dupe svg { color: var(--ok); flex: none; margin-top: 3px; }
.dupe b { color: var(--ink); }

.elig { width: 100%; border-collapse: collapse; }
.elig th, .elig td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.elig tr:last-child th, .elig tr:last-child td { border-bottom: 0; }
.elig th { font-weight: 500; color: var(--muted); width: 46%; padding-right: 12px; }
.elig td { color: var(--ink); font-weight: 500; }

.attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.attach span { font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text); background: var(--paper); }
.attach span::before { content: "+ "; color: var(--muted); }
.auth-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.auth-foot .you { font-weight: 600; color: var(--amber-ink); }

.art-sms { max-width: 400px; background: var(--wash); border-radius: 24px; padding: 22px 18px; }
.sms-who { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); margin-bottom: 8px; max-width: 92%; }
.sms-note { font-size: 13px; color: var(--muted); margin-top: 12px; padding: 0 4px; }

/* Phones band */
.phones { margin-top: clamp(48px, 7vw, 96px); background: var(--night); color: var(--on-night); padding: clamp(48px, 6vw, 80px) 0; }
.phones-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.phones .h3 { color: var(--on-night); }
.phones-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.phones-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-night-muted); line-height: 1.55; }
.phones-list svg { color: var(--amber); margin-top: 6px; flex: none; }
.calllog { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); overflow-x: auto; }
.calllog-h { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font: 700 15px/1.3 var(--display); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.calllog-h span { font: 400 13px/1.3 var(--text-font); color: var(--on-night-muted); }
.calllog table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.calllog th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--on-night-muted); padding: 10px 18px 6px; }
.calllog td { padding: 10px 18px; border-top: 1px solid var(--night-line); color: var(--on-night); vertical-align: top; }
.calllog td:last-child { color: var(--on-night-muted); }
.calllog .t { white-space: nowrap; }
.lang { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--night-line); color: var(--on-night-muted); }
@media (max-width: 900px) { .phones-in { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .calllog table { min-width: 0; }
  .calllog thead { display: none; }
  .calllog tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--night-line); }
  .calllog td { padding: 0; border: 0; }
  .calllog td:nth-child(3), .calllog td:nth-child(4) { grid-column: 1 / -1; }
  .calllog td:nth-child(2) { justify-self: start; }
}

/* After the case */
.after-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.soon { display: inline-block; padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--scrub); }
.after-list { list-style: none; margin: 0; padding: 0; display: grid; }
.after-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding: var(--space-lg) 0; border-top: 1px solid var(--line); }
.after-list li:last-child { border-bottom: 1px solid var(--line); }
.after-list h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.after-list p { color: var(--muted); }
@media (max-width: 900px) { .after-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .after-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Proof */
.proof { background: var(--night); color: var(--on-night); }
.proof-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.proof h2 { color: var(--on-night); font-size: clamp(28px, 2.9vw, 40px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.proof-copy > p:not(.kicker):not(.status-line) { margin-top: var(--space-lg); color: var(--on-night-muted); font-size: 18px; line-height: 1.65; max-width: 52ch; }
.status-line { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-xl); padding: 8px 14px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-night); }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.transfers-h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); padding-bottom: var(--space-md); border-bottom: 1px solid var(--night-line); }
.transfers dl { margin: 0; }
.transfers dl > div { padding: var(--space-lg) 0; border-bottom: 1px solid var(--night-line); }
.transfers dt { display: flex; align-items: baseline; gap: var(--space-md); font: 700 19px/1.3 var(--display); color: var(--on-night); }
.transfers dt span { flex: none; min-width: 92px; font-size: 15px; color: var(--amber); font-variant-numeric: tabular-nums; }
.transfers dd { margin: 6px 0 0 calc(92px + var(--space-md)); color: var(--on-night-muted); }
@media (max-width: 900px) { .proof-in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .transfers dt { display: grid; gap: 2px; } .transfers dd { margin-left: 0; } }

/* Trust */
.trust-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.trust-head { position: sticky; top: 112px; }
.trust-head .btn { margin-top: var(--space-xl); }
.trust-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2xl); }
.trust-list > div { padding: var(--space-lg) 0 var(--space-xl); border-top: 1px solid var(--line-strong); }
.trust-list dt { font: 700 20px/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.tk { display: block; font: 600 12px/1 var(--text-font); letter-spacing: .1em; text-transform: uppercase; color: var(--scrub); margin-bottom: 10px; }
.trust-list dd { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .trust-in { grid-template-columns: 1fr; } .trust-head { position: static; } }
@media (max-width: 600px) { .trust-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--wash); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.faq summary:hover h3 { color: var(--scrub-ink); }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--scrub); border-bottom: 2px solid var(--scrub); transform: translateY(-75%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0 0 24px; color: var(--text); max-width: 66ch; }
@media (max-width: 900px) { .faq-in { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* Apply */
.apply-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .apply-in { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-lg); }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--scrub); display: grid; place-items: center; font: 700 15px/1 var(--display); color: var(--scrub-ink); }
.steps b { color: var(--ink); display: block; }
.direct { margin-top: var(--space-xl); color: var(--muted); }
.apply-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); position: relative; }
.apply-form .btn-wide { margin-top: var(--space-lg); }
.no-phi { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); background: var(--wash); border-radius: 10px; padding: 10px 14px; margin-bottom: var(--space-lg); }
.no-phi svg { color: var(--scrub); flex: none; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.field { margin-bottom: var(--space-md); }
.field label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .f2 { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: var(--space-2xl) 0 var(--space-lg); padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); background: var(--paper); }
.foot-in { display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: var(--space-md); max-width: 46ch; }
.foot nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; align-items: flex-start; }
.foot nav a { color: var(--text); font-size: 15px; }
.foot-fine p { font-size: 13px; color: var(--muted); margin-top: var(--space-xl); max-width: 90ch; }

/* Sticky mobile bar */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky:not([hidden]) {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    padding: 8px; background: color-mix(in oklch, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
  }
  .sticky .btn { flex: 1; min-height: 46px; }
}

/* Legal */
.legal { padding-top: var(--space-3xl); padding-bottom: var(--space-4xl); }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: var(--space-lg); }
.legal p, .legal li { max-width: 68ch; }
.legal li { margin: 8px 0; }

/* Entrance: the hero settles in once. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .05s; } .hero-copy > :nth-child(3) { animation-delay: .1s; }
  .hero-copy > :nth-child(4) { animation-delay: .15s; } .hero-copy > :nth-child(5) { animation-delay: .2s; }
  .hero-visual { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* /ava opt-in page (cold email "have Ava call me" link) */
#ava-form { margin-top: var(--space-xl); }
