/* trytideline.com — marketing page on the v2 tokens (assets/tokens.css).
   2b hybrid: neutral slate chassis, sea-glass accent reserved for brand + primary action,
   status colors never borrow the accent, waterline only where something flows. */

*, *::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;
  background: var(--tl-bg-canvas);
  color: var(--tl-text-primary);
  font: var(--tl-type-body);
  font-size: 15px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--tl-selection); }
a { color: var(--tl-text-link); text-decoration: none; }
a:hover { color: var(--tl-accent-hover); }
:focus-visible { outline: 2px solid var(--tl-focus-ring); outline-offset: 2px; border-radius: var(--tl-radius-sm); }
h1, h2, h3 { margin: 0; font-weight: var(--tl-weight-medium); text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
.mono { font-family: var(--tl-font-mono); }
.muted { color: var(--tl-text-secondary); }
.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; padding: 8px 12px; background: var(--tl-bg-overlay); border-radius: var(--tl-radius-md); z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--tl-grid-margin); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--tl-bg-canvas) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tl-border-subtle);
}
.topbar-inner { display: flex; align-items: center; gap: var(--tl-space-6); height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--tl-text-primary); font-weight: var(--tl-weight-semibold); font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: var(--tl-text-primary); }
.brand .mark { display: block; color: var(--tl-text-primary); }
.brand-sm { font-size: 14px; }
.nav { display: flex; gap: var(--tl-space-5); margin-left: auto; }
.nav a { color: var(--tl-text-secondary); font: var(--tl-type-body-sm); transition: color var(--tl-dur-fast) var(--tl-ease-standard); }
.nav a:hover { color: var(--tl-text-primary); }
@media (max-width: 760px) { .nav { display: none; } .topbar-inner .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--tl-radius-md);
  font: var(--tl-type-body); font-weight: var(--tl-weight-medium);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--tl-dur-fast) var(--tl-ease-standard), border-color var(--tl-dur-fast) var(--tl-ease-standard), color var(--tl-dur-fast) var(--tl-ease-standard);
}
.btn-sm { height: 32px; padding: 0 12px; font: var(--tl-type-body-sm); font-weight: var(--tl-weight-medium); }
.btn-primary { background: var(--tl-accent); color: var(--tl-text-on-accent); }
.btn-primary:hover { background: var(--tl-accent-hover); color: var(--tl-text-on-accent); }
.btn-primary:active { background: var(--tl-accent-active); }
.btn-secondary { background: var(--tl-bg-surface-2); color: var(--tl-text-primary); border-color: var(--tl-border-default); }
.btn-secondary:hover { background: var(--tl-bg-surface-3); color: var(--tl-text-primary); }
.btn-ghost { color: var(--tl-text-primary); }
.btn-ghost:hover { background: var(--tl-hover-overlay); color: var(--tl-text-primary); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Panels + waterline motif ---------- */
.panel {
  position: relative; overflow: hidden;
  background: var(--tl-bg-surface-1);
  border-radius: var(--tl-radius-lg);
  box-shadow: var(--tl-shadow-1);
}
.panel-live { box-shadow: var(--tl-shadow-2); }
.waterline { position: absolute; inset: 0 0 auto 0; height: var(--tl-waterline-h); background: var(--tl-waterline-idle); }
.waterline-active { background: var(--tl-waterline-active); }
.waterline-flow {
  background: repeating-linear-gradient(90deg, var(--tl-accent) 0 24px, color-mix(in srgb, var(--tl-accent) 35%, transparent) 24px 48px);
  animation: tl-flow var(--tl-dur-flow) linear infinite;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.id { font: var(--tl-type-mono-sm); color: var(--tl-text-secondary); }

/* status pill — shape + label, never hue alone */
.status, .ws { display: inline-flex; align-items: center; gap: 6px; font: var(--tl-type-caption); font-weight: var(--tl-weight-medium); }
.status { padding: 2px 8px 2px 6px; border-radius: var(--tl-radius-pill); }
.status .dot, .ws .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-passed { color: var(--tl-success); background: var(--tl-success-subtle); }
.status-passed .dot { background: var(--tl-success); }

/* tide marks — the confidence language, carried over from v1 */
.tide { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--tl-success); flex: none; }
.tide-dashed { border-top-style: dashed; border-color: var(--tl-warning); }
.tide-dotted { border-top-style: dotted; border-color: var(--tl-text-tertiary); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; border-bottom: 1px solid var(--tl-border-subtle); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: var(--tl-type-label-caps); letter-spacing: var(--tl-track-label-caps); text-transform: uppercase; color: var(--tl-text-secondary); margin-bottom: 24px; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--tl-accent); box-shadow: 0 0 0 3px var(--tl-accent-subtle); }
.hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: var(--tl-weight-medium); }
.lede { margin-top: 24px; max-width: 34em; font-size: 17px; line-height: 27px; color: var(--tl-text-secondary); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine { margin-top: 20px; font: var(--tl-type-caption); color: var(--tl-text-tertiary); }
.hero-panel { animation: tl-rise var(--tl-dur-slow) var(--tl-ease-enter) both; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--tl-bg-surface-1); border-top: 1px solid var(--tl-border-subtle); border-bottom: 1px solid var(--tl-border-subtle); }
.section-alt .panel { background: var(--tl-bg-surface-2); }
.label { font: var(--tl-type-label-caps); letter-spacing: var(--tl-track-label-caps); text-transform: uppercase; color: var(--tl-accent); margin-bottom: 12px; }
.label.mono { font-family: var(--tl-font-mono); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -0.025em; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lede { margin-top: 16px; color: var(--tl-text-secondary); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--tl-border-default); }
.step { padding: 24px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--tl-border-subtle); }
.step-n { display: block; font: var(--tl-type-mono-sm); color: var(--tl-accent); margin-bottom: 16px; }
.step h3 { font: var(--tl-type-heading); letter-spacing: var(--tl-track-heading); margin-bottom: 8px; }
.step p { font: var(--tl-type-body); color: var(--tl-text-secondary); }

.legend { margin: 0; display: grid; gap: 12px; align-content: start; }
.legend div { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: baseline; }
.legend dt { display: inline-flex; align-items: center; gap: 10px; font: var(--tl-type-body-sm); font-weight: var(--tl-weight-medium); }
.legend dd { margin: 0; font: var(--tl-type-body-sm); color: var(--tl-text-secondary); }

.live { display: inline-flex; align-items: center; gap: 8px; font: var(--tl-type-body-sm); font-weight: var(--tl-weight-medium); }
.breathe { width: 8px; height: 8px; border-radius: 50%; background: var(--tl-warning); animation: tl-breathe 2.4s var(--tl-ease-standard) infinite; }

/* workers table */
.table-panel { overflow-x: auto; }
.workers { width: 100%; border-collapse: collapse; font: var(--tl-type-body-sm); min-width: 720px; }
.workers th { text-align: left; font: var(--tl-type-label-caps); letter-spacing: var(--tl-track-label-caps); text-transform: uppercase; color: var(--tl-text-tertiary); padding: 14px 16px 10px; border-bottom: 1px solid var(--tl-border-default); }
.workers td { padding: 12px 16px; border-bottom: 1px solid var(--tl-border-subtle); vertical-align: middle; }
.workers tr:last-child td { border-bottom: 0; }
.workers td.mono { font: var(--tl-type-mono-sm); }
.w-name { display: block; font-weight: var(--tl-weight-medium); }
.w-chip { display: block; font: var(--tl-type-mono-xs); color: var(--tl-text-tertiary); margin-top: 2px; }
.ws-online { color: var(--tl-worker-online); } .ws-online .dot { background: var(--tl-worker-online); }
.ws-busy { color: var(--tl-worker-busy); } .ws-busy .dot { background: linear-gradient(90deg, var(--tl-worker-busy) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--tl-worker-busy); }
.ws-sleeping { color: var(--tl-worker-sleeping); } .ws-sleeping .dot { box-shadow: inset 0 0 0 1.5px var(--tl-worker-sleeping); }

.glyphs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.glyphs li { display: flex; gap: 12px; align-items: center; color: var(--tl-text-primary); }
.glyphs svg { flex: none; padding: 6px; width: 44px; height: 44px; background: var(--tl-bg-surface-1); border-radius: var(--tl-radius-md); box-shadow: var(--tl-shadow-1); }
.glyphs span { font: var(--tl-type-body-sm); color: var(--tl-text-secondary); }
.glyphs strong { display: block; color: var(--tl-text-primary); font-weight: var(--tl-weight-medium); }

/* scope cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px 22px 24px; }
.card h3 { font: var(--tl-type-heading); letter-spacing: var(--tl-track-heading); margin-bottom: 8px; }
.card p { color: var(--tl-text-secondary); font: var(--tl-type-body); }

/* closing */
.closing { text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing-mark { color: var(--tl-text-primary); margin-bottom: 4px; }
.closing p:not(.label) { color: var(--tl-text-secondary); max-width: 30em; margin-bottom: 8px; }

/* footer */
.footer { border-top: 1px solid var(--tl-border-subtle); padding: 28px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font: var(--tl-type-body-sm); }
.footer-inner a { margin-left: auto; color: var(--tl-text-secondary); }
.footer-inner a:hover { color: var(--tl-text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { padding-top: 32px; }
  .glyphs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; padding-top: 28px; }
  .glyphs { grid-template-columns: 1fr; }
  .legend div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner a { margin-left: 0; }
}

/* =====================================================================
   Explainer animations (assets/explainer.js drives the step classes)
   Each figure.xp carries cumulative classes s1…sN for the current step.
   Without JS, or with reduced motion, the markup's final step is shown.
   ===================================================================== */
.xp-head-right { display: inline-flex; align-items: center; gap: 10px; }
.xp-toggle { font: var(--tl-type-micro); font-family: var(--tl-font-mono); color: var(--tl-text-secondary); background: transparent; border: 1px solid var(--tl-border-default); border-radius: var(--tl-radius-sm); padding: 3px 8px; cursor: pointer; }
.xp-toggle:hover { color: var(--tl-text-primary); border-color: var(--tl-border-strong); }
.xp-toggle[hidden] { display: none; }
.xa-stage, .xc-stage { transition: opacity .35s var(--tl-ease-standard); }
.xp-out .xa-stage, .xp-out .xc-stage { opacity: 0; }
.xp.snap { transition: none !important; } /* figure: transitions only, so the hero entrance (tl-rise) never restarts */
.xp.snap *, .xp.snap *::before, .xp.snap *::after { transition: none !important; animation: none !important; }
.xp-paused, .xp-paused *, .xp-paused *::before, .xp-paused *::after { animation-play-state: paused !important; }

/* ---------- A · agents converge on your Mac (hero) ---------- */
.xa .panel-head .id { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xa-status { white-space: nowrap; }
@media (max-width: 440px) { .xa .panel-head .id { display: none; } .xa .xp-head-right { margin-left: auto; } }
.xa .status { transition: color var(--tl-dur-base), background-color var(--tl-dur-base); color: var(--tl-text-secondary); background: var(--tl-hover-overlay); }
.xa .status .dot { background: currentColor; }
.xa-status::after { content: "Idle"; }
.xa.s1 .xa-status { color: var(--tl-accent); background: var(--tl-accent-subtle); }
.xa.s1 .xa-status::after { content: "Routing 4 jobs"; }
.xa.s2 .xa-status { color: var(--tl-warning); background: var(--tl-warning-subtle); }
.xa.s2 .xa-status::after { content: "3 running · 1 queued"; }
.xa.s4 .xa-status::after { content: "3 passed · 1 running"; }
.xa.s5 .xa-status { color: var(--tl-success); background: var(--tl-success-subtle); }
.xa.s5 .xa-status::after { content: "4 of 4 passed"; }
.xa.s1:not(.s5) .xa-water { background: repeating-linear-gradient(90deg, var(--tl-accent) 0 24px, color-mix(in srgb, var(--tl-accent) 35%, transparent) 24px 48px); animation: tl-flow var(--tl-dur-flow) linear infinite; }

.xa-stage { position: relative; container-type: inline-size; aspect-ratio: 100 / 106; margin: 6px 14px 10px; }
.xa-stage > * { font-size: clamp(9.5px, 2.7cqw, 13px); }
.xa-paths { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 100 / 110; overflow: visible; }
.xa-path { stroke: var(--tl-border-default); stroke-width: .3; stroke-linecap: round; stroke-dasharray: .1 2.2; transition: stroke var(--tl-dur-slow); }
.xa.s1 .xa-up .xa-path, .xa.s2 .xa-down .xa-path { stroke: var(--tl-accent-border); }
.xa.s5 .xa-up .xa-path, .xa.s5 .xa-down .xa-path { stroke: color-mix(in srgb, var(--tl-success) 35%, transparent); }
.xa-pk { stroke: var(--tl-accent); stroke-width: .75; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; }
@keyframes xa-go { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -100; } }
@keyframes xa-back { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 10; } }
@keyframes xa-back-go { 0% { stroke-dashoffset: -100; stroke: var(--tl-success); } 45% { stroke-dashoffset: 10; stroke: var(--tl-success); } 50% { stroke-dashoffset: 10; stroke: var(--tl-accent); } 100% { stroke-dashoffset: -100; stroke: var(--tl-accent); } }
/* s1: four agents send jobs toward Tideline */
.xa.s1:not(.s2) .xa-pk.a1 { animation: xa-go 1.1s var(--tl-ease-standard) both; }
.xa.s1:not(.s2) .xa-pk.a2 { animation: xa-go 1.1s var(--tl-ease-standard) .15s both; }
.xa.s1:not(.s2) .xa-pk.a3 { animation: xa-go 1.1s var(--tl-ease-standard) .3s both; }
.xa.s1:not(.s2) .xa-pk.a4 { animation: xa-go 1.1s var(--tl-ease-standard) .45s both; }
/* s2: three jobs cross the line to the simulators */
.xa.s2:not(.s3) .xa-pk.d1 { animation: xa-go 1s var(--tl-ease-standard) .35s both; }
.xa.s2:not(.s3) .xa-pk.d2 { animation: xa-go 1s var(--tl-ease-standard) .45s both; }
.xa.s2:not(.s3) .xa-pk.d3 { animation: xa-go 1s var(--tl-ease-standard) .55s both; }
/* s4: three results come back up; the queued job goes down to the free simulator */
.xa.s4 .xa-pk { stroke: var(--tl-success); }
.xa.s4:not(.s5) .xa-pk.d1 { animation: xa-back 1s var(--tl-ease-standard) both; }
.xa.s4:not(.s5) .xa-pk.d2 { animation: xa-back 1s var(--tl-ease-standard) .1s both; }
.xa.s4:not(.s5) .xa-pk.d3 { animation: xa-back-go 2s var(--tl-ease-standard) .2s both; }
.xa.s4:not(.s5) .xa-pk.a1 { animation: xa-back 1s var(--tl-ease-standard) .9s both; }
.xa.s4:not(.s5) .xa-pk.a2 { animation: xa-back 1s var(--tl-ease-standard) 1s both; }
.xa.s4:not(.s5) .xa-pk.a3 { animation: xa-back 1s var(--tl-ease-standard) 1.1s both; }
/* s5: the last result returns */
.xa.s5 .xa-pk.d3 { animation: xa-back 1s var(--tl-ease-standard) both; }
.xa.s5 .xa-pk.a4 { animation: xa-back 1s var(--tl-ease-standard) .9s both; }

.xa-agent { position: absolute; top: 8cqw; width: 22cqw; height: 13cqw; display: grid; align-content: center; justify-items: center; gap: .15em; text-align: center; background: var(--tl-bg-surface-2); border: 1px solid var(--tl-border-default); border-radius: var(--tl-radius-md); transition: border-color var(--tl-dur-slow); }
.xa-agent b { font-weight: var(--tl-weight-medium); color: var(--tl-text-primary); white-space: nowrap; }
.xa-agent.g1 { left: 3cqw; } .xa-agent.g2 { left: 27cqw; } .xa-agent.g3 { left: 51cqw; } .xa-agent.g4 { left: 75cqw; }
.xa-st { font-family: var(--tl-font-mono); font-size: .82em; color: var(--tl-text-tertiary); transition: color var(--tl-dur-slow); }
.xa-st::after { content: "idle"; }
.xa.s1 .xa-agent { border-color: var(--tl-accent-border); }
.xa.s1 .xa-st { color: var(--tl-accent); }
.xa.s1 .xa-st::after { content: "sent"; }
.xa.s2 .xa-agent { border-color: var(--tl-border-default); }
.xa.s2 .xa-st { color: var(--tl-warning); }
.xa.s2 .xa-st::after { content: "running"; }
.xa.s2 .g4 .xa-st { color: var(--tl-text-secondary); }
.xa.s2 .g4 .xa-st::after { content: "queued"; }
.xa.s4 .g4 .xa-st { color: var(--tl-warning); }
.xa.s4 .g4 .xa-st::after { content: "running"; }
.xa.s4 .g1, .xa.s4 .g2, .xa.s4 .g3, .xa.s5 .g4 { border-color: color-mix(in srgb, var(--tl-success) 45%, transparent); }
.xa.s4 .g1 .xa-st, .xa.s4 .g2 .xa-st, .xa.s4 .g3 .xa-st, .xa.s5 .g4 .xa-st { color: var(--tl-success); }
@keyframes xa-arrive { 0%, 85% { opacity: 0; } 100% { opacity: 1; } }
.xa.s4:not(.s5) .g1 .xa-st { animation: xa-arrive 1.9s both; }
.xa.s4:not(.s5) .g2 .xa-st { animation: xa-arrive 2s both; }
.xa.s4:not(.s5) .g3 .xa-st { animation: xa-arrive 2.1s both; }
.xa.s5 .g4 .xa-st { animation: xa-arrive 1.9s both; }
.xa.s4 .g1 .xa-st::after { content: "passed 14/14"; }
.xa.s4 .g2 .xa-st::after { content: "passed 9/9"; }
.xa.s4 .g3 .xa-st::after { content: "passed 22/22"; }
.xa.s5 .g4 .xa-st::after { content: "passed 6/6"; }

.xa-zone { position: absolute; right: 6cqw; font-family: var(--tl-font-mono); font-size: clamp(8px, 2.1cqw, 10.5px) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-text-tertiary); }
.xa-zone-up { top: 48.4cqw; right: auto; left: 6cqw; }
.xa-zone-down { top: 57.4cqw; }
.xa-line { position: absolute; left: 6cqw; right: 6cqw; top: 55cqw; height: 1cqw; margin-top: -.5cqw; }
.xa-half { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--tl-text-primary); }
.xa-half-l { left: 0; border-radius: 99px 0 0 99px; }
.xa-half-r { right: 0; border-radius: 0 99px 99px 0; }
@keyframes xa-part-l { 0%, 100% { transform: none; } 30%, 70% { transform: translateX(-2.2cqw); } }
@keyframes xa-part-r { 0%, 100% { transform: none; } 30%, 70% { transform: translateX(2.2cqw); } }
.xa.s2:not(.s3) .xa-half-l, .xa.s4:not(.s5) .xa-half-l, .xa.s5 .xa-half-l { animation: xa-part-l 1.4s var(--tl-ease-standard) .2s both; }
.xa.s2:not(.s3) .xa-half-r, .xa.s4:not(.s5) .xa-half-r, .xa.s5 .xa-half-r { animation: xa-part-r 1.4s var(--tl-ease-standard) .2s both; }
.xa-dot { position: absolute; left: 50cqw; top: 52.2cqw; width: 3.2cqw; height: 3.2cqw; margin: -1.6cqw 0 0 -1.6cqw; border-radius: 50%; background: var(--tl-accent); }
.xa-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--tl-accent); opacity: 0; }
@keyframes xa-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.xa.s1:not(.s3) .xa-dot::after { animation: xa-ping 1.2s var(--tl-ease-exit) infinite; }

.xa-dev { position: absolute; top: 65cqw; width: 18cqw; display: grid; justify-items: center; gap: 1.4cqw; }
.xa-dev.v1 { left: 13cqw; } .xa-dev.v2 { left: 41cqw; } .xa-dev.v3 { left: 69cqw; }
.xa-screen { width: 100%; aspect-ratio: 9 / 16; display: flex; flex-direction: column; gap: 1.3cqw; padding: 3.4cqw 1.7cqw 1.7cqw; border: .7cqw solid var(--tl-bg-surface-3); border-radius: 2.8cqw; background: var(--tl-bg-canvas); overflow: hidden; transition: background-color var(--tl-dur-slow), border-color var(--tl-dur-slow); }
.xa.s2 .xa-screen { background: var(--tl-bg-surface-2); }
.xa-tag { font-family: var(--tl-font-mono); font-size: .7em; color: var(--tl-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xa-tag::after { content: "idle"; }
.xa.s2 .xa-tag { color: var(--tl-text-primary); }
.xa.s2 .v1 .xa-tag::after { content: "Claude Code"; }
.xa.s2 .v2 .xa-tag::after { content: "Codex"; }
.xa.s2 .v3 .xa-tag::after { content: "Cursor"; }
.xa.s4 .v3 .xa-tag::after { content: "Grok"; }
.xa-bar { display: block; height: 1cqw; border-radius: 99px; background: var(--tl-bg-surface-3); overflow: hidden; }
.xa-bar i { display: block; height: 100%; width: 100%; background: var(--tl-success); border-radius: inherit; }
.xa-sk { display: block; height: .9cqw; width: 100%; border-radius: 99px; background: var(--tl-bg-surface-3); }
.xa-sk.s { width: 60%; }
.xa-done { margin-top: auto; font-family: var(--tl-font-mono); font-size: .66em; color: var(--tl-success); opacity: 1; transition: opacity var(--tl-dur-base); }
.xa-dev-n { font-family: var(--tl-font-mono); font-size: clamp(7.5px, 1.95cqw, 10px) !important; color: var(--tl-text-tertiary); white-space: nowrap; }
@keyframes xa-fill { from { width: 0; } to { width: 100%; } }
/* default (no step) = idle; progress lives only in the run steps */
.xa:not(.s3) .xa-bar i { width: 0; }
.xa:not(.s4) .v1 .xa-done, .xa:not(.s4) .v2 .xa-done, .xa:not(.s5) .v3 .xa-done { opacity: 0; }
.xa.s3:not(.s4) .xa-bar i { background: var(--tl-warning); }
.xa.s3:not(.s4) .v1 .xa-bar i { animation: xa-fill 2.1s linear both; }
.xa.s3:not(.s4) .v2 .xa-bar i { animation: xa-fill 2.3s linear both; }
.xa.s3:not(.s4) .v3 .xa-bar i { animation: xa-fill 1.3s linear both; }
.xa.s4:not(.s5) .v3 .xa-bar i { background: var(--tl-warning); animation: xa-fill 2.1s linear 1s both; }
.xa.s3 .xa-screen { border-color: color-mix(in srgb, var(--tl-warning) 40%, var(--tl-bg-surface-3)); }
.xa.s4 .v1 .xa-screen, .xa.s4 .v2 .xa-screen, .xa.s5 .v3 .xa-screen { border-color: color-mix(in srgb, var(--tl-success) 40%, var(--tl-bg-surface-3)); }

/* ---------- C · watch a run (Evidence) ---------- */
.evidence-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.evidence-copy > p:not(.label) { margin-top: 16px; color: var(--tl-text-secondary); max-width: 36em; }
@property --xc-fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.xc { container-type: inline-size; --xc-fill: 0%; transition: --xc-fill .9s var(--tl-ease-standard); }
.xc.s1 { --xc-fill: 12%; } .xc.s2 { --xc-fill: 30%; } .xc.s3 { --xc-fill: 48%; } .xc.s5 { --xc-fill: 68%; } .xc.s6 { --xc-fill: 86%; } .xc.s7 { --xc-fill: 100%; }
.xc-water { position: absolute; inset: 0 0 auto 0; height: var(--tl-waterline-h); background: linear-gradient(90deg, var(--tl-accent) 0 var(--xc-fill), var(--tl-bg-surface-3) var(--xc-fill)); }
.xc-stepname::after { content: "ready"; }
.xc.s1 .xc-stepname::after { content: "1/5 · build"; }
.xc.s2 .xc-stepname::after { content: "2/5 · launch"; }
.xc.s3 .xc-stepname::after { content: "3/5 · interact"; }
.xc.s5 .xc-stepname::after { content: "4/5 · assert"; }
.xc.s6 .xc-stepname::after { content: "5/5 · capture"; }
.xc.s7 .xc-stepname { color: var(--tl-success); }
.xc.s7 .xc-stepname::after { content: "passed"; }
.xc.s7 .breathe { background: var(--tl-success); animation: none; }

.xc-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 236px); gap: 24px; padding: 12px 18px 18px; }
.xc-chat { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px; background: var(--tl-bg-surface-1); border: 1px solid var(--tl-border-subtle); border-radius: var(--tl-radius-lg); }
.xc-chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--tl-border-subtle); font: var(--tl-type-body-sm); }
.xc-chat-head b { font-weight: var(--tl-weight-medium); }
.xc-chat-head .mono { font: var(--tl-type-mono-xs); color: var(--tl-text-tertiary); margin-left: auto; }
.xa-avatar { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--tl-text-secondary); flex: none; }
.xc-msgs { display: flex; flex-direction: column; gap: 10px; }
.xc-msg { margin: 0; max-width: 88%; padding: 10px 12px; border-radius: 10px; font: var(--tl-type-body-sm); }
.xc-me { align-self: flex-end; background: var(--tl-bg-surface-3); color: var(--tl-text-primary); border-bottom-right-radius: 4px; }
.xc-bot { align-self: flex-start; background: var(--tl-bg-surface-2); border: 1px solid var(--tl-border-default); color: var(--tl-text-secondary); border-bottom-left-radius: 4px; }
.xc-res { display: grid; gap: 8px; color: var(--tl-text-primary); border-color: color-mix(in srgb, var(--tl-success) 45%, transparent); }
.xc-res p { margin: 0; display: flex; align-items: center; gap: 8px; }
.xc-res .mono { font: var(--tl-type-mono-xs); color: var(--tl-text-secondary); }
.xc-res .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tl-success); }
.xc-m1, .xc-m2 { opacity: 0; transform: translateY(6px); transition: opacity var(--tl-dur-slow) var(--tl-ease-enter), transform var(--tl-dur-slow) var(--tl-ease-enter); }
.xc.s1 .xc-m1, .xc.s7 .xc-m2 { opacity: 1; transform: none; }
.xc-thumbs { display: flex; gap: 6px; }
.xc-thumb { width: 30px; aspect-ratio: 9 / 16; border-radius: 5px; background-color: #F7F8FA; border: 1px solid var(--tl-border-default); background-repeat: no-repeat; }
.xc-thumb.t1 { background-image: linear-gradient(135deg, #2F62D9, #6F8FF0), linear-gradient(#2F62D9, #2F62D9); background-size: 30% 17%, 70% 8%; background-position: 50% 30%, 50% 86%; }
.xc-thumb.t2 { background-image: linear-gradient(#14181C, #14181C), linear-gradient(#D9DEE3, #D9DEE3), linear-gradient(#2F62D9, #2F62D9); background-size: 60% 5%, 76% 10%, 76% 8%; background-position: 50% 28%, 50% 44%, 50% 86%; }
.xc-thumb.t3 { background-image: linear-gradient(#2F62D9, #2F62D9), linear-gradient(#14181C, #14181C), linear-gradient(#5B6670, #5B6670); background-size: 34% 12%, 64% 5%, 70% 3%; background-position: 50% 36%, 50% 54%, 50% 64%; }

.xc-tl { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--tl-border-subtle); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.xc-tl li { display: grid; gap: 5px; font: var(--tl-type-caption); color: var(--tl-text-tertiary); min-width: 0; transition: color var(--tl-dur-base); }
.xc-tl .tide { width: 100%; border-top-style: dotted; border-color: var(--tl-text-tertiary); transition: border-color var(--tl-dur-base); }
.xc-tl .mono { font: var(--tl-type-mono-xs); opacity: .5; }
.xc.s1 .xc-tl-1, .xc.s2 .xc-tl-2, .xc.s3 .xc-tl-3, .xc.s5 .xc-tl-4, .xc.s6 .xc-tl-5 { color: var(--tl-text-primary); }
.xc.s1 .xc-tl-1 .tide, .xc.s2 .xc-tl-2 .tide, .xc.s3 .xc-tl-3 .tide, .xc.s5 .xc-tl-4 .tide, .xc.s6 .xc-tl-5 .tide { border-top-style: dashed; border-color: var(--tl-warning); }
.xc.s2 .xc-tl-1, .xc.s3 .xc-tl-2, .xc.s5 .xc-tl-3, .xc.s6 .xc-tl-4, .xc.s7 .xc-tl-5 { color: var(--tl-text-secondary); }
.xc.s2 .xc-tl-1 .tide, .xc.s3 .xc-tl-2 .tide, .xc.s5 .xc-tl-3 .tide, .xc.s6 .xc-tl-4 .tide, .xc.s7 .xc-tl-5 .tide { border-top-style: solid; border-color: var(--tl-success); }
.xc.s1 .xc-tl-1 .mono, .xc.s2 .xc-tl-2 .mono, .xc.s3 .xc-tl-3 .mono, .xc.s5 .xc-tl-4 .mono, .xc.s6 .xc-tl-5 .mono { opacity: 1; }

.xc-sim { display: grid; gap: 10px; justify-items: center; align-content: start; min-width: 0; }
.xc-sim-cap { margin: 0; font: var(--tl-type-mono-xs); color: var(--tl-text-tertiary); text-align: center; }
.xc-device {
  --app-bg: #F7F8FA; --app-tx: #14181C; --app-tx2: #5B6670; --app-line: #D9DEE3; --app-ac: #2F62D9;
  position: relative; width: 100%; max-width: 236px; aspect-ratio: 9 / 18.5; overflow: hidden;
  border: 7px solid var(--tl-bg-surface-3); border-radius: 38px; background: #05070A; box-shadow: var(--tl-shadow-2);
}
.xc-device::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 99px; background: #000; }
.xc-scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 58px 18px 22px; text-align: center; opacity: 0; transition: opacity .45s var(--tl-ease-standard); }
.xc-idle { opacity: 1; justify-content: center; background: #05070A; }
.xc-idle .mono { font: var(--tl-type-mono-xs); color: var(--tl-text-tertiary); }
.xc-app { background: var(--app-bg); color: var(--app-tx2); font: 400 13px/1.4 var(--tl-font-sans); }
.xc-app b { color: var(--app-tx); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.xc-icon { width: 56px; height: 56px; margin-top: 30px; border-radius: 14px; background: linear-gradient(135deg, #2F62D9, #6F8FF0); }
.xc-btn { position: relative; align-self: stretch; margin-top: auto; padding: 11px; border-radius: 12px; background: var(--app-ac); color: #fff; font-weight: 600; font-size: 13px; transition: opacity var(--tl-dur-base), transform var(--tl-dur-fast); }
.xc-link { color: var(--app-ac); font-size: 12px; }
.xc-tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--tl-accent); background: rgba(95, 211, 196, .28); opacity: 0; }
@keyframes xc-tap { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes xc-press { 0%, 100% { transform: none; } 50% { transform: scale(.97); } }
.xc.s3:not(.s4) .xc-tap { animation: xc-tap 1s ease-out .5s both; }
.xc.s3:not(.s4) .xc-start { animation: xc-press .3s ease-out .75s both; }
.xc-email { align-items: stretch; text-align: left; padding-top: 72px; }
.xc-field-l { margin-top: 12px; font-size: 11px; font-weight: 500; color: var(--app-tx2); }
.xc-field { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--app-line); border-radius: 10px; background: #fff; color: var(--app-tx); font-size: 13px; }
.xc.s4 .xc-field { border-color: var(--app-ac); }
.xc-typed { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; vertical-align: bottom; }
.xc.s4 .xc-typed { max-width: 12em; transition: max-width 1.3s steps(15, end) .35s; }
.xc-caret { width: 1.5px; height: 16px; margin-left: 1px; background: var(--app-ac); animation: xc-blink 1s steps(1) infinite; }
@keyframes xc-blink { 50% { opacity: 0; } }
.xc-email .xc-btn { opacity: .4; }
.xc.s4 .xc-email .xc-btn { opacity: 1; transition-delay: 1.6s; }
.xc-verify { justify-content: center; }
.xc-env { width: 54px; height: 54px; color: var(--app-ac); }
.xc-assert { position: relative; margin-top: 26px; padding: 6px 10px; border-radius: 8px; outline: 2px dashed transparent; outline-offset: 2px; transition: outline-color var(--tl-dur-base); }
.xc-assert-tag { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 2px 7px; border-radius: 4px; font: 500 10px/1.4 var(--tl-font-mono); font-style: normal; white-space: nowrap; color: #06201D; background: var(--tl-warning); opacity: 0; transition: opacity var(--tl-dur-base), background-color var(--tl-dur-base); }
.xc-assert-tag::after { content: "checking title"; }
.xc.s5 .xc-assert { outline-color: var(--tl-warning); }
.xc.s5 .xc-assert-tag { opacity: 1; transition-delay: .5s; }
.xc.s6 .xc-assert { outline-style: solid; outline-color: var(--tl-success); }
.xc.s6 .xc-assert-tag { background: var(--tl-success); }
.xc.s6 .xc-assert-tag::after { content: "assert passed"; }
.xc-flash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
@keyframes xc-flash { 0% { opacity: 0; } 15% { opacity: .7; } 100% { opacity: 0; } }
.xc.s6:not(.s7) .xc-flash { animation: xc-flash .7s ease-out .8s both; }
.xc.s2 .xc-idle { opacity: 0; }
.xc.s2 .xc-welcome { opacity: 1; }
.xc.s4 .xc-welcome { opacity: 0; }
.xc.s4 .xc-email { opacity: 1; }
.xc.s5 .xc-email { opacity: 0; }
.xc.s5 .xc-verify { opacity: 1; }

@media (max-width: 960px) {
  .evidence-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}
@container (max-width: 620px) {
  .xc-stage { grid-template-columns: minmax(0, 1fr); padding: 10px 12px 14px; }
  .xc-sim { order: -1; }
  .xc-device { max-width: 220px; }
  .xc-tl { gap: 6px; }
  .xc-tl li { font-size: 11px; }
}
