:root {
  color-scheme: light;

  /* The seam's eight colours, Paper values (the tokens.json name on the right). */
  --dopta-page: #f4f3ef; /* paper */
  --dopta-surface: #fcfcf9; /* paper-raised */
  --dopta-ink: #161a1f; /* ink */
  --dopta-muted: #5f636a; /* ink-muted */
  --dopta-line: #d9d7d1; /* line: hairlines, never the only edge of a control */
  --dopta-line-strong: #8a8b90; /* line-control: inputs, tags, quiet buttons */
  --dopta-accent: #7d5e10; /* signal-ink: ochre that can be read, and focus */
  --dopta-danger: #af2b25; /* danger: destructive actions and errors only */

  /* The rest of the design system's colours. */
  --dopta-paper-sunken: #e8e7e2; /* wells, secondary fills, hover on quiet things */
  --dopta-paper-hover: #f1f0ec; /* hover pill on a sunken track: between it and paper-raised */
  --dopta-on-ink: #f4f3ef; /* text on an ink fill: the primary button */
  --dopta-signal: #ddb049; /* the ochre as a fill or a mark, never as text (1.8:1) */
  --dopta-signal-soft: #f2e8cc; /* selected, marked, highlighted; ink reads on it */
  --dopta-on-signal: #161a1f; /* text on a signal fill */
  --dopta-problem: #9a3b1f; /* finding type Problém, always with the word */
  --dopta-problem-soft: #f3e0d8;
  --dopta-opportunity: #2f6b66; /* finding type Příležitost, always with the word */
  --dopta-opportunity-soft: #dce9e6;
  --dopta-redaction: #7f8288; /* the bar where a name was */
  --dopta-surface-inverse: #161a1f; /* inverted slabs: the report's cover */
  --dopta-stage: #0d0f12; /* the respondent's dark moments (intro, thank-you): darker than ink, so gold reads as light */
  --dopta-mark-on-inverse: #ddb049; /* ochre marks on surface-inverse */
  --dopta-chart-1: #161a1f; /* the measured value */
  --dopta-chart-2: #ddb049; /* the one highlight per chart */
  --dopta-chart-3: #2f6b66;
  --dopta-chart-4: #9a3b1f;
  --dopta-chart-5: #8a8b90;

  /*
   * Caution, amber (docs/product/unified-product.md §7): worth a look, paused,
   * not yet possible. Gold is kept for what is live (ADR 0114), so a warning no
   * longer wears it. The text holds 5.2:1 on paper and 4.6:1 on its own soft
   * ground; theme.spec.ts measures both.
   */
  --dopta-caution: #9a5410;
  --dopta-caution-soft: #f5e4d2;

  /*
   * Two more steps of paper (docs/product/templates-onboarding v5): pressed,
   * the hover on a sunken fill (a chip, a field); and the thumb, the current
   * segment of a switch, which stands out of the sunken track on both sides.
   */
  --dopta-paper-pressed: #dedcd6;
  --dopta-paper-thumb: #ffffff;

  /*
   * The kind of research (v5, palette 2 "Květ"): colour means the kind and
   * nothing else. Each kind has its ink (text in its colour), its soft tint
   * (a surface in its colour) and the tint hovered; the three are tuned
   * together in OKLCH, one lightness and one chroma per role, so no kind
   * shouts. They appear in five places only: the filter chip, the kind's
   * label over a section, the first question's bubble, the questions on a
   * template, and a project's kind tag. Never on a card's surface, never a
   * dot, never a glow. Named for the kind, not the hue: dopta.eu imports them
   * too (docs/adr/0171). theme.spec.ts measures every pair.
   */
  --dopta-kind-hr: #85485a; /* HR rozhovory: rose, oklch(0.48 0.085 2) */
  --dopta-kind-hr-soft: #fce2e8; /* oklch(0.935 0.03 2) */
  --dopta-kind-hr-soft-hover: #f8d5dd; /* oklch(0.905 0.04 2) */
  --dopta-kind-audit: #3d6a3f; /* Procesní audit: sage, oklch(0.48 0.085 145) */
  --dopta-kind-audit-soft: #deefde;
  --dopta-kind-audit-soft-hover: #d0e7d0;
  --dopta-kind-market: #5f548a; /* Průzkum trhu: iris, oklch(0.48 0.085 292) */
  --dopta-kind-market-soft: #e9e6fd;
  --dopta-kind-market-soft-hover: #e0dbf9;

  /*
   * Dopta's gold as a word (v5, the dopta.eu hero line): one word a screen, in
   * display type only, the three stops of its gradient. On paper each stop
   * holds 3:1, as large text must.
   */
  --dopta-gold-from: #ad801f;
  --dopta-gold-via: #9a7114;
  --dopta-gold-to: #a97c1c;

  /*
   * The agents' own colours, under their white marks on the consent screen
   * (ADR 0115). Not Paper's, and not for anything else: they are here because
   * every literal colour is.
   */
  --dopta-agent-claude: #d97757;
  --dopta-agent-chatgpt: #10a37f;
  /* Their marks are white on those colours. */
  --dopta-on-agent: #ffffff;

  /*
   * Microsoft's and Google's own colours: their logos, never recoloured, and
   * their sign-in buttons as their branding guidelines draw them, light here
   * and dark below (Sign in with Microsoft branding guidelines; Sign in with
   * Google branding guidelines). Not Paper's, and not for anything else.
   */
  --dopta-microsoft-red: #f25022;
  --dopta-microsoft-green: #7fba00;
  --dopta-microsoft-blue: #00a4ef;
  --dopta-microsoft-yellow: #ffb900;
  --dopta-google-red: #ea4335;
  --dopta-google-blue: #4285f4;
  --dopta-google-yellow: #fbbc05;
  --dopta-google-green: #34a853;
  --dopta-microsoft-button: #ffffff;
  --dopta-microsoft-button-edge: #8c8c8c;
  --dopta-microsoft-button-text: #5e5e5e;
  --dopta-google-button: #ffffff;
  --dopta-google-button-edge: #747775;
  --dopta-google-button-text: #1f1f1f;

  /*
   * What stays the same on both sides (docs/adr/0149). The stage is the
   * respondent's dark moment whatever the page is, so its text is a light
   * of its own; the stage utility hands it to on-ink inside it. A firm's logo
   * is drawn for paper, so it sits on a paper plate wherever the page may be
   * dark. Shadows are cast in a near-black, not in ink, which turns light.
   */
  --dopta-on-stage: #f4f3ef;
  --dopta-logo-plate: #f4f3ef;
  --dopta-shadow-ink: #161a1f;

  /*
   * Paper has no green. The two names the console already used read the
   * nearest meaning: success is the opportunity teal, a warning is caution.
   * Aliases, not copies, so branding that moves the teal or the amber moves
   * these with it.
   */
  --dopta-success: var(--dopta-opportunity);
  --dopta-warning: var(--dopta-caution);

  /*
   * Corners (ADR 0114): md for inputs; card for cards and the composer, panel
   * for panels, stage for the stage from 768px; bubble with tail towards the
   * speaker for a turn of the interview; pill for every button, tab and chip.
   */
  --dopta-radius-sm: 3px;
  --dopta-radius-md: 6px;
  --dopta-radius-tail: 6px;
  --dopta-radius-lg: 12px;
  --dopta-radius-bubble: 20px;
  --dopta-radius-card: 24px;
  --dopta-radius-panel: 28px;
  --dopta-radius-stage: 36px;
  --dopta-radius-pill: 9999px;
  /* The old corner knob, which hand-written rounded-[var(--radius)] still reads. */
  --radius: var(--dopta-radius-md);

  /* Borders, not shadows: only floating things (a sheet, a menu, a dialog) cast one. */
  --dopta-shadow-float: 0 1px 2px rgba(22, 26, 31, 0.06), 0 8px 24px rgba(22, 26, 31, 0.08);
  /* The redesign's two depth knobs, kept so the classes that read them still compile: a panel casts nothing. */
  --dopta-shadow-panel: 0 0 #0000;
  --dopta-shadow-sheet: var(--dopta-shadow-float);
  /* A card that opens something lifts on hover; a pill tab that is current sits on the track. Mixed from the shadow's ink. */
  --dopta-shadow-lift:
    0 1px 2px color-mix(in srgb, var(--dopta-shadow-ink) 4%, transparent),
    0 24px 56px color-mix(in srgb, var(--dopta-shadow-ink) 10%, transparent);
  /* A card on the page with no edge of its own (v5's template card and list): barely lifted. */
  --dopta-shadow-card:
    0 1px 2px color-mix(in srgb, var(--dopta-shadow-ink) 4%, transparent),
    0 4px 16px color-mix(in srgb, var(--dopta-shadow-ink) 4%, transparent);
  --dopta-shadow-tab:
    0 1px 2px color-mix(in srgb, var(--dopta-shadow-ink) 8%, transparent),
    0 2px 8px color-mix(in srgb, var(--dopta-shadow-ink) 5%, transparent);
  /* Behind a dialog: the stage, half through. */
  --dopta-scrim: color-mix(in srgb, var(--dopta-stage) 50%, transparent);

  /*
   * Gold light (ADR 0114): only on what is live -- the collecting audit's
   * panel, the current step, the breathing dot, the respondent's progress
   * bar -- and on the stage. Every one is mixed from --dopta-signal, never a
   * literal, so a client's branding that moves the signal moves the light.
   */
  --dopta-glow: color-mix(in srgb, var(--dopta-signal) 55%, transparent);
  --dopta-glow-soft: color-mix(in srgb, var(--dopta-signal) 24%, transparent);
  --dopta-glow-ring: color-mix(in srgb, var(--dopta-signal) 22%, transparent);
  --dopta-signal-light: color-mix(in oklab, var(--dopta-signal) 70%, var(--dopta-on-stage));
  /*
   * A row or a nav item hovered and pressed (v5): a wash of the ink, so it
   * darkens paper and lightens the dark side alike.
   */
  --dopta-hover-wash: color-mix(in srgb, var(--dopta-ink) 5%, transparent);
  --dopta-press-wash: color-mix(in srgb, var(--dopta-ink) 9%, transparent);
  /* On the stage: secondary text and hairlines are its light, thinned. */
  --dopta-on-stage-muted: color-mix(in srgb, var(--dopta-on-stage) 72%, transparent);
  --dopta-on-stage-line: color-mix(in srgb, var(--dopta-on-stage) 14%, transparent);
  --dopta-on-stage-fill: color-mix(in srgb, var(--dopta-on-stage) 5%, transparent);

  /* Density knobs: nav items and table rows, panel padding (the system's card padding), the gap between page blocks. */
  --dopta-row: 2.75rem;
  --dopta-pad: 1.75rem;
  --dopta-stack: 2rem;
  /*
   * Type knobs: the console's body (body-sm) and its page title. The console
   * steps 32/20/15/13/12 (unified-product §7); display (48px) stays for the
   * respondent's first screen and the report's cover.
   */
  --dopta-text: 0.875rem;
  --dopta-text-title: 2rem;
  /*
   * StickyActionBar's height above the safe area: 72px, 56px on a phone
   * (unified-product §7). Content and a sticky right column keep this much
   * clear at the bottom, so nothing ends up under the bar.
   */
  --dopta-sticky-h: 4.5rem;
  /*
   * The console's top bar on a phone (AppFrame, D3): 56px below md, none from
   * md up, where the sidebar stands beside the page. Whatever sticks to the
   * top of a console page sticks this far down, and a jump lands this much
   * lower, so neither ends up under the bar.
   */
  --dopta-topbar-h: 0rem;
  /* Motion knob: the sheet and hovers (the system says 150-200ms, ease-out). */
  --dopta-duration: 160ms;
}

/*
 * start.dopta.eu: Dopta's light Paper design. Every colour is a design-system
 * token: the --dopta-* block above this file is read from
 * packages/ui-primitives/src/theme.css when the server starts (src/assets.ts),
 * and the short names below only point at it. Gold (--signal) is a fill and
 * the wordmark's a's, never body text.
 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/space-grotesk.woff2') format('woff2');
}

:root {
  --paper: var(--dopta-page);
  --raised: var(--dopta-surface);
  --sunken: var(--dopta-paper-sunken);
  --hover: var(--dopta-paper-hover);
  --ink: var(--dopta-ink);
  --on-ink: var(--dopta-on-ink);
  --muted: var(--dopta-muted);
  --line: var(--dopta-line);
  --control: var(--dopta-line-strong);
  --signal: var(--dopta-signal);
  --signal-ink: var(--dopta-accent);
  --signal-soft: var(--dopta-signal-soft);
  --on-signal: var(--dopta-on-signal);
  --ok: var(--dopta-opportunity);
  --ok-soft: var(--dopta-opportunity-soft);
  --bad: var(--dopta-problem);
  --bad-soft: var(--dopta-problem-soft);
  --glow: var(--dopta-glow-soft);
  --glow-ring: var(--dopta-glow-ring);
  --focus: var(--dopta-accent);
  --shadow: var(--dopta-shadow-float);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
.wm {
  font-feature-settings: 'ss01' 1;
  text-wrap: balance;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Shell */
.top {
  padding: 22px var(--gutter) 0;
}
.home {
  text-decoration: none;
}
.main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) var(--gutter) 48px;
}
.foot {
  padding: 24px var(--gutter) 28px;
  text-align: center;
}

/* Wordmark: "dopt" and its gold a */
.wm {
  display: inline-flex;
  align-items: baseline;
  font: 700 22px/1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wm .a {
  color: var(--signal);
}

/* The form page */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 34rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal-ink);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.intro h1 {
  font: 500 clamp(34px, 5.2vw, 56px)/1.04 var(--sans);
  letter-spacing: -0.035em;
}
.lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}
.lede b {
  color: var(--ink);
  font-weight: 500;
}
.perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.perk-mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal-soft);
}
.perk-mark::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--signal-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 900px) {
  .intro h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .perks {
    display: none;
  }
}

/* Cards */
.card {
  min-width: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--dopta-radius-panel);
  background: var(--raised);
  box-shadow: var(--shadow);
}
.narrow {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.card-head h1 {
  font: 500 clamp(28px, 4vw, 36px)/1.1 var(--sans);
  letter-spacing: -0.03em;
}
.card-head h2 {
  font: 500 24px/1.2 var(--sans);
  letter-spacing: -0.02em;
}
.step-badge {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: var(--dopta-radius-pill);
  background: var(--sunken);
  font: 500 13px/1.3 var(--sans);
}
.chip-gold {
  background: var(--signal-soft);
  color: var(--ink);
}
.chip .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > label {
  font: 500 14px/20px var(--sans);
}
.fields {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.fields .ico {
  flex: 0 0 11rem;
}
.fields .grow {
  flex: 1;
}
@media (max-width: 480px) {
  .fields {
    flex-direction: column;
    align-items: stretch;
  }
  .fields .ico {
    flex: none;
  }
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
  transition:
    border-color var(--dopta-duration) ease,
    box-shadow var(--dopta-duration) ease,
    background var(--dopta-duration) ease;
}
.input:hover {
  border-color: var(--control);
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--raised);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.input.is-bad {
  border-color: var(--bad);
}
.input.code {
  height: 64px;
  font: 600 28px/1 var(--sans);
  letter-spacing: 0.32em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.address {
  display: flex;
  align-items: stretch;
}
.address .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  min-width: 0;
}
.suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: var(--sunken);
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}
.hint,
.error {
  font-size: 13px;
  line-height: 18px;
}
.hint {
  color: var(--muted);
}
.hint.ok {
  color: var(--ok);
}
.hint.ok::before {
  content: '✓ ';
}
.hint.bad,
.error {
  color: var(--bad);
}
.hint.busy {
  color: var(--muted);
  animation: breathe 1.2s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.45;
  }
}
.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}
.check input {
  appearance: none;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--control);
  border-radius: 7px;
  background: var(--raised);
  cursor: pointer;
  transition:
    background var(--dopta-duration) ease,
    border-color var(--dopta-duration) ease;
}
.check input:checked {
  border-color: var(--ink);
  background: var(--ink);
}
.check input:checked::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid var(--on-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input.is-bad {
  border-color: var(--bad);
}

/* Messages */
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--sunken);
  font-size: 14px;
}
.notice-bad {
  background: var(--bad-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px 0 22px;
  border: 1px solid transparent;
  border-radius: var(--dopta-radius-pill);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dopta-duration) ease,
    box-shadow var(--dopta-duration) ease,
    background var(--dopta-duration) ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-quiet {
  padding: 0 20px;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--hover);
}
.btn-wide {
  width: 100%;
}
.btn:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}
.badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--on-signal);
  font-size: 15px;
  transition: transform var(--dopta-duration) var(--ease);
}
.btn:hover .badge {
  transform: translateX(2px);
}
.btn.is-busy .badge {
  color: transparent;
  background:
    radial-gradient(circle, var(--signal) 52%, transparent 54%),
    conic-gradient(var(--on-signal) 0 25%, var(--signal) 25% 100%);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.code-step .row .btn-primary {
  flex: 1;
}
.waitlist {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* The setup: the wordmark's trail of a's, on paper */
.setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.setup-mark {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px 0 0;
}
.setup-mark::before {
  content: '';
  position: absolute;
  inset: 10% -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.8;
}
.running .setup-mark::before {
  animation: glow 3.2s ease-in-out infinite;
}
@keyframes glow {
  50% {
    opacity: 0.35;
    transform: scale(0.92);
  }
}
.wm-xl {
  font-size: clamp(64px, 17vw, 132px);
  letter-spacing: -0.05em;
}
.wm-xl .a {
  display: inline-block;
  opacity: var(--o);
}
.wm-xl .a1 {
  --i: 0;
  --o: 0.22;
}
.wm-xl .a2 {
  --i: 1;
  --o: 0.45;
}
.wm-xl .a3 {
  --i: 2;
  --o: 0.7;
}
.wm-xl .a4 {
  --i: 3;
  --o: 1;
}
.running .wm-xl .a {
  animation: trail 2.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.16s);
}
@keyframes trail {
  0% {
    opacity: 0;
    transform: translateY(0.12em) scale(0.86);
  }
  16% {
    opacity: var(--o);
    transform: none;
  }
  66% {
    opacity: var(--o);
    transform: none;
  }
  84%,
  100% {
    opacity: 0;
    transform: translateY(-0.06em) scale(0.96);
  }
}
.settled .wm-xl .a {
  animation: settle 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 0.08s);
}
.finished .wm-xl .a4 {
  animation:
    settle 0.7s var(--ease) both,
    land 0.9s var(--ease) 0.45s both;
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.1em);
  }
  to {
    opacity: var(--o);
    transform: none;
  }
}
@keyframes land {
  40% {
    transform: translateY(-0.08em) scale(1.08);
  }
  to {
    transform: none;
  }
}
/* The finish: a ring of gold opens from the last a as it lands. */
.finished .wm-xl .a4 {
  position: relative;
}
.finished .wm-xl .a4::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 62%;
  width: 0.9em;
  height: 0.9em;
  margin: -0.45em 0 0 -0.45em;
  border: 2px solid var(--signal);
  border-radius: 50%;
  pointer-events: none;
  animation: ring 1.5s var(--ease) 0.5s both;
}
@keyframes ring {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(4);
  }
}
.setup-for {
  font-size: 15px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.setup-for b {
  color: var(--ink);
  font-weight: 500;
}
.say {
  min-height: 2.7em;
  font: 500 clamp(20px, 3.6vw, 26px)/1.3 var(--sans);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.say span {
  display: inline-block;
  animation: say 0.5s var(--ease) both;
}
@keyframes say {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }
}
.say.is-bad {
  color: var(--bad);
}
.line {
  position: relative;
  width: min(420px, 100%);
  height: 4px;
  border-radius: var(--dopta-radius-pill);
  background: var(--line);
  overflow: hidden;
}
.line > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal-soft), var(--signal));
  transition: width 0.8s var(--ease);
}
.running .line > span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--raised), transparent);
  opacity: 0.7;
  transform: translateX(-100%);
  animation: sheen 2s ease-in-out infinite;
}
@keyframes sheen {
  to {
    transform: translateX(100%);
  }
}
.failed .line > span {
  background: var(--bad);
}
.ticks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(420px, 100%);
  text-align: left;
}
.tick {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding: 4px 12px 4px 6px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.tick .label {
  overflow-wrap: anywhere;
}
.tick .mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font: 600 11px/1 var(--sans);
  color: var(--muted);
}
.tick svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick.is-running {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.tick.is-running .mark {
  border: 0;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--glow-ring);
  animation: pulse 1.6s ease-in-out infinite;
}
.tick .spin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-signal);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px var(--glow-ring);
  }
}
.tick.is-done,
.tick.is-warning {
  color: var(--ink);
}
.tick.is-done .mark,
.tick.is-warning .mark {
  border: 0;
  background: var(--ink);
  color: var(--on-ink);
}
.tick.is-new.is-done .mark,
.tick.is-new.is-warning .mark {
  animation: pop 0.5s var(--ease) both;
}
.tick.is-new.is-done path,
.tick.is-new.is-warning path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.45s var(--ease) 0.15s forwards;
}
@keyframes pop {
  from {
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.12);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.tick.is-failed {
  color: var(--bad);
}
.tick.is-failed .mark {
  border: 0;
  background: var(--bad);
  color: var(--on-ink);
}
.finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 0.7s var(--ease) 0.2s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.finished .ticks {
  opacity: 0.55;
  transition: opacity 0.6s ease;
}

@media (max-width: 480px) {
  .tick {
    font-size: 14px;
  }
  .btn {
    width: 100%;
  }
  .code-step .row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .wm-xl .a {
    opacity: var(--o) !important;
  }
  .tick.is-new path {
    stroke-dashoffset: 0;
  }
  .finished .wm-xl .a4::after {
    display: none;
  }
}
