:root {
  --bg: #f7f4ef;
  --ink: #111318;
  --muted: #626774;
  --line: rgba(17, 19, 24, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --accent: #2558d8;
  --accent-2: #0f8b7a;
  --accent-3: #c24f5a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.92), rgba(255,255,255,0.46)),
    repeating-linear-gradient(90deg, rgba(17,19,24,0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(17,19,24,0.04) 0 1px, transparent 1px 96px);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.static-fallback {
  width: min(var(--max), calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 0 72px;
  display: grid;
  align-content: center;
  gap: 20px;
}
.static-fallback h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.95;
}
.static-fallback p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}
.static-fallback a {
  display: inline-flex;
  width: max-content;
  min-height: 52px;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, white);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-inner {
  width: min(var(--max), calc(100vw - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.18);
  font-size: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-pill {
  color: white;
  background: var(--ink);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(17, 19, 24, 0.08);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.section {
  position: relative;
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: 44px;
  padding: 118px 0 64px;
}
.hero-copy { min-width: 0; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
h1 {
  margin: 20px 0 18px;
  max-width: 11ch;
  font-size: 70px;
  line-height: 0.95;
  letter-spacing: 0;
}
.lede {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 690px;
}
.download-card {
  min-height: 74px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: 0 18px 50px rgba(17, 19, 24, 0.1);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17,19,24,0.28);
  box-shadow: 0 24px 62px rgba(17, 19, 24, 0.15);
}
.download-card.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 66%, var(--accent-2)));
}
.download-card small {
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 800;
}
.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.hero-visual {
  min-height: 650px;
  position: relative;
  display: grid;
  align-items: center;
}
.world {
  position: absolute;
  inset: -6% -7%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  mask-image: radial-gradient(circle at 55% 45%, #000 0 52%, transparent 78%);
}
.world canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.stage {
  position: relative;
  z-index: 1;
}

.mini-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px auto;
  justify-content: flex-end;
}
.mini-apps span,
.media-toolbar span,
.doc-toolbar span,
.page-widths span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.mini-apps span:first-child,
.media-toolbar span.active,
.doc-toolbar span.active,
.page-widths span.active {
  color: white;
  background: var(--ink);
}
.dictation-console,
.reader-window,
.cull-window,
.story-screen {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 34px 96px rgba(17, 19, 24, 0.16);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.dictation-console {
  min-height: 590px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.console-top,
.screen-top,
.reader-tabs,
.media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.console-top strong,
.screen-top strong { color: var(--ink); }
.avatar-orbit {
  min-height: 172px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--accent) 12%, transparent), transparent 64%),
    rgba(255,255,255,0.62);
}
.avatar-orbit img {
  width: 118px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(17,19,24,0.2));
}
.speech-bubble {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.wave,
.large-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.wave span,
.large-wave span {
  width: 5px;
  height: calc(14px + (var(--i) % 7) * 7px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: wave 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 28ms);
}
.mode-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mode-row div,
.key-strip div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.74);
}
kbd {
  width: max-content;
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17,19,24,0.18);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 2px 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}
.mode-row span,
.key-strip span { color: var(--muted); font-size: 12px; font-weight: 850; }
.transcript-card,
.paste-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.transcript-card p {
  margin: 0 0 7px;
  color: var(--muted);
}
.transcript-card p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 800; }
.paste-card {
  border-left: 4px solid var(--accent-2);
  color: var(--ink);
  font-weight: 750;
}

.reader-window {
  min-height: 580px;
}
.reader-tabs {
  min-height: 48px;
  justify-content: flex-start;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.reader-tabs span {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--muted);
}
.reader-tabs span.active {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}
.reader-body {
  min-height: 532px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 142px;
}
.reader-files,
.diff-rail,
.folder-tree {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.52);
}
.reader-files span,
.folder-tree span,
.diff-rail span {
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.reader-files span.active,
.folder-tree span.active {
  color: var(--ink);
  background: white;
}
.reader-doc {
  padding: 22px;
  background: rgba(255,255,255,0.7);
}
.doc-toolbar {
  justify-content: flex-start;
  margin-bottom: 18px;
}
.reader-doc h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.08;
}
.reader-doc p {
  margin: 0 0 14px;
  color: var(--muted);
}
.reader-doc p.changed,
.diff-demo .fresh,
.diff-demo .stale {
  border-radius: 7px;
  padding: 8px;
}
.reader-doc p.changed,
.diff-demo .stale {
  background: color-mix(in srgb, var(--accent-3) 18%, white);
}
.diff-demo .fresh {
  background: color-mix(in srgb, var(--accent-2) 18%, white);
}
.doc-code {
  border-radius: 8px;
  padding: 12px;
  background: #111318;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.diff-rail {
  border-right: 0;
  border-left: 1px solid var(--line);
}
.diff-rail strong {
  font-size: 13px;
}

.cull-window {
  min-height: 590px;
  display: grid;
  grid-template-columns: 166px 1fr;
}
.folder-tree strong {
  font-size: 13px;
  margin-bottom: 2px;
}
.media-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 14px;
}
.media-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.media-tile {
  min-height: 116px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 64%, white), color-mix(in srgb, var(--accent-3) 42%, white));
}
.media-tile:nth-child(3n) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 62%, white), color-mix(in srgb, var(--accent) 38%, white));
}
.media-tile span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.media-tile.pick::after,
.media-tile.reject::after {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.media-tile.pick::after { content: "PICK"; background: var(--accent-2); }
.media-tile.reject::after { content: "REJECT"; background: var(--accent-3); }
.key-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 22px 0 72px;
}
.proof-strip span {
  min-height: 74px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.72);
  font-weight: 900;
}

.story {
  padding: 88px 0;
}
.story-head,
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.story-head h2,
.section-head h2 {
  margin: 14px 0 10px;
  font-size: 46px;
  line-height: 1.04;
}
.story-head p,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.story-flow {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(330px, 0.72fr);
  gap: 44px;
  align-items: start;
}
.story-screen {
  position: sticky;
  top: 96px;
  min-height: 640px;
  display: grid;
  grid-template-rows: auto auto auto auto;
}
.screen-top {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.flow-visual {
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.54)),
    repeating-linear-gradient(90deg, rgba(17,19,24,0.035) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(17,19,24,0.03) 0 1px, transparent 1px 54px);
}
.flow-copy {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}
.flow-copy h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.06;
}
.flow-copy p {
  margin: 0;
  color: var(--muted);
}
.flow-meter {
  height: 8px;
  background: rgba(17,19,24,0.08);
}
.flow-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 260ms ease;
}
.beats {
  display: grid;
  gap: 18px;
}
.beat {
  min-height: 42vh;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  background: rgba(255,255,255,0.62);
  opacity: 0.56;
  transition: transform 240ms ease, opacity 240ms ease, border-color 240ms ease, background 240ms ease;
}
.beat-mobile-visual {
  display: none;
}
.beat.active {
  opacity: 1;
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: rgba(255,255,255,0.92);
}
.beat span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.beat h3 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.08;
}
.beat p {
  margin: 0;
  color: var(--muted);
}

.beat-dictation,
.paste-demo,
.avatar-demo,
.listen-demo,
.width-demo,
.tabs-demo,
.diff-demo,
.open-md-demo,
.keys-demo,
.video-demo,
.trash-demo,
.folder-demo {
  min-height: 280px;
  display: grid;
  gap: 14px;
}
.listen-demo {
  place-items: center;
  text-align: center;
}
.listen-demo kbd {
  min-width: 74px;
  min-height: 56px;
  font-size: 24px;
}
.listen-demo p,
.trash-demo p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}
.beat-dictation {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.beat-dictation div {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
}
.beat-dictation div.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.beat-dictation div.active kbd { color: var(--ink); }
.beat-dictation span { opacity: 0.78; }
.paste-demo {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.app-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  font-weight: 950;
}
.app-card span {
  color: var(--muted);
  font-size: 12px;
}
.app-card.active {
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(17,19,24,0.13);
}
.paste-line {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent-2);
  padding: 12px 0 12px 14px;
  color: var(--muted);
  font-weight: 850;
}
.avatar-demo {
  place-items: center;
}
.avatar-demo img {
  width: 150px;
  filter: drop-shadow(0 18px 28px rgba(17,19,24,0.18));
}
.avatar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.avatar-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.avatar-list span.active {
  color: #fff;
  background: var(--ink);
}
.width-demo article,
.open-md-demo article,
.diff-demo article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}
.width-demo h4,
.open-md-demo h4,
.diff-demo h4 {
  margin: 0 0 8px;
  font-size: 26px;
}
.width-demo p,
.open-md-demo p {
  margin: 0;
  color: var(--muted);
}
.width-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(17,19,24,0.08);
  overflow: hidden;
}
.width-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.page-widths {
  display: flex;
  gap: 8px;
}
.tabs-demo {
  align-content: center;
}
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab-row span,
.files-outline span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.tab-row span.active,
.tab-row span.tear {
  color: #fff;
  background: var(--ink);
}
.files-outline {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}
.diff-demo {
  grid-template-columns: 1fr 180px;
  align-items: stretch;
}
.diff-demo aside {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.diff-demo aside span {
  color: var(--muted);
  font-weight: 850;
}
.open-md-demo {
  grid-template-columns: 170px 1fr;
  align-items: center;
}
.file-stack {
  display: grid;
  gap: 10px;
}
.file-stack span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
}
.keys-demo {
  grid-template-columns: repeat(2, 1fr);
}
.keys-demo div:not(.label-row) {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.label-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}
.label-row span {
  height: 24px;
  flex: 1;
  border-radius: 999px;
}
.label-row .blue { background: #2469a6; }
.label-row .red { background: #d94d3f; }
.label-row .green { background: #1f8a70; }
.label-row .yellow { background: #d6a42b; }
.video-demo {
  align-content: center;
}
.video-frame {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #161b22, color-mix(in srgb, var(--accent) 54%, #111));
  font-weight: 950;
}
.scrub {
  height: 12px;
  border-radius: 999px;
  background: rgba(17,19,24,0.1);
}
.scrub span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}
.trim-row,
.trash-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.trim-row span,
.trim-row strong,
.trash-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  font-weight: 900;
}
.trash-grid,
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.trash-grid span,
.folder-grid span {
  min-height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  font-weight: 950;
}
.folder-demo {
  grid-template-columns: 150px 1fr;
}
.folder-demo aside {
  display: grid;
  gap: 8px;
}
.folder-demo aside span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.folder-demo aside span.active {
  color: #fff;
  background: var(--ink);
}

.download-section,
.setup-section {
  padding: 90px 0;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.info-panel {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(17, 19, 24, 0.1);
}
.info-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.info-panel p {
  margin: 0;
  color: var(--muted);
}
.setup-steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.setup-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}
.setup-step::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-weight: 900;
}
.setup-step strong { display: block; }
.setup-step span { color: var(--muted); }

.footer {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
  padding: 54px 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

@keyframes wave {
  to { transform: scaleY(0.42); opacity: 0.58; }
}

@media (max-width: 980px) {
  .hero,
  .story-flow,
  .panel-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 54px; }
  .hero-visual { min-height: 560px; }
  .reader-body,
  .cull-window {
    grid-template-columns: 1fr;
  }
  .reader-files,
  .diff-rail,
  .folder-tree {
    display: none;
  }
  .story-screen {
    display: none;
  }
  .beat {
    min-height: auto;
    opacity: 1;
    transform: none;
  }
  .beat.active {
    transform: none;
  }
  .beat-mobile-visual {
    display: block;
    margin-bottom: 20px;
  }
}

@media (max-width: 620px) {
  .nav-inner,
  .section,
  .footer {
    width: auto;
    max-width: none;
    margin-left: 18px;
    margin-right: 18px;
  }
  .nav-links a:not(.nav-pill),
  .nav-pill {
    display: none;
  }
  .hero {
    padding-top: 98px;
    gap: 24px;
  }
  h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .download-grid,
  .mode-row,
  .key-strip,
  .media-grid,
  .paste-demo,
  .beat-dictation,
  .diff-demo,
  .open-md-demo,
  .folder-demo,
  .keys-demo {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: auto; }
  .world {
    inset: 28px -18% auto -18%;
    height: 420px;
    opacity: 0.2;
  }
  .dictation-console,
  .reader-window,
  .cull-window {
    min-height: auto;
  }
  .reader-body { min-height: auto; }
  .reader-doc h3,
  .flow-copy h3,
  .beat h3 { font-size: 24px; }
  .story-head h2,
  .section-head h2 { font-size: 34px; }
  .flow-visual {
    min-height: 160px;
    padding: 14px;
  }
  .flow-copy {
    padding: 14px 16px;
  }
  .flow-copy p {
    display: none;
  }
  .proof-strip {
    padding-bottom: 36px;
  }
}
