:root {
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bg: #F2F7F7;
  --surface: #FFFFFF;
  --line: #DCE9E9;
  --ink: #15171C;
  --muted: #545868;
  --accent: #0E7C86;
  --accent-dark: #0A626A;
  --accent-tint: #E2F2F2;
  --err: #B3324A;
  --err-tint: #FBEAED;
  --radius: 16px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1617; --surface: #172122; --line: #26393A; --ink: #E9F1F1; --muted: #A3B2B3;
    --accent: #3FB3BC; --accent-dark: #5CC6CE; --accent-tint: #173A3D; --err: #F08A9C; --err-tint: #3A1E25;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
.wrap { max-width: 1560px; margin: 0 auto; padding: 0 clamp(24px, 3.5vw, 48px); }

/* header */
.top-bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-bar .top { padding-top: 14px; padding-bottom: 14px; }
.links { display: flex; gap: 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; height: 36px; padding: 0 12px; font: 600 13px var(--font); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #062124; } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 20px 50px -30px rgba(14, 124, 134, .45); }
.mock .rec { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.mock .dot { width: 10px; height: 10px; border-radius: 50%; background: #C73E56; box-shadow: 0 0 0 4px rgba(199, 62, 86, .18); }
.wave { display: flex; align-items: center; gap: 6px; height: 44px; margin-bottom: 18px; overflow: hidden; }
.wave i { flex: 0 0 5px; background: var(--accent); border-radius: 3px; opacity: .85; }
.mock dl { margin: 0; display: grid; gap: 10px; }
.mock dt { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.mock dd { margin: 0; font-size: 14px; color: var(--ink); }
.mock sup { font-size: 10px; color: var(--accent); background: var(--accent-tint); border-radius: 4px; padding: 0 4px; margin-left: 2px; }

/* sections */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: 28px; letter-spacing: -.015em; margin: 0 0 8px; }
section.band > .wrap > p { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .n { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* sign-in page */
.signin { min-height: calc(100vh - 84px); display: grid; place-items: center; padding-top: 24px; padding-bottom: 64px; }
.box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.box h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.box > p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.box input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 16px var(--font); background: var(--bg); color: var(--ink); }
.box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.box .btn { width: 100%; margin-top: 16px; }
.box small { display: block; color: var(--muted); font-size: 13px; margin-top: 18px; line-height: 1.5; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; background: var(--err-tint); color: var(--err); }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .box { padding: 24px 20px; }
}

/* ---------- the pilot page ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px !important; }
.hero h1 { text-wrap: balance; }
section.band h2, .close h2 { text-wrap: balance; }

/* the hero: text on one side, and on the other the one visual, the Mediscribe window */
.hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 80px); padding-top: 48px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px, 4.3vw, 64px); }
.hero .lead > p:not(.eyebrow) { font-size: clamp(18px, 1.35vw, 20px); }
.hero > * { min-width: 0; }
.hero .eyebrow { font-size: 12px; }
.win .rec { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
#wave { flex: 1 1 auto; min-width: 0; height: 44px; color: var(--accent); }
.win { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(14, 124, 134, .5); }
.win-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.win-top b { font-weight: 600; font-size: 15px; }
.win-top small { font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.recb { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(199, 62, 86, .12); border: 1px solid rgba(199, 62, 86, .45); flex: none; }
.recb i { width: 11px; height: 11px; border-radius: 50%; background: #C73E56; animation: recb 1.4s ease-in-out infinite; }
@keyframes recb { 50% { opacity: .35; } }
.win.idle .recb i { animation: none; border-radius: 3px; opacity: .6; }
.clock { font: 500 13px var(--mono); color: var(--muted); }
.live { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink); }
.live .cur { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: recb 1s steps(2) infinite; }
.fields { padding: 2px 20px; }
.fl { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.fl:last-child { border-bottom: 0; }
.fl label { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fl label i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, box-shadow .3s; }
.fl.act label { color: var(--accent); }
.fl.act label i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.fl div { font-size: 14.5px; line-height: 1.45; }
.wfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.state { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding: 5px 12px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); transition: all .3s; }
.state.ok { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.approve { flex: none; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #fff; transition: transform .25s, box-shadow .25s; }
.approve.go { transform: scale(1.05); box-shadow: 0 0 0 7px var(--accent-tint); }
@media (prefers-color-scheme: dark) { .approve { color: #062124; } }
@media (prefers-reduced-motion: reduce) { .recb i, .live .cur { animation: none; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 48px; } }
@media (max-width: 520px) { .fl { grid-template-columns: 1fr; gap: 2px; } }

/* what it doesn't do */
.nots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nots li { border-top: 2px solid var(--ink); padding-top: 16px; }
.nots h3 { margin: 0 0 6px; font-size: 17px; }
.nots p { margin: 0; color: var(--muted); font-size: 15px; }

/* the pilot */
.pilot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.steps li::after { content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 6px; border-left: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 4px; font-size: 17px; line-height: 32px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34em; }
.need { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.need h3 { margin: 0 0 12px; font-size: 17px; }
.need ul { list-style: none; margin: 0; padding: 0; }
.need li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.need li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* questions */
.faq { max-width: 900px; margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 22px var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }

/* the closing band */
.close { background: var(--accent); color: #fff; padding: 72px 0; }
.close h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin: 0 0 10px; }
.close p { margin: 0 0 28px; max-width: 38em; font-size: 18px; opacity: .92; }
.close .btn { background: #fff; border-color: #fff; color: #0A626A; }
.close .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (prefers-color-scheme: dark) {
  .close { background: var(--accent-tint); color: var(--ink); }
  .close .btn { background: var(--accent); border-color: var(--accent); color: #062124; }
  .close .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
}
footer { border-top: 0; }

@media (max-width: 960px) { .links { display: none; } }
@media (max-width: 820px) {
  .nots { grid-template-columns: 1fr 1fr; }
  .pilot { grid-template-columns: 1fr; gap: 32px; }
  .need { position: static; }
  section.band { padding: 48px 0; }
  .close { padding: 56px 0; }
}
@media (max-width: 480px) {
  .nots { grid-template-columns: 1fr; }
}
section.band h2 { line-height: 1.2; }

/* the Velix Intelligence credit: a small badge beside the name in the header, and a line in the footer */
:root { --velix: #7A55C7; }
@media (prefers-color-scheme: dark) { :root { --velix: #C9A7EB; } }
.id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.by { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; white-space: nowrap; transition: border-color .2s; }
.by:hover { border-color: var(--velix); }
.by svg { width: 18px; height: 18px; color: var(--ink); margin: 0 -1px 0 1px; }
.by svg path[stroke] { stroke: var(--velix); }
.vx { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.vx em { font-style: normal; font-weight: 500; color: var(--velix); }
.maker:hover { color: var(--ink); }
.maker { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; }
.maker svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.maker svg path[stroke] { stroke: var(--velix); }
@media (max-width: 1100px) { .by-w { display: none; } }
@media (max-width: 620px) { .by { display: none; } }
