/* Layout: a single centred column (max 1120px) of full-width bands; the hero pairs copy with a
   "projector" demo. Colours come from the Biverse mark: navy tile, gold waveform, warm paper. */
:root {
  --navy: #0B1638;
  --navy-2: #1F3A8A;
  --gold: #F5B83D;
  --paper: #FFF8EC;

  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --fg: #0E1A3D;
  --muted: #56607A;
  --line: #DDE1EC;
  --accent: #1F3A8A;        /* links and primary buttons */
  --accent-fg: #FFFFFF;
  --accent-hover: #172D6E;
  --gold-text: #8A5A00;     /* gold that reads on light backgrounds */
  --mark-bg: #FCE9BE;
  --ok: #1A7F43;
  --part: #8A5A00;
  --no: #B4232F;
  --screen-bg: #05091A;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-verse: "Literata", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D24;
    --surface: #0E1736;
    --fg: #EDF0FA;
    --muted: #A2AAC4;
    --line: #22305C;
    --accent: #F5B83D;
    --accent-fg: #0B1638;
    --accent-hover: #FFCB61;
    --gold-text: #F5B83D;
    --mark-bg: #3A2C08;
    --ok: #5FD38D;
    --part: #F5B83D;
    --no: #FF7A84;
    --screen-bg: #02050F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070D24;
  --surface: #0E1736;
  --fg: #EDF0FA;
  --muted: #A2AAC4;
  --line: #22305C;
  --accent: #F5B83D;
  --accent-fg: #0B1638;
  --accent-hover: #FFCB61;
  --gold-text: #F5B83D;
  --mark-bg: #3A2C08;
  --ok: #5FD38D;
  --part: #F5B83D;
  --no: #FF7A84;
  --screen-bg: #02050F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: 0.88em; background: color-mix(in srgb, var(--line) 55%, transparent); padding: 0.1em 0.35em; border-radius: 5px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 700 var(--step-0)/1 var(--font-body);
  padding: 0.85em 1.35em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn-small { font-size: var(--step--1); padding: 0.6em 1.05em; background: var(--accent); color: var(--accent-fg); }
.btn-small:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-quiet { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-quiet:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 800 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--fg); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--fg); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.site-header nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 760px) { .site-header nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font: 600 var(--step--1)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
h1 { font-size: var(--step-4); font-weight: 800; }
h1 span { color: var(--accent); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* demo: transcript -> detection -> projector */
.demo {
  margin: 0; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(16px, 2.5vw, 26px); display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--navy) 45%, transparent);
}
.mic-line { display: flex; align-items: center; gap: 10px; font: 600 var(--step--1)/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px color-mix(in srgb, #E5484D 22%, transparent); }
.meter { display: inline-flex; gap: 3px; align-items: center; height: 18px; margin-left: auto; }
.meter i { width: 4px; border-radius: 2px; background: var(--gold); height: 40%; }
.meter i:nth-child(2) { height: 70%; } .meter i:nth-child(3) { height: 100%; } .meter i:nth-child(4) { height: 60%; }
.meter i:nth-child(5) { height: 85%; } .meter i:nth-child(6) { height: 45%; } .meter i:nth-child(7) { height: 65%; } .meter i:nth-child(8) { height: 30%; }
@media (prefers-reduced-motion: no-preference) {
  .meter i { animation: level 1.1s ease-in-out infinite alternate; }
  .meter i:nth-child(2n) { animation-duration: .8s; } .meter i:nth-child(3n) { animation-duration: 1.4s; }
}
@keyframes level { to { transform: scaleY(0.35); } }
.transcript { font: 400 var(--step-0)/1.5 var(--font-mono); color: var(--fg); min-height: 3em; }
.transcript mark { background: var(--mark-bg); color: inherit; padding: 0 0.15em; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--gold); }
.detect { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arrow { width: 28px; height: 2px; background: var(--line); position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line); border-right: 0; }
.chip { font: 600 var(--step--1)/1 var(--font-mono); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
.chip-live { background: #E5484D; border-color: #E5484D; color: #fff; }
.screen {
  background: var(--screen-bg); border-radius: 12px; padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.screen-inner {
  aspect-ratio: 16 / 9; max-width: 100%;
  background: radial-gradient(120% 90% at 50% 0%, #142554 0%, #070D24 70%);
  border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.9em;
  padding: 6% 8%; text-align: center; color: #FFFFFF; overflow: hidden;
}
.screen blockquote { margin: 0; font: 400 clamp(0.95rem, 0.7rem + 1.1vw, 1.35rem)/1.45 var(--font-verse); text-shadow: 0 2px 10px rgba(0,0,0,0.5); text-wrap: balance; }
.screen-ref { font: 600 clamp(0.8rem, 0.7rem + 0.4vw, 0.95rem)/1 var(--font-display); color: var(--gold); letter-spacing: 0.02em; }
.screen-ref span { color: #A7B0CC; font-weight: 500; margin-left: 0.4em; }
.demo figcaption { font-size: var(--step--1); color: var(--muted); }
.demo [data-swap] { transition: opacity .35s ease; }
.demo.is-swapping [data-swap] { opacity: 0; }

/* facts band */
.facts { background: var(--navy); color: #EDF0FA; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 28px; }
.facts-row div { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font: 800 var(--step-2)/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.facts span { font-size: var(--step--1); color: #B9C1DA; }
@media (max-width: 700px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }

/* sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section h2 { margin-bottom: 28px; }
.section-lede { max-width: 42em; color: var(--muted); margin-top: -12px; margin-bottom: 28px; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--fg); }
.steps li::before { content: counter(step); font: 600 var(--step--1)/1 var(--font-mono); color: var(--gold-text); }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* screenshots */
.shots { padding-top: 0; }
.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot-main { grid-column: 1 / -1; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--navy) 60%, transparent); width: 100%; }
.shot figcaption { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 640px) { .shots-grid { grid-template-columns: 1fr; } }

/* features */
.features { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.features div { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 16px; }
.features dt { font: 700 var(--step-0)/1.4 var(--font-display); }
.features dd { margin: 0; color: var(--muted); }
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features div { grid-template-columns: 1fr; gap: 4px; } }

/* download */
.download { background: var(--surface); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
th { text-align: left; font: 600 var(--step--1)/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table td:last-child { text-align: right; width: 1%; }
.dl-table tr.is-yours td { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.dl-table tr.is-yours td:first-child::after { content: "Your computer"; margin-left: 10px; font: 600 0.7rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-text); border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; vertical-align: 2px; white-space: nowrap; }
.sub { margin-top: 44px; margin-bottom: 12px; }
.fine { margin-top: 18px; font-size: var(--step--1); color: var(--muted); max-width: 52em; }
@media (max-width: 560px) {
  .dl-table thead { display: none; }
  .dl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .dl-table td { border: 0; padding: 0; background: none !important; }
  .dl-table td:first-child { grid-column: 1; }
  .dl-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: var(--step--1); color: var(--muted); }
  .dl-table td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .dl-table tr.is-yours { background: color-mix(in srgb, var(--gold) 14%, transparent); padding-inline: 10px; border-radius: 10px; }
}

/* AI summary */
.ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ai-grid > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.ai-grid > div:first-child h2 { margin-bottom: 4px; }
.ai-grid p { color: var(--muted); max-width: 36em; }
.ai-grid strong { color: var(--fg); }
.ai-table td:last-child { color: var(--muted); }
.ok, .part, .no { font-weight: 700; margin-right: 0.35em; }
.ok { color: var(--ok); } .part { color: var(--part); } .no { color: var(--no); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq .wrap { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 700 var(--step-1)/1.3 var(--font-display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--gold-text); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; color: var(--muted); max-width: 44em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.brand-footer { font-size: 1.1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--fg); font-size: var(--step--1); text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .muted { font-size: var(--step--1); margin-left: auto; }
@media (max-width: 700px) { .site-footer .muted { margin-left: 0; } }

/* 404 */
.notfound { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 640px; }
.ai-table code, .dl-table code { white-space: nowrap; }
