/* Entune website: home page sections, in page order.
   Reads only the variables in tokens.css; shared components are in site.css. */

.split { display: flex; flex-wrap: wrap; gap: 64px; margin-top: 56px; align-items: flex-start; }
.split__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Hero */

.hero { padding-bottom: 96px; background: var(--surface); }
.hero__copy { display: flex; flex-direction: column; align-items: center; padding: 84px var(--gutter) 0; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill); background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: var(--caption); color: var(--text-soft);
}
.hero__sep { color: var(--text-faint); }
.hero .h1 { margin-top: 28px; }
.hero__lead { margin-top: 24px; max-width: 580px; font-size: var(--lead-lg); line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; max-width: 100%; margin-top: 36px; }
.hero__actions > a { font-size: 14.5px; }
.hero__note { margin-top: 14px; font-size: var(--caption); color: var(--text-muted); }
.hero__figure { max-width: var(--hero-window-max); margin: 0 auto; padding: 72px var(--gutter) 0; }
.hero__window { position: relative; }
.hero__pill { position: absolute; left: 50%; bottom: -16px; z-index: 5; transform: translateX(-50%); }
.hero__caption { margin-top: 44px; text-align: center; font-size: var(--caption); color: var(--text-muted); }

/* Theme comparison: the app window drawn twice, light clipped over dark.
   --app-scale shrinks the 984 × 640 window to fit narrower screens. */

.compare {
  --pos: 50%;
  --app-scale: 1;
  position: relative; aspect-ratio: 984 / 640;
  border-radius: var(--r-14); overflow: hidden; box-shadow: var(--shadow-window);
  isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.compare[data-ready] { cursor: ew-resize; }
.compare__layer { position: absolute; inset: 0; pointer-events: none; }
.compare[data-ready] [data-compare-light] { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; inset: 0; z-index: 2; transform: translateX(var(--pos)); pointer-events: none; }
.compare.is-snapping [data-compare-light] { transition: clip-path var(--dur-slow) var(--ease-out); }
.compare.is-snapping .compare__handle { transition: transform var(--dur-slow) var(--ease-out); }
.compare__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--brand); }
.compare__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); pointer-events: auto;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 50%; background: var(--knob); box-shadow: var(--shadow-knob); color: var(--knob-ink);
}
.compare__knob:focus-visible { outline: none; box-shadow: var(--focus), var(--shadow-knob); }
.compare__label {
  position: absolute; bottom: 16px; z-index: 3; height: 28px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 12px; border: 0; border-radius: var(--r-pill); font: 500 12px/1 var(--font-sans); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.compare__label span { width: 7px; height: 7px; border-radius: 50%; }
.compare__label--dark { left: 16px; background: var(--glass-dark); box-shadow: inset 0 0 0 1px var(--glass-dark-edge); color: var(--glass-dark-text); }
.compare__label--dark span { background: var(--glass-dark-dot); box-shadow: 0 0 0 1.5px var(--glass-dark-text); }
.compare__label--light { right: 16px; background: var(--glass-light); box-shadow: inset 0 0 0 1px var(--glass-light-edge); color: var(--glass-light-text); }
.compare__label--light span { background: var(--knob); box-shadow: 0 0 0 1.5px var(--glass-light-text); }

/* The app window (History view) */

.app {
  position: absolute; left: 0; top: 0; width: 984px; height: var(--hero-window-h);
  transform: scale(var(--app-scale)); transform-origin: 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text); font: 13px/1.55 var(--font-sans); text-align: left;
}
.app__bar {
  flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 18px;
  background: var(--app-toolbar); border-bottom: 1px solid var(--app-edge);
}
.app__lights { flex: none; display: flex; gap: 8px; width: 66px; }
.app__lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--traffic-red); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.app__lights i:nth-child(2) { background: var(--traffic-yellow); }
.app__lights i:nth-child(3) { background: var(--traffic-green); }
.app__tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-8); background: var(--well); }
.app__tabs span { height: 26px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px; font-size: var(--caption-sm); color: var(--text-muted); }
.app__tabs .is-on { background: var(--segment-on); color: var(--text); box-shadow: var(--shadow-segment); }
.app__spacer { flex: 1; }
.app__status { font-size: var(--caption-sm); color: var(--text-dim); white-space: nowrap; }
.app__status.is-active { color: var(--accent-text); font-weight: 500; }
.app__select {
  position: relative; height: 28px; display: inline-flex; align-items: center; padding: 0 26px 0 9px;
  border-radius: var(--r-7); background: var(--app-select); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--caption-sm); white-space: nowrap;
}
.app__select svg { position: absolute; right: 8px; top: 9px; opacity: .6; }
.app__icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-7); color: var(--text-dim); }
.app__icon--on { background: var(--accent-wash); color: var(--accent-text); }
.app__record {
  height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px;
  border-radius: var(--r-7); background: var(--control-hover); font-size: var(--caption-sm); font-weight: 500;
}
.app__record i { width: 8px; height: 8px; border-radius: 50%; background: var(--recording); }
.app__main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 4px 28px 40px; }
.app__day { display: flex; align-items: baseline; gap: 10px; padding: 16px 4px 4px; font-size: var(--micro); color: var(--text-faint); }
.app__feed { position: relative; }
.app__live {
  position: absolute; left: 0; right: 0; top: 0; opacity: 0; clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out), opacity .4s ease;
}
.app__live.is-open { opacity: 1; clip-path: inset(-4px); }
.app__cards { display: flex; flex-direction: column; gap: 12px; transform: translateY(var(--shift, 0px)); transition: transform var(--dur-slow) var(--ease-out); }
.app-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 10px;
  border-radius: var(--r-14); background: var(--card); box-shadow: var(--app-card-shadow);
}
.app-card--live { box-shadow: 0 0 0 1.5px var(--app-card-edge), var(--app-card-drop); transition: box-shadow .6s ease; }
.app-card--live.is-ringed { box-shadow: 0 0 0 1.5px var(--app-live-ring), var(--app-card-drop); }
.app-card__head { display: flex; align-items: center; gap: 14px; }
.app-card__play {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--control-hover); color: var(--text);
}
.app-card__play svg { margin-left: 1px; }
.app-card__play--on { background: var(--accent); color: var(--on-accent); }
.app-card__play--on svg { margin-left: 0; }
.app-card__len { font-size: var(--micro); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.app-card__time { font-size: var(--caption-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.app-card__note { font-size: var(--caption-sm); color: var(--text-dim); }
.app-card__text {
  min-height: 26px; margin: 0 -10px; padding: 4px 10px; border-radius: var(--r-8);
  font-size: 15.5px; line-height: 1.7; color: var(--text-strong); text-wrap: pretty;
}
.app-card__text--pre { white-space: pre-wrap; }
.app-card__text mark { padding: 1px 4px; border-radius: 4px; background: var(--accent-wash); color: var(--accent-text); font-weight: 500; }
.app-card__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--accent); }
.app-card--live:not([data-phase="processing"]) .app-card__note,
.app-card--live[data-phase="processing"] .app-card__text { display: none; }
.app-card__foot { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.app-card--live .app-card__foot { opacity: 0; transition: opacity .4s ease; }
.app-card--live[data-phase="done"] .app-card__foot { opacity: 1; }
.app-card__pasted { font-size: var(--micro); font-weight: 500; color: var(--accent-text); }
.app-card__action { height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--r-7); font-size: var(--micro); color: var(--text-muted); }
.app-card__action--on { background: var(--control-hover); color: var(--text); }
.wave { flex: none; height: 30px; display: flex; align-items: center; gap: 2px; }
.wave i { flex: 1 1 0; min-width: 1px; border-radius: 1px; background: var(--wave); }
.wave i.p { background: var(--wave-played); }

/* Dictation pill: the app's pill, a tape of the voice. Listening: a red dot and fifteen
   level bars. Transcribing: the dot fades, the tape centres and holds still under a moving
   light. Formatting: the bars become lines of words, each checked in turn; fillers fold away
   and the last two lines step in behind bullets. Pasted: a centred check. No words.
   Geometry, timing and colours follow the app's pill and its design handoff; pill.js sets
   each bar's rectangle, and these rules give each stage its motion. */

.pill {
  position: relative; width: 109px; height: 32px; border-radius: 16px;
  background: var(--pill-ground); box-shadow: var(--pill-shadow);
  transition: opacity .35s ease, transform .45s var(--ease-out), background-color var(--dur-base), box-shadow var(--dur-base);
}
.pill.is-away { opacity: 0; transform: translateY(8px) scale(.94); }
.pill__dot { position: absolute; left: 12px; top: 12.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--pill-dot); opacity: 0; transition: opacity .2s ease; }
.pill[data-state="listening"] .pill__dot { opacity: 1; animation: pill-breathe 1.3s ease-in-out infinite; }
.pill__tape { position: absolute; left: 21.5px; top: 7px; width: 66px; height: 18px; overflow: hidden; transition: left .35s var(--ease-out); }
.pill[data-state="listening"] .pill__tape { left: 29px; }
.pill__tape i { position: absolute; left: 0; top: 7.92px; width: calc((66px - 28px) / 15); height: 2.16px; border-radius: 1px; background: var(--pill-bars); opacity: 0; }
.pill__tape i.is-quiet { background: var(--pill-quiet); }
.pill[data-state="listening"] .pill__tape i { transition: height .09s linear, top .09s linear; }
.pill[data-state="transcribing"] .pill__tape i { transition: left .3s var(--ease-out), top .3s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out), opacity .25s; }
.pill[data-state="formatting"] .pill__tape i { transition: left .4s var(--ease-out), top .45s var(--ease-out), width .4s var(--ease-out), height .45s var(--ease-out), opacity .2s ease, background-color .15s ease; }
.pill[data-state="pasted"] .pill__tape i { transition: opacity .2s; }
.pill__bullet { position: absolute; left: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--pill-bars); opacity: 0; transition: opacity .3s ease; }
.pill.is-list .pill__bullet { opacity: 1; }
.pill__sweep { display: none; position: absolute; top: 0; left: 0; width: 22px; height: 100%; background: linear-gradient(90deg, transparent, var(--pill-sweep), transparent); }
.pill[data-state="transcribing"] .pill__sweep { display: block; animation: pill-sweep 1.1s linear infinite; }
.pill__check { position: absolute; left: 46.5px; top: 8px; fill: none; stroke: var(--pill-bars); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: stroke var(--dur-base); }
.pill[data-state="pasted"] .pill__check { opacity: 1; }
@keyframes pill-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes pill-sweep { from { transform: translateX(-22px); } to { transform: translateX(66px); } }

/* Features: the S-path. A fixed 1024 × 1200 box on wide screens, one column
   with the line on the left below that. */

.path { position: relative; width: 1024px; height: 1200px; margin: 64px auto 0; }
.path__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.path__track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.path__progress { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.path__halo { fill: var(--accent-wash); }
.path__head { fill: var(--accent); }
.path__halo, .path__head { opacity: 0; }
.path.is-drawing .path__halo, .path.is-drawing .path__head { opacity: 1; }
.path__node {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--node-ring-lit);
  transition: background var(--dur-base), box-shadow var(--dur-base);
}
.path[data-ready] .path__node:not(.is-lit) { background: var(--surface); box-shadow: 0 0 0 2px var(--node-ring); }
.path__rail { display: none; }
.tile {
  position: absolute; left: calc(40px + var(--col) * 324px); top: calc(52px + var(--row) * 400px);
  width: 296px; display: flex; flex-direction: column; gap: 12px;
  transition: opacity .5s ease, transform var(--dur-reveal) var(--ease-out);
}
.path[data-ready] .tile:not(.is-lit) { opacity: .32; transform: translateY(14px); }
.tile__title { margin-top: -4px; font-size: var(--title-xs); font-weight: 600; letter-spacing: -.01em; }
.tile__body { font-size: var(--small); line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }

.vignette {
  position: relative; height: 132px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: var(--r-14); background: var(--card); box-shadow: var(--shadow-tile);
  font-size: 13.5px; color: var(--text-strong);
}
.vignette--correct { font-size: var(--body-xs); }
.vignette--clean { gap: 4px; line-height: 1.5; }
.vignette--loose, .vignette--retry { gap: 10px; }
.vignette--retry { font-size: var(--caption); }
.vignette__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vignette__row--quiet { color: var(--text-muted); }
.vignette__row--strong { font-weight: 500; }
.vignette__row--keys, .vignette__row--start { justify-content: flex-start; }
.vignette__row--keys b { font-weight: 600; }
.vignette__button { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-7); background: var(--accent); color: var(--on-accent); font-size: var(--micro); font-weight: 600; }
.vignette__link { font-size: var(--micro); color: var(--accent-text); }
.vignette__meta { font-size: var(--micro); color: var(--text-dim); }
.vignette__meta-lg { color: var(--text-muted); }
.vignette__fill { flex: 1; }
.vignette__secret { font: var(--micro) var(--font-mono); letter-spacing: .1em; color: var(--text-dim); }
.vignette--drop { align-items: center; border: 1.5px dashed var(--accent-dash); background: var(--accent-wash-soft); box-shadow: none; }
.vignette__drop { font-size: var(--small); font-weight: 500; color: var(--accent-text); }
.vignette__file {
  position: absolute; left: 22px; top: 16px; transform: rotate(-5deg); height: 28px; display: inline-flex; align-items: center;
  padding: 0 10px; border-radius: var(--r-8); background: var(--card); box-shadow: var(--shadow-file); font: var(--micro) var(--font-mono);
}
.vignette__blur { filter: blur(4px); }
.vignette__action { height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-7); background: var(--accent-wash); color: var(--accent-text); font-size: var(--caption-sm); font-weight: 500; }
.vignette__check { display: inline-flex; color: var(--accent); }
.vignette--chat { gap: 9px; }
.vignette__who { flex: none; width: 44px; font-size: var(--micro); color: var(--text-muted); }

@media (max-width: 1119px) {
  .path { width: auto; max-width: 560px; height: auto; margin: 48px 0 0; padding-left: 44px; }
  .path__svg, .path__nodes { display: none; }
  .path__rail { display: block; position: absolute; left: 11px; top: 59px; bottom: 0; width: 2px; background: var(--line-strong); }
  .path__fill { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .path__tiles { display: grid; gap: 48px; }
  .tile { position: relative; left: auto; top: auto; width: auto; }
  .tile::before {
    content: ""; position: absolute; left: -40px; top: 59px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 2px var(--node-ring-lit); transition: background var(--dur-base), box-shadow var(--dur-base);
  }
  .path[data-ready] .tile:not(.is-lit)::before { background: var(--surface-alt); box-shadow: 0 0 0 2px var(--node-ring); }
}

/* Contextual corrections */

.deciders > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.deciders dt { font-size: var(--body-sm); font-weight: 600; }
.deciders dd { font-size: var(--body-xs); line-height: 1.55; color: var(--text-soft); }
.decide { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.decide__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.decide__entry { font-size: var(--caption-sm); color: var(--text-muted); }
.decide__entry b { font-weight: 600; color: var(--text); }
.decide__row {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-12);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); transition: box-shadow var(--dur-base);
}
.decide__sentence { font-size: var(--title-sm); }
.decide .word-struck, .transcript .word-struck { color: var(--text-muted); }
.decide__wrong { font-weight: 600; color: var(--error); }
.decide__note { display: flex; align-items: center; gap: 8px; font-size: var(--caption); color: var(--text-muted); }
.decide__note--error { color: var(--error); }
.decide__note--error .dot { background: var(--error); }
.decide__when-replace { display: none; }
.decide[data-mode="replace"] .decide__when-model { display: none; }
.decide[data-mode="replace"] .decide__sentence.decide__when-replace { display: block; }
.decide[data-mode="replace"] .decide__note.decide__when-replace { display: flex; }
.decide[data-mode="replace"] .decide__row--second { box-shadow: inset 0 0 0 1px var(--error-ring); }
.decide__caption { font-size: var(--caption); color: var(--text-muted); }

.bench { margin-top: 112px; padding-top: 48px; border-top: 1px solid var(--line-strong); }
.bench__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.bench__title { max-width: 560px; }
.bench__stats { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.bench__stats div { display: flex; flex-direction: column-reverse; }
.bench__stats dd { font-size: var(--stat-size); line-height: 1.2; font-weight: 600; letter-spacing: var(--stat-track); font-variant-numeric: tabular-nums; }
.bench__stats dt { font-size: var(--caption); color: var(--text-muted); }
.bench__accent { color: var(--accent-text); }
.bench__columns { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; padding-bottom: 14px; font-size: var(--caption-sm); color: var(--text-muted); }
.bench__columns span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bench__columns b { font-weight: 600; color: var(--text); }
.bench__key { width: 10px; height: 10px; border-radius: 3px; }
.bench__key--wrong, .bench__bar--wrong { background: var(--error); }
.bench__key--fix, .bench__bar--fix { background: var(--accent); }
.bench__row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.bench__name { display: flex; flex-direction: column; gap: 2px; }
.bench__name b { font-size: var(--body-sm); font-weight: 600; }
.bench__name span { font-size: var(--caption-sm); color: var(--text-muted); }
.bench__row--baseline .bench__name b { color: var(--text-muted); }
.bench__cell { display: flex; align-items: center; gap: 12px; }
.bench__cell > b { width: 26px; text-align: right; font-size: var(--small); font-weight: 600; font-variant-numeric: tabular-nums; }
.bench__track { flex: 1; height: 8px; border-radius: 4px; background: var(--bar-track); }
.bench__bar { display: block; width: calc(var(--n) / var(--of) * 100%); min-width: 4px; height: 100%; border-radius: 4px; }
.bench__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.bench__foot p { font-size: var(--body-sm); color: var(--text); }
.bench__data { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 24px; padding: 28px; border-radius: var(--r-14); }
.bench__data ul { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; padding-left: 18px; list-style: disc; font-size: var(--body-xs); line-height: 1.55; color: var(--text-soft); }
.bench__limits { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: var(--lh-body); color: var(--text-muted); }

/* Models: three stations on one track */

.stations {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr) 120px;
  column-gap: 18px; row-gap: 22px; align-items: start; margin-top: 64px;
}
.stations__track { position: absolute; left: 52px; right: 60px; top: 47px; height: 2px; background: var(--line-strong); container-type: inline-size; }
.stations__dot {
  position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: flow-x 3.6s var(--ease-flow) infinite;
}
@keyframes flow-x {
  0% { transform: translateX(0); opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { transform: translateX(calc(100cqw - 8px)); opacity: 0; }
}
@keyframes flow-y {
  0% { transform: translateY(0); opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { transform: translateY(calc(100cqh - 8px)); opacity: 0; }
}
.terminal { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 28px; font-size: var(--caption); font-weight: 500; text-align: center; }
.terminal--voice { grid-column: 1; grid-row: 1; }
.terminal--pasted { grid-column: 4; grid-row: 1; line-height: 1.35; text-wrap: balance; }
.terminal__icon {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 2px;
  border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line-strong);
}
.terminal__icon i { width: 2.5px; border-radius: 2px; background: var(--accent); }
.terminal--pasted .terminal__icon { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.station {
  position: relative; z-index: 1; align-self: stretch; min-width: 0; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 22px 24px; border-radius: var(--r-18); background: var(--card); box-shadow: var(--shadow-station);
}
.station--speech { grid-column: 2; grid-row: 1; }
.station--decisions { grid-column: 3; grid-row: 1; }
.station--dictionary { grid-column: 3; grid-row: 2; align-self: start; }
.station__link { position: absolute; left: calc(50% + 10px); top: -21px; font-size: var(--label-size); color: var(--accent-text); }
.station__link::before { content: ""; position: absolute; left: -10px; top: -2px; height: 22px; border-left: 2px dashed var(--accent-dash); }
.station__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.station__head .mono-num { flex: none; white-space: nowrap; }
.station__when { min-width: 0; font-size: var(--caption-sm); color: var(--text-muted); text-align: right; white-space: nowrap; }
.station__summary { display: flex; flex-direction: column; gap: 6px; }
.station__job { font-size: var(--caption); color: var(--text-muted); }
.station__pick { font-size: var(--title-lg); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.station__meta { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-top: 2px; overflow: hidden; white-space: nowrap; }
.where {
  flex: none; height: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px;
  border-radius: var(--r-pill); background: var(--accent-wash); color: var(--accent-text); font-size: var(--micro); font-weight: 500;
}
.where--local { background: var(--ok-wash); color: var(--ok-text); }
.station__note { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--caption-sm); color: var(--text-muted); }
.station__info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; padding: 12px 14px; border-radius: var(--r-10); background: var(--surface); font-size: 13.5px; }
.station__info dt { color: var(--text-muted); }
.station__options { display: flex; flex-direction: column; gap: 18px; }
.station__group { display: flex; flex-direction: column; gap: 8px; }
.station__label { font-size: 11px; font-weight: 600; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--text-muted); }
.station__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stations__summary { grid-column: 1 / 3; grid-row: 2; display: flex; flex-direction: column; gap: 14px; padding: 26px 8px 0 0; }
.stations__headline { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; }
.stations__detail { font-size: var(--body-sm); line-height: var(--lh-body); color: var(--text-soft); text-wrap: pretty; }
.stations__foot { display: flex; align-items: center; gap: 8px; font-size: var(--caption); color: var(--text-muted); }

@media (max-width: 900px) {
  .stations { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding-left: 52px; }
  .stations__track { grid-column: 1; grid-row: 1 / 5; left: -33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; container-type: size; }
  .stations__dot { left: -3px; top: 0; animation-name: flow-y; }
  .terminal { flex-direction: row; gap: 12px; margin-left: -52px; padding-top: 0; text-align: left; }
  .terminal--voice { grid-row: 1; }
  .station--speech { grid-column: 1; grid-row: 2; }
  .station--decisions { grid-column: 1; grid-row: 3; }
  .terminal--pasted { grid-column: 1; grid-row: 4; }
  .station--dictionary { grid-column: 1; grid-row: 5; margin-top: 12px; }
  .station__link { display: none; }
  .stations__summary { grid-column: 1; grid-row: 6; margin-left: -52px; padding: 12px 0 0; }
}

/* Dictionary walkthrough */

.learn { display: flex; flex-direction: column; gap: 20px; margin-top: 56px; }
.learn__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.learn__step {
  width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
.learn__bar { display: block; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.learn__fill { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.learn__step.is-done .learn__fill { transform: scaleX(1); }
.learn__step[aria-current] .learn__fill { transform: scaleX(var(--fill, 1)); }
.learn__title { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; transition: color .4s ease; }
.learn__body { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); text-wrap: pretty; transition: color .4s ease; }
.learn__step:not([aria-current]) :is(.learn__title, .mono-num, .learn__body) { color: var(--text-muted); }
.learn__stage {
  display: grid; grid-template-columns: minmax(0, .9fr) 48px minmax(0, 1.3fr) 48px minmax(0, 1fr); align-items: stretch;
  padding: 24px; border-radius: var(--r-22); background: var(--card); box-shadow: var(--shadow-stage);
}
.learn__col {
  min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-14);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-soft); transition: box-shadow .4s ease;
}
.learn__col.is-active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.learn__col--heard { gap: 14px; padding: 18px 20px; }
.learn__file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-10);
  background: var(--card); box-shadow: var(--shadow-chip-lift); transition: opacity .45s ease, transform var(--dur-slow) var(--ease-out);
}
.learn__file.is-out { opacity: 0; transform: translateX(-16px); }
.wave--file { width: 38px; height: 20px; gap: 1.5px; }
.wave--file i { flex: 1; background: var(--wave-file); }
.learn__file-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.learn__file-name span:first-child { overflow: hidden; font: var(--caption-sm) var(--font-mono); white-space: nowrap; text-overflow: ellipsis; }
.learn__file-name span:last-child { font-size: var(--label-size); color: var(--text-dim); }
.learn__file-len { font-size: var(--micro); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.learn__hint { margin-top: auto; font-size: var(--micro); line-height: 1.45; color: var(--text-dim); }
.learn__link { position: relative; }
.learn__link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: var(--line-strong); }
.learn__dot { display: none; position: absolute; left: 6px; right: 6px; top: 50%; height: 8px; margin-top: -4px; container-type: inline-size; }
.learn__dot::after {
  content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: flow-x 1.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.learn__link.is-flowing .learn__dot { display: block; }
.learn__col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.learn__wait { display: none; flex-direction: column; gap: 10px; padding-top: 6px; }
.learn__wait span:not(.learn__wait-text) { height: 12px; width: 92%; border-radius: 6px; background: var(--bar-track); }
.learn__wait span:nth-child(2) { width: 74%; }
.learn__wait-text { font-size: var(--caption-sm); color: var(--text-faint); }
.learn__sentence { display: flex; flex-wrap: wrap; gap: 6px 7px; font-size: 20px; line-height: 1.5; letter-spacing: -.005em; }
.learn__sentence span {
  margin: 0 -3px; padding: 0 3px; border-radius: var(--r-5);
  text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: background .35s ease, color .35s ease;
}
.learn__sentence .is-typing { display: none; }
.learn__sentence .is-flagged { background: var(--warning-wash); color: var(--warning); text-decoration-line: underline; text-decoration-style: wavy; }
.learn[data-step="3"] .learn__fix { color: var(--accent-text); font-weight: 600; text-decoration-line: underline; text-decoration-style: dotted; }
.learn__kept { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: var(--body-sm); color: var(--text-muted); opacity: 0; transition: opacity .5s ease; }
.learn__empty {
  flex: 1; display: none; align-items: center; justify-content: center; min-height: 120px; border-radius: var(--r-10);
  border: 1.5px dashed var(--line-strong); font-size: var(--caption-sm); color: var(--text-faint);
}
.learn__entry {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-10);
  background: var(--card); box-shadow: var(--shadow-chip-lift); transition: opacity .4s ease, transform .5s var(--ease-out);
}
.learn__entry.is-out { opacity: 0; transform: translateX(16px); }
.learn__entry-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.learn__entry-name b { font-size: var(--body-sm); font-weight: 600; }
.learn__entry-name i { font-size: var(--micro); color: var(--text-dim); }
.learn[data-step="0"] .learn__wait { display: flex; }
.learn[data-step="0"] .learn__sentence { display: none; }
.learn[data-step="0"] .learn__empty, .learn[data-step="1"] .learn__empty { display: flex; }
.learn[data-step="0"] .learn__entry, .learn[data-step="1"] .learn__entry { display: none; }
.learn[data-step="3"] .learn__kept { opacity: 1; }

@media (max-width: 860px) {
  .learn__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .learn__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 36px auto 36px auto; padding: 16px; }
  .learn__link::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .learn__dot { left: 50%; right: auto; top: 6px; bottom: 6px; width: 8px; height: auto; margin: 0 0 0 -4px; container-type: size; }
  .learn__dot::after { animation-name: flow-y; }
}

/* History */

.history { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin-top: 56px; }
.switches { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; padding: 8px 24px; }
.switches .label { padding: 18px 0 6px; }
.switch-row {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 0; border: 0; border-top: 1px solid var(--line-soft);
  background: none; text-align: left; cursor: pointer;
}
.switch-row:disabled { cursor: default; }
.switch-row__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.switch-row__name { font-size: 15.5px; font-weight: 600; }
.switch-row__desc { font-size: 13.5px; line-height: var(--lh-caption); color: var(--text-muted); }
.transcript { flex: 1.2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.transcript__head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--caption-sm); color: var(--text-muted); }
.transcript__text { font-size: var(--title-xs); line-height: 1.75; white-space: pre-wrap; color: var(--text-strong); }
.transcript__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: var(--caption); line-height: var(--lh-caption); color: var(--text-muted); }

/* Privacy */

.privacy__text { flex-basis: 360px; gap: 20px; font-size: var(--body); line-height: var(--lh-body); color: var(--text-soft); }
.privacy__text p { text-wrap: pretty; }
.privacy__text b { font-weight: 600; color: var(--text-strong); }
.notice { padding: 14px 16px; border-radius: var(--r-12); background: var(--notice); font-size: var(--small); line-height: 1.55; color: var(--text); }
.flow { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.flow__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.flow__title { font-size: var(--body-sm); font-weight: 600; }
.flow__nodes { position: relative; display: flex; flex-direction: column; gap: 8px; }
.flow__nodes::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.flow__node { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 0; }
.flow__num {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); font: 600 var(--micro) var(--font-mono); color: var(--text-muted);
  transition: box-shadow var(--dur-base), color var(--dur-base);
}
.flow__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: var(--body-sm); font-weight: 500; }
.flow__sub { font-size: var(--caption); font-weight: 400; color: var(--text-muted); }
.flow__node .tag { height: 24px; padding: 0 10px; font-size: var(--caption-sm); font-weight: 500; transition: background var(--dur-base), color var(--dur-base); }
.flow__node.is-sent .flow__num { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-text); }
.flow__node.is-sent .tag { background: var(--accent-wash); color: var(--accent-text); }
.flow__note { padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* Questions */

.faq-layout { display: flex; flex-wrap: wrap; gap: 64px; }
.faq-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.faq-intro > p:last-child { max-width: 360px; font-size: var(--body); line-height: var(--lh-body); color: var(--text-soft); }
.faq { flex: 1.5 1 460px; min-width: 0; border-bottom: 1px solid var(--line-strong); }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-q {
  display: flex; align-items: center; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer;
  font-size: var(--title-sm); font-weight: 500; letter-spacing: -.01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q > span:first-child { flex: 1; }
.faq-icon {
  flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ring-icon); color: var(--text-soft); transition: transform .25s var(--ease-std);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { display: flex; flex-direction: column; gap: 10px; padding: 0 64px 24px 0; }
.faq-a p { font-size: var(--body); line-height: var(--lh-body); color: var(--text-soft); text-wrap: pretty; }
.faq-a > a { font-size: var(--small); }

/* Install */

.container--install { padding-bottom: 112px; }
.install { display: flex; flex-direction: column; align-items: center; text-align: center; }
.install .segmented { margin-top: 36px; }
.install .command { margin-top: 20px; }
.install__note { max-width: 620px; margin-top: 16px; font-size: var(--small); line-height: var(--lh-body); color: var(--text-muted); }
.install__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 64px; }
.install__step { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-16); }
.install__num {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-text); font: 600 var(--micro) var(--font-mono);
}
.install__step h3 { font-size: var(--title-sm); font-weight: 600; letter-spacing: -.01em; }
.install__step p { font-size: var(--body-xs); line-height: var(--lh-body); color: var(--text-soft); text-wrap: pretty; }
.install__after { margin-top: 24px; text-align: center; font-size: var(--small); color: var(--text-muted); }

/* Smaller screens */

@media (max-width: 1080px) {
  .compare { --app-scale: .9; }
}
@media (max-width: 900px) {
  .split { gap: 40px; }
  .bench { margin-top: 80px; }
  .bench__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; }
  .bench__name { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
  .bench__columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .bench__columns > span:first-child { display: none; }
  .compare { --app-scale: .7; }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 72px; }
  .hero__copy { padding-top: 48px; }
  .hero__figure { padding-top: 48px; }
  .hero__caption { margin-top: 36px; }
  .compare { --app-scale: .36; }
  .deciders > div { grid-template-columns: 96px minmax(0, 1fr); }
  .decide, .flow { padding: 20px; }
  .bench__data { padding: 22px; }
  .bench__row { gap: 8px 16px; }
  .stations__headline { font-size: 20px; }
  .transcript { padding: 22px; }
  .faq-q { font-size: var(--title-xs); }
  .faq-a { padding-right: 0; }
  .install__steps { grid-template-columns: minmax(0, 1fr); }
}
