/* =========================================================
   Agent Warden — Classic Modern B2B SaaS
   White canvas, Inter throughout, single indigo accent.
   Soft rounded corners, gentle shadows, generous whitespace.
   The trustworthy, restrained aesthetic of Linear / Stripe /
   Vercel marketing pages.
   ========================================================= */

:root {
  /* slate scale (base text & borders) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* indigo (brand accent) */
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* status colors (pill bg / pill text) */
  --emerald-50:  #ecfdf5;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --amber-50:    #fffbeb;
  --amber-700:   #b45309;
  --amber-600:   #d97706;
  --red-50:      #fef2f2;
  --red-700:     #b91c1c;
  --red-600:     #dc2626;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.06), 0 4px 6px -4px rgba(15,23,42,.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,.08), 0 8px 10px -6px rgba(15,23,42,.05);

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --max:     1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #ffffff; }
body {
  background: #ffffff;
  color: var(--slate-900);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a {
  color: var(--indigo-600);
  text-decoration: none;
  transition: color .12s ease;
}
a:hover { color: var(--indigo-700); }
code {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  color: var(--slate-800);
}
pre { font-family: 'JetBrains Mono', monospace; margin: 0; }

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

::selection { background: var(--indigo-100); color: var(--indigo-700); }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.005em;
}
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-primary {
  background: var(--indigo-600);
  color: #ffffff;
  border-color: var(--indigo-600);
  box-shadow: 0 1px 2px rgba(79,70,229,.18);
}
.btn-primary:hover {
  background: var(--indigo-700);
  border-color: var(--indigo-700);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,.28);
}
.btn-ghost {
  background: #ffffff;
  color: var(--slate-800);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}
.btn .arr { transition: transform .15s ease; display: inline-block; }
.btn:hover .arr { transform: translateX(2px); }

.link-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  padding: 8px 0;
}
.link-btn:hover { color: var(--slate-900); }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 14px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -.015em;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--indigo-600);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(79,70,229,.2);
}
.brand-name { font-size: 17px; font-weight: 700; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--slate-700);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--slate-900); }

.nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .link-btn { display: none; }
}

/* ============ hero ============ */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(closest-side, rgba(99,102,241,.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 999px;
  font-size: 13px;
  color: var(--indigo-700);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.18);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,70,229,.4); }
  50%     { box-shadow: 0 0 0 4px rgba(79,70,229,.05); }
}

.hero-title {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--slate-900);
}
.hero-sub {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 500;
  color: var(--slate-500);
  margin: 0 0 28px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-cta {
  display: flex; gap: 12px; margin: 0 0 32px; flex-wrap: wrap;
}
.trust-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.trust-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
  color: var(--slate-600);
}
.trust-points li svg { color: var(--indigo-600); flex-shrink: 0; }

/* hero card (live ledger) */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  align-self: stretch;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5,150,105,.18);
  animation: badgePulse 2s ease-in-out infinite;
}
.card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--slate-500);
}
.card-meta b { color: var(--slate-900); font-weight: 600; }

.ticker {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  height: 320px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.ticker li {
  padding: 9px 18px;
  border-bottom: 1px solid var(--slate-100);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  animation: slideIn .3s ease;
  color: var(--slate-600);
}
.ticker li:last-child { border-bottom: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.t-time { color: var(--slate-400); }
.t-tag {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.t-tag.ok    { background: var(--emerald-50); color: var(--emerald-700); }
.t-tag.block { background: var(--red-50);     color: var(--red-700); }
.t-tag.hil  { background: var(--amber-50);   color: var(--amber-700); }
.t-tag.rate  { background: var(--slate-100);  color: var(--slate-600); }
.ticker .t-msg {
  color: var(--slate-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker .t-msg b { color: var(--slate-900); font-weight: 600; }
.ticker .t-hash { color: var(--slate-400); font-size: 11px; }

.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 11.5px;
  color: var(--slate-500);
}
.card-foot code { font-size: 11px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ logo strip ============ */
.logo-strip {
  padding: 28px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.strip-label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 500;
}
.strip-items {
  display: flex; flex-wrap: wrap; gap: 36px;
  justify-content: center;
}
.strip-items span {
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-500);
  letter-spacing: -.005em;
}

/* ============ section / common ============ */
.section { padding: 100px 0 90px; }
.section-alt { background: var(--slate-50); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--slate-900);
}
.section-sub {
  font-size: 18px;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.55;
}

/* ============ info cards (problem) ============ */
.card-grid { display: grid; gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}
.info-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.info-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--slate-900);
  line-height: 1.3;
}
.info-card p { color: var(--slate-600); font-size: 14.5px; margin: 0; line-height: 1.55; }

@media (max-width: 980px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-4 { grid-template-columns: 1fr; } }

.pull {
  margin: 56px auto 0;
  max-width: 820px;
  padding: 0 24px;
  text-align: center;
}
.pull p {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--slate-900);
  margin: 0;
  font-style: italic;
}
.pull p::before { content: "\201C"; color: var(--indigo-500); margin-right: 4px; }
.pull p::after  { content: "\201D"; color: var(--indigo-500); margin-left: 4px; }

/* ============ stages (architecture) ============ */
.stages {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 920px;
  margin-left: auto; margin-right: auto;
}
.stage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--slate-200);
}
.stage:last-child { border-bottom: none; }
.stage-num {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 50%;
  letter-spacing: -.02em;
}
.stage-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 4px 0 4px;
  color: var(--slate-900);
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.port-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 1px 8px;
}
.role { color: var(--indigo-600); font-size: 13px; font-weight: 500; margin: 0 0 12px; letter-spacing: .005em; }
.stage-body p { color: var(--slate-600); font-size: 15.5px; margin: 0 0 8px; max-width: 720px; line-height: 1.6; }
.signals { list-style: none; padding: 0; margin: 12px 0 12px; display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.signals li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.55;
}
.signals li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--indigo-300);
  border-radius: 1px;
}
.signals b { color: var(--slate-900); font-weight: 600; }

.callout {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--r-md);
  max-width: 720px;
}
.callout-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--indigo-700);
  margin-bottom: 4px;
}
.callout p { margin: 0; color: var(--indigo-700); font-size: 14px; line-height: 1.55; }

.invariant {
  margin: 56px auto 0;
  max-width: 920px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid var(--amber-50);
  border-left: 4px solid var(--amber-600);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.inv-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--amber-700);
  margin-bottom: 6px;
}
.invariant p { margin: 0; color: var(--slate-700); font-size: 15px; line-height: 1.6; }
.invariant strong { color: var(--slate-900); font-weight: 600; }

@media (max-width: 720px) { .stage { grid-template-columns: 1fr; gap: 14px; } }

/* ============ live demo ============ */
.demo-card {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.demo-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}
.demo-stats {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--slate-500);
}
.demo-board {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  min-height: 380px;
}
.lane {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; flex-direction: column;
}
.lane-mid { background: var(--indigo-50); border-color: var(--indigo-100); }
.lane-head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.lane-mid .lane-head { color: var(--indigo-700); border-bottom-color: var(--indigo-100); }
.lane-head code {
  font-size: 11.5px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--slate-500);
}
.calls, .verdicts, .upstream {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.row {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  animation: rowIn .3s ease;
  color: var(--slate-700);
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}
.row b { color: var(--slate-900); font-weight: 600; }
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.row.ok    { border-left: 3px solid var(--emerald-600); }
.row.block { border-left: 3px solid var(--red-600); }
.row.hil  { border-left: 3px solid var(--amber-600); }
.row.rate  { border-left: 3px dashed var(--slate-400); }
.row .tag {
  display: inline-block;
  font-family: inherit;
  font-size: 10.5px; letter-spacing: .04em;
  padding: 1px 7px; margin-right: 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}
.row.ok    .tag { background: var(--emerald-50); color: var(--emerald-700); }
.row.block .tag { background: var(--red-50);     color: var(--red-700); }
.row.hil  .tag { background: var(--amber-50);   color: var(--amber-700); }
.row.rate  .tag { background: var(--slate-100);  color: var(--slate-600); }
.row .why { display: block; color: var(--slate-500); margin-top: 5px; font-size: 11.5px; }

.demo-foot {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
  font-size: 13px; color: var(--slate-600);
}
.legend { display: inline-flex; align-items: center; gap: 8px; }
.leg { width: 10px; height: 10px; display: inline-block; border-radius: 3px; }
.leg-ok    { background: var(--emerald-600); }
.leg-block { background: var(--red-600); }
.leg-hil  { background: var(--amber-600); }
.leg-rate  { background: transparent; border: 2px dashed var(--slate-400); width: 12px; height: 12px; }

@media (max-width: 820px) { .demo-board { grid-template-columns: 1fr; } }

/* ============ tour (three-scenario guided demo) ============ */
.tour {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.tour-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.tour-tab {
  appearance: none;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: var(--slate-50);
  color: var(--slate-700);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tour-tab:hover { background: #ffffff; border-color: var(--slate-300); }
.tour-tab.is-active {
  background: #ffffff;
  border-color: var(--indigo-300, #a5b4fc);
  color: var(--slate-900);
  box-shadow: 0 0 0 3px var(--indigo-50);
}
.tour-tab-num {
  grid-row: 1 / 3;
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo-700);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-50);
  border-radius: 50%;
}
.tour-tab-title { font-weight: 600; font-size: 13.5px; }
.tour-tab-layer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--slate-500);
}

.tour-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}
.tour-mode {
  display: inline-flex;
  background: var(--slate-100);
  border-radius: 999px;
  padding: 3px;
}
.tour-mode-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-600);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.tour-mode-btn.is-active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
}
.tour-actions { display: inline-flex; gap: 8px; }
.tour-progress {
  flex: 1 1 120px;
  margin-left: auto;
  height: 4px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.tour-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--indigo-500, #6366f1);
  transition: width .35s ease;
}

/* Tour-specific row variants. Reuses .row .tag tone palette where it can. */
.row.brain {
  border-left: 3px solid var(--indigo-500, #6366f1);
}
.row.brain .tag,
.tag-brain {
  background: var(--indigo-50);
  color: var(--indigo-700);
}
.row.ledger {
  border-left: 3px solid var(--slate-700);
  background: #fafbfc;
}
.row.ledger .tag,
.tag-ledger {
  background: var(--slate-100);
  color: var(--slate-700);
}
.tag-call {
  background: rgba(94,224,255,.15) !important;
  color: var(--indigo-700);
}
.row.pulse {
  animation: rowIn .3s ease, tourPulse 1.4s ease-in-out infinite;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%      { box-shadow: 0 0 0 3px var(--amber-50); }
}

.tour-explain {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--r-md);
}
.tour-explain-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo-700);
  margin-bottom: 4px;
}
.tour-explain-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--slate-800);
  line-height: 1.5;
}
/* In autoplay mode the panel is hidden (controlled via the JS `hidden` attr). */

.tour-handoff {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--indigo-50) 100%);
  border: 1px solid var(--indigo-100);
  border-radius: var(--r-md);
  text-align: center;
}
.tour-handoff .cta-foot {
  margin: 8px 0 0 0;
  font-size: 12.5px;
  color: var(--slate-600);
}
/* demo handoff: stack the Turnstile widget above the
   "Open in console" submit button so the visitor sees the gate
   before clicking through. Inline-flex keeps the button width
   matching its content (consistent with the ghost CTA next to it). */
.tour-handoff .handoff-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
}
.tour-handoff .handoff-form .cf-turnstile {
  /* Reserve vertical space so the strip doesn't reflow when the
     Turnstile widget loads asynchronously. 65px matches Turnstile's
     "flexible" size widget height. */
  min-height: 65px;
}

/* prefers-reduced-motion: kill the row entrance animation + the HIL pulse. */
@media (prefers-reduced-motion: reduce) {
  .row { animation: none; }
  .row.pulse { animation: none; }
  .tour-progress-bar { transition: none; }
}

@media (max-width: 820px) {
  .tour-tabs { grid-template-columns: 1fr; }
  .tour-controls { gap: 10px; }
  .tour-progress { order: 99; flex-basis: 100%; margin-left: 0; }
}

/* ============ compare ============ */
.cmp-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 880px; }
.cmp th, .cmp td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  border-bottom: 1px solid var(--slate-100);
}
.cmp thead th {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--slate-500);
  font-weight: 600;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  text-transform: uppercase;
  vertical-align: bottom;
}
.cmp thead th span {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--slate-400);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover { background: var(--slate-50); }
.cmp tbody td:first-child { color: var(--slate-900); font-weight: 500; max-width: 280px; }
.cmp .cmp-sub {
  display: block;
  font-size: 12.5px;
  margin-top: 3px;
  color: var(--slate-500);
  font-weight: 400;
}
.cmp thead .cmp-us {
  background: var(--indigo-50);
  border-bottom: 2px solid var(--indigo-600);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
}
.cmp-pop {
  display: inline-block;
  background: var(--indigo-600);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0;
}
.cmp .cmp-us { background: rgba(238,242,255,.55); }
.cmp tbody tr:hover .cmp-us { background: var(--indigo-50); }

.cmp .yes  { color: var(--slate-900); font-weight: 600; display: inline-flex; align-items: baseline; gap: 8px; }
.cmp .yes::before  {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  align-self: center;
}
.cmp .no   { color: var(--slate-400); }
.cmp .no::before   { content: "—"; color: var(--slate-300); margin-right: 8px; }
.cmp .part { color: var(--amber-700); }
.cmp .part::before { content: "~"; color: var(--amber-600); margin-right: 8px; font-weight: 600; }

/* ============ moats ============ */
.moats { margin-top: 72px; }
.moats-h {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 32px;
  color: var(--slate-900);
}
.moat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.moat {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.moat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.moat-num {
  display: inline-block;
  width: 28px; height: 28px;
  line-height: 28px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.moat h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--slate-900);
  line-height: 1.3;
}
.moat h4 em { color: var(--indigo-600); font-style: italic; }
.moat p { color: var(--slate-600); font-size: 14px; margin: 0; line-height: 1.55; }

@media (max-width: 1000px) { .moat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .moat-grid { grid-template-columns: 1fr; } }

.rebuttal {
  margin-top: 56px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.reb-q {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.4;
}
.reb-q::before { content: "\201C"; color: var(--indigo-500); margin-right: 2px; }
.reb-q::after  { content: "\201D"; color: var(--indigo-500); margin-left: 2px; }
.reb-a { font-size: 16px; color: var(--slate-800); margin: 0; line-height: 1.6; }
.reb-a em { color: var(--indigo-600); font-style: italic; font-weight: 600; }

@media (max-width: 720px) { .rebuttal { grid-template-columns: 1fr; gap: 14px; padding: 22px; } }

/* ============ editions ============ */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.ed-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ed-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ed-feature {
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ed-feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  z-index: -1;
  opacity: .12;
  pointer-events: none;
}

.ed-stamp {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 999px;
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: 18px;
}
.ed-stamp-pop {
  background: var(--indigo-600);
  color: #ffffff;
}
.ed-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 4px 0 4px;
  color: var(--slate-900);
}
.ed-tag {
  font-size: 13.5px;
  color: var(--slate-500);
  margin: 0 0 14px;
}
.ed-card > p { color: var(--slate-600); font-size: 14.5px; margin: 0 0 18px; line-height: 1.55; }
.ed-list {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--slate-700);
  font-size: 14px;
}
.ed-list li {
  position: relative; padding-left: 26px;
  line-height: 1.5;
}
.ed-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.ed-card .btn { margin-top: auto; align-self: stretch; justify-content: center; }

@media (max-width: 980px) { .ed-grid { grid-template-columns: 1fr; } }

/* ============ forensics ============ */
.forensic-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.forensic-lead { color: var(--slate-700); font-size: 16px; max-width: 520px; margin: 0; line-height: 1.6; }
.codeblock {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--slate-900);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  border-radius: var(--r-md);
  white-space: pre;
}
.codeblock .cm  { color: #64748b; font-style: italic; }
.codeblock .op  { color: #fcd34d; }
.codeblock .str { color: #86efac; }
.codeblock .hl-code { color: #c4b5fd; background: rgba(196,181,253,.08); padding: 0 4px; border-radius: 3px; }

.forensic-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--indigo-600);
  line-height: 1;
  letter-spacing: -.04em;
  font-feature-settings: "tnum";
}
.stat-lbl {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.4;
}

.testimonials { margin-top: 80px; }
.t-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.testimonial {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--slate-800);
  line-height: 1.55;
  font-weight: 400;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--indigo-100);
  color: var(--indigo-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.t-name { font-size: 14px; font-weight: 600; color: var(--slate-900); }
.t-role { font-size: 12.5px; color: var(--slate-500); }
.footnote {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--slate-500);
  text-align: center;
}

@media (max-width: 920px) {
  .forensic-grid { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
}

/* ============ CTA ============ */
.cta-section { padding: 100px 0; }
.cta-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(99,102,241,.32), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(99,102,241,.18), transparent 60%);
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-copy h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: #ffffff;
}
.cta-copy p {
  font-size: 17px;
  color: #cbd5e1;
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}
.cta-form {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.cta-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}
.cta-form input,
.cta-form select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.cta-form input::placeholder { color: #64748b; }
.cta-form input:focus,
.cta-form select:focus {
  border-color: var(--indigo-300);
  background: rgba(255,255,255,.1);
}
.cta-form select option { background: var(--slate-900); color: #ffffff; }
.cta-form .btn-primary {
  background: #ffffff;
  color: var(--indigo-700);
  border-color: #ffffff;
  font-weight: 600;
}
.cta-form .btn-primary:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-50);
  color: var(--indigo-700);
  box-shadow: 0 4px 14px rgba(255,255,255,.18);
}
.form-fine {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
}
.cta-thanks {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(99,102,241,.4);
  padding: 22px;
  border-radius: var(--r-md);
}
.cta-thanks h3 { margin: 0 0 8px; color: #ffffff; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.cta-thanks p { margin: 0; color: #cbd5e1; font-size: 14.5px; }
.cta-thanks a { color: var(--indigo-300); }
.cta-thanks a:hover { color: #ffffff; }

@media (max-width: 920px) {
  .cta-card { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
}

/* ============ footer ============ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--slate-100);
}
.foot-tag { color: var(--slate-500); font-size: 14px; margin: 12px 0 0; max-width: 280px; line-height: 1.5; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 14px;
}
.foot-cols a {
  display: block;
  color: var(--slate-600);
  font-size: 14px;
  padding: 4px 0;
}
.foot-cols a:hover { color: var(--indigo-600); }

.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--slate-500);
}
.foot-meta { font-size: 12.5px; }

@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .foot-base { flex-direction: column; gap: 8px; }
}

/* ============ receipts ============ */
.receipts {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.receipts-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 18px;
}
.receipts-meta-cell { display: flex; flex-direction: column; gap: 4px; }
.receipts-meta-lbl {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
}
.receipts-meta-val {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--slate-50);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  color: var(--slate-800);
  align-self: flex-start;
}
.receipts-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.receipts-status {
  font-size: 13px;
  color: var(--slate-600);
  font-feature-settings: "tnum";
}
.receipts-status[data-kind="ok"]        { color: var(--emerald-700); font-weight: 600; }
.receipts-status[data-kind="fail"]      { color: var(--red-700); font-weight: 600; }
.receipts-status[data-kind="verifying"] { color: var(--indigo-700); }

.receipts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.receipts-row {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--slate-300);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.receipts-row.is-ok   { border-left-color: var(--emerald-600); background: var(--emerald-50); }
.receipts-row.is-fail { border-left-color: var(--red-600); background: var(--red-50); }
.receipts-row-loading,
.receipts-row-error {
  text-align: center;
  color: var(--slate-500);
  font-style: italic;
  border-left-color: var(--slate-200);
}
.receipts-row-error { color: var(--red-700); font-style: normal; }
.receipts-row-head {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
}
.receipts-seq {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--slate-700);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--slate-200);
}
.receipts-time {
  color: var(--slate-500);
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
}
.receipts-verdict {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  justify-self: start;
}
.receipts-verdict.ok    { background: var(--emerald-50); color: var(--emerald-700); }
.receipts-verdict.block { background: var(--red-50);     color: var(--red-700); }
.receipts-verdict.hil   { background: var(--amber-50);   color: var(--amber-700); }
.receipts-verdict.rate  { background: var(--slate-100);  color: var(--slate-600); border: 1px dashed var(--slate-400); }
.receipts-cid code {
  font-size: 11px;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
}
.receipts-status-cell {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
  font-feature-settings: "tnum";
}
.receipts-status-cell[data-kind="ok"]   { color: var(--emerald-700); }
.receipts-status-cell[data-kind="fail"] { color: var(--red-700); }
.receipts-row-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.receipts-call {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--slate-800);
}
.receipts-call b { color: var(--slate-900); }
.receipts-agent { color: var(--slate-500); font-weight: 400; }
.receipts-reason {
  font-size: 12.5px;
  color: var(--slate-600);
  line-height: 1.55;
}
.receipts-hashes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--slate-500);
  margin-top: 4px;
}
.receipts-hash-lbl {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--slate-500);
}
.receipts-hash {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  color: var(--slate-700);
}
.receipts-hash-arrow { color: var(--slate-400); }

.receipts-curl {
  margin-top: 22px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: var(--slate-900);
  overflow: hidden;
}
.receipts-curl > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-100);
  background: var(--slate-800);
  list-style: none;
  user-select: none;
}
.receipts-curl > summary::-webkit-details-marker { display: none; }
.receipts-curl > summary::after {
  content: "+";
  float: right;
  color: var(--slate-400);
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.receipts-curl[open] > summary::after { content: "−"; }
.receipts-curl .codeblock {
  margin: 0;
  border-radius: 0;
  border: none;
}

.receipts-explain {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--r-md);
}
.receipts-explain h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo-700);
  letter-spacing: .01em;
}
.receipts-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.55;
}
.receipts-steps b { color: var(--slate-900); }
.receipts-steps code { font-size: 12px; }

@media (max-width: 820px) {
  .receipts-meta { grid-template-columns: 1fr 1fr; }
  .receipts-row-head {
    grid-template-columns: auto auto auto;
    grid-row-gap: 6px;
  }
  .receipts-row-head .receipts-cid { grid-column: 1 / -1; }
  .receipts-row-head .receipts-status-cell { grid-column: 1 / -1; }
}

/* ============ a11y / motion ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
