/* ============================================================
   Supahealth — editorial marketing site
   Warm, light, serif-led design system
   ============================================================ */

:root {
  /* Warm surfaces */
  --bg: #faf8f6;
  --surface: #fffefe;
  --surface-2: #f5f3f1;
  --surface-3: #efece9;
  --border: #e7e3df;
  --border-strong: #dcd7d2;

  /* Ink */
  --ink: #232220;
  --ink-soft: #6a665f;
  --ink-faint: #9c9892;

  /* Accent (Supahealth blue) */
  --accent: #2f40ff;
  --accent-2: #5c6cff;
  --accent-soft: rgba(47, 64, 255, 0.08);
  --green: #1f9d63;

  --r: 14px;
  --r-sm: 10px;
  --r-pill: 50px;

  --container: 1200px;
  --gutter: 28px;

  --shadow-sm: 0 1px 2px rgba(35,34,32,0.04), 0 4px 16px -8px rgba(35,34,32,0.08);
  --shadow-md: 0 2px 6px rgba(35,34,32,0.05), 0 24px 50px -24px rgba(35,34,32,0.18);
  --shadow-lg: 0 4px 12px rgba(35,34,32,0.06), 0 40px 80px -30px rgba(35,34,32,0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Gambarino", "Hoefler Text", Georgia, serif;
  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
.display { font-size: clamp(40px, 5.6vw, 68px); }
h2.title { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2vw, 30px); }

/* ---------- Eyebrow (mono uppercase) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .lead {
  margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft); max-width: 560px;
}
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(47,64,255,0.6); }
.btn-primary:hover { background: #2433e0; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(47,64,255,0.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ============================================================
   Navbar
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 100; background: transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(250,248,246,0.82); backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; color: var(--ink); letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { margin-top: -78px; padding: calc(78px + clamp(44px, 6vw, 90px)) 0 clamp(56px, 8vw, 104px); position: relative; text-align: center; }
.hero-center { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 16ch; }
.hero .sub { margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); max-width: 600px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-proof { margin-top: 40px; display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--bg); background: linear-gradient(135deg, #e7e3df, #cfcac4); }
.avatars span:first-child { margin-left: 0; }
.proof-text { font-size: 14px; color: var(--ink-soft); }
.proof-text .stars { color: var(--accent); letter-spacing: 1px; }
.proof-text b { color: var(--ink); font-weight: 600; }

/* hero visual */
.hero-visual { position: relative; }
.hv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hv-top .hv-title { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.hv-badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); background: rgba(31,157,99,0.1); padding: 5px 10px; border-radius: 50px; display: inline-flex; align-items: center; gap: 6px; }
.hv-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.hv-kpi .v { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; }
.hv-kpi .l { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 8px; }
.hv-rows { border-top: 1px solid var(--border); }
.hv-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.hv-row + .hv-row { border-top: 1px solid var(--border); }
.hv-row .ric { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.hv-row .ric svg { width: 16px; height: 16px; }
.hv-row .rb { flex: 1; }
.hv-row .rt { font-size: 14px; color: var(--ink); font-weight: 500; }
.hv-row .rd { font-size: 12px; color: var(--ink-faint); }
.hv-row .rtag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); }
.hv-float {
  position: absolute; left: 26px; bottom: -22px;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 11px 14px; border-radius: 50px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.hv-float .fdot { width: 7px; height: 7px; border-radius: 50%; background: #5161ff; box-shadow: 0 0 0 3px rgba(81,97,255,0.3); }
.hv-float .farrow { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; }
.hv-float .farrow svg { width: 11px; height: 11px; }

/* ============================================================
   EHR trusted-by
   ============================================================ */
.ehr { padding: 48px 0; }
.ehr-label { text-align: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 30px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; align-items: center; padding-right: 56px; animation: marquee 38s linear infinite; white-space: nowrap; }
/* EHR brand marquee keeps scrolling on hover (no pause) */
.marquee-track span { font-family: var(--serif); font-size: 24px; color: var(--ink-faint); transition: color 0.3s; }
.marquee-track span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Capabilities (services)
   ============================================================ */
.cap-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* soft corner glow on hover */
.cap::before { content: ""; position: absolute; top: 0; right: 0; width: 190px; height: 190px; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%); }
.cap:hover { transform: translateY(-5px); border-color: rgba(47,64,255,0.32); box-shadow: var(--shadow-md); }
.cap:hover::before { opacity: 1; }
.cap .cap-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(47,64,255,0.18); display: grid; place-items: center; color: var(--accent); margin: 0 0 22px; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.cap:hover .cap-ic { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.05); }
.cap .cap-ic svg { width: 23px; height: 23px; }
.cap h3 { font-size: 22px; margin-bottom: 10px; position: relative; }
.cap p { font-size: 15px; color: var(--ink-soft); position: relative; }

/* ============================================================
   Results / stats
   ============================================================ */
.results { background: var(--surface-2); }
.results-top { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.res {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.res h3 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); color: var(--ink); line-height: 1.06; margin-bottom: 14px; }
.res h3 .accent { color: var(--accent); font-variant-numeric: tabular-nums; }
.res p { font-size: 14.5px; color: var(--ink-soft); }
.stat-band { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat-band .sb { padding: 30px; text-align: center; }
.stat-band .sb + .sb { border-left: 1px solid var(--border); }
.stat-band .sn { font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 1; }
.stat-band .sl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 10px; }

/* ============================================================
   Live demo
   ============================================================ */
.demo-grid { margin-top: 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.dpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.dpanel-head { margin-bottom: 22px; }
.dpanel-head h3 { font-size: 22px; margin-bottom: 8px; }
.dpanel-head p { font-size: 14.5px; color: var(--ink-soft); }
/* agents */
.agent { display: flex; align-items: center; gap: 14px; padding: 15px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 11px; }
.agent .a-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
.agent .a-ic svg { width: 19px; height: 19px; }
.agent .a-body { flex: 1; min-width: 0; }
.agent .a-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.agent .a-desc { font-size: 12.5px; color: var(--ink-faint); }
.a-status { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 50px; white-space: nowrap; }
.st-processing { color: var(--accent); background: var(--accent-soft); }
.st-waiting { color: #b87514; background: rgba(184,117,20,0.1); }
.st-standby { color: var(--ink-faint); background: var(--surface-3); }
.progress-wrap { margin-top: 18px; }
.progress-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.progress-label b { color: var(--accent); }
.progress-bar { height: 8px; border-radius: 50px; background: var(--surface-3); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 50px; transition: width 0.4s var(--ease); }
/* voice */
.voice-row { display: flex; align-items: center; gap: 18px; }
.voice-visual { flex: 1; height: 92px; display: flex; align-items: center; justify-content: flex-start; gap: 3px; overflow: hidden; }
.voice-visual .bar { width: 4px; border-radius: 50px; background: var(--surface-3); transition: background 0.12s linear; }
.voice-visual .bar.played { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
@keyframes wave { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1.3); } }
.voice-player { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.play-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform 0.2s, background 0.2s; }
.play-btn:hover { background: #2433e0; transform: scale(1.06); }
.play-btn svg { width: 15px; height: 15px; }
.player-track { flex: 1; }
.player-track .ptime { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; }
.player-line { height: 4px; border-radius: 50px; background: var(--surface-3); overflow: hidden; }
.player-line span { display: block; height: 100%; width: 0%; background: var(--accent); }
/* claim form */
.claim-field { margin-bottom: 14px; }
.claim-field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 7px; }
.claim-input { height: 44px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; padding: 0 14px; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.claim-input.filling { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.claim-caret { width: 2px; height: 18px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.claim-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.claim-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 50px; background: var(--surface-3); color: var(--ink-faint); transition: all 0.3s; }
.claim-tag.done { color: var(--green); background: rgba(31,157,99,0.1); }
/* soap */
.soap { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; background: var(--surface-2); border-radius: var(--r-sm); padding: 18px; min-height: 140px; color: var(--ink-soft); }
.soap .soap-key { color: var(--accent); font-weight: 600; }
.soap .cursor { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: middle; animation: blink 1s step-end infinite; }
.soap-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); }
.soap-status svg { width: 15px; height: 15px; }

/* ============================================================
   How it works
   ============================================================ */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 34px; }
.step .snum { font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 11px; }
.step > p { font-size: 14.5px; color: var(--ink-soft); }
.step-mini { margin-top: 22px; padding: 16px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 13px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.mini-row + .mini-row { border-top: 1px solid var(--border); }
.mini-row .k { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-row .v { color: var(--ink); font-weight: 600; }
.mini-live { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.mini-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mini-check { color: var(--green); }

/* ============================================================
   Specializations (areas)
   ============================================================ */
.spec-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.spec { padding: 28px 30px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 18px; transition: background 0.3s; }
.spec:hover { background: var(--surface-2); }
.spec:nth-child(odd) { border-right: 1px solid var(--border); }
.spec .s-ic { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.spec .s-ic svg { width: 20px; height: 20px; }
.spec h3 { font-size: 20px; margin-bottom: 6px; }
.spec p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Security
   ============================================================ */
.security-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.sec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 38px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; box-shadow: var(--shadow-sm); }
.sec-card p { font-size: 14px; color: var(--ink-soft); }
.sec-badge { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.sec-badge svg { width: 30px; height: 30px; }
.sec-card h3 { font-size: 21px; margin-bottom: 4px; }
.sec-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-box { position: relative; overflow: hidden; background: var(--ink); border-radius: 24px; padding: clamp(52px, 7vw, 90px) 28px; text-align: center; }
.cta-box::before { content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 700px; height: 460px; background: radial-gradient(ellipse, rgba(81,97,255,0.35), transparent 65%); }
.cta-box .inner { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; margin: 0 auto; }
.cta-box p { color: rgba(255,255,255,0.7); margin: 20px auto 0; max-width: 520px; font-size: 18px; }
.cta-box .btn { margin-top: 32px; }
.cta-fine { margin-top: 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); margin-top: 16px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-faint); }
.footer-bottom .legal { display: flex; gap: 24px; }

/* ============================================================
   Reveal + reduced motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; } .reveal.d2 { transition-delay: 0.14s; } .reveal.d3 { transition-delay: 0.21s; } .reveal.d4 { transition-delay: 0.28s; }
/* Honor reduced-motion for scroll entrances, but keep the product demos
   (marquee, waveform, count-ups, agent workflow) animating — they are content. */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(35,34,32,0.45); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 520px; width: 100%; position: relative; text-align: center; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 28px; margin: 16px 0 12px; }
.modal > p { font-size: 15px; color: var(--ink-soft); margin-bottom: 26px; }
.modal-close { position: absolute; top: 18px; right: 18px; color: var(--ink-faint); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: all 0.2s; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-feats { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.modal-feat { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); padding: 13px 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.modal-feat svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .cap-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .results-top { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .sb:nth-child(3) { border-left: none; }
  .stat-band .sb { border-top: 1px solid var(--border); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--ink); }
  .nav-cta .btn-ghost { display: none; }
  .cap-grid, .steps, .spec-grid, .security-grid, .stat-band { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: none; }
  .stat-band .sb + .sb { border-left: none; }
  .footer-top { flex-direction: column; }
  .hv-float { left: 0; }
}

/* ============================================================
   Logo / badge images
   ============================================================ */
.logo-img { height: 30px; width: auto; filter: brightness(0); transition: filter 0.3s; }
.footer-brand .logo-img { height: 28px; }
.sec-img { width: auto; height: 60px; max-width: 240px; object-fit: contain; }
.sec-card h3 { font-size: 21px; }

/* status: complete */
.st-complete { color: var(--green); background: rgba(31,157,99,0.12); }

/* play button play/pause icons */
.play-btn .i-play, .play-btn .i-pause { width: 15px; height: 15px; }

/* modal audio player */
.modal-player { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 22px; }
.modal-player .play-btn { width: 44px; height: 44px; }

/* ============================================================
   Dark theme — FORCED ON (system light mode disabled, dark only)
   Previously gated behind @media (prefers-color-scheme: dark); now
   applied unconditionally so the site always renders in dark mode
   regardless of the visitor's OS setting.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #08080a;
  --surface: #100f13;
  --surface-2: #16161b;
  --surface-3: #1d1d23;
  --border: #25252b;
  --border-strong: #33333c;
  --ink: #f4f4f7;
  --ink-soft: #a6a6ae;
  --ink-faint: #6c6c76;
  --accent: #2f40ff;
  --accent-2: #6878ff;
  --accent-soft: rgba(47,64,255,0.20);
  --green: #3ecf8e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px -8px rgba(0,0,0,0.6);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.45), 0 24px 50px -24px rgba(0,0,0,0.75);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.5), 0 40px 80px -30px rgba(0,0,0,0.85);
}
.nav.scrolled { background: rgba(8,8,10,0.82); }
.logo-img { filter: brightness(0) invert(1); }
.cta-box { background: linear-gradient(160deg,#121319,#0c0c10); border: 1px solid var(--border-strong); }
/* uniform near-black sections (no washed-out gray blocks) */
.results { background: var(--bg); }
/* stronger hero glow + grid in dark (matches v1) */
.hero::before { background: radial-gradient(ellipse at center, rgba(47,64,255,0.34) 0%, rgba(47,64,255,0.10) 38%, transparent 62%); }
.hero::after { background-image: linear-gradient(to right, rgba(150,165,255,0.075) 1px, transparent 1px), linear-gradient(to bottom, rgba(150,165,255,0.075) 1px, transparent 1px); }
/* HIPAA badge is dark navy art — invert to white on dark cards (like their site) */
.sec-mono { filter: brightness(0) invert(1); }

/* ============================================================
   Hero glow + beta bubble + headline highlight
   ============================================================ */
.hero { overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 840px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(47,64,255,0.24) 0%, rgba(47,64,255,0.08) 38%, transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(120,140,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,140,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 66% 56% at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 66% 56% at 50% 30%, #000 0%, transparent 70%);
}
.hero-center { position: relative; z-index: 1; }
.hero h1 .hl { color: var(--accent); }
/* sparkle ornament above beta pill (matches v1 hero) */
.hero-spark { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.hero-spark .line { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, rgba(47,64,255,0.6)); }
.hero-spark .star { color: var(--accent); margin-top: -2px; filter: drop-shadow(0 0 8px rgba(47,64,255,0.5)); }
.hero-spark .star svg { width: 16px; height: 16px; display: block; }
.beta-bubble {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 50px;
  background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.beta-bubble .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ============================================================
   Demo grid layout
   ============================================================ */
.demo-grid { grid-template-columns: repeat(2, 1fr); }
.dpanel.full { grid-column: 1 / -1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* --- AI-Powered Revenue Cycle --- */
.wf-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.wf-agents { display: flex; flex-direction: column; }
.wf-agent { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); transition: all 0.35s var(--ease); }
.wf-agent .wf-ic { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-faint); transition: all 0.35s; }
.wf-agent .wf-ic svg { width: 18px; height: 18px; }
.wf-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.wf-state { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.wf-state .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); transition: all 0.3s; }
.wf-arrow { display: flex; justify-content: center; padding: 6px 0; color: var(--ink-faint); }
.wf-arrow svg { width: 18px; height: 18px; }
.wf-agent.active { border-color: var(--accent); background: var(--accent-soft); }
.wf-agent.active .wf-ic { background: var(--accent); color: #fff; }
.wf-agent.active .wf-state { color: var(--accent-2); }
.wf-agent.active .sdot { background: var(--accent-2); animation: pulse 1.4s infinite; }
.wf-agent.done .wf-ic { color: var(--green); background: rgba(31,157,99,0.12); }
.wf-agent.done .wf-state, .wf-agent.done .sdot { color: var(--green); }
.wf-agent.done .sdot { background: var(--green); }
.wf-detail { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); padding: 20px; height: 320px; display: flex; flex-direction: column; }
.wf-detail-head { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; flex-shrink: 0; }
.wf-detail-head h4 { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.wf-detail-head p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.wf-log { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scroll-behavior: smooth; }
.wf-log::-webkit-scrollbar { width: 5px; }
.wf-log::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 9px; }
.wf-entry { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; animation: logIn 0.4s var(--ease); }
.wf-entry .le-ic { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.wf-entry .le-ic.ok { color: var(--green); background: rgba(31,157,99,0.12); }
.wf-entry .le-ic svg { width: 14px; height: 14px; }
.wf-entry .le-body .let { font-size: 13.5px; color: var(--ink); }
.wf-entry .le-body .lets { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.wf-divider { display: flex; align-items: center; gap: 12px; padding: 8px 0; animation: logIn 0.4s var(--ease); }
.wf-divider::before, .wf-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wf-divider span { font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wf-progress { margin-top: 20px; }
.wf-progress-label { text-align: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-top: 10px; }
.wf-progress-label b { color: var(--accent); }

/* --- Automated Claim Prepration --- */
.claim-stage { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: center; }
.browser { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.browser-bar .burl { margin-left: 8px; flex: 1; max-width: 180px; height: 12px; border-radius: 50px; background: var(--surface); }
.browser-body { padding: 16px; position: relative; }
.portal-title { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.pfield { margin-bottom: 9px; }
.pfield label { display: block; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 4px; }
.pinput { height: 27px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); display: flex; align-items: center; padding: 0 9px; font-family: var(--mono); font-size: 11px; color: var(--ink); transition: all 0.3s; }
.pinput.filling { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.psubmit { margin-top: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 8px 18px; border-radius: 6px; transition: all 0.3s; }
.psubmit.active { box-shadow: 0 0 0 4px var(--accent-soft); }
.cursor-ic { position: absolute; left: 0; top: 0; color: var(--ink); transition: transform 0.7s var(--ease); z-index: 3; }
.cursor-ic svg { width: 15px; height: 15px; }
.ai-proc { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 16px; align-self: stretch; }
.ap-title { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.ap-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-faint); padding: 8px 0; transition: color 0.3s; }
.ap-step .apdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); transition: all 0.3s; }
.ap-step.active { color: var(--ink); }
.ap-step.active .apdot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-step.done { color: var(--green); }
.ap-step.done .apdot { background: var(--green); }

/* --- AI Scribe --- */
.scribe-stage { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 30px; align-items: center; }
.scribe-audio, .scribe-soap { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); padding: 18px; }
.sa-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.sa-head .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0564f; animation: pulse 1.4s infinite; }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 48px; margin-bottom: 14px; }
.mini-wave i { flex: 1; border-radius: 50px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: 0.85; animation: wave 0.9s ease-in-out infinite; }
.sa-tag, .scribe-mid-tag { display: inline-block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); background: var(--surface-3); padding: 5px 10px; border-radius: 50px; }
.scribe-mid { position: relative; display: flex; align-items: center; justify-content: center; align-self: center; }
.scribe-mid-tag { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.orb { position: relative; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, var(--accent-2), var(--accent) 70%); box-shadow: 0 0 28px rgba(47,64,255,0.5); animation: orbBreathe 3s ease-in-out infinite; }
.orb::before, .orb::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--accent-2); opacity: 0; animation: orbRing 2.8s ease-out infinite; }
.orb::after { animation-delay: 1.4s; }
@keyframes orbBreathe { 0%,100% { transform: scale(1); box-shadow: 0 0 22px rgba(47,64,255,0.45); } 50% { transform: scale(1.07); box-shadow: 0 0 44px rgba(47,64,255,0.7); } }
@keyframes orbRing { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.3); opacity: 0; } }
.ss-head { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ss-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 16px; }
.ss-field { margin-bottom: 12px; }
.ss-field .ss-label { display: block; font-size: 11px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ss-lines { display: flex; flex-direction: column; gap: 6px; }
.ss-line { height: 6px; border-radius: 4px; background: var(--surface-3); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease), background 0.3s; }
.ss-line.write { transform: scaleX(1); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ss-complete { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); opacity: 0; transition: opacity 0.5s; }
.ss-complete svg { width: 14px; height: 14px; }
.ss-complete.show { opacity: 1; }

/* ============================================================
   Setup step UI (rich)
   ============================================================ */
.step-ui { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); padding: 16px; }
.sui-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sui-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.sui-title .sdot { width: 8px; height: 8px; border-radius: 50%; }
.sdot.ok { background: var(--green); }
.sdot.accent { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sui-stat { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.sui-stat.ok { color: var(--green); }
.sui-stat.accent { color: var(--accent); }
.sui-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 7px; background: var(--surface); font-size: 13px; color: var(--ink); }
.sui-name { display: flex; align-items: center; gap: 9px; }
.sui-name .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sui-check { color: var(--green); font-weight: 700; }
.sui-progress-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink); margin-bottom: 8px; }
.sui-progress-row b { color: var(--green); font-family: var(--mono); }
.sui-progress { height: 8px; border-radius: 50px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.sui-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 50px; }
.sui-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sui-chip { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 10px; border-radius: 50px; background: var(--surface-3); color: var(--ink-soft); border: 1px solid var(--border); }
.sui-sub { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin-bottom: 12px; }
.sui-sub-ic { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sui-sub-ic svg { width: 16px; height: 16px; }
.sui-sub-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.sui-sub-d { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   Demo responsive
   ============================================================ */
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .wf-layout { grid-template-columns: 1fr; }
  .scribe-stage { grid-template-columns: 1fr; }
  .scribe-mid { flex-direction: row; }
  .claim-stage { grid-template-columns: 1fr; }
}

/* ============================================================
   Specializations — horizontal flowing marquee
   ============================================================ */
.spec-marquee { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.spec-track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; padding: 6px 0; }
.spec-marquee:hover .spec-track { animation-play-state: paused; }
.spec-card { width: 300px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.spec-card .sc-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.spec-card .sc-ic svg { width: 22px; height: 22px; }
.spec-card h3 { font-size: 20px; margin-bottom: 8px; }
.spec-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Scribe stage — unified scene + flowing connector
   ============================================================ */
.scribe-stage { position: relative; background: radial-gradient(ellipse 55% 85% at 50% 50%, var(--accent-soft), transparent 72%), var(--surface-3); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; overflow: hidden; }
.scribe-links { display: none; }
.scribe-stage::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 2px; transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 15px);
  background-size: 15px 2px; opacity: 0.4; z-index: 1; animation: dashMove 0.8s linear infinite;
}
@keyframes dashMove { to { background-position: 15px 0; } }
.scribe-stage > .scribe-audio, .scribe-stage > .scribe-mid, .scribe-stage > .scribe-soap { position: relative; z-index: 2; }
.scribe-audio, .scribe-soap { background: var(--surface); box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .scribe-stage::before { display: none; } }

/* ============================================================
   Voice AI transcript (fills the box with call context)
   ============================================================ */
.voice-transcript { position: relative; margin-top: 22px; height: 200px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%); mask-image: linear-gradient(to bottom, transparent 0%, #000 24%); }
.vt-track { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.vt-line { flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); max-width: 90%; }
.beep { display: inline-block; vertical-align: middle; width: 32px; height: 11px; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--ink-faint) 0 3px, transparent 3px 6px); opacity: 0.65; margin: 0 2px; }
.vt-line.us { align-self: flex-end; background: var(--accent-soft); border-color: rgba(47,64,255,0.22); }
.vt-who { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.vt-line.us .vt-who { color: var(--accent); }
.vt-msg { font-size: 13px; color: var(--ink); line-height: 1.45; }

/* ============================================================
   AI Scribe — text left, contained scene right (matches source)
   ============================================================ */
.scribe-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 38px; align-items: center; }
.scribe-text h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.scribe-text p { font-size: 15px; color: var(--ink-soft); max-width: 38ch; }
@media (max-width: 860px) { .scribe-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Seekable voice waveform + live caption states
   ============================================================ */
.voice-visual { cursor: pointer; }
.vt-line { opacity: 0; transition: opacity 0.5s var(--ease); }
.vt-line.show { opacity: 1; }
.player-line { cursor: pointer; }
.modal-player .player-line { height: 6px; }

/* ============================================================
   Legal pages (Privacy / Terms)
   ============================================================ */
.legal { padding: clamp(36px, 7vw, 80px) 0 clamp(60px, 9vw, 120px); }
.legal-wrap { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 30px; transition: color 0.2s; }
.legal-back:hover { color: var(--ink); }
.legal h1 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; margin-bottom: 18px; }
.legal-tagline { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 60ch; }
.legal-updated { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 22px; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.legal-body { margin-top: 8px; }
.legal-body h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); margin: 46px 0 16px; }
.legal-body h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.legal-body p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 9px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Static blue aura (Real Results + Set up in One Day)
   ============================================================ */
.aura { position: relative; overflow: hidden; }
.aura::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1200px; height: 760px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(47,64,255,0.13), transparent 64%);
}
.aura > .container { position: relative; z-index: 1; }
.aura::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(47,64,255,0.20), transparent 64%); }

/* legal: separate the back link and the eyebrow onto their own lines */
.legal .legal-back { display: flex; width: fit-content; margin-bottom: 34px; }
.legal .eyebrow { display: flex; width: fit-content; }

/* ============================================================
   MOBILE-ONLY refinements (desktop > 860px is unchanged)
   ============================================================ */
@media (max-width: 860px) {
  /* AI Agents demos: force single column and let everything shrink to fit */
  .demo-grid, .wf-layout, .scribe-layout, .scribe-stage, .claim-stage { grid-template-columns: 1fr !important; }
  .dpanel, .dpanel-head, .dpanel-head p,
  .wf-layout, .wf-agents, .wf-agent, .wf-body, .wf-detail, .wf-log, .wf-entry, .wf-entry .le-body,
  .claim-stage, .browser, .browser-body, .ai-proc,
  .scribe-stage, .scribe-audio, .scribe-soap, .scribe-text,
  .voice-row, .voice-visual, .voice-transcript, .vt-track, .vt-line, .vt-msg,
  .feed, .feed-body { min-width: 0; }
  .voice-visual, .mini-wave { overflow: hidden; }
  .dpanel-head p, .wf-entry .let, .vt-msg { white-space: normal; word-break: break-word; }
  .dpanel { padding: 22px; }
  /* stack orb + label in normal flow, with room for the orb's rings + a vertical connector */
  .scribe-stage { gap: 64px; }
  .scribe-mid { flex-direction: column; gap: 12px; position: relative; }
  .scribe-mid-tag { position: static; transform: none; }
  .scribe-mid::before, .scribe-mid::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 0; border-left: 2px dashed var(--accent); opacity: 0.45; pointer-events: none; }
  .scribe-mid::before { bottom: 100%; height: 56px; }
  .scribe-mid::after { top: 100%; height: 56px; }
}
@media (max-width: 680px) {
  /* remove the hamburger entirely on mobile */
  .nav-toggle { display: none !important; }
  /* lift the hero so the "Hear our AI in action" button + sparkle stay in frame */
  .hero { padding-top: calc(78px + 8px); padding-bottom: 40px; }
  .hero-spark { margin-bottom: 6px; }
  .hero-spark .line { height: 26px; }
  .hero .beta-bubble { margin-bottom: 18px; }
  .hero .sub { margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
}

/* ============================================================
   Mode hint toast (auto light/dark nudge)
   ============================================================ */
.mode-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 32px);
  z-index: 300; max-width: 470px; width: calc(100% - 40px);
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 14px 14px 14px 18px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mode-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mode-toast .mt-emoji { font-size: 22px; flex-shrink: 0; line-height: 1; }
.mode-toast .mt-text { font-size: 14px; color: var(--ink); line-height: 1.45; }
.mode-toast .mt-text b { font-weight: 600; color: var(--accent); }
.mode-toast .mt-close { margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-faint); transition: background 0.2s, color 0.2s; }
.mode-toast .mt-close:hover { background: var(--surface-2); color: var(--ink); }
.mode-toast .mt-close svg { width: 15px; height: 15px; }
@media (max-width: 680px) { .mode-toast { bottom: 16px; } }
