/* Tokens match the app (a9voice CLAUDE.md, "Brand").
   Color rule: blue (#2B5BD7 actions, #7AA2F7 signal) for everything clickable or highlighted.
   Red (#E5484D) only in the wordmark's 9 and in genuine recording states (the hero demo's
   record dot). No red buttons, links or headings. No Atlas9 orange. */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #0B0C0E; --pill: #121315; --surface: #17181B; --raised: #1E1F23; --line: #2A2C31; --line-2: #34363C; --divider: #222428;
  --text: #ECEDEE; --text-2: #C9CBD0; --muted: #9A9DA4; --muted-2: #8B8E95;
  --action: #2B5BD7; --action-hover: #3A68E0; --signal: #7AA2F7; --link: #9DBBFA;
  --red: #E5484D; --green: #4CC38A; --green-text: #7FD8AE;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: "Geist", "Segoe UI", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
a:hover { color: #DCE6FD; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }  /* under the sticky nav */

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--action); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.mono { font-family: var(--mono); }
.hi { color: var(--text-2); }
.dim { color: var(--muted); font-size: 12px; }
.blue { color: var(--signal); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 860px; }
.pad { padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: 36px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; background: var(--action); color: #fff; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: background .15s; }
.btn:hover { background: var(--action-hover); color: #fff; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn-xl { height: 56px; padding: 0 26px; font-size: 17px; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); padding: 0 20px; }
.btn-ghost:hover { background: var(--raised); color: var(--text); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chip { align-self: flex-start; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--text-2); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 520px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); }
.fine a { color: var(--link); }

.hero-demo { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mail { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.mail-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--divider); background: var(--pill); }
.mail-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mail-bar b { flex: 1; text-align: center; font-size: 12px; font-weight: 400; color: var(--muted); margin-right: 54px; }
.mail-body { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mail-row { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--divider); color: var(--muted); }
.mail-row span + span { color: var(--text-2); }
.mail-text { min-height: 120px; font-size: 16px; line-height: 1.6; color: var(--text); }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--signal); animation: blink 1s step-end infinite; }

.pill-slot { height: 48px; display: flex; align-items: center; }
.ph { display: none; }
.pill-slot[data-phase="idle"] .ph-idle, .pill-slot[data-phase="rec"] .ph-rec,
.pill-slot[data-phase="think"] .ph-think, .pill-slot[data-phase="done"] .ph-done { display: inline-flex; }
.ph-idle { font-size: 13px; color: var(--muted); gap: 5px; align-items: baseline; }
.pill { align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; background: var(--pill); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 13px; white-space: nowrap; }
.pill b { font-weight: 500; margin-left: -2px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.bars i { display: block; width: 3px; border-radius: 2px; background: var(--signal); }
.bars.big { gap: 4px; height: 34px; align-self: flex-start; }
.bars.big i { width: 4px; }
.bars.calm i { animation: calm 1.1s ease-in-out infinite; }
.bars.calm i:nth-child(1), .bars.calm i:nth-child(3) { height: 10px; }
.bars.calm i:nth-child(2) { height: 16px; animation-delay: .18s; }
.bars.calm i:nth-child(3) { animation-delay: .36s; }
.b1 { height: 8px; animation: lv1 .7s ease-in-out infinite; }
.b2 { height: 16px; animation: lv2 .55s ease-in-out infinite; }
.b3 { height: 10px; animation: lv3 .8s ease-in-out infinite; }
@keyframes lv1 { 0%,100% { height: 8px } 50% { height: 18px } }
@keyframes lv2 { 0%,100% { height: 16px } 40% { height: 6px } 70% { height: 20px } }
@keyframes lv3 { 0%,100% { height: 10px } 60% { height: 16px } }
@keyframes calm { 0%,100% { opacity: .4 } 50% { opacity: 1 } }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats > div { background: var(--pill); padding: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.stat { font-family: var(--mono); font-size: 34px; font-weight: 500; color: var(--text); line-height: 1.3; }
section[aria-label="By the numbers"] { padding-bottom: 88px; }

/* Section heads */
.head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.head.wide { max-width: 700px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--signal); }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.h2s { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.sub { font-size: 17px; line-height: 1.55; color: var(--text-2); }

/* Grids and cards */
.grid { display: grid; gap: 16px; }
.g260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tight { gap: 12px; }
.roomy { gap: 28px; }
.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { font-size: 22px; letter-spacing: -0.01em; }
.num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.keys { align-self: flex-start; display: inline-flex; gap: 6px; }
kbd { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--mono); font-size: 14px; color: var(--text); }
kbd.wide { padding: 0 28px; }
.pasted { align-self: flex-start; height: 34px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--green-text); }
.tag { height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; background: rgba(122,162,247,.14); color: var(--link); }
.tag.live { background: rgba(76,195,138,.14); color: var(--green-text); }
.ticks { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%237AA2F7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.tile { padding: 20px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 15px; font-weight: 600; }
.tile p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Screenshot tabs */
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; padding: 4px; gap: 4px; background: var(--pill); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; background: transparent; color: var(--text-2); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--action); color: #fff; font-weight: 500; }
.shot-frame { background: var(--pill); border: 1px solid var(--line); border-radius: 18px; padding: clamp(12px, 3vw, 32px); }
.shot-frame figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shot-frame img { width: 100%; max-width: 1080px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(0,0,0,.45); background: var(--ground); }
.shot-frame figcaption { font-size: 14px; color: var(--muted-2); text-align: center; max-width: 520px; }

/* Privacy */
.panel { padding: clamp(28px, 5vw, 56px); background: var(--pill); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; gap: 32px; }
.point { display: flex; flex-direction: column; gap: 10px; }
.point h3 { font-size: 17px; font-weight: 600; }
.point p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 22px; color: var(--muted); transition: transform .15s; line-height: 1; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* Download */
.dl { padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.dl h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; }
.dl .sub { max-width: 520px; }

/* W2: hero video, proof tiles, split sections, gallery, comparison */
.hero-media { flex: 1 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-media video { width: 100%; height: auto; aspect-ratio: 960 / 600; border-radius: 16px; border: 1px solid var(--line); background: var(--ground); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-media figcaption, .shot figcaption { font-size: 14px; color: var(--muted-2); }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.proof > div { background: var(--pill); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.proof-h { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.proof p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split-media { display: flex; flex-direction: column; gap: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(0,0,0,.45); background: var(--ground); }
.gallery { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 20px; }
.gallery .shot:last-child { grid-column: 1 / -1; }
.card .tag { align-self: flex-start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--pill); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--divider); line-height: 1.45; }
.cmp thead th { font-weight: 600; color: var(--text); background: var(--surface); }
.cmp tbody th { font-weight: 500; color: var(--text-2); width: 190px; }
.cmp td { color: var(--muted); }
.cmp td.us { color: var(--text); background: rgba(43,91,215,.10); font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
  .split, .gallery { grid-template-columns: 1fr; }
}

/* Small screens: tighten spacing. */
@media (max-width: 820px) {
  .hero { padding-top: 40px; gap: 40px; }
  .pad { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-copy, .hero-demo { flex-basis: 100%; }
  .card { padding: 22px; }
  .lead { font-size: 17px; }
  .stat { font-size: 28px; }
  .stats { grid-template-columns: 1fr; }
  .g260, .g280, .g250, .g240 { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 auto; padding: 0 8px; }
  .btn-lg, .btn-xl { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Section links and the wide pictures */
.more { align-self: flex-start; font-size: 15px; font-weight: 500; color: var(--link); text-decoration: none; }
.more:hover { color: #DCE6FD; text-decoration: underline; }
.panel .more { align-self: flex-start; }

/* The download page (/downloading/, served by the edge Worker at /download) */
.dlp h2 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.dlp p { margin: 0 0 10px; color: var(--text-2); }
.dlp figure.shot { margin: 14px 0 6px; }
.dlp figure.shot img { width: 100%; max-width: 720px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.dlp .winget { margin-top: 26px; }
.dlp code { font-family: var(--mono); font-size: .92em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.dlp .dl-card { margin: 28px 0 32px; }
.dlp .dl-card .btn { max-width: 100%; white-space: normal; text-align: center; }
.dlp .dl-file { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.dlp .dl-file code { background: none; padding: 0; color: var(--text-2); overflow-wrap: anywhere; }
.dlp .dl-file.dl-code { margin-top: 4px; font-size: 13px; }
.dlp .dl-pub { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.dlp .dl-facts { margin: 14px 0 0; display: grid; gap: 12px; }
.dlp .dl-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.dlp .dl-facts dt { font-size: 13px; color: var(--muted); }
.dlp .dl-facts dd { margin: 0; min-width: 0; color: var(--text-2); }
.dlp .dl-sha { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; color: var(--text); }
.dlp .dl-note { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 8px; }
.dlp .dl-note > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--text); }
.dlp .dl-note > summary:focus-visible { outline: 2px solid var(--signal, #7AA2F7); outline-offset: 2px; border-radius: 12px; }
.dlp .dl-note-body { padding: 0 16px 8px; }
@media (max-width: 520px) { .dlp .dl-facts > div { grid-template-columns: 1fr; gap: 4px; } }
