/*
 * TapeToText — one visual system for every page (direction "D2 · Stage", 2026-11-14).
 * After Owntake's system: a dark stage for the first screen, the white tool
 * panel floating over it, a warm paper desk for reading, one signal dot on the
 * main action. Our voice differs: Title Case headings instead of caps, and the
 * signal is highlighter yellow (marking text), used for the dot and for the line
 * being played — nowhere else.
 * Type: Archivo (Owntake's family), two widths. Mono only where it carries
 * data: timecodes, sizes, formats, codecs.
 * Change the look here (tokens first), not per page.
 */
:root {
  --stage: #0d0c0b; --stage-2: #191715; --stage-3: #24211e;
  --on: #f3f1ec; --on-2: rgba(243,241,236,.74); --on-3: rgba(243,241,236,.5); --on-line: rgba(243,241,236,.13);
  --paper: #f2f1ed; --card: #fff; --field: #f3f4f5; --field-2: #e8e9eb;
  --ink: #151412; --ink-2: #45423c; --mute: #6b675f; --hair: #e2e0da; --edge: #948f85;
  --mark: #ffc21a; --mark-wash: #fff1c0;
  --focus: #3b82f6;
  --err: #a8241a; --err-bg: #fdecea; --warn: #7a5000; --warn-bg: #fff6db;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --text-w: 102%; --disp-w: 110%;
  --gut: 32px; --max: 1176px;
  --lift: 0 1px 2px rgba(21,20,18,.04), 0 22px 44px -26px rgba(21,20,18,.26);
  --float: 0 40px 100px -30px rgba(0,0,0,.7);
  --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--stage); scroll-padding-top: 16px; }
body { margin: 0; font: 400 16.5px/1.6 var(--font); font-stretch: var(--text-w); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.sr-only { 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: 8px; top: -60px; background: var(--on); color: var(--stage); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mark); flex: none; display: inline-block; }
.tag { font: 600 11.5px/1 var(--mono); color: var(--ink-2); background: var(--field); border-radius: 7px; padding: 6px 7px; text-align: center; white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── top: header + breadcrumbs on the stage ─────────────────────────────── */
.top { background: var(--stage); color: var(--on); }
.hdr { position: relative; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 18px var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 780; font-stretch: var(--disp-w); font-size: 20px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.lm-tile { fill: var(--on); } .lm-line { fill: var(--stage); } .lm-mark { fill: var(--mark); }
.navpill { display: flex; align-items: center; gap: 2px; padding: 5px; margin: 0 auto; border-radius: 14px; background: rgba(243,241,236,.08); border: 1px solid rgba(243,241,236,.06); }
.nl { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 560; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.nl::-webkit-details-marker { display: none; }
.nl:hover, .dd[open] > .nl { background: rgba(243,241,236,.1); }
.nl[aria-current], .nl.here { background: rgba(243,241,236,.15); }
.dd { position: relative; }
.dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.menu { position: absolute; top: calc(100% + 10px); left: -6px; width: 380px; padding: 6px; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 56px -12px rgba(0,0,0,.45); display: grid; transform-origin: top left; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.mlink { display: grid; grid-template-columns: 58px 1fr; gap: 1px 12px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.mlink .tag { grid-row: span 2; }
.mlink:hover, .mlink[aria-current] { background: var(--field); }
.mlink b { font-weight: 620; font-size: 15px; line-height: 1.3; }
.mlink small { font-size: 13px; color: var(--mute); line-height: 1.35; }
.priv { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--on-line); font-size: 14px; font-weight: 560; text-decoration: none; white-space: nowrap; }
.priv .dot { box-shadow: 0 0 0 3px rgba(255,194,26,.18); }
.priv:hover { background: rgba(243,241,236,.08); }
.mnav { display: none; position: relative; }
.mnav > summary { list-style: none; width: 42px; height: 40px; border-radius: 12px; border: 1px solid var(--on-line); display: grid; place-items: center; cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.mnav[open] .burger { background: transparent; }
.mnav[open] .burger::before { top: 0; transform: rotate(45deg); } .mnav[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 2 * var(--gut))); padding: 8px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); display: grid; gap: 2px; }
.mtop { padding: 12px 12px; border-radius: 10px; font-weight: 620; text-decoration: none; }
.mtop[aria-current], .mtop:hover { background: var(--field); }
.mtop.sub { font-weight: 560; padding: 10px 12px 10px 24px; }
.mhead { padding: 12px 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 0; font-size: 13.5px; color: var(--on-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--on); }

/* ── hero: copy + example on the left, the tool floating on the right ───── */
.hero { background: var(--stage); color: var(--on); padding: 40px 0 96px; overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; }
.hero h1 { font-weight: 780; font-stretch: var(--disp-w); font-size: clamp(40px, 5.4vw, 78px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--on-2); margin-top: 22px; max-width: 46ch; text-wrap: pretty; }
.demo { margin-top: 34px; max-width: 600px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--on-3); text-align: center; text-wrap: pretty; }
/* workspace: once the tool holds a file (its panel is not empty), it takes the full width */
.hero-in:has([data-panel]:not(:empty)) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-in:has([data-panel]:not(:empty)) h1 { font-size: clamp(32px, 3.4vw, 46px); }
.hero-in:has([data-panel]:not(:empty)) .lead { margin-top: 12px; max-width: 72ch; font-size: 17px; }
.hero-in:has([data-panel]:not(:empty)) :is(.demo, .facts) { display: none; }

/* subtitle workspace: what you put in on the left, what you get on the right */
@media (min-width: 961px) {
  .hero-in:has([data-panel]:not(:empty)) #sub-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 22px; grid-template-areas: "seg seg" "drop out" "paste out" "alert alert" "facts facts"; }
  #sub-tool > .seg { grid-area: seg; } #sub-tool > .drop { grid-area: drop; } #sub-tool > .paste { grid-area: paste; }
  #sub-tool > [data-panel] { grid-area: out; } #sub-tool > .alert { grid-area: alert; } #sub-tool > .facts { grid-area: facts; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .drop-area { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 0 14px; padding: 14px 16px; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .plus { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; margin: 0; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .fmt { margin: 0; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .go { height: 48px; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .paste { display: grid; grid-template-rows: auto 1fr; }
  .hero-in:has([data-panel]:not(:empty)) #sub-tool .paste textarea { min-height: 220px; height: 100%; }
}

/* transcript example */
.tx { display: grid; gap: 2px; }
.tx li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 7px 12px; border-radius: 10px; font-size: 16px; color: var(--on-3); }
.tx .t { color: rgba(243,241,236,.34); line-height: 1.9; font-size: 13px; }
.tx li.now { background: rgba(255,194,26,.13); color: var(--on); box-shadow: inset 3px 0 0 var(--mark); }
.tx li.now .t { color: var(--mark); }
.tx li.fade { opacity: .5; }
/* with motion allowed the mark moves down the lines, one at a time, like playback */
@media (prefers-reduced-motion: no-preference) {
  .tx li, .tx li.now { background: none; box-shadow: none; color: var(--on-3); animation: tx-line 10s var(--d, 0s) infinite; }
  .tx li .t, .tx li.now .t { color: rgba(243,241,236,.34); animation: tx-time 10s var(--d, 0s) infinite; }
  .tx li.fade { opacity: 1; }
  .tx li:nth-child(2) { --d: 2.5s; } .tx li:nth-child(3) { --d: 5s; } .tx li:nth-child(4) { --d: 7.5s; }
}
@keyframes tx-line {
  0%, 24% { background: rgba(255,194,26,.13); color: var(--on); box-shadow: inset 3px 0 0 var(--mark); }
  27%, 100% { background: rgba(255,194,26,0); color: var(--on-3); box-shadow: inset 3px 0 0 rgba(255,194,26,0); }
}
@keyframes tx-time { 0%, 24% { color: var(--mark); } 27%, 100% { color: rgba(243,241,236,.34); } }
/* file example: before → after */
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file { background: var(--stage-2); border: 1px solid var(--on-line); border-radius: 16px; overflow: hidden; }
.file figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 12px; color: var(--on-3); border-bottom: 1px solid var(--on-line); }
.file .out { color: var(--mark); }
.file pre { padding: 12px 14px 14px; font-size: 12.5px; line-height: 1.6; color: var(--on-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.file mark { background: rgba(255,194,26,.16); color: var(--mark); border-radius: 3px; padding: 0 1px; }

/* ── the tool panel ─────────────────────────────────────────────────────── */
.panel { background: var(--card); color: var(--ink); border-radius: 24px; padding: 14px; box-shadow: var(--float); min-width: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--field); margin-bottom: 10px; }
.seg a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 8px; border-radius: 10px; font-size: 14px; font-weight: 560; color: var(--mute); text-decoration: none; text-align: center; line-height: 1.25; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg svg { width: 17px; height: 17px; flex: none; }
.seg .tag { display: none; }
.drop { position: relative; }
.drop[hidden] { display: none; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-area { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 20px 26px; border-radius: 16px; background: var(--field); border: 1.5px dashed transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.drop-area:hover { border-color: #c5c8cc; }
.drop.over .drop-area { background: var(--mark-wash); border-color: var(--mark); }
.drop[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.plus { width: 54px; height: 54px; border-radius: 16px; background: var(--card); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.07); margin-bottom: 8px; }
.plus svg { width: 22px; height: 22px; }
.drop-area b { font-size: 17px; font-weight: 640; }
.fmt { font-size: 12px; line-height: 1.7; color: var(--mute); margin-top: 4px; }
.drop-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* read-only facts next to the picker: plain text, not field-like, so they don't look clickable */
.info { flex: 1 1 150px; display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.info svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.info small { display: block; font-size: 12px; color: var(--mute); line-height: 1.3; }
.info span { display: block; font-size: 14.5px; font-weight: 620; line-height: 1.35; }
.go { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 11px; height: 56px; padding: 0 26px; border-radius: 99px; background: var(--ink); color: #fff; border: 0; font-weight: 640; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.go:hover { background: #000; }
.go.light { background: var(--on); color: var(--stage); flex: none; }
.go.light:hover { background: #fff; }
#file:focus-visible ~ .drop-row .go { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.paste { margin-top: 12px; }
.paste label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 4px; }

/* controls the tool scripts build */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid #cfcbc2; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; padding: 0 22px 0 20px; }
.btn.primary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
.btn.primary:hover { background: #000; }
.btn.ghost { border-color: transparent; background: var(--field); color: var(--ink-2); }
.btn.ghost:hover { background: var(--field-2); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 620; font-size: 13.5px; color: var(--ink-2); margin: 0 0 6px 2px; padding: 0; }
.field.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field.inline > label { margin: 0; }
.field.inline input { width: 90px; }
select, input[type=number], textarea { font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 9px 12px; }
select { min-height: 44px; max-width: 100%; }
textarea { width: 100%; line-height: 1.5; resize: vertical; }
.paste textarea { background: var(--field); border-color: transparent; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hair); }
.fine { font-size: 13.5px; color: var(--mute); margin: 8px 2px 0; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.check input, .tracks input { accent-color: var(--ink); width: 18px; height: 18px; }
.setup { display: grid; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 24px; margin-top: 14px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; left: 14px; top: 15px; margin: 0; accent-color: var(--ink); }
.choice label { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 11px 14px 11px 40px; border-radius: 14px; background: var(--field); border: 1.5px solid transparent; cursor: pointer; }
.choice input:checked + label { background: var(--mark-wash); border-color: var(--ink); }
.choice input:focus-visible + label { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.choice.off label { cursor: not-allowed; color: var(--mute); }
.choice-name { font-weight: 650; }
.choice-size { color: var(--mute); text-align: right; }
.choice-blurb { grid-column: 1 / -1; font-size: 13.5px; color: var(--mute); }
.file-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--field); border-radius: 14px; flex-wrap: wrap; }
.file-kind { font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 6px; }
.file-name { font-weight: 620; overflow-wrap: anywhere; flex: 1 1 200px; }
.file-size { color: var(--mute); }
.run { margin-top: 16px; padding: 4px 2px 0; }
.stage { font-weight: 650; margin: 0 0 10px; }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--field-2); overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: var(--field-2); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--ink); border-radius: 99px; transition: width .3s; }
progress::-moz-progress-bar { background: var(--ink); border-radius: 99px; }
.alert { margin-top: 12px; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.alert[hidden] { display: none; }
.alert p + p { margin-top: 6px; }
.alert.error { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--field); color: var(--ink-2); }
.alert a { color: inherit; font-weight: 650; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 4px 2px 0; }
.result-head .stage { margin: 0; }
.result-head .actions { margin-top: 0; }
.player { width: 100%; margin: 16px 0 6px; display: block; }
.player.video { max-height: 380px; background: #000; border-radius: 16px; }
.segments { margin-top: 12px; max-height: 620px; overflow: auto; display: grid; gap: 2px; }
.segments li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 4px 6px; border-radius: 12px; align-items: start; }
.segments li:hover { background: var(--field); }
.segments li.now { background: var(--mark-wash); box-shadow: inset 3px 0 0 var(--mark); }
.ts { border: 0; background: none; padding: 7px 6px; color: var(--mute); cursor: pointer; text-align: left; border-radius: 8px; font-size: 13px; }
.ts:hover { color: var(--ink); background: var(--card); }
.segments textarea { border: 1px solid transparent; background: transparent; resize: none; overflow: hidden; padding: 5px 8px; font-size: 16.5px; border-radius: 8px; }
.segments textarea:hover { border-color: var(--hair); }
.segments textarea:focus { border-color: var(--edge); background: var(--card); }
.status { margin: 14px 2px 10px; color: var(--mute); }
.controls { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; margin-bottom: 6px; }
.controls .timing { flex: 1 1 100%; }
.timing .choices { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 12px; }
.notes { margin: 0 0 12px; padding-left: 20px; list-style: disc; font-size: 14px; color: var(--warn); }
.preview { background: var(--field); border-color: transparent; font-size: 13px; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th { font-size: 12.5px; font-weight: 650; color: var(--mute); }
tbody tr:last-child > * { border-bottom: 0; }
tr.off td { color: var(--mute); }

/* ── reading layer ──────────────────────────────────────────────────────── */
main { padding-bottom: 120px; }
.content { padding-top: 24px; }
.sec { max-width: 820px; margin: 112px auto 0; }
.sec.wide, .sec:has(.steps), .sec:has(.grid), .sec:has(.faq), .sec:has(.links), .sec:has(.uses) { max-width: none; }
.sh { margin: 0 auto 36px; max-width: 760px; text-align: center; }
.sh h2, .closing h2 { font-weight: 760; font-stretch: var(--disp-w); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.ssub { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--mute); text-wrap: pretty; }
.ssub a, .rich a, .after a, .prose a, .faq a, .cell a { text-decoration-color: rgba(107,103,95,.5); }
.ssub a:hover, .rich a:hover, .prose a:hover, .faq a:hover, .cell a:hover { text-decoration-color: currentColor; }
.rich { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.rich p + p { margin-top: 14px; }
.sec .rich { margin: -12px auto 0; max-width: 720px; }
.after { margin-top: 14px; font-size: 15px; color: var(--mute); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--card); border-radius: 22px; padding: 28px 28px 30px; box-shadow: var(--lift); }
.num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.steps h3, .cell h3 { font-size: 19px; font-weight: 650; font-stretch: var(--disp-w); line-height: 1.25; margin-bottom: 8px; }
.steps p, .cell p { color: var(--mute); font-size: 15.5px; line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { grid-column: span 2; background: var(--card); border-radius: 22px; padding: 26px 28px 28px; }
/* no empty slot: five cards = three, then two wide ones; four = two rows of two */
.grid:has(> :nth-child(5):last-child) > :nth-child(n+4), .grid:has(> :nth-child(4):last-child) > *, .grid:has(> :nth-child(2):last-child) > * { grid-column: span 3; }
/* who it's for: a plain list on the desk, not more cards */
.uses { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--hair); }
.uses li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 6px 32px; padding: 20px 4px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.uses h3 { font-size: 18px; font-weight: 650; font-stretch: var(--disp-w); line-height: 1.3; }
.uses p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.links li { flex: 0 1 384px; min-width: 0; }
.links a { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 18px 48px 18px 18px; border-radius: 18px; background: var(--card); text-decoration: none; height: 100%; transition: box-shadow .2s var(--ease); }
.links a:hover { box-shadow: var(--lift); }
.links .tag { grid-row: span 2; min-width: 52px; padding: 9px 7px; }
.l-name { font-weight: 650; font-size: 16.5px; line-height: 1.3; }
.links h3 { margin: 0; font-size: 16.5px; }
.l-desc { color: var(--mute); font-size: 14.5px; line-height: 1.45; }
.l-go { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--mute); transition: transform .2s var(--ease); }
.links a:hover .l-go { transform: translate(3px, -50%); color: var(--ink); }

.table-card { background: var(--card); border-radius: 22px; padding: 10px 14px; overflow-x: auto; }
.table-card th[scope=row] { font-weight: 620; color: var(--ink); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: 18px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16.5px; font-weight: 620; line-height: 1.4; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--field) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='%23151412' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 1.5v9M1.5 6h9'/%3E%3C/svg%3E"); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }

.closing { margin-top: 120px; background: var(--stage); color: var(--on); border-radius: 28px; padding: 72px 32px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.closing p { color: var(--on-2); font-size: 17px; margin-bottom: 8px; }

/* reading pages */
.band { background: var(--stage); color: var(--on); padding: 36px 0 64px; }
.band h1 { font-weight: 780; font-stretch: var(--disp-w); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.028em; }
.band .lead { margin-top: 14px; color: var(--on-3); font-size: 15px; }
.prose { padding-top: 56px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * { max-width: 760px; }
.prose h2 { font-weight: 700; font-stretch: var(--disp-w); font-size: 22px; color: var(--ink); margin: 40px 0 10px; letter-spacing: -.01em; }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 6px; margin-top: 10px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 1.5px; background: var(--mute); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--stage); color: var(--on-2); padding: 64px 0 28px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot .logo { color: var(--on); }
.foot-brand p { margin-top: 12px; max-width: 34ch; color: var(--on-3); line-height: 1.55; }
.foot h2 { font-size: 13px; font-weight: 600; color: var(--on-3); margin: 4px 0 12px; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on); }
.foot-copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--on-line); color: var(--on-3); font-size: 13px; }

/* ── narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
  .files { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --gut: 16px; }
  .navpill { display: none; }
  .mnav { display: block; }
  .priv { margin-left: auto; height: 40px; padding: 0 13px; font-size: 13px; }
  .hdr { gap: 10px; padding-top: 14px; padding-bottom: 10px; }
  .hero { padding: 20px 0 48px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .lead { font-size: 17px; margin-top: 14px; }
  .demo { display: none; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .grid > .cell { grid-column: auto !important; }
  .sec { margin-top: 80px; }
  .fields { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .closing { margin-top: 80px; padding: 52px 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo { font-size: 18px; }
  .panel { padding: 10px; border-radius: 20px; }
  .seg a { font-size: 12.5px; padding: 9px 2px; white-space: nowrap; letter-spacing: -.01em; }
  .seg svg { display: none; }
  .drop-area { padding: 24px 14px 20px; }
  .links li { flex-basis: 100%; }
  .uses li { grid-template-columns: 1fr; padding: 16px 2px; }
  .steps li, .cell { padding: 22px; }
  .segments li { grid-template-columns: 64px 1fr; gap: 4px; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
