/* ==========================================================================
   BugCatch — marketing site
   Tokens mirror bugcatch-partner/src/styles/app.css so the site and the
   product read as one thing. The severity colours are the only place colour
   carries meaning; everything else is slate + one violet accent.
   ========================================================================== */

:root {
  --bg: #0f1116;
  --bg-2: #14161c;
  --surface: #1b1e26;
  --surface-2: #21252f;
  --line: #2b303c;
  --line-bright: #3a4150;

  --ink: #eceef2;
  --ink-dim: #a4abba;
  /* Lifted from the dashboard's #6b7383: this is small body text out here
     (captions, footer links, plan taglines), and 3.2:1 on --surface-2 fails AA.
     #8891a2 clears 4.5:1 on every surface the site uses. */
  --ink-faint: #8891a2;

  --sev-critical: #ff5470;
  --sev-high: #ff9f43;
  --sev-medium: #4da3ff;
  --sev-low: #59d499;

  --accent: #7c6cff;      /* the product's violet — borders, glows, tints */
  --accent-2: #9d8cff;    /* lifted, for accent text on dark */
  --accent-soft: rgba(124, 108, 255, 0.14);
  /* Filled-button gradient. Deeper than --accent so white 0.94rem labels clear
     4.5:1 (the brand violet itself only reaches 3.9:1 against white). */
  --accent-btn-a: #7f6ffb;
  --accent-btn-b: #6350e2;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anchor targets clear the sticky header — without this every in-page jump
   lands with its heading tucked under the nav. */
:target, section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 640; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; display: block; }
::selection { background: rgba(124, 108, 255, 0.35); }
.mono { font-family: var(--mono); font-size: 0.94em; }
.dim { color: var(--ink-faint); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }

/* ---------------------------------------------------------------- type ---- */
.h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  letter-spacing: -0.035em;
  font-weight: 680;
}
.grad {
  background: linear-gradient(96deg, var(--accent-2) 0%, #6fd8ff 52%, var(--sev-low) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-drift 9s linear infinite alternate; /* @keyframes in MOTION */
}
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 700px;
  text-wrap: pretty; /* keeps the last line from stranding a single word */
}
.sub { margin-top: 16px; color: var(--ink-dim); font-size: 1.05rem; }
.micro { margin-top: 18px; color: var(--ink-faint); font-size: 0.85rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.76rem; font-weight: 620; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
}

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head .sub { max-width: 640px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  color: var(--accent-2); font-weight: 560;
}
.link svg { font-size: 1.05rem; transition: transform 0.2s; }
.link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 0.94rem; font-weight: 570; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn svg { font-size: 1.05rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }

.btn-primary {
  position: relative; overflow: hidden; isolation: isolate; /* clips the shine */
  background: linear-gradient(180deg, var(--accent-btn-a), var(--accent-btn-b));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 8px 24px -10px rgba(124,108,255,0.85);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 32px -12px rgba(124,108,255,0.95); }

.btn-outline { border-color: var(--line-bright); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--ink-faint); background: rgba(255,255,255,0.05); }

.btn-ghost { color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

/* ------------------------------------------------------------------ nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.stuck {
  background: rgba(15, 17, 22, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 660; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 19px;
  box-shadow: 0 4px 14px -6px rgba(124,108,255,0.9);
}
.brand-word { font-size: 1.06rem; }

.nav-links { display: flex; gap: 26px; margin-right: auto; font-size: 0.92rem; }
.nav-links a { position: relative; color: var(--ink-dim); transition: color 0.16s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer;
}
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* [hidden] must win over the display below, or the menu shows on desktop. */
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px;
  background: rgba(15,17,22,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 11px 4px; color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; margin-top: 12px; color: #fff; }

/* ----------------------------------------------------------------- hero --- */
.hero { position: relative; padding: clamp(60px, 9vw, 104px) 0 0; text-align: center; overflow: hidden; }
/* Closed the gap the removed logo strip used to hold open. */
.hero-tail { height: clamp(64px, 8vw, 104px); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero .lede, .hero .h1 { text-align: center; }

.hero-glow {
  position: absolute; top: -420px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 860px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(124,108,255,0.30), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(77,163,255,0.18), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 8%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 8%, #000 25%, transparent 78%);
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px; margin-bottom: 30px;
  border: 1px solid var(--line-bright); border-radius: 999px;
  background: rgba(124,108,255,0.08);
  font-size: 0.83rem; color: var(--ink-dim);
  transition: border-color 0.18s, color 0.18s;
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill svg { font-size: 0.95rem; }
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sev-low);
  box-shadow: 0 0 0 4px rgba(89,212,153,0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(89,212,153,0.05); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------------------------------------------------- product shot ------- */
.shot {
  margin-top: 64px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-bright); }
.urlbar {
  flex: 0 1 340px; padding: 5px 12px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot-tag { margin-left: auto; font-size: 0.75rem; color: var(--ink-faint); }

.shot-body { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }

/* queue */
.queue { border-right: 1px solid var(--line); background: var(--bg-2); padding: 8px; }
.queue-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink-dim);
}
.count {
  padding: 1px 8px; border-radius: 999px; background: var(--surface-2);
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim);
}
.qrow {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 16px; border-radius: 8px;
  transition: background 0.16s;
}
.qrow.is-active { background: var(--surface-2); }
.qrow.is-dim { opacity: 0.5; }
.qrow:hover { background: var(--surface); }
.spine { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; }
.sev-critical .spine { background: var(--sev-critical); }
.sev-high .spine { background: var(--sev-high); }
.sev-medium .spine { background: var(--sev-medium); }
.sev-low .spine { background: var(--sev-low); }
.qmain { min-width: 0; flex: 1; }
.qtitle { font-size: 0.85rem; font-weight: 540; line-height: 1.35; }
.qmeta { margin-top: 4px; font-size: 0.72rem; color: var(--ink-faint); }
.qmeta b { font-family: var(--mono); font-weight: 500; color: var(--ink-dim); }

.chip {
  flex: none; padding: 2px 8px; border-radius: 999px;
  font-size: 0.66rem; font-weight: 620; letter-spacing: 0.04em; text-transform: uppercase;
}
.chip-critical { background: rgba(255,84,112,0.14); color: var(--sev-critical); }
.chip-high { background: rgba(255,159,67,0.14); color: var(--sev-high); }
.chip-medium { background: rgba(77,163,255,0.14); color: var(--sev-medium); }
.chip-low { background: rgba(89,212,153,0.14); color: var(--sev-low); }

/* detail */
.detail { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.detail-head h3 { font-size: 1.05rem; }

.player {
  position: relative; aspect-ratio: 16 / 8.2;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(closest-side at 50% 45%, rgba(124,108,255,0.16), transparent 72%),
    repeating-linear-gradient(105deg, rgba(255,255,255,0.022) 0 2px, transparent 2px 9px),
    var(--surface);
  display: grid; place-items: center;
}
.play {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 20px;
  padding-left: 2px;
}
.rewind-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(15,17,22,0.75); border: 1px solid var(--line-bright);
  font-family: var(--mono); font-size: 0.68rem; color: var(--sev-medium);
}
.scrub { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.14); }
.scrub i { display: block; height: 100%; border-radius: 2px; background: var(--accent-2); }

.ai {
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid rgba(124,108,255,0.28); background: var(--accent-soft);
}
.ai-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 620; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
}
.ai-head svg { font-size: 0.95rem; }
.ai-body { margin-top: 8px; font-size: 0.85rem; color: var(--ink-dim); }
.ai-body b { color: var(--ink); }
.repro { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.repro li { display: flex; gap: 9px; align-items: baseline; font-size: 0.82rem; color: var(--ink-dim); }
.repro li > span:first-child {
  flex: none; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px;
  background: rgba(124,108,255,0.24); color: var(--accent-2);
  font-family: var(--mono); font-size: 0.66rem;
}

.ctx { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ctx-tabs { display: flex; gap: 2px; padding: 6px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ctx-tabs span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px; font-size: 0.76rem; color: var(--ink-faint);
}
.ctx-tabs span.on { background: var(--surface-2); color: var(--ink); }
.ctx-tabs i {
  padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,0.06);
  font-family: var(--mono); font-style: normal; font-size: 0.66rem;
}
.log { margin: 0; padding: 12px 14px; background: var(--bg); overflow-x: auto; }
.log code { font-family: var(--mono); font-size: 0.74rem; line-height: 1.75; white-space: pre; }
/* Each log line is a <span> rather than a newline (it needs its own animation
   delay), so it has to be laid out as a block or all four collapse onto one. */
.log .ln { display: block; }
.log .err { color: var(--sev-critical); }
.log .warn { color: var(--sev-high); }
.log .dim { color: var(--ink-faint); }

.pushed { padding-top: 2px; }
.pushrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(89,212,153,0.1); border: 1px solid rgba(89,212,153,0.28);
  font-size: 0.79rem; color: var(--ink-dim);
}
.pushrow svg { font-size: 0.9rem; color: var(--sev-low); }
.pushrow b { color: var(--ink); font-weight: 560; }

/* ---------------------------------------------------------------- stats --- */
.stats { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat b {
  display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 660;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--ink), var(--ink-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Direct child only — the caption. A descendant selector would also catch the
   .num span nested inside <b> and shrink the figure onto its own line. */
.stat > span { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------- bands --- */
.band { padding: clamp(76px, 10vw, 124px) 0; }
.band-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------- split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.col-good { border-color: rgba(89,212,153,0.3); background: linear-gradient(180deg, rgba(89,212,153,0.06), transparent 60%), var(--surface); }
.col-tag {
  display: inline-block; margin-bottom: 20px; padding: 4px 11px; border-radius: 999px;
  font-size: 0.73rem; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase;
}
.col-tag-bad { background: rgba(255,84,112,0.13); color: var(--sev-critical); }
.col-tag-good { background: rgba(89,212,153,0.13); color: var(--sev-low); }

.check { display: flex; flex-direction: column; gap: 13px; }
.check.tight { gap: 10px; }
.check li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.94rem; color: var(--ink-dim);
}
.check.tight li { font-size: 0.9rem; }
.check li::before {
  flex: none; margin-top: 1px;
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  font-size: 0.72rem; font-weight: 700;
}
.check li.v::before { content: "✓"; background: rgba(89,212,153,0.15); color: var(--sev-low); }
.check li.x::before { content: "✕"; background: rgba(255,84,112,0.13); color: var(--sev-critical); }
.check li i { font-style: italic; }

/* --------------------------------------------------------------- cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-3px); background: var(--surface-2); }
.card-wide { grid-column: span 2; }
.card-full { grid-column: 1 / -1; }
.card-full-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.card-full-in > div { max-width: 520px; }

.snippet {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.snippet code { font-family: var(--mono); font-size: 0.79rem; line-height: 1.85; color: var(--ink-dim); white-space: pre; }
.c-key { color: var(--accent-2); }
.c-str { color: var(--sev-low); }
.c-fn  { color: var(--sev-medium); }

.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--ink-dim); }
.card-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  margin-bottom: 18px; font-size: 21px;
}
.i-violet { background: rgba(124,108,255,0.14); color: var(--accent-2); }
.i-blue   { background: rgba(77,163,255,0.13);  color: var(--sev-medium); }
.i-green  { background: rgba(89,212,153,0.13);  color: var(--sev-low); }
.i-amber  { background: rgba(255,159,67,0.13);  color: var(--sev-high); }
.i-pink   { background: rgba(255,84,112,0.13);  color: var(--sev-critical); }

.mini-rewind { margin-top: 22px; }
.mr-track {
  position: relative; display: block; height: 6px; border-radius: 3px;
  background: var(--bg); border: 1px solid var(--line); overflow: hidden;
}
.mr-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,108,255,0.35) 45%, var(--accent));
}
.mr-now { position: absolute; right: 0; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--sev-critical); }
.mr-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.mr-labels b { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--ink-faint); }
.mr-labels b:last-child { color: var(--sev-critical); }

/* ----------------------------------------------------------------- two ---- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-copy .sub { max-width: 520px; margin-bottom: 26px; }

.panel { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 18px;
}
.panel-head .dim { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.75rem; }
.panel-split { height: 1px; background: var(--line); margin: 24px 0; }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 60px 1fr 20px; align-items: center; gap: 12px; }
.bl { font-size: 0.8rem; color: var(--ink-dim); }
.bn { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); text-align: right; }
.bf {
  height: 8px; border-radius: 4px; background: var(--line);
  position: relative; overflow: hidden;
}
.bf::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--w); border-radius: 4px;
  transform-origin: left; transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-in .bf::after { transform: scaleX(1); }
.sevb-critical::after { background: var(--sev-critical); }
.sevb-high::after { background: var(--sev-high); }
.sevb-medium::after { background: var(--sev-medium); }
.sevb-low::after { background: var(--sev-low); }

.statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.st { padding: 5px 11px; border-radius: 7px; font-size: 0.78rem; border: 1px solid transparent; }
.st-open { background: rgba(255,159,67,0.11); color: var(--sev-high); border-color: rgba(255,159,67,0.24); }
.st-prog { background: rgba(77,163,255,0.11); color: var(--sev-medium); border-color: rgba(77,163,255,0.24); }
.st-res  { background: rgba(89,212,153,0.11); color: var(--sev-low); border-color: rgba(89,212,153,0.24); }
.st-clo  { background: rgba(255,255,255,0.04); color: var(--ink-faint); border-color: var(--line); }

/* --------------------------------------------------------------- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.step-n {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  color: var(--accent-2);
}
.step h3 { font-size: 1.06rem; margin-bottom: 9px; }
.step p { font-size: 0.9rem; color: var(--ink-dim); }
.step::after {
  content: ""; position: absolute; top: 34px; right: -13px;
  width: 7px; height: 7px; border-top: 2px solid var(--line-bright); border-right: 2px solid var(--line-bright);
  transform: rotate(45deg);
  transition: transform 0.3s, border-color 0.3s;
}
.step:last-child::after { display: none; }

/* ---------------------------------------------------------------- ints ---- */
.ints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.int {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto;
  gap: 4px 16px; align-items: center;
  padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.int:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.int-mark {
  grid-row: span 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 11px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: -0.02em;
}
.m-jira  { background: rgba(38,132,255,0.16); color: #7ab5ff; }
.m-gh    { background: rgba(255,255,255,0.07); color: var(--ink); font-size: 0.8rem; }
.m-lin   { background: rgba(94,106,210,0.2); color: #9aa4ee; }
.m-slack { background: rgba(226,29,104,0.14); color: #ff6b9a; }
.m-hook  { background: rgba(89,212,153,0.13); color: var(--sev-low); font-size: 0.72rem; font-family: var(--mono); }
.m-api   { background: rgba(255,159,67,0.13); color: var(--sev-high); font-size: 0.7rem; }
.int b { font-size: 0.98rem; font-weight: 600; align-self: end; }
.int > span:last-child { font-size: 0.84rem; color: var(--ink-faint); align-self: start; line-height: 1.5; }

/* ---------------------------------------------------------- security ------ */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sbox {
  padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  border-top: 2px solid rgba(124,108,255,0.5);
}
.sbox h3 { font-size: 1.05rem; margin-bottom: 10px; }
.sbox p { font-size: 0.9rem; color: var(--ink-dim); }

/* --------------------------------------------------------------- plans ---- */
/* Native radios inside a fieldset: real arrow-key navigation and a real group
   label, with the radio itself hidden but still focusable. */
.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;
}
.toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 42px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.tg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  color: var(--ink-dim); font-size: 0.88rem; font-weight: 560;
  transition: background 0.18s, color 0.18s;
}
.tg input { position: absolute; opacity: 0; width: 0; height: 0; }
.tg:hover { color: var(--ink); }
.tg.is-on { background: var(--surface-2); color: var(--ink); }
.tg:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.save {
  padding: 1px 7px; border-radius: 999px;
  background: rgba(89,212,153,0.15); color: var(--sev-low);
  font-size: 0.7rem; font-weight: 620;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.plan-hi {
  border-color: rgba(124,108,255,0.55);
  background: linear-gradient(180deg, rgba(124,108,255,0.09), transparent 42%), var(--surface);
  box-shadow: 0 30px 70px -46px rgba(124,108,255,0.9);
}
.plan-badge {
  position: absolute; top: -11px; left: 26px;
  padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-btn-a), var(--accent-btn-b)); color: #fff;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-name { font-size: 1.2rem; }
.plan-tag { margin-top: 6px; font-size: 0.86rem; color: var(--ink-faint); min-height: 42px; }
/* min-height, not content height: the "/member/mo" descender makes the priced
   rows 3px taller than Enterprise's, which knocked its CTA out of line. */
.price { display: flex; align-items: baseline; gap: 2px; min-height: 52px; margin: 12px 0 22px; }
.cur { font-size: 1.3rem; font-weight: 560; color: var(--ink-dim); }
.amt { font-size: 3rem; font-weight: 660; letter-spacing: -0.04em; line-height: 1; }
/* Identical line box to .amt — same size, same line-height — so "Custom" sits
   on the numeric baseline and all three plan CTAs land on one line. */
.amt-text { font-size: 3rem; font-weight: 660; letter-spacing: -0.03em; line-height: 1; }
.per { margin-left: 6px; font-size: 0.85rem; color: var(--ink-faint); }
.plan-list { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-size: 1.02rem; font-weight: 560;
  transition: color 0.16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.caret {
  flex: none; position: relative; width: 14px; height: 14px;
}
.caret::before, .caret::after {
  content: ""; position: absolute; background: var(--ink-faint); border-radius: 2px;
  transition: transform 0.22s, background 0.22s;
}
.caret::before { top: 6px; left: 0; width: 14px; height: 2px; }
.caret::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq details[open] .caret::after { transform: scaleY(0); }
.faq details[open] .caret::before { background: var(--accent-2); }
.faq details p { padding: 0 40px 24px 2px; color: var(--ink-dim); font-size: 0.95rem; }

/* ----------------------------------------------------------------- cta ---- */
.cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow {
  position: absolute; bottom: -320px; left: 50%; transform: translateX(-50%);
  width: 980px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,108,255,0.28), transparent 72%);
}
.cta-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-in .sub { max-width: 560px; }

/* ---------------------------------------------------------------- foot ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 0; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.6fr); gap: 48px; }
.foot-brand p { margin-top: 14px; font-size: 0.88rem; color: var(--ink-faint); max-width: 260px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-cols h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.foot-cols a { display: block; padding: 5px 0; font-size: 0.88rem; color: var(--ink-faint); transition: color 0.16s; }
.foot-cols a:hover { color: var(--ink); }

.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 22px; padding-bottom: 30px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem; color: var(--ink-faint);
}
.foot-base .wrap { padding: 0; }
.foot-status { display: flex; align-items: center; gap: 8px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--sev-low); box-shadow: 0 0 0 3px rgba(89,212,153,0.18); }

/* ==========================================================================
   MOTION
   One rule throughout: the base style is the FINAL, visible state, and every
   animation starts from a hidden keyframe with `backwards` fill. Killing all
   animation (reduced motion, an old engine, a JS failure) then leaves the page
   fully composed rather than blank.
   ========================================================================== */

/* ------------------------------------------------- hero entrance --------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
}
.js .rise {
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--d, 0s);
}

/* Slow drift across the headline gradient (applied on .grad above). */
@keyframes grad-drift {
  to { background-position: 200% 50%; }
}

/* ----------------------------------------------- scroll progress -------- */
.scrollbar-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), #6fd8ff);
  opacity: 0; transition: opacity 0.3s;
}
.nav.stuck .scrollbar-progress { opacity: 1; }

/* -------------------------------------------------- nav underline ------- */
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--accent-2); border-radius: 1px;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* --------------------------------------------------- button shine ------- */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover::after { left: 130%; }

/* ------------------------------------------------ card spotlight -------- */
/* A soft highlight that tracks the pointer. --mx/--my are written by
   script.js on the container, so one listener serves a whole grid. */
.card, .int, .sbox, .plan, .step {
  position: relative; isolation: isolate;
}
.card::before, .int::before, .sbox::before, .plan::before, .step::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(124, 108, 255, 0.13), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover::before, .int:hover::before, .sbox:hover::before,
.plan:hover::before, .step:hover::before { opacity: 1; }

/* ------------------------------------------------ rewind mini-bar ------- */
.is-in .mr-fill { animation: mr-sweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) backwards 0.2s; }
@keyframes mr-sweep { from { transform: translateX(-100%); } }
.is-in .mr-now { animation: mr-hit 2.4s steps(1, end) backwards 0.2s; }
@keyframes mr-hit { from { opacity: 0; } }

/* ------------------------------------------------------ step arrows ----- */
.step:hover::after { transform: rotate(45deg) translate(2px, -2px); border-color: var(--accent); }

/* ------------------------------------------------------- FAQ open ------- */
/* grid-template-rows 0fr→1fr is the one way to transition to auto height.
   script.js keeps <details> open until the collapse finishes. */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-body > div { overflow: hidden; }
.faq details[open] .faq-body { grid-template-rows: 1fr; }
.faq details.is-closing .faq-body { grid-template-rows: 0fr; }

/* ------------------------------------------------ the looping demo ------ */
/* Nothing here is on the base element: .is-playing is added by script.js only
   while the shot is on screen, so an idle tab animates nothing. */
@keyframes d-row     { from { opacity: 0; transform: translateX(-14px); } }
@keyframes d-fade    { from { opacity: 0; transform: translateY(10px); } }
@keyframes d-scrub   { from { width: 0; } }
@keyframes d-pop     { 0% { opacity: 0; transform: scale(0.88); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes d-flash   { 0%, 100% { box-shadow: 0 0 0 0 rgba(124,108,255,0); } 35% { box-shadow: 0 0 0 3px rgba(124,108,255,0.28); } }
@keyframes d-rec     { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes d-caret   { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }

.shot.is-playing .qrow        { animation: d-row 0.5s cubic-bezier(0.22,1,0.36,1) backwards calc(var(--i) * 0.09s); }
.shot.is-playing .player      { animation: d-fade 0.6s ease backwards 0.5s; }
.shot.is-playing .scrub i     { animation: d-scrub 2.6s cubic-bezier(0.3,0,0.4,1) backwards 0.6s; }
.shot.is-playing .rewind-tag  { animation: d-rec 1.1s ease-in-out 0.6s 3 backwards; }
.shot.is-playing .ai          { animation: d-fade 0.5s ease backwards 0.85s, d-flash 1.1s ease 0.85s; }
.shot.is-playing .repro li    { animation: d-fade 0.4s ease backwards calc(1.25s + var(--i) * 0.11s); }
.shot.is-playing .ctx         { animation: d-fade 0.45s ease backwards 1.6s; }
.shot.is-playing .log .ln     { animation: d-fade 0.3s ease backwards calc(1.85s + var(--i) * 0.14s); }
.shot.is-playing .pushrow     { animation: d-pop 0.5s cubic-bezier(0.22,1,0.36,1) backwards 2.55s; }

/* Ambient touches — both scoped to .is-playing, which script.js removes when
   the shot scrolls off, so nothing ticks in the background. */
.caret-blink {
  display: inline-block; width: 7px; height: 1em; margin-left: 3px;
  background: var(--accent-2); vertical-align: text-bottom;
}
.shot.is-playing .caret-blink { animation: d-caret 1.1s steps(1, end) infinite; }

/* The play button breathes so the still frame doesn't read as a dead image. */
@keyframes d-breathe { 50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(255,255,255,0.04); } }
.shot.is-playing .play { animation: d-breathe 3.2s ease-in-out infinite; }

/* -------------------------------------------------------------- reveal ----
   Gated on .js, which script.js sets on <html> before paint. Without it these
   rules never apply — a JS error or a blocked file leaves the page fully
   readable instead of a column of invisible sections. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Every animation on the page is additive to a fully composed base state,
     so this blanket kill is safe — nothing depends on an animation to become
     visible. Transitions are kept only where they are instant feedback. */
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .bf::after { transform: scaleX(1); }
  .btn:hover, .card:hover, .int:hover, .step:hover { transform: none; }
  .caret-blink { opacity: 1; }
}

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .shot-body { grid-template-columns: 1fr; }
  .queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .card-full-in { grid-template-columns: 1fr; gap: 24px; }
  .card-full-in > div { max-width: none; }
  .ints, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .foot-in { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .split, .two, .plans, .cards, .ints, .sec-grid, .steps { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .two { gap: 36px; }
  .step::after { display: none; }
  .plan-hi { order: -1; }
  .plan-tag { min-height: 0; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .urlbar { flex: 1 1 auto; }
  .shot-tag { display: none; }
  .queue { max-height: 260px; overflow: hidden; }
  .detail-head { flex-direction: column; gap: 10px; }
  .sec-head { margin-bottom: 40px; }
}

@media (max-width: 460px) {
  .stats-in { grid-template-columns: 1fr; }
}
