/* ──────────────────────────────────────────────────────────────────────
   e2etest.dev — landing styles
   Brand: blue accent (#3b82f6 family, matches extension UI)
          red signature (#EE4022, matches SansTech wordmark)
          Inter Variable, light theme to match sidepanel
   ────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --sans-red:  #EE4022;

  /* Surfaces */
  --bg:           #fafbfc;
  --bg-grad-a:    #ffffff;
  --bg-grad-b:    #f1f5f9;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --border:       #e2e8f0;
  --border-strong:#cbd5e1;

  /* Text */
  --fg:        #0f172a;
  --fg-mute:   #475569;
  --fg-dim:    #94a3b8;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  --maxw: 1200px;

  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
*::selection { background: var(--brand-500); color: #fff; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: var(--brand-600); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--brand-700); }

img, svg { display: block; max-width: 100%; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0; }
code, pre { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─────────────────────────────────────────── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes runStep {
  0%      { background: var(--surface-2); border-color: var(--border); }
  20%     { background: #fef3c7; border-color: var(--warning); transform: translateX(2px); }
  50%     { background: #d1fae5; border-color: var(--success); transform: translateX(0); }
  100%    { background: #d1fae5; border-color: var(--success); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50%      { box-shadow: 0 0 0 18px rgba(59, 130, 246, 0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ringGrow {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes mockNetRow {
  0%   { background: rgba(59, 130, 246, 0.18); }
  100% { background: transparent; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }

/* ─────────────────────────────────────────── NAVBAR ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.brand-cursor {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(59, 130, 246, 0.4));
  transition: transform 240ms cubic-bezier(.16,1,.3,1);
}
.brand:hover .brand-cursor {
  transform: rotate(-8deg) scale(1.1);
}
.brand-cursor .sp {
  transform-origin: center;
}
.brand-cursor .sp.s1 { animation: bcSparkle 1.8s ease-in-out infinite; }
.brand-cursor .sp.s2 { animation: bcSparkle 1.8s ease-in-out 0.6s infinite; }
.brand-cursor .sp.s3 { animation: bcSparkle 1.8s ease-in-out 1.2s infinite; }
@keyframes bcSparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1); }
}
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 1px;
}
.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-family: "Inter Variable", "Inter", sans-serif;
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-mute);
}
.nav-links a:hover { color: var(--fg); }
@media (max-width: 800px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Header'daki "Add to Chrome" — turuncu (diğer CTA'lar mavi kalır) */
.nav .btn-primary {
  background: #f97316;
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(249, 115, 22, 0.55);
}
.nav .btn-primary:hover {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(249, 115, 22, 0.7);
}

/* Dil switcher (TR / EN) — kompakt rozet */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  background: var(--surface);
  transition: border-color 150ms, color 150ms, background 150ms;
}
.lang-switch:hover {
  color: var(--brand-700);
  border-color: var(--brand-500);
  background: var(--brand-50);
}

/* ─────────────────────────────────────────── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 120ms cubic-bezier(.2,.8,.2,1), background 150ms, box-shadow 200ms, border-color 150ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); color: #fff; box-shadow: 0 10px 28px -10px rgba(37, 99, 235, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; }

.btn-primary.glowing {
  animation: glow 2.4s ease-in-out infinite;
}

/* ─────────────────────────────────────────── HERO ─── */
.hero {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% -10% -5%;
  z-index: -2;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 18s ease-in-out infinite;
}
.hero-blob.b1 { background: #c7d2fe; top: -120px; left: -80px; }
.hero-blob.b2 { background: #fecaca; top: 40px; right: -160px; animation-duration: 22s; animation-delay: -8s; }
.hero-blob.b3 { background: #bfdbfe; bottom: -160px; left: 40%; animation-duration: 26s; animation-delay: -14s; }

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  animation: fadeUp 700ms ease both;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  position: relative;
}
.eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-500);
  animation: ringGrow 1.8s ease-out infinite;
}

.hero h1 {
  max-width: 920px;
  margin-top: 22px;
  margin-bottom: 22px;
  animation: fadeUp 800ms ease both 100ms;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-600), var(--sans-red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--fg-mute);
  line-height: 1.6;
  animation: fadeUp 800ms ease both 220ms;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
  animation: fadeUp 800ms ease both 340ms;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  color: var(--fg-dim);
  font-size: 0.86rem;
  animation: fadeUp 800ms ease both 460ms;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Hero'nun sağındaki büyük logo — geniş ekranlarda boş alanı doldurur */
.hero > .container { position: relative; }
.hero-logo {
  position: absolute;
  top: 120px;
  right: -10px;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(37, 99, 235, 0.22));
  animation: heroLogoFloat 7s ease-in-out infinite;
}
.hero-logo svg { width: 100%; height: 100%; display: block; }
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}
@media (max-width: 1100px) {
  .hero-logo { display: none; }
}

/* ─────────────────────────────────────────── ANIMATED MOCK ─── */
.mock {
  margin-top: 60px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 60px -25px rgba(15, 23, 42, 0.20),
    0 8px 20px -10px rgba(15, 23, 42, 0.08);
  animation: fadeUp 1000ms ease both 600ms;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.red    { background: #fb7185; }
.mock-dot.amber  { background: #fbbf24; }
.mock-dot.green  { background: #34d399; }
.mock-title {
  margin-left: 14px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}
.mock-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 470px;
}
@media (max-width: 880px) {
  .mock-body { grid-template-columns: 1fr; min-height: auto; }
  .mock-sidebar { border-right: 0 !important; border-bottom: 1px solid var(--border); }
}

.mock-sidebar {
  padding: 20px 18px;
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-scenario {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  font-weight: 700;
  margin: 0 0 12px;
}
.mock-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.mock-step .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  min-width: 18px;
}
.mock-step .tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.mock-step .label { flex: 1; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-step .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: var(--border-strong);
  transition: background 200ms;
}

/* Sequenced "running" animation — each step lights up in turn */
.mock-step.run {
  animation: runStep 800ms ease forwards;
}
.mock-step.run .check { background: var(--success); }
.mock-step:nth-child(2) { animation-delay: 0.6s;  }
.mock-step:nth-child(3) { animation-delay: 1.3s; }
.mock-step:nth-child(4) { animation-delay: 2.0s; }
.mock-step:nth-child(5) { animation-delay: 2.7s; }
.mock-step:nth-child(6) { animation-delay: 3.4s; }

.mock-canvas {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.mock-canvas h4 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--fg-dim);
  font-weight: 700;
}
.mock-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 14px 16px;
}
.mock-net {
  display: grid;
  grid-template-columns: 56px 56px 1fr 70px;
  gap: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  align-items: center;
}
.mock-net.flash { animation: mockNetRow 2.5s ease-out 1.5s; }
.mock-net .m { font-weight: 700; }
.mock-net .s.ok   { color: var(--success); font-weight: 600; }
.mock-net .s.warn { color: var(--warning); font-weight: 600; }
.mock-net .u { color: var(--fg-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-net .d { color: var(--fg-dim); text-align: right; }
.mock-body-pre {
  margin: 8px 0 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.74rem;
  overflow: auto;
  max-height: 130px;
  line-height: 1.5;
}
.mock-body-pre .k { color: #93c5fd; }
.mock-body-pre .v { color: #86efac; }
.mock-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mock-summary .all-ok {
  font-weight: 700;
  color: var(--success);
  display: inline-flex; align-items: center; gap: 8px;
}
.mock-summary .all-ok::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseSoft 1.6s ease-in-out infinite;
}
.mock-summary .meta {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* ─────────────────────────────────────────── TICKER (logos / step types) ─── */
.ticker {
  margin-top: 80px;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface-2);
  padding: 18px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface-2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--surface-2), transparent); }

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item .pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid;
  /* default — turn each color on per nth-child below */
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: var(--brand-100);
}

/* 19 step-type, 19 farklı renk — pozisyona göre döngü (duplicate'ler de aynı renge gelir) */
.ticker-track > .ticker-item:nth-child(19n+1)  .pill { color: #1d4ed8; background: #eff6ff; border-color: #dbeafe; } /* Navigate · blue */
.ticker-track > .ticker-item:nth-child(19n+2)  .pill { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; } /* Click · indigo */
.ticker-track > .ticker-item:nth-child(19n+3)  .pill { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; } /* Fill · violet */
.ticker-track > .ticker-item:nth-child(19n+4)  .pill { color: #7c3aed; background: #faf5ff; border-color: #e9d5ff; } /* Select · purple */
.ticker-track > .ticker-item:nth-child(19n+5)  .pill { color: #a21caf; background: #fdf4ff; border-color: #f5d0fe; } /* Check · fuchsia */
.ticker-track > .ticker-item:nth-child(19n+6)  .pill { color: #be185d; background: #fdf2f8; border-color: #fbcfe8; } /* Press · pink */
.ticker-track > .ticker-item:nth-child(19n+7)  .pill { color: #be123c; background: #fff1f2; border-color: #fecdd3; } /* Hover · rose */
.ticker-track > .ticker-item:nth-child(19n+8)  .pill { color: #b91c1c; background: #fef2f2; border-color: #fecaca; } /* Wait · red */
.ticker-track > .ticker-item:nth-child(19n+9)  .pill { color: #c2410c; background: #fff7ed; border-color: #fed7aa; } /* Scroll · orange */
.ticker-track > .ticker-item:nth-child(19n+10) .pill { color: #b45309; background: #fffbeb; border-color: #fde68a; } /* Dialog · amber */
.ticker-track > .ticker-item:nth-child(19n+11) .pill { color: #a16207; background: #fefce8; border-color: #fef08a; } /* Upload · yellow */
.ticker-track > .ticker-item:nth-child(19n+12) .pill { color: #4d7c0f; background: #f7fee7; border-color: #d9f99d; } /* Tab · lime */
.ticker-track > .ticker-item:nth-child(19n+13) .pill { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; } /* Assert · green */
.ticker-track > .ticker-item:nth-child(19n+14) .pill { color: #047857; background: #ecfdf5; border-color: #a7f3d0; } /* Performance · emerald */
.ticker-track > .ticker-item:nth-child(19n+15) .pill { color: #0f766e; background: #f0fdfa; border-color: #99f6e4; } /* Store · teal */
.ticker-track > .ticker-item:nth-child(19n+16) .pill { color: #0e7490; background: #ecfeff; border-color: #a5f3fc; } /* Compute · cyan */
.ticker-track > .ticker-item:nth-child(19n+17) .pill { color: #0369a1; background: #f0f9ff; border-color: #bae6fd; } /* If/Else · sky */
.ticker-track > .ticker-item:nth-child(19n+18) .pill { color: #334155; background: #f8fafc; border-color: #e2e8f0; } /* Group · slate */
.ticker-track > .ticker-item:nth-child(19n)    .pill { color: #44403c; background: #fafaf9; border-color: #e7e5e4; } /* Call · stone */

/* ─────────────────────────────────────────── SECTION ─── */
section { padding: 96px 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.section-title { max-width: 800px; margin-bottom: 14px; }
.section-sub {
  max-width: 720px;
  color: var(--fg-mute);
  font-size: 1.06rem;
  margin-bottom: 52px;
}

/* ─────────────────────────────────────────── PROBLEM ─── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms, border-color 200ms, box-shadow 250ms;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.1);
}
.problem-card h3 { margin-bottom: 8px; }
.problem-card p { color: var(--fg-mute); font-size: 0.95rem; }
.problem-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tag-red    { background: #fee2e2; color: var(--danger); }
.tag-amber  { background: #fef3c7; color: #b45309; }
.tag-green  { background: #d1fae5; color: #047857; }

/* ─────────────────────────────────────────── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1020px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms cubic-bezier(.16,1,.3,1), border-color 220ms, box-shadow 250ms;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent, transparent 60%, rgba(59, 130, 246, 0.18));
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
  box-shadow: 0 18px 38px -20px rgba(59, 130, 246, 0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 250ms, background 200ms;
}
.feature-card:hover .feature-icon {
  transform: rotate(-4deg) scale(1.08);
  background: var(--brand-100);
}
.feature-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { color: var(--fg-mute); font-size: 0.94rem; line-height: 1.6; }
.feature-card code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ─────────────────────────────────────────── STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 920px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 250ms, border-color 200ms;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--brand-500); }
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-600);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p  { color: var(--fg-mute); font-size: 0.9rem; }

/* ─────────────────────────────────────────── SPLIT (text + code) ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 920px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
}
.split h2 { margin-bottom: 16px; }
.split > div > p { color: var(--fg-mute); font-size: 1.04rem; margin-bottom: 22px; line-height: 1.65; }
.split ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split ul li {
  position: relative;
  padding-left: 30px;
  color: var(--fg);
  font-size: 0.96rem;
  transition: padding-left 200ms;
}
.split ul li:hover { padding-left: 34px; }
.split ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 18px;
  background: var(--brand-50);
  border: 2px solid var(--brand-500);
  border-radius: 50%;
  transition: background 200ms;
}
.split ul li::after {
  content: "";
  position: absolute;
  left: 6px; top: 14px;
  width: 6px; height: 6px;
  background: var(--brand-500);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 200ms;
}
.split ul li:hover::after { opacity: 1; }

.code-window {
  border: 1px solid var(--border);
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px -22px rgba(15, 23, 42, 0.25);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
.code-window .cw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.code-window .cw-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.code-window .cw-bar .d.r { background: #fb7185; }
.code-window .cw-bar .d.a { background: #fbbf24; }
.code-window .cw-bar .d.g { background: #34d399; }
.code-window .cw-bar .tt { margin-left: 12px; color: #94a3b8; font-size: 0.74rem; }
.code-window .cw-body {
  padding: 18px 22px;
  color: #cbd5e1;
}
.code-window .cw-body .kw { color: #c084fc; }
.code-window .cw-body .fn { color: #93c5fd; }
.code-window .cw-body .st { color: #86efac; }
.code-window .cw-body .cm { color: #64748b; font-style: italic; }
.code-window .cw-body .nm { color: #f9a8d4; }
.code-window .cw-body .ln { display: block; }
.code-window .cw-body .blink::after {
  content: '▎';
  margin-left: 2px;
  color: var(--brand-500);
  animation: blink 1.05s steps(1) infinite;
}

/* ─────────────────────────────────────────── STATS STRIP ─── */
.stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .num {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-600), var(--sans-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl {
  display: block;
  font-size: 0.86rem;
  color: var(--fg-mute);
  margin-top: 4px;
}

/* ─────────────────────────────────────────── PRIVACY CALLOUT ─── */
.privacy-strip {
  text-align: center;
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy-strip h2 { max-width: 760px; margin: 12px auto 16px; }
.privacy-strip p  { max-width: 640px; margin: 0 auto; color: var(--fg-mute); font-size: 1.04rem; }
.privacy-pills {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--fg);
  font-weight: 500;
  transition: transform 180ms, border-color 180ms;
}
.pill:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.pill .chk {
  width: 18px; height: 18px;
  background: #d1fae5;
  color: var(--success);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ─────────────────────────────────────────── FAQ ─── */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms;
}
.faq-item[open] { border-color: var(--brand-500); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--fg);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--brand-600);
  line-height: 1;
  transition: transform 240ms cubic-bezier(.16,1,.3,1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--fg-mute);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────── CTA FINAL ─── */
.cta-final {
  position: relative;
  text-align: center;
  padding: 110px 24px;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 80%, rgba(238, 64, 34, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.cta-final h2 { max-width: 780px; margin: 0 auto 16px; }
.cta-final p  { color: var(--fg-mute); max-width: 580px; margin: 0 auto 28px; font-size: 1.04rem; }

/* ─────────────────────────────────────────── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 28px;
  background: var(--surface-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a { color: var(--fg-mute); font-size: 0.88rem; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { color: var(--fg-dim); font-size: 0.82rem; }
.footer-credit {
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--fg-mute);
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-credit .heart {
  display: inline-block;
  color: var(--sans-red);
  animation: heartBeat 1.6s ease-in-out infinite;
  margin: 0 2px;
}
@keyframes heartBeat {
  0%, 60%, 100% { transform: scale(1); }
  20%, 40%      { transform: scale(1.18); }
}
.footer-credit a {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: color 150ms, border-color 150ms;
}
.footer-credit a:hover {
  color: var(--brand-600);
  border-color: var(--brand-600);
}

/* ─────────────────────────────────────────── DOC PAGES ─── */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.doc .meta {
  color: var(--fg-dim);
  font-size: 0.86rem;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 1.36rem;
  margin: 44px 0 16px;
}
.doc h3 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 24px 0 8px;
}
.doc p, .doc li {
  color: var(--fg-mute);
  font-size: 0.98rem;
  line-height: 1.72;
  margin: 0 0 14px;
}
.doc ul { padding-left: 22px; margin: 0 0 18px; }
.doc ul li { margin-bottom: 8px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--fg);
}
.doc a { color: var(--brand-600); border-bottom: 1px solid rgba(37, 99, 235, 0.3); }
.doc a:hover { color: var(--brand-700); border-color: var(--brand-700); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc table th, .doc table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.doc table th { font-weight: 700; color: var(--fg); background: var(--surface-2); }
.doc table tr:last-child td { border-bottom: 0; }
.doc table td { color: var(--fg-mute); }
.doc-card {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius);
}
.doc-card p { margin: 0; color: var(--fg); }

/* ─────────────────────────────────────────── CONTACT FORM ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0 24px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms, border-color 200ms, box-shadow 250ms;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
  box-shadow: 0 14px 30px -16px rgba(59, 130, 246, 0.25);
}
.contact-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 14px;
  transition: transform 200ms;
}
.contact-card:hover .icon { transform: rotate(-4deg) scale(1.08); }
.contact-card .icon svg { width: 18px; height: 18px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-card p  { color: var(--fg-mute); font-size: 0.92rem; margin-bottom: 12px; }
.contact-card a  { font-family: var(--font-mono); font-size: 0.88rem; border: 0; }

.form {
  margin-top: 36px;
  padding: 30px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form h2 { margin: 0 0 6px; font-size: 1.36rem; }
.form .lead { color: var(--fg-mute); font-size: 0.94rem; margin-bottom: 22px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms, box-shadow 200ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.form-foot small { color: var(--fg-dim); font-size: 0.8rem; }

/* ─────────────────────────────────────────── BROWSER PREVIEW (UI test mock) ─── */
.bp {
  position: relative;
  height: 100%;
  min-height: 470px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: flex;
  flex-direction: column;
}
.bp-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-mute);
}
.bp-addr .bp-lock {
  width: 12px; height: 12px;
  display: inline-grid; place-items: center;
  color: var(--fg-dim);
}
.bp-addr .bp-lock svg { width: 12px; height: 12px; }
.bp-addr .bp-url {
  flex: 1;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-page {
  position: relative;
  flex: 1;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, #fff 0%, transparent 60%), linear-gradient(180deg, #f8fafc, #eef2f7);
}
.bp-page h3.bp-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}

.bp-form {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.12);
  z-index: 1;
}

.bp-field { margin-bottom: 14px; }
.bp-field:last-of-type { margin-bottom: 18px; }
.bp-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  font-weight: 600;
  margin-bottom: 6px;
}
.bp-input {
  position: relative;
  height: 38px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.92rem;
  color: var(--fg);
  overflow: hidden;
}
.bp-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.bp-typed.e {
  animation: bpType 1.3s steps(16, end) 0.6s forwards;
}
@keyframes bpType {
  to { width: 16ch; }
}
.bp-typed.p {
  letter-spacing: 0.1em;
  animation: bpTypePwd 0.9s steps(8, end) 2.4s forwards;
}
@keyframes bpTypePwd {
  to { width: 9ch; }
}
.bp-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--brand-600);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
  opacity: 0;
}
.bp-caret.e { animation-delay: 0.4s; animation-duration: 1.5s; }
.bp-caret.e.show { opacity: 1; }

.bp-btn {
  width: 100%;
  padding: 11px;
  background: var(--brand-600);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  animation: bpBtnPress 0.4s ease-out 3.6s;
}
@keyframes bpBtnPress {
  0%   { transform: scale(1); background: var(--brand-600); }
  35%  { transform: scale(0.96); background: var(--brand-700); }
  100% { transform: scale(1); background: var(--brand-600); }
}

/* Red highlight ring — anchored to its parent (input or button).
   Each target element has its own .bp-ring child; we just fade them in/out
   sequentially so pixel positions are never guessed. */
.bp-input, .bp-btn { position: relative; }

.bp-ring {
  position: absolute;
  inset: -5px;
  border: 2px solid var(--sans-red);
  border-radius: 11px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 4px rgba(238, 64, 34, 0.14);
  z-index: 5;
}
.bp-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--sans-red);
  border-radius: 12px;
  animation: bpRingPulse 1.4s ease-out infinite;
}
@keyframes bpRingPulse {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* Three rings, three timings — same 5.5s loop */
.bp-ring.r1 { animation: bpRingFade1 5.5s ease-in-out infinite; }
.bp-ring.r2 { animation: bpRingFade2 5.5s ease-in-out infinite; }
.bp-ring.r3 { animation: bpRingFade3 5.5s ease-in-out infinite; }

@keyframes bpRingFade1 {
  0%, 4%       { opacity: 0; }
  6%, 32%      { opacity: 1; }
  36%, 100%    { opacity: 0; }
}
@keyframes bpRingFade2 {
  0%, 36%      { opacity: 0; }
  39%, 65%     { opacity: 1; }
  69%, 100%    { opacity: 0; }
}
@keyframes bpRingFade3 {
  0%, 69%      { opacity: 0; }
  72%, 88%     { opacity: 1; }
  92%, 100%    { opacity: 0; }
}

/* Cursor — moves to button area before click */
.bp-cursor {
  position: absolute;
  width: 18px;
  height: 22px;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(15,23,42,0.4));
  opacity: 0;
  animation: bpCursorMove 5.5s ease-in-out infinite;
}
@keyframes bpCursorMove {
  0%       { top: 30%; left: 70%; opacity: 0; }
  10%      { opacity: 0.9; }
  35%      { top: 47%; left: 38%; }
  60%      { top: 60%; left: 42%; }
  72%      { top: 75%; left: 52%; }
  78%      { top: 76%; left: 52%; transform: scale(0.85); }
  85%      { transform: scale(1); }
  95%, 100%{ top: 75%; left: 52%; opacity: 0; }
}

/* Step badge inside browser preview */
.bp-step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  z-index: 4;
}
.bp-step-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sans-red);
  position: relative;
}
.bp-step-badge .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sans-red);
  animation: ringGrow 1.2s ease-out infinite;
}
.bp-step-badge .num { animation: bpStepNum 5.5s steps(1) infinite; }
@keyframes bpStepNum {
  0%, 6%      { content: '1'; }
  33%, 38%    { content: '2'; }
  65%, 70%    { content: '3'; }
  78%, 100%   { content: '4'; }
}
/* Use ::before because content swap needs pseudo */
.bp-step-badge .num { position: relative; }
.bp-step-badge .num::before {
  content: '1';
  animation: bpStepLabel 5.5s steps(1) infinite;
}
@keyframes bpStepLabel {
  0%   { content: '1'; }
  35%  { content: '2'; }
  68%  { content: '3'; }
  78%  { content: '4'; }
  100% { content: '4'; }
}
.bp-step-badge .num span { display: none; }

/* Bottom strip — success/run state */
.bp-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--fg-mute);
}
.bp-strip .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
}
.bp-strip .ok::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.bp-strip .meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-dim);
}

