:root {
  --fog: #f3f5f7;
  --paper: #ffffff;
  --ink: #141a1f;
  --slate: #5b6875;
  --line: #d9dfe5;
  --rec: #e5322d;
  --amber: #f2b01e;
  --measure: 62ch;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--fog); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rec); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 96; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: rgba(20, 26, 31, 0.06); padding: 0.1em 0.35em; border-radius: 5px; }
kbd { background: var(--paper); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.45em; }
.muted { color: var(--slate); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-size: 18px; }
.brand-mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-nav { display: flex; gap: 22px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--slate); }
.top-nav a:hover { color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.035em; max-width: 16ch; }
.lede { margin-top: 24px; font-size: 19px; max-width: var(--measure); color: #2b353d; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; font-size: 16px; background: var(--paper); }
.button-primary { background: var(--ink); color: var(--paper); }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.hero-facts { margin-top: 22px; font-size: 15px; color: var(--slate); max-width: 52ch; }

/* The memorable thing: a transcript settling into written text. */
.demo { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px -30px rgba(20, 26, 31, 0.35); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--slate); }
.rec { width: 10px; height: 10px; border-radius: 999px; background: var(--rec); box-shadow: 0 0 0 0 rgba(229, 50, 45, 0.5); }
.demo[data-phase="recording"] .rec { animation: pulse 1.1s ease-in-out infinite; }
.demo[data-phase="polishing"] .rec, .demo[data-phase="done"] .rec { background: var(--slate); }
.meter { display: inline-flex; align-items: center; gap: 2px; height: 20px; margin-left: auto; }
.meter i { display: block; width: 3px; height: 20%; background: var(--ink); border-radius: 2px; opacity: 0.85; transition: height 90ms linear; }
.demo[data-phase="done"] .meter i, .demo[data-phase="polishing"] .meter i { height: 14% !important; opacity: 0.25; }
.demo-body { padding: 22px 22px 18px; min-height: 230px; display: grid; align-content: start; gap: 16px; }
.demo-raw { font-family: var(--mono); font-size: 15px; color: var(--slate); min-height: 3.2em; }
.demo-raw::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--rec); vertical-align: -0.15em; margin-left: 2px; }
.demo[data-phase="done"] .demo-raw::after, .demo[data-phase="polishing"] .demo-raw::after { display: none; }
.demo-out { font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; opacity: 0; transform: translateY(6px); transition: opacity 500ms ease, transform 500ms ease; padding-top: 16px; border-top: 1px dashed var(--line); }
.demo[data-phase="done"] .demo-out { opacity: 1; transform: none; }
.demo figcaption { padding: 10px 16px 14px; font-size: 13px; color: var(--slate); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(229, 50, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); } }

.section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 28px; letter-spacing: -0.03em; }
.section > p { max-width: var(--measure); margin-bottom: 16px; }
.section h3 { font-size: 19px; margin-bottom: 6px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps p { color: #2b353d; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.features p { color: #2b353d; font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.shots figcaption { font-size: 14px; color: var(--slate); margin-top: 8px; }

.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-head h2 { margin-bottom: 0; }
.board { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-weight: 500; color: var(--slate); font-size: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.board td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board .right { text-align: right; }
.board .rank { display: inline-block; min-width: 26px; }
.board .first .rank { color: var(--amber); font-weight: 700; }
.board .up { color: #16803c; font-size: 13px; margin-left: 6px; }
.board .down { color: var(--rec); font-size: 13px; margin-left: 6px; }
.board > p { padding: 22px 18px; }
.board-foot { margin-top: 12px; font-size: 14px; }

pre { background: var(--ink); color: #eef2f5; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 20px; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; font-size: 14.5px; }

.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 32px clamp(20px, 5vw, 64px) 48px; max-width: 1240px; margin-inline: auto; font-size: 15px; display: grid; gap: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .steps, .features, .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .top-nav { display: none; }
  .steps, .features, .shots { grid-template-columns: 1fr; }
  .demo-out { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .rec, .meter i, .demo-out, .button { animation: none !important; transition: none !important; }
}
