/* probelogix.com. Design "D · Mix of B and C": dark hero and bands, light sections, one accent.
   Colour only for status (CLAUDE.md, UI). Fonts are served from /fonts (OFL, see the licence files). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --accent: #4ade80;
  --ink: #0a0a0a;
  --dark: #0b0d0c;
  --dark-text: #e7e9e8;
  --dark-muted: #a3aaa6;
  --dark-line: #1f2421;
  --dark-line-2: #2c332f;
  --muted: #525252;
  --line: #e5e5e5;
  --line-soft: #ededed;
  --soft: #fafafa;
  --pass: #15803d;
  --fail: #b91c1c;
  --running: #2563eb;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.features :focus-visible, .how :focus-visible, .pr :focus-visible, .pricing :focus-visible { outline-color: var(--ink); }
code { font-family: var(--mono); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.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: 16px; top: -48px; z-index: 10;
  background: #ffffff; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.dark { background: var(--dark); color: var(--dark-text); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; text-align: center;
  border-radius: 10px; font-size: 16px; padding: 15px 24px;
}
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-white { background: #ffffff; color: var(--dark); font-size: 14px; padding: 11px 16px; border-radius: 8px; }
.btn-line { border: 1px solid #d4d4d4; padding: 13px; }
.btn-black { background: var(--ink); color: #ffffff; padding: 13px; }

/* Header */
.top { border-bottom: 1px solid var(--dark-line); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.brand {
  text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.nav-links a, .nav-signin { text-decoration: none; color: var(--dark-muted); }
.nav-links a:hover, .nav-signin:hover { color: var(--dark-text); opacity: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14px; padding: 11px 14px; }

/* Hero */
.hero {
  max-width: 940px; margin: 0 auto; padding: 96px 24px 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
}
h1 { font-size: clamp(40px, 8.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--dark-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cmd {
  font-size: 14px; padding: 15px 20px; border: 1px solid var(--dark-line-2);
  border-radius: 10px; color: var(--dark-text);
}

/* Hero picture: the Runs screen */
.shot {
  border: 1px solid var(--dark-line-2); border-bottom: none; border-radius: 14px 14px 0 0;
  overflow: hidden; display: flex; flex-wrap: wrap; background: #ffffff; color: var(--ink);
  box-shadow: 0 -20px 80px -30px rgba(74, 222, 128, 0.25);
}
.shot-side {
  flex: 0 1 220px; background: var(--soft); border-right: 1px solid var(--line-soft);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #404040;
}
.shot-side div { padding: 8px 10px; }
.shot-side .shot-org { font-weight: 700; color: var(--ink); padding: 6px 10px 14px; }
.shot-side .on { border-radius: 6px; background: var(--line-soft); color: var(--ink); font-weight: 600; }
.shot-main { flex: 999 1 560px; min-width: 0; padding: 24px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.shot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 14px; }
.shot-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.shot-tally { margin-left: auto; }
.pass { color: var(--pass); font-weight: 600; }
.fail { color: var(--fail); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.tile-foot { padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tile-name { flex: 1; min-width: 0; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sdot.lg { width: 10px; height: 10px; }
.sdot.ok { background: var(--pass); }
.sdot.bad { background: var(--fail); }
.sdot.run { background: var(--running); }
.shot-alert {
  border: 1px solid #fecaca; background: #fef2f2; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; color: #7f1d1d;
}

/* The live view in each tile: a page drawn in grey blocks, not a screenshot. */
.view { aspect-ratio: 16 / 10; background: #f5f5f5; padding: 10px; display: flex; }
.pg {
  flex: 1; background: #ffffff; border: 1px solid #e8e8e8; border-radius: 4px;
  padding: 0 0 8px; display: flex; flex-direction: column; gap: 5px; overflow: hidden;
}
.pg i { display: block; background: #e5e5e5; border-radius: 2px; flex: none; }
.pg .bar { height: 9px; border-radius: 0; background: #ececec; margin-bottom: 3px; }
.pg .h { height: 7px; width: 42%; margin: 0 10px 2px; background: #d4d4d4; }
.pg .field { height: 10px; margin: 0 10px; background: #ffffff; border: 1px solid #dcdcdc; }
.pg .field.focus { border-color: var(--running); }
.pg .label { height: 4px; width: 26%; margin: 0 10px; background: #e0e0e0; }
.pg .button { height: 11px; width: 34%; margin: 2px 10px 0; background: #a3a3a3; border-radius: 3px; }
.pg-signin { align-items: stretch; }
.pg-signin .h { align-self: center; margin: 6px 0 4px; width: 36%; }
.pg-signin .field { margin: 0 22%; }
.pg-signin .button { align-self: center; margin-top: 4px; }
.pg .row {
  height: 12px; margin: 0 10px; background: transparent;
  display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #efefef;
}
.pg .row b, .pg .row s, .pg .row u { display: block; height: 5px; background: #e0e0e0; border-radius: 2px; }
.pg .row b { width: 7px; height: 7px; border-radius: 50%; background: #d4d4d4; }
.pg .row s { flex: 1; }
.pg .row u { width: 18%; background: #cfcfcf; }
.pg .alert { height: 9px; margin: 0 10px; background: #fde2e2; border: 1px solid #fecaca; }
.pg .thead { height: 7px; margin: 0 10px; background: #dadada; }
.pg .trow { height: 6px; margin: 0 10px; background: #efefef; }

/* Light sections */
h2 { font-size: clamp(32px, 5.2vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.dark .lead { color: var(--dark-muted); }

.features { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.features h2 { max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card .tag { font-family: var(--mono); font-size: 12px; color: var(--pass); }
.card p:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); }

.how { background: var(--soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.how-inner {
  padding-top: 88px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px;
}
.how-intro { display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 18px; }
.steps .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d4d4d4; background: #ffffff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.steps li div { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-size: 19px; }
.steps p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Claude Code band */
.cc-inner { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cc-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.term {
  flex: 1 1 520px; min-width: 0; border: 1px solid var(--dark-line); border-radius: 12px; background: #050605;
  padding: 24px; font-family: var(--mono); font-size: 14px; line-height: 1.85;
}
.term div { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-dim { color: #7d8682; }
.t-ok { color: var(--accent); }
.t-bad { color: #fca5a5; }
.t-gap { margin-top: 12px; }
.t-in { padding-left: 2ch; }

/* Pull request check */
.pr {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; align-items: start;
}
.pr-text { display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.checks { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.check { padding: 14px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.check-name { flex: 1; min-width: 0; }
.check-link { text-decoration: underline; text-underline-offset: 2px; }
.check-body { padding: 14px 16px; background: var(--soft); color: #404040; font-size: 14px; line-height: 1.6; }

/* Pricing */
.pricing { padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.pricing h2 { text-align: center; }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px;
  max-width: 820px; width: 100%; margin: 0 auto;
}
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan-main { border: 2px solid var(--ink); }
.plan h3 { font-size: 18px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.price-soon { font-size: 32px; }
.plan-what { font-size: 15px; color: var(--muted); line-height: 1.7; flex: 1; }

/* Final band and footer */
.final {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.final h2 { font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.04em; }
.foot { border-top: 1px solid var(--dark-line); }
.foot-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--dark-muted); }
.foot-inner a { text-decoration: none; }
.foot-inner a:hover { color: var(--dark-text); opacity: 1; }

/* ---------------------------------------------------------------------------------------------
   Motion. The page as served is the end state. /motion.js adds `motion` to <html> only when the
   visitor has not asked for less motion; every animation below hangs off that class, except the
   hero glow, which runs on CSS alone and only under prefers-reduced-motion: no-preference.
   Only transform and opacity are animated.
   --------------------------------------------------------------------------------------------- */

/* Test state on each tile */
.tile[data-state="queued"] .sdot { background: #a3a3a3; }
.tile[data-state="run"] .sdot { background: var(--running); }
.tile[data-state="pass"] .sdot { background: var(--pass); }
.tile[data-state="fail"] .sdot { background: var(--fail); }
.sdot.pend { background: #ca8a04; }
.shot-tally { font-variant-numeric: tabular-nums; }
.tile-foot .muted { font-variant-numeric: tabular-nums; }
.shot-tally .zero { color: var(--muted); font-weight: 400; }

/* Drawn page parts that move */
.pg { position: relative; }
.pg .field, .pg .button { position: relative; overflow: hidden; }
.pg i.fill { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 55%; background: #c4c4c4; transform-origin: left; }
.pg .field + .field i.fill, .pg .label + .field.focus i.fill { width: 38%; }
.pg i.rip {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.75); opacity: 0;
}
.pg i.cur { position: absolute; inset: 0; margin: 0; background: none; border-radius: 0; pointer-events: none; }
.pg i.cur i { width: 7px; height: 7px; border-radius: 50%; background: #525252; box-shadow: 0 0 0 2px #ffffff; opacity: 0; }
.pg .row u { transition: opacity 0.3s ease; }

html.motion .tile[data-state="queued"] .fill { transform: scaleX(0); }
html.motion .tile[data-state="queued"] .row u { opacity: 0.25; }
html.motion .tile[data-state="queued"] .trow { transform: scaleX(0); }
html.motion .tile:not([data-state="fail"]) .alert { opacity: 0; }
html.motion .pg .alert { transition: opacity 0.3s ease; }

/* A running test: its dot pulses, and its page is being used. */
html.motion .tile[data-state="run"] .sdot { position: relative; }
html.motion .tile[data-state="run"] .sdot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--running);
  animation: ping 1.2s ease-out infinite;
}
html.motion .tile[data-state="run"] .cur i { animation: cur-show 0.3s ease forwards; }

/* Sign in: two fields filled, then the button pressed (2.1 s, the test's own time). */
html.motion .tile[data-state="run"] .pg-signin .cur { animation: si-cur 2.1s ease-in-out both; }
html.motion .tile[data-state="run"] .pg-signin .field:nth-of-type(3) .fill { animation: fill-a 2.1s ease both; }
html.motion .tile[data-state="run"] .pg-signin .field:nth-of-type(4) .fill { animation: fill-b 2.1s ease both; }
html.motion .tile[data-state="run"] .pg-signin .rip { animation: rip 2.1s ease-out both; }

/* Check in a child: down the list, one row at a time (4.8 s). */
html.motion .tile[data-state="run"] .pg-list .cur { animation: li-cur 4.8s ease-in-out both; }
html.motion .tile[data-state="run"] .pg-list .row u { opacity: 0.25; animation: tick 0.3s ease forwards; }
html.motion .tile[data-state="run"] .pg-list .row:nth-of-type(3) u { animation-delay: 0.9s; }
html.motion .tile[data-state="run"] .pg-list .row:nth-of-type(4) u { animation-delay: 2s; }
html.motion .tile[data-state="run"] .pg-list .row:nth-of-type(5) u { animation-delay: 3.1s; }
html.motion .tile[data-state="run"] .pg-list .row:nth-of-type(6) u { animation-delay: 4.2s; }

/* Add a pickup person: filling the form, over and over while the test runs. */
html.motion .tile[data-state="run"] .pg-form .cur { animation: fo-cur 3s ease-in-out infinite; }
html.motion .tile[data-state="run"] .pg-form .field:nth-of-type(4) .fill { animation: fo-1 3s ease infinite; }
html.motion .tile[data-state="run"] .pg-form .field:nth-of-type(6) .fill { animation: fo-2 3s ease infinite; }
html.motion .tile[data-state="run"] .pg-form .field:nth-of-type(8) .fill { animation: fo-3 3s ease infinite; }

/* Billing page loads: rows come in, the cursor reads them, then the error. */
html.motion .tile[data-state="run"] .pg-table .trow { transform-origin: left; animation: grow 0.5s ease both; }
html.motion .tile[data-state="run"] .pg-table .trow:nth-of-type(6) { animation-delay: 0.6s; }
html.motion .tile[data-state="run"] .pg-table .trow:nth-of-type(7) { animation-delay: 1.2s; }
html.motion .tile[data-state="run"] .pg-table .cur { animation: ta-cur 2.8s ease-in-out infinite alternate; }

/* The likely cause slides in when the test fails. */
html.motion .shot-alert { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
html.motion .shot.alerted .shot-alert { opacity: 1; transform: none; }

@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }
@keyframes cur-show { to { opacity: 1; } }
@keyframes tick { to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes si-cur {
  0% { transform: translate(80%, 95%); }
  22%, 40% { transform: translate(38%, 42%); }
  50%, 68% { transform: translate(38%, 58%); }
  82%, 100% { transform: translate(48%, 76%); }
}
@keyframes fill-a { 0%, 22% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes fill-b { 0%, 50% { transform: scaleX(0); } 68%, 100% { transform: scaleX(1); } }
@keyframes rip { 0%, 84% { transform: scale(0); opacity: 0.9; } 100% { transform: scale(3); opacity: 0; } }
@keyframes li-cur {
  0% { transform: translate(60%, 95%); }
  15%, 22% { transform: translate(88%, 40%); }
  38%, 45% { transform: translate(88%, 55%); }
  61%, 68% { transform: translate(88%, 70%); }
  84%, 100% { transform: translate(88%, 85%); }
}
@keyframes fo-cur {
  0% { transform: translate(70%, 95%); }
  12%, 28% { transform: translate(30%, 36%); }
  38%, 54% { transform: translate(30%, 58%); }
  64%, 82% { transform: translate(30%, 80%); }
  100% { transform: translate(70%, 95%); }
}
@keyframes fo-1 { 0%, 12% { transform: scaleX(0); } 28%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fo-2 { 0%, 38% { transform: scaleX(0); } 54%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fo-3 { 0%, 64% { transform: scaleX(0); } 82%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ta-cur { from { transform: translate(20%, 62%); } to { transform: translate(70%, 88%); } }

/* Hero background: a slow grid drift and a green glow behind the app screen. */
.hero-band { position: relative; isolation: isolate; overflow: hidden; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-fx::before {
  content: ""; position: absolute; left: 0; right: 0; top: -48px; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 10%, transparent 75%);
}
.hero-fx::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(1100px, 140vw); height: 720px;
  margin-left: calc(min(1100px, 140vw) / -2);
  background: radial-gradient(closest-side, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0));
}
.hero-band > header, .hero-band > main { position: relative; }
.pause {
  position: absolute; right: 24px; top: -42px; font: inherit; font-size: 12px; line-height: 1;
  color: var(--dark-muted); background: transparent; border: 1px solid var(--dark-line-2);
  border-radius: 6px; padding: 8px 10px; cursor: pointer;
}
.pause:hover { color: var(--dark-text); }
.shot-wrap { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .hero-fx::before { animation: drift 24s linear infinite; }
  .hero-fx::after { animation: breathe 9s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: translateY(48px); } }
@keyframes breathe { from { opacity: 0.55; transform: scale(0.9); } to { opacity: 1; transform: scale(1.08); } }

/* The terminal types itself; lines keep their place while unseen, so nothing moves. */
html.motion .term.typing div:not(.shown) { visibility: hidden; }
.term .ghost { visibility: hidden; }

/* The pull request check: in progress, then its result. */
.stack { display: inline-grid; }
.stack > * { grid-area: 1 / 1; }
.stack.dots { place-items: center; }
.v-pend { opacity: 0; visibility: hidden; }
html.motion .checks .v-pend, html.motion .checks .v-done { transition: opacity 0.35s ease, visibility 0.35s; }
html.motion .checks:not(.done) .v-pend { opacity: 1; visibility: visible; }
html.motion .checks:not(.done) .v-done { opacity: 0; }
html.motion .checks:not(.done) .check-body { transform: translateY(-6px); }
html.motion .checks .check-body { transition: opacity 0.4s ease, transform 0.4s ease; }
html.motion .checks:not(.done) .sdot.pend { animation: ping-soft 1.2s ease-in-out infinite alternate; }
@keyframes ping-soft { from { opacity: 0.5; } to { opacity: 1; } }

/* Scroll reveals: sections rise in, lists in a short stagger. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
html.motion .rv:not(.in), html.motion .rv-kids:not(.in) > * { opacity: 0; }
html.motion .rv.in, html.motion .rv-kids.in > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
html.motion .rv-kids.in > :nth-child(2) { animation-delay: 0.09s; }
html.motion .rv-kids.in > :nth-child(3) { animation-delay: 0.18s; }
html.motion .rv-kids.in > :nth-child(4) { animation-delay: 0.27s; }

/* The steps: a line joins the numbers. */
.steps li { position: relative; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 17.5px; top: 36px; width: 1px; height: calc(100% - 8px);
  background: #c4c4c4; transform-origin: top;
}
.steps .num { position: relative; }
html.motion .steps li::before { transition: transform 0.5s ease 0.35s; }
html.motion .steps li:nth-child(2)::before { transition-delay: 0.75s; }
html.motion .steps:not(.in) li::before { transform: scaleY(0); }

/* Hover: a small lift and a tinted border. */
.btn { transition: transform 0.18s ease, opacity 0.18s ease; }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.card, .plan { transition: transform 0.2s ease, border-color 0.2s ease; }
.card:hover, .plan:hover { transform: translateY(-3px); border-color: #86efac; }
.plan-main:hover { border-color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* Pause motion stops everything that moves. */
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .card:hover, .plan:hover { transform: none; }
  .btn, .card, .plan { transition: none; }
}

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost .hero { flex: 1; justify-content: center; }

/* Phones */
@media (max-width: 720px) {
  .nav { gap: 12px 20px; }
  .nav-links { order: 3; width: 100%; gap: 20px; }
  .hero { padding-top: 64px; padding-bottom: 60px; }
  .hero-lead { font-size: 18px; }
  .shot-side {
    flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 2px;
    border-right: none; border-bottom: 1px solid var(--line-soft); padding: 12px; font-size: 13px;
  }
  .shot-side div { padding: 6px 8px; }
  .shot-side .shot-org { width: 100%; padding: 2px 8px 6px; }
  .shot-main { padding: 18px 16px 24px; }
  .shot-tally { margin-left: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .view { padding: 6px; }
  .tile-foot { padding: 8px; font-size: 12px; flex-wrap: wrap; gap: 4px 6px; }
  .tile-foot .muted { width: 100%; padding-left: 14px; }
  .pause { top: -36px; }
  .features, .pr { padding-top: 64px; padding-bottom: 56px; }
  .how-inner, .cc-inner { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .pricing { padding-bottom: 64px; }
  .term { padding: 18px; font-size: 13px; }
  .plan { padding: 24px; }
  .final { padding-top: 64px; padding-bottom: 64px; }
}
