:root {
  --bg: #f7f9fc; --bg2: #eef2f8; --card: #ffffff; --ink: #0b1220; --ink2: #4a5568;
  --muted: #94a3b8; --line: #e6ebf2; --line2: #eef2f7;
  --accent: #2563eb; --accent-ink: #1d4ed8; --accent2: #6366f1;
  --grad: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  --grad-soft: linear-gradient(135deg, #eff4ff 0%, #f1f0ff 100%);
  --danger: #dc2626; --danger-bg: #fef2f2; --danger-line: #fdcdcd;
  --ok: #16a34a; --ok-ink: #15803d; --ok-bg: #f0fdf4; --ok-line: #b7f0c6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sh-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.05);
  --sh: 0 1px 3px rgba(15,23,42,.05), 0 10px 30px rgba(15,23,42,.07);
  --sh-lg: 0 4px 12px rgba(15,23,42,.06), 0 24px 60px rgba(15,23,42,.10);
  --glow: 0 8px 24px rgba(37,99,235,.28);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  background:
    radial-gradient(1100px 620px at 12% -8%, #eef4ff 0%, rgba(238,244,255,0) 60%),
    radial-gradient(1000px 600px at 100% 0%, #f3f0ff 0%, rgba(243,240,255,0) 55%),
    var(--bg);
  background-attachment: fixed;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

/* ───────── top nav ───────── */
.top {
  display: flex; align-items: center; gap: 24px; padding: 15px 32px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 800; font-size: 17.5px; letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; }
.brand .mk {
  width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; background: var(--grad); box-shadow: var(--glow);
}
.acts { display: flex; gap: 4px; margin: 0 auto; }
.acts button {
  border: none; background: transparent; cursor: pointer; color: var(--muted);
  font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center;
  transition: color .15s, background .15s;
}
.acts button:hover { color: var(--ink2); background: rgba(15,23,42,.035); }
.acts button .ix {
  width: 21px; height: 21px; border-radius: 50%; background: var(--bg2); color: var(--ink2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  transition: background .15s, color .15s, box-shadow .15s;
}
.acts button.current { color: var(--ink); background: rgba(37,99,235,.07); }
.acts button.current .ix { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.acts button.done { color: var(--ink2); }
.acts button.done .ix { background: var(--ok); color: #fff; }
.top .right { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
#targetChip { font-weight: 600; }

/* ───────── stage ───────── */
#stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 26px 32px; }
.act { width: 100%; max-width: 1080px; }
.act-wide { max-width: 1140px; }

/* presenter-friendly staggered "build" reveal of each act's blocks */
.act > * { animation: rise .5s cubic-bezier(.22,.7,.2,1) both; }
.act > *:nth-child(1) { animation-delay: .00s; }
.act > *:nth-child(2) { animation-delay: .05s; }
.act > *:nth-child(3) { animation-delay: .10s; }
.act > *:nth-child(4) { animation-delay: .15s; }
.act > *:nth-child(5) { animation-delay: .20s; }
.act > *:nth-child(6) { animation-delay: .25s; }
.act > *:nth-child(7) { animation-delay: .30s; }
.act > *:nth-child(n+8) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .act > * { animation: none !important; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); background: var(--grad-soft);
  border: 1px solid #dbe4ff; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--sh-sm); }
.eyebrow.tag { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
h1.act-title { font-size: clamp(32px, 4vw, 50px); line-height: 1.07; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 820; }
.lede { font-size: 18.5px; color: var(--ink2); margin: 0 0 30px; max-width: 800px; line-height: 1.55; }
.lede b { color: var(--ink); font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh); }

/* ───────── login panel (legacy break-in) ───────── */
.login { max-width: 420px; margin: 0 auto; }
.login .lh { font-weight: 700; font-size: 15px; margin-bottom: 14px; color: var(--ink); display:flex; gap:8px; align-items:center; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field .inp { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; font-size: 14px;
  font-family: var(--mono); background: #fff; min-height: 42px; display: flex; align-items: center; color: var(--ink); }
.field .inp.payload { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }
.caret::after { content: "▏"; color: var(--danger); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── buttons ───────── */
.btn {
  cursor: pointer; border: none; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; padding: 12px 19px;
  background: var(--grad); color: #fff; box-shadow: var(--glow); letter-spacing: -.01em;
  transition: transform .08s ease, box-shadow .18s ease, filter .15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,99,235,.34); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--sh-sm); }
.btn.ghost:hover:not(:disabled) { border-color: #cbd5e1; box-shadow: var(--sh); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 24px rgba(220,38,38,.28); }
.btn.danger:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(220,38,38,.34); }
.btn.ok { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 24px rgba(22,163,74,.26); }
.btn.ok:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(22,163,74,.32); }
.btn.lg { font-size: 15.5px; padding: 14px 24px; border-radius: 12px; }
.btn-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ───────── result banners ───────── */
.result { margin-top: 18px; border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); animation: pop .32s cubic-bezier(.22,.7,.2,1) both; box-shadow: var(--sh-sm); }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
.result .ic { font-size: 27px; line-height: 1; }
.result .rt { font-weight: 800; font-size: 17px; margin-bottom: 3px; letter-spacing: -.01em; }
.result .rd { font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.result.breach { background: var(--danger-bg); border-color: var(--danger-line); }
.result.breach .rt { color: var(--danger); }
.result.block { background: var(--ok-bg); border-color: var(--ok-line); }
.result.block .rt { color: var(--ok-ink); }
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.04);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; margin-top: 8px; color: var(--ink2); }
.spinner-line { display:flex; gap:10px; align-items:center; color: var(--ink2); font-size: 14px; margin-top: 16px; }
.sp { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── code + diff ───────── */
.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  background: #0c1424; color: #e2e8f0; border-radius: 12px; padding: 16px; overflow-x: auto;
  white-space: pre-wrap; word-break: break-word; }
.code .hl { background: rgba(248,113,113,.26); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(248,113,113,.5); }
.code .code-line { display: block; padding: 0 6px; margin: 0 -6px; border-radius: 3px; }
.codecard.good .code-line.chg { background: rgba(52,211,153,.16); box-shadow: inset 3px 0 0 #34d399; }
.codecard.bad .code-line.chg { background: rgba(248,113,113,.14); box-shadow: inset 3px 0 0 #f87171; }
.cc-head .chg-key { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0; opacity: .85; }
.codecard { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.codecard .cc-head { font-size: 12px; font-weight: 750; padding: 10px 15px; display:flex; gap:8px; align-items:center; letter-spacing: .01em; }
.codecard.bad .cc-head { background: var(--danger-bg); color: var(--danger); border-bottom: 1px solid var(--danger-line); }
.codecard.good .cc-head { background: var(--ok-bg); color: var(--ok-ink); border-bottom: 1px solid var(--ok-line); }
.codecard .code { border-radius: 0; }

/* ───────── root-cause vs symptom ───────── */
.rc-card { border-radius: var(--r-md); padding: 19px; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.rc-card.bad { background: var(--danger-bg); border-color: var(--danger-line); }
.rc-card.good { background: var(--ok-bg); border-color: var(--ok-line); }
.rc-card .h { font-weight: 800; font-size: 14px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.rc-card.bad .h { color: var(--danger); } .rc-card.good .h { color: var(--ok-ink); }
.rc-card .b { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 8px; }
.rc-card .w { font-size: 12.5px; color: var(--ink2); line-height: 1.45; }

/* ───────── money shot compare ───────── */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 8px; }
.cmp { border-radius: var(--r-md); padding: 22px; text-align: center; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.cmp.breach { background: var(--danger-bg); border-color: var(--danger-line); }
.cmp.block { background: var(--ok-bg); border-color: var(--ok-line); }
.cmp .big { font-size: 32px; } .cmp .lbl { font-weight: 850; margin-top: 8px; font-size: 16px; letter-spacing: .01em; }
.cmp.breach .lbl { color: var(--danger); } .cmp.block .lbl { color: var(--ok-ink); }
.cmp .sub { font-size: 12.5px; color: var(--ink2); margin-top: 5px; }
.arrow { display: flex; align-items: center; color: var(--muted); font-size: 26px; }
.reassure { margin-top: 16px; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 12px;
  padding: 14px 17px; font-size: 13.5px; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.sandbox-note { margin: 16px 0 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-size: 13px; line-height: 1.55; color: var(--ink2); display: flex; gap: 11px; align-items: flex-start; }
.sandbox-note b { color: var(--ink); }
.sandbox-note code { font-family: var(--mono); font-size: 12px; background: rgba(0,0,0,.05); border-radius: 4px; padding: 0 4px; }
.sandbox-note .sb-ic { font-size: 16px; line-height: 1.35; flex-shrink: 0; }

/* ───────── ship review ───────── */
.review .row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.review .row:last-child { border: none; }
.review .row .k { color: var(--muted); } .review .row .v { font-weight: 600; font-family: var(--mono); font-size: 12.5px; }
.pr-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 700; text-decoration: none; }
.pr-link:hover { text-decoration: underline; }

/* ───────── footer controls ───────── */
.controls { display: flex; align-items: center; gap: 16px; padding: 14px 32px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; bottom: 0; z-index: 15; }
.msg-tag { margin: 0 auto; font-weight: 650; font-size: 14.5px; color: var(--ink2); text-align: center; }
.msg-tag b { color: var(--ink); }
.nav-btn { cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px; padding: 11px 18px; box-shadow: var(--sh-sm); transition: border-color .15s, color .15s, transform .08s; }
.nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.nav-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.nav-btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.nav-btn.primary:hover:not(:disabled) { color: #fff; box-shadow: 0 12px 30px rgba(37,99,235,.34); }
.proof-toggle { cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink2);
  font-size: 12.5px; font-weight: 650; padding: 8px 13px; border-radius: 999px; box-shadow: var(--sh-sm); transition: border-color .15s, color .15s; }
.proof-toggle:hover { color: var(--ink); border-color: #cbd5e1; }

/* ───────── proof drawer ───────── */
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 580px; max-width: 92vw; background: #0a1120; color: #d7e0ea;
  box-shadow: -16px 0 50px rgba(0,0,0,.32); transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.7,.2,1); z-index: 40;
  display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer .dh { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #1c2740; font-size: 12.5px; color: #93a4bd;
  font-family: var(--mono); letter-spacing: .02em; }
.drawer .dh .x { margin-left: auto; cursor: pointer; background: none; border: none; color: #93a4bd; font-size: 18px; }
.drawer .dh .x:hover { color: #fff; }
.drawer .db { overflow: auto; padding: 18px 20px; }
.drawer pre { font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; margin: 0 0 14px; }
.drawer .file-h { font-family: var(--mono); font-size: 11.5px; color: #60a5fa; margin: 14px 0 6px; }
.scrim { position: fixed; inset: 0; background: rgba(6,11,23,.46); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 35; }
.scrim.open { opacity: 1; pointer-events: auto; }
.muted-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* ───────── .exploit/ file browser (Verify) ───────── */
.exploit-box { margin-top: 24px; border-top: 1px dashed var(--line); padding-top: 20px; }
.exploit-h { font-size: 14px; color: var(--ink2); margin-bottom: 13px; }
.exploit-h code { background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); }
.file-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.file-chip { cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink2);
  border-radius: 9px; padding: 8px 13px; font-family: var(--mono); font-size: 12px; font-weight: 650; box-shadow: var(--sh-sm); transition: border-color .15s, color .15s; }
.file-chip:hover { border-color: var(--accent); color: var(--accent); }
.file-chip.active { background: #0c1424; color: #e2e8f0; border-color: #0c1424; box-shadow: none; }
.file-view { background: #0c1424; color: #d7e0ea; border-radius: 12px; padding: 17px; margin: 0;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  max-height: 340px; overflow: auto; box-shadow: var(--sh-sm); }
.fv-cap { color: #93c5fd; font-size: 11.5px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #1c2740; }

/* ───────── CLI / artifact keyword highlighting ───────── */
.k-cmd { color: #7dd3fc; font-weight: 600; }
.k-crit { color: #fca5a5; font-weight: 700; }
.k-sev { color: #fcd34d; font-weight: 600; }
.k-win { color: #86efac; font-weight: 700; }
.k-block { color: #6ee7b7; font-weight: 700; }
.k-pay { color: #fda4af; font-weight: 700; }
.k-demo { background: #fbbf24; color: #1f2937; font-weight: 800; padding: 1px 7px; border-radius: 6px; }

/* ───────── selected-vuln chip in header ───────── */
.vuln-chip { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--grad-soft);
  border: 1px solid #dbe4ff; border-radius: 999px; padding: 5px 12px; margin-right: 10px;
  cursor: pointer; box-shadow: var(--sh-sm); transition: background .12s, border-color .12s; }
.vuln-chip:hover { border-color: var(--accent); }
.vuln-chip .chip-x { margin-left: 6px; opacity: .55; font-weight: 700; }
.vuln-chip:hover .chip-x { opacity: 1; }

/* ───────── find: vuln picker cards ───────── */
.vuln-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.vuln-card { text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); position: relative; overflow: hidden;
  transition: border-color .16s, transform .12s, box-shadow .16s; display: flex; flex-direction: column; gap: 8px; }
.vuln-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .16s; }
.vuln-card:hover { border-color: #c3d0f5; transform: translateY(-4px); box-shadow: var(--sh-lg); }
.vuln-card:hover::before { opacity: 1; }
.vc-top { display: flex; align-items: center; justify-content: space-between; }
.vc-icon { font-size: 32px; }
.vc-title { font-weight: 800; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.vc-meta { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.vc-tag { font-size: 13.5px; color: var(--ink2); line-height: 1.45; margin-top: 4px; flex: 1; }
.vc-go { font-size: 13px; font-weight: 750; color: var(--accent); margin-top: 8px; }
.sev-pill { font-size: 10.5px; font-weight: 850; padding: 3px 10px; border-radius: 999px; letter-spacing: .05em; }
.sev-pill.sev-CRITICAL { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.sev-pill.sev-HIGH { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.sev-pill.sev-MEDIUM { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }

.back-link { display: inline-block; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 650; margin-bottom: 14px; transition: color .15s; }
.back-link:hover { color: var(--accent); }
.next-hint { margin-top: 22px; font-size: 13.5px; color: var(--muted); font-weight: 650; }

/* ───────── generic attack panel ───────── */
.attack-card { max-width: 500px; }
.req-line { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.method { font-family: var(--mono); font-size: 11px; font-weight: 850; padding: 3px 10px; border-radius: 6px; color: #fff; letter-spacing: .03em; }
.m-POST { background: #2563eb; } .m-GET { background: #16a34a; } .m-PUT { background: #d97706; }
.ep { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); }
.req-sub { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.req-input { font-family: var(--mono); font-size: 12.5px; background: var(--danger-bg); border: 1px solid var(--danger-line);
  border-radius: var(--r-sm); padding: 12px 13px; color: var(--ink); margin-bottom: 15px; word-break: break-word; }
.req-input .hl { background: rgba(220,38,38,.16); color: var(--danger); border-radius: 3px; padding: 0 2px; font-weight: 700; }
.ev { font-family: var(--mono); font-size: 11.5px; background: rgba(0,0,0,.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-top: 9px; white-space: pre-wrap; word-break: break-word; color: var(--ink2); }
.verified-badge { display: inline-block; font-weight: 800; font-size: 15px; color: var(--ok-ink);
  background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 12px; padding: 13px 18px; margin-top: 12px; box-shadow: var(--sh-sm); }

/* ───────── mode switch ───────── */
.mode-switch { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-right: 12px; }
.mode-switch button { border: none; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750;
  color: var(--muted); padding: 6px 13px; border-radius: 999px; transition: color .15s; }
.mode-switch button.active { background: #fff; color: var(--accent-ink); box-shadow: var(--sh-sm); }

/* ───────── SDLC ribbon ───────── */
.ribbon { background: rgba(255,255,255,.6); border-bottom: 1px solid var(--line); padding: 11px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rib-track { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.rib-stage { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 11px; opacity: .5; transition: opacity .2s, background .2s; }
.rib-stage .rib-ic { font-size: 17px; }
.rib-stage .rib-t { font-size: 12px; font-weight: 750; color: var(--ink2); display: flex; flex-direction: column; line-height: 1.2; }
.rib-sub { font-size: 10px; font-weight: 650; color: var(--muted); }
.rib-stage.done { opacity: .9; }
.rib-stage.active { opacity: 1; background: var(--grad-soft); box-shadow: inset 0 0 0 1px #bfd0ff; }
.rib-stage.cm.active { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.rib-stage.cm .rib-t { color: var(--ok-ink); }
.rib-arrow { color: var(--muted); font-size: 16px; }
.rib-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ───────── overview: AI thesis points + subheading ───────── */
.theme-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 30px; }
.tp { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 17px 18px; box-shadow: var(--sh); font-size: 13.5px; color: var(--ink2); line-height: 1.5;
  transition: transform .12s, box-shadow .16s; }
.tp:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.tp b { color: var(--ink); }
.tp-ic { font-size: 23px; line-height: 1; }
.ov-sub { font-size: 17px; font-weight: 800; margin: 6px 0 14px; color: var(--ink); letter-spacing: -.015em; line-height: 1.3; }

/* ───────── overview (trimmed / presentation) ───────── */
.grad-ink { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* overview beat dots */
.ov-dots { display: flex; gap: 9px; align-items: center; margin-top: 34px; }
.ov-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: #d2dae6;
  cursor: pointer; transition: width .18s ease, background .18s ease; }
.ov-dot:hover { background: #b6c2d4; }
.ov-dot.active { width: 28px; border-radius: 6px; background: var(--grad); }
/* the hero beat gets extra air around the headline */
.ov-beat-0 .ov-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
.ov-beat-0 .ov-lede { font-size: 20px; }
.ov-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; margin-bottom: 16px; }
.ov-lede { font-size: 19px; margin-bottom: 30px; }
.ov-tiles { margin: 4px 0 26px; }
.ov-tiles .tp { padding: 18px 20px; font-size: 14px; align-items: center; }
.ov-tiles .tp .tp-ic { font-size: 26px; }
.ov-tiles .tp b { display: block; font-size: 15.5px; margin-bottom: 2px; letter-spacing: -.01em; }
.tp-sub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.race { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 28px; }
.race-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px;
  border-radius: var(--r-md); border: 1.5px solid var(--line); border-left-width: 5px; background: var(--card); box-shadow: var(--sh); }
.race-row.warn { border-color: #f6d98c; border-left-color: #f59e0b; background: linear-gradient(180deg, #fffdf4, #fff); }
.race-row.good { border-color: var(--ok-line); border-left-color: var(--ok); background: linear-gradient(180deg, #f1fcf5, #fff); }
.race-lbl { font-size: 11.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.race-lbl.warn { color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; }
.race-lbl.good { color: var(--ok-ink); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.race-row .pipeline { margin-bottom: 0; gap: 7px; }
.race-row .pl-step { font-size: 12.5px; padding: 8px 13px; font-weight: 700; }
.pl-step.warn { background: #fef3c7; border-color: #fcd34d; color: #b45309; }

/* ───────── overview: without vs with ───────── */
.vs-grid { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 26px; }
.vs-row { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 19px 22px; background: var(--card); box-shadow: var(--sh); }
.vs-row.bad { border-color: var(--danger-line); background: linear-gradient(180deg, #fffafa, #fff); }
.vs-row.good { border-color: var(--ok-line); background: linear-gradient(180deg, #fafffb, #fff); }
.vs-h { font-weight: 800; font-size: 14px; margin-bottom: 13px; letter-spacing: -.01em; }
.vs-row.bad .vs-h { color: var(--danger); } .vs-row.good .vs-h { color: var(--ok-ink); }
.pipeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.pl-step { font-size: 13.5px; font-weight: 700; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 14px; }
.pl-step.miss { border-style: dashed; color: var(--muted); }
.pl-step.cm { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.pl-step.breach { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.pl-step.safe { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.pl-arrow { color: var(--muted); font-weight: 700; }
.vs-note { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.cta-row { margin-top: 8px; }

/* ───────── analogy + impact + notes + closing ───────── */
.analogy { font-size: 18px; font-weight: 600; color: var(--ink); background: linear-gradient(135deg, #fffbeb, #fff8e1); border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b; border-radius: 12px; padding: 14px 17px; margin: 6px 0 18px; line-height: 1.45; box-shadow: var(--sh-sm); }
.impact-card { background: var(--danger-bg); border: 1px solid var(--danger-line); border-left: 4px solid var(--danger);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--sh-sm); }
.impact-h { font-weight: 800; color: var(--danger); font-size: 14px; margin-bottom: 5px; }
.impact-b { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.note-card { background: #f1f5f9; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px;
  font-size: 14px; color: var(--ink2); line-height: 1.5; margin-top: 20px; box-shadow: var(--sh-sm); }
.note-card.good-note { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ink); margin: 0 0 16px; }
.closing { margin-top: 20px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid var(--ok-line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-sm); }
.closing-h { font-weight: 850; font-size: 19px; color: var(--ok-ink); margin-bottom: 6px; letter-spacing: -.015em; }
.closing p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.review .v.plain { font-family: inherit; font-weight: 600; font-size: 14px; }

/* ───────── immersive overview (summit / large screens) ───────── */
.ov { text-align: center; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ov > * { width: 100%; }
.ov .eyebrow { margin-left: auto; margin-right: auto; }
.ov .ov-lede, .ov .lede { margin-left: auto; margin-right: auto; }
.ov .ov-dots { justify-content: center; }
.ov .race-row, .ov .pipeline { justify-content: center; }
.ov .tp { text-align: left; }
.ov-title { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; }
.ov-beat-0 .ov-title, .ov-beat-1 .ov-title { font-size: clamp(40px, 6vw, 78px); line-height: 1.03; margin-bottom: 20px; }
.ov-lede { font-size: clamp(18px, 1.9vw, 24px); max-width: 880px; }
.ov-tiles { max-width: 1100px; }
.ov-tiles .tp { padding: 22px 24px; }
.ov-tiles .tp .tp-ic { font-size: 30px; }
.ov-tiles .tp b { font-size: clamp(17px, 1.5vw, 20px); }
.ov-tiles .tp-sub { font-size: clamp(13px, 1.1vw, 15px); }

/* Two realities — fill the screen, bigger text */
.ov .race { max-width: 1240px; gap: 14px; margin: 8px auto 14px; }
.ov .race-row { padding: 16px 30px; gap: 22px; }
.ov .race-lbl { font-size: clamp(13px, 1.1vw, 15px); padding: 11px 18px; }
.ov .race-row .pipeline { gap: 10px; }
.ov .race-row .pl-step { font-size: clamp(15px, 1.5vw, 20px); padding: 13px 20px; }
.ov .race-row .pl-arrow { font-size: clamp(18px, 1.6vw, 24px); }

/* Sandbox callout — one compact line, must not reintroduce overview scroll */
.ov .ov-sandbox { max-width: 1000px; margin: 10px auto 0; font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45; color: var(--ink2); text-align: center; }
.ov .ov-sandbox b { color: var(--ink); }

/* Closes-the-loop — fill the screen, bigger text */
.ov .loop-wrap { max-width: 1240px; margin: 18px auto 8px; }
.ov .loop-title { font-size: clamp(16px, 1.5vw, 21px); margin-bottom: 18px; }
.ov .loop { gap: 12px; }
.ov .loop-chip { font-size: clamp(15px, 1.5vw, 20px); padding: 14px 22px; }
.ov .loop-repeat { font-size: clamp(13px, 1.2vw, 16px); padding: 12px 18px; }
.ov .loop .pl-arrow { font-size: clamp(18px, 1.6vw, 24px); }

/* closes-the-loop */
.loop-wrap { margin: 24px auto 8px; }
.loop-title { font-weight: 800; font-size: 15px; color: var(--ink2); margin-bottom: 13px; }
.loop { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.loop-chip { font-weight: 750; font-size: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px; box-shadow: var(--sh-sm); }
.loop-chip.cm { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.loop-repeat { font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: var(--grad-soft);
  border: 1px solid #dbe4ff; border-radius: 999px; padding: 8px 13px; margin-left: 6px; }

/* ───────── LoginBox app window (immersive in-app demo) ───────── */
.appwin { border-radius: 14px; overflow: hidden; border: 1px solid #d8e0ec; box-shadow: var(--sh-lg);
  background: #fff; max-width: 460px; }
.appbar { display: flex; align-items: center; gap: 12px; padding: 9px 13px; background: #eef2f8; border-bottom: 1px solid #e2e8f0; }
.appbar .wd { display: inline-flex; gap: 6px; }
.appbar .wd i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.appbar .wd i:nth-child(1) { background: #f87171; } .appbar .wd i:nth-child(2) { background: #fbbf24; } .appbar .wd i:nth-child(3) { background: #34d399; }
.urlbar { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--ink2); background: #fff;
  border: 1px solid #e2e8f0; border-radius: 7px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbody { padding: 22px; }
.app-heading { font-weight: 800; font-size: 18px; margin-bottom: 16px; letter-spacing: -.01em; }
.af-field { margin-bottom: 12px; text-align: left; }
.af-field label { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 5px; }
.af-val { font-family: var(--mono); font-size: 13px; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 11px 12px; background: #fbfdff; min-height: 42px; display: flex; align-items: center; color: var(--ink); word-break: break-word; }
.af-val.payload { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg);
  display: block; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; line-height: 1.7; }
.af-val.payload .hl { background: rgba(220,38,38,.16); border-radius: 3px; padding: 0 2px; font-weight: 700; }
.af-sub { font-size: 11.5px; color: var(--muted); margin: -4px 0 12px; text-align: left; }
.af-go { width: 100%; margin-top: 6px; }
.appwin.establish .af-go:disabled { opacity: 1; cursor: default; box-shadow: var(--glow); }
.app-result { margin-top: 14px; } .app-result:empty { display: none; }
.app-loading { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink2); }
.app-resp { border-radius: 11px; padding: 14px 15px; animation: pop .3s cubic-bezier(.22,.7,.2,1) both; text-align: left; }
.app-resp.breach { background: var(--danger-bg); border: 1px solid var(--danger-line); }
.app-resp.block { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.ar-head { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.app-resp.breach .ar-head { color: var(--danger); } .app-resp.block .ar-head { color: var(--ok-ink); }
.ar-body { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.ar-ev { font-family: var(--mono); font-size: 11.5px; background: rgba(0,0,0,.05); border: 1px solid var(--line);
  border-radius: 7px; padding: 8px 10px; margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--ink2); }
.ar-http { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

/* demo layout (app frame + aside) used in Verify & Fix */
.demo-grid { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 26px; align-items: start; margin-top: 6px; }
.demo-cap { font-size: 14px; color: var(--ink2); font-weight: 600; margin-bottom: 10px; }
.demo-aside { align-self: center; }

/* find establishing hero */
.find-hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 30px; align-items: center; margin: 12px 0 8px; }
.find-scan { display: flex; flex-direction: column; gap: 14px; }
.scan-badge { display: inline-flex; align-items: baseline; gap: 13px; }
.scan-num { font-size: 58px; font-weight: 850; letter-spacing: -.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scan-lbl { font-size: 14px; font-weight: 700; color: var(--ink2); line-height: 1.2; }
.scan-sev { display: flex; gap: 8px; flex-wrap: wrap; }
.find-sub { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 16px 0 14px; }

/* ───────── guided CLI proof ───────── */
.proof-block { margin-top: 28px; border-top: 1px dashed var(--line); padding-top: 20px; }
.proof-h { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.gcli { border-radius: 14px; overflow: hidden; border: 1px solid #0c1424; box-shadow: var(--sh); }
.gcli-head { background: #0a1120; color: #93a4bd; font-size: 11.5px; padding: 10px 16px;
  border-bottom: 1px solid #1c2740; font-family: var(--mono); }
.gcli-head .gcli-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #34d399; margin-right: 7px; box-shadow: 0 0 8px #34d399; }
.gcli-head b { color: #cbd5e1; }
.gcli-body { background: #0c1424; color: #d7e0ea; margin: 0; padding: 16px 18px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.7; max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.cli-line { display: block; border-radius: 5px; padding: 0 6px; margin: 0 -6px; transition: background .2s; }
.cli-line.active { background: rgba(96,165,250,.16); box-shadow: inset 3px 0 0 #60a5fa; }
.gcli-ctrl { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0a1120; border-top: 1px solid #1c2740; }
.gcli-cap { flex: 1; font-size: 13px; color: #cbd5e1; line-height: 1.45; }
.gcli-cap b { color: #fff; }
.gcli-n { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #0a1120;
  background: #60a5fa; border-radius: 5px; padding: 1px 7px; margin-right: 8px; }
.gcli-btn { cursor: pointer; border: 1px solid #2b3a55; background: #131d31; color: #cbd5e1; font-weight: 700;
  font-size: 12.5px; padding: 8px 14px; border-radius: 8px; transition: border-color .15s, color .15s; }
.gcli-btn:hover { border-color: #3b4d6e; color: #fff; }
.gcli-btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }

/* ───────── coach overlay + help ───────── */
.help-btn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink2); font-weight: 800; font-size: 13px; cursor: pointer; margin-right: 12px; box-shadow: var(--sh-sm); }
.help-btn:hover { border-color: var(--accent); color: var(--accent); }
.docs-link { font-size: 12px; font-weight: 700; color: var(--ink2); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-right: 12px;
  background: #fff; box-shadow: var(--sh-sm); white-space: nowrap; }
.docs-link:hover { border-color: var(--accent); color: var(--accent); }
.coach-scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6,11,23,.5); backdrop-filter: blur(4px); animation: rise .25s ease both; }
.coach-scrim[hidden] { display: none; }
.coach-card { background: #fff; border-radius: 20px; box-shadow: var(--sh-lg); max-width: 520px; width: 100%; padding: 30px 32px; }
.coach-h { font-size: 24px; font-weight: 850; letter-spacing: -.02em; margin-bottom: 10px; }
.coach-p { font-size: 15.5px; color: var(--ink2); line-height: 1.55; margin: 0 0 16px; }
.coach-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.coach-list li { font-size: 14.5px; color: var(--ink); line-height: 1.5; padding-left: 26px; position: relative; }
.coach-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.ck { font-weight: 750; background: var(--grad-soft); border: 1px solid #dbe4ff; border-radius: 6px; padding: 1px 7px; font-size: 13px; white-space: nowrap; }
.coach-card .btn { width: 100%; }

/* pulse cue on the primary next action */
@keyframes cue { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow: 0 0 0 7px rgba(37,99,235,.16); } }
.pulse { animation: cue 1.7s ease-in-out infinite; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ───────── "Show the math" panel ───────── */
.math { margin: 22px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; box-shadow: var(--sh-sm); overflow: hidden; }
.math > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 800; font-size: 14.5px;
  color: var(--accent-ink); display: flex; align-items: center; gap: 8px; }
.math > summary::-webkit-details-marker { display: none; }
.math > summary::after { content: "▸"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.math[open] > summary::after { transform: rotate(90deg); }
.math-sigma { font-size: 18px; }
.math-hint { font-weight: 600; color: var(--muted); font-size: 13px; }
.math-body { padding: 4px 18px 20px; }
.math-grid { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #fff; }
.math-row { display: flex; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.math-row:last-child { border-bottom: none; }
.math-row .math-k { color: var(--muted); min-width: 110px; font-weight: 650; }
.math-row .math-v { color: var(--ink); font-weight: 600; }
.math-v.mono, .mono { font-family: var(--mono); font-size: 12px; }
.math-block { margin-bottom: 16px; }
.math-block:last-child { margin-bottom: 0; }
.math-block .math-k { font-size: 13px; font-weight: 750; color: var(--ink2); margin-bottom: 8px; }
.math-block .math-k.mt { margin-top: 12px; }
.math-block .math-k a { color: var(--accent); font-weight: 650; text-decoration: none; }
.math-block .math-v { font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.math-block code { font-family: var(--mono); background: var(--bg2); padding: 1px 6px; border-radius: 5px; }
.mchips { display: flex; flex-wrap: wrap; gap: 7px; }
.mchip { font-size: 12px; font-weight: 650; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.mchip.used { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.math-code { background: #0c1424; color: #d7e0ea; border-radius: 10px; padding: 14px 16px; margin: 0; font-family: var(--mono);
  font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 280px; overflow: auto; }

/* ───────── v1: projection readability + per-page density ───────── */
.lede { font-size: clamp(18px, 1.5vw, 23px); }

/* Find diagnosis — bigger, fills the screen */
.diag .analogy { font-size: clamp(19px, 1.7vw, 26px); padding: 18px 22px; }
.diag .lede { font-size: clamp(18px, 1.6vw, 24px); }
.diag h1.act-title { font-size: clamp(38px, 4.6vw, 60px); }
.diag .grid2 { gap: 22px; }
.diag .rc-card { padding: 24px 26px; }
.diag .rc-card .h { font-size: clamp(15px, 1.3vw, 18px); }
.diag .rc-card .b { font-size: clamp(15px, 1.2vw, 17px); }
.diag .rc-card .w { font-size: clamp(13px, 1vw, 15px); }
.diag .next-hint { font-size: 15px; }

/* Verify — the core proof header + bigger terminal */
.proof-block { margin-top: 36px; border-top: 2px solid var(--line); padding-top: 28px; }
.proof-eyebrow { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.proof-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 850; letter-spacing: -.02em; margin: 8px 0 10px; line-height: 1.08; }
.proof-sub { font-size: clamp(14px, 1.3vw, 18px); color: var(--ink2); max-width: 860px; line-height: 1.5; margin: 0 0 18px; }
.gcli-body { font-size: clamp(12.5px, 1.05vw, 15px); line-height: 1.75; max-height: 460px; padding: 18px 20px; }
.gcli-head { font-size: 12.5px; padding: 12px 18px; }
.gcli-ctrl { padding: 14px 18px; }
.gcli-cap { font-size: clamp(13px, 1.1vw, 15.5px); }
.gcli-btn { font-size: 13.5px; padding: 10px 17px; }
.gcli-btn.primary { font-size: 14.5px; padding: 11px 20px; }

/* Fix — validation checklist */
.fix-diff { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
.fix-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 22px; }
.fc { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 14px; padding: 16px 18px; }
.fc-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.fc b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.fc > div > span { font-size: 13px; color: var(--ink2); line-height: 1.4; }

/* Ship — two-column review + evidence */
.ship-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1000px; }
.review-h { font-weight: 800; font-size: 15px; margin-bottom: 12px; letter-spacing: -.01em; }
.ship-evidence .ev-item { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.ship-evidence .ev-item:last-child { border-bottom: none; }
.ev-ic { font-size: 22px; line-height: 1; }
.ev-item b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.ev-item > div > span { font-size: 13px; color: var(--ink2); line-height: 1.4; }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .vuln-grid, .theme-points, .ov-tiles { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); justify-content: center; }
  .acts { display: none; }
  .demo-grid, .find-hero, .ship-grid, .fix-checks { grid-template-columns: 1fr; }
  .appwin { max-width: 100%; }
}

/* ════════ v2 (designer critique #1): proof legibility + guidance ════════ */
/* P0 — the proof layer must read from the back of the room */
.gcli-body { font-size: clamp(13px, 1.05vw, 15.5px); line-height: 1.5; max-height: 560px; white-space: pre; overflow: auto; }
.cli-line.active { box-shadow: inset 4px 0 0 #60a5fa; background: rgba(96,165,250,.20); }
.code { font-size: clamp(12.5px, 0.95vw, 15px); line-height: 1.55; }
.code .hl { background: rgba(248,113,113,.42); box-shadow: inset 0 -2px 0 #f87171; color: #fff; }
.req-input { font-size: clamp(13px, 1vw, 16px); }
.af-val { font-size: clamp(13px, 1vw, 16px); }
.math > summary { font-size: 16px; }
.math-row { font-size: 16px; }
.math-row .math-k { font-size: 15px; min-width: 130px; }
.math-v.mono, .mono { font-size: 14px; }
.math-block .math-v { font-size: 15px; }
.math-block .math-k { font-size: 14px; }
.mchip { font-size: 13px; }
.math-code { font-size: clamp(13px, 1vw, 16px); line-height: 1.7; }
/* P1 — footer hint readable + solid (no content bleed-through) */
.msg-tag { font-size: clamp(16px, 1.2vw, 20px); }
.controls { background: #fff; }
/* P1 — captions / evidence readable */
.demo-cap { font-size: clamp(15px, 1.1vw, 19px); }
.gcli-head { font-size: 14px; }
.gcli-cap { font-size: clamp(13.5px, 1.1vw, 16px); }
.ar-ev, .fv-cap, .ev, .muted-note, .af-sub, .ar-http { font-size: 13px; }
.ar-head { font-size: clamp(15.5px, 1.3vw, 19px); }
.ar-body { font-size: clamp(13px, 1.1vw, 15px); }
.exploit-h { font-size: clamp(14px, 1.2vw, 17px); }
/* P1 — Step ▸ is a sub-action; footer Next is the primary flow */
.gcli-btn.primary { background: #243149; box-shadow: none; }
.gcli-btn.primary:hover { background: #2e3e5c; border-color: #2e3e5c; }
/* P2 — Find cards + severity pills legible */
.vc-tag { font-size: clamp(14px, 1.1vw, 16px); }
.vc-title { font-size: clamp(16px, 1.3vw, 19px); }
.sev-pill { font-size: 12px; padding: 4px 11px; }
.sev-pill.sev-LOW { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
/* P2 — SDLC ribbon legible */
.rib-stage .rib-t { font-size: 14px; } .rib-sub { font-size: 12px; } .rib-note { font-size: 13px; }

/* ════════ v3 (designer critique #2): proof-artifact polish ════════ */
/* P1 — the raw evidence (role:admin, HTTP status) scales + highlights */
.ar-ev, .ar-http { font-size: clamp(13px, 1vw, 16px); }
.ar-ev { line-height: 1.65; }
.ar-ev .tok { color: #ef4444; font-weight: 800; }
.ar-http .tok { color: #ef4444; font-weight: 800; }
.ar-http .tok-ok { color: #16a34a; font-weight: 800; }
/* P2 — diff payload token commands attention (bright text, thicker bar) */
.code .hl { background: rgba(248,113,113,.30); color: #fee2e2; box-shadow: inset 0 -3px 0 #ef4444; font-weight: 700; }
/* P2 — math exploit source no longer clipped at the new 16px */
.math-code { max-height: 460px; }

/* ════════ last-mile: fill whitespace with larger text (Ship + Find picker) ════════ */
/* Ship — "Nothing ships without your sign-off" */
.ship h1.act-title { font-size: clamp(38px, 4.8vw, 62px); }
.ship .lede { font-size: clamp(18px, 1.7vw, 25px); }
.ship .ship-grid { gap: 28px; max-width: 1080px; }
.ship .card { padding: 28px 30px; }
.ship .review-h { font-size: clamp(16px, 1.4vw, 20px); margin-bottom: 16px; }
.ship .review .row { padding: 15px 0; font-size: clamp(15px, 1.3vw, 18px); }
.ship .review .row .v { font-size: clamp(13px, 1.1vw, 16px); }
.ship .ev-item { padding: 15px 0; }
.ship .ev-ic { font-size: 27px; }
.ship .ev-item b { font-size: clamp(15px, 1.25vw, 18px); }
.ship .ev-item > div > span { font-size: clamp(13px, 1.1vw, 15.5px); }
.ship .review .btn.lg { font-size: clamp(15px, 1.3vw, 18px); padding: 15px 26px; }
.ship .review .btn.ghost { font-size: clamp(14px, 1.2vw, 16px); }
.ship .muted-note { font-size: clamp(13px, 1vw, 15.5px); margin-top: 20px; }

/* Find picker — "One scan of LoginBox flagged 15 vulnerabilities" */
.findland h1.act-title { font-size: clamp(38px, 4.6vw, 60px); }
.findland .lede { font-size: clamp(18px, 1.7vw, 25px); }
.findland .scan-num { font-size: clamp(64px, 5.4vw, 88px); }
.findland .scan-lbl { font-size: clamp(15px, 1.4vw, 19px); }
.findland .scan-sev .sev-pill { font-size: clamp(13px, 1.3vw, 17px); padding: 7px 15px; }
.findland .find-app .demo-cap { font-size: clamp(15px, 1.2vw, 18px); }
.findland .find-scan .muted-note { font-size: clamp(13px, 1.1vw, 15.5px); }
.findland .find-sub { font-size: clamp(19px, 1.9vw, 26px); }
.findland .vc-icon { font-size: clamp(32px, 2.8vw, 42px); }
.findland .vc-title { font-size: clamp(17px, 1.5vw, 22px); }
.findland .vc-tag { font-size: clamp(14px, 1.3vw, 17px); }
.findland .vc-go { font-size: clamp(13px, 1.1vw, 15.5px); }
.findland .vc-meta { font-size: clamp(12px, 1vw, 14px); }
.findland .sev-pill { font-size: clamp(11px, 1vw, 13px); }

/* final polish (designer critique #2 last item): instruction above the hero terminal */
.gcli-head { font-size: clamp(14px, 1vw, 16px); }

/* ════════ updates (00022 base): keynote scaling · bigger proof drawer · left nav drawer ════════ */
/* #2 — "Show the CLI proof" drawer: wider + larger text (shows the ENTIRE cm transcript) */
.drawer { width: 720px; }
.drawer pre { font-size: clamp(13.5px, 1vw, 16px); line-height: 1.7; }

/* #4 — hamburger button (top-left) */
.nav-burger { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; box-shadow: var(--sh-sm); }
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }

/* #4 — left navigation drawer */
.nav-scrim { position: fixed; inset: 0; background: rgba(6,11,23,.4); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 44; }
.nav-scrim.open { opacity: 1; pointer-events: auto; }
.nav-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 320px; max-width: 88vw; background: #fff;
  border-right: 1px solid var(--line); box-shadow: 16px 0 40px rgba(15,23,42,.14);
  transform: translateX(-100%); transition: transform .28s cubic-bezier(.22,.7,.2,1); z-index: 46;
  display: flex; flex-direction: column; }
.nav-drawer.open { transform: none; }
.nd-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nd-brand { font-weight: 800; font-size: 16px; letter-spacing: -.02em; display: flex; gap: 9px; align-items: center; }
.nd-brand .mk { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; background: var(--grad); box-shadow: var(--glow); }
.nd-head .x { margin-left: auto; cursor: pointer; background: none; border: none; color: var(--muted); font-size: 17px; }
.nd-head .x:hover { color: var(--ink); }
.nd-body { overflow: auto; padding: 14px 12px; flex: 1; }
.nd-sect { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 7px; }
.nd-step, .nd-vuln { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  border: 1px solid transparent; background: transparent; border-radius: 11px; padding: 11px 12px; font-size: 15px; font-weight: 650; color: var(--ink2); }
.nd-step:hover, .nd-vuln:hover { background: var(--bg2); color: var(--ink); }
.nd-step.current { background: rgba(37,99,235,.08); color: var(--ink); }
.nd-step.current .nd-ix { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.nd-step.done .nd-ix { background: var(--ok); color: #fff; }
.nd-ix { width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); color: var(--ink2); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.nd-vuln.active { background: rgba(37,99,235,.08); color: var(--ink); border-color: #dbe4ff; }
.nd-vic { font-size: 22px; flex-shrink: 0; }
.nd-vt { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--ink); }
.nd-sev { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; align-self: flex-start; }
.nd-sev.sev-CRITICAL { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.nd-sev.sev-HIGH { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.nd-links { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.nd-link { width: 100%; text-align: left; cursor: pointer; background: transparent; border: none; color: var(--ink2); font-size: 14px; font-weight: 650; padding: 10px 12px; border-radius: 10px; }
.nd-link:hover { background: var(--bg2); color: var(--ink); }
