@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/brand/fonts/PlusJakartaSans-VF.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #eef2f6;
  --paper-2: #e2e8ef;
  --ink: #0a1a33;
  --ink-2: #33445e;
  --muted: #5a6b82;
  --teal: #0fa3a3;
  --teal-ink: #0b7d7d;
  --signal: #d93a3f;
  /* Chrome DevTools, dark theme */
  --dt-bg: #202124;
  --dt-bar: #292a2d;
  --dt-line: #3c4043;
  --dt-text: #e8eaed;
  --dt-muted: #9aa0a6;
  --dt-red: #f28b82;
  --dt-red-bg: rgba(242, 139, 130, .12);
  --dt-blue: #8ab4f8;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--teal-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- top ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 22px 24px;
}
.brand img { display: block; height: 38px; width: auto; }
.status { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin: 0; }

/* ---------- stage ---------- */
.stage {
  margin: 0;
  background: var(--ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 40px 80px -40px rgba(10, 26, 51, .55);
}
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 10px; height: 450px; }

.browser { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.chrome { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #dfe3e8; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #b9c0c9; }
.url {
  flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0;
  background: #fff; border-radius: 99px; padding: 5px 12px; font-size: .78rem; color: #3c4043;
}
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewport { position: relative; flex: 1; background: #fbf7f2; overflow: hidden; }
.shot-wrap { position: relative; width: 100%; aspect-ratio: 1100 / 690; }
.viewport img { display: block; width: 100%; height: auto; transition: opacity .25s; }
.viewport img.off { opacity: 0; }
.loading { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--dt-blue); z-index: 2; }
.loading.run { animation: load 1.6s ease-out forwards; }
@keyframes load { to { width: 100%; opacity: 0; } }
.cursor {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 163, 163, .35); border: 2px solid var(--teal);
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; z-index: 3;
}
.cursor.show { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: transform .2s, opacity .2s; }
.cursor.press { transform: translate(-50%, -50%) scale(.7); }

/* DevTools */
.devtools {
  background: var(--dt-bg); color: var(--dt-text); border-radius: 10px; overflow: hidden;
  font: 12px/1.45 system-ui, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-height: 0;
}
.dt-tabs { display: flex; gap: 2px; background: var(--dt-bar); border-bottom: 1px solid var(--dt-line); padding: 0 6px; overflow: hidden; white-space: nowrap; }
.dt-tabs span { padding: 8px 9px; color: var(--dt-muted); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 5px; }
.dt-tabs span.on { color: var(--dt-text); border-bottom-color: var(--dt-blue); }
.dt-tabs span.bfc.on { border-bottom-color: var(--teal); }
.dt-choice { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--dt-line); color: var(--dt-muted); }
.dt-choice b { font-weight: 600; color: var(--dt-red); background: var(--dt-red-bg); padding: 1px 8px; border-radius: 99px; }
.dt-choice b.made { color: #81c995; background: rgba(129, 201, 149, .12); }
.dt-clock { margin-left: auto; font-family: var(--mono); color: var(--dt-text); }
.dt-pane { flex: 1; overflow: hidden; }
.dt-pane[hidden] { display: none; }

table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { text-align: left; font-weight: 500; color: var(--dt-muted); padding: 5px 8px; border-bottom: 1px solid var(--dt-line); background: var(--dt-bar); }
td { padding: 5px 8px; border-bottom: 1px solid #2c2d30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net th:nth-child(1) { width: 42%; }
.net th:nth-child(2), .net th:nth-child(3) { width: 13%; }
.net th:nth-child(4) { width: 12%; }
.net td:first-child, .cookies td { font-family: var(--mono); font-size: 11.5px; }
tr.row-in { animation: rowin .35s ease-out; }
@keyframes rowin { from { background: rgba(138, 180, 248, .25); } to { background: transparent; } }
tr.third td:first-child { color: var(--dt-text); }
tr.bad td { color: var(--dt-red); background: var(--dt-red-bg); }
.tag.note { color: var(--dt-muted); font-weight: 500; }
.tag { display: block; font: 600 10.5px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--dt-red); margin-top: 2px; white-space: normal; }
.bar { display: block; height: 6px; border-radius: 2px; background: var(--dt-blue); min-width: 3px; }
tr.bad .bar { background: var(--dt-red); }
.dt-sub { padding: 10px 8px 4px; color: var(--dt-muted); border-top: 1px solid var(--dt-line); margin-top: 12px; }
.cookies th:nth-child(1) { width: 30%; }
.cookies th:nth-child(4) { width: 22%; }
.dt-empty { margin: 0; padding: 10px 8px; color: var(--dt-muted); }
.dt-empty[hidden] { display: none; }

/* ButFirstConsent tab */
.bfc-pane { padding: 14px 16px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 12.5px; overflow: auto; }
.bfc-score { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.grade {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; background: var(--signal); color: #fff; transition: background .4s;
}
.grade.good { background: var(--teal); }
.score { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.score-note { color: var(--dt-muted); }
.findings { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.findings li { display: flex; gap: 8px; align-items: baseline; animation: rowin .35s ease-out; }
.sev { flex: none; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #3c4043; color: var(--dt-text); }
.sev.critical { background: var(--signal); color: #fff; }
.sev.medium { background: #8a6d1d; color: #fff; }
.claude { border-top: 1px solid var(--dt-line); padding-top: 10px; }
.claude[hidden], .verdict[hidden] { display: none; }
.claude-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.spark { width: 10px; height: 10px; border-radius: 50%; background: #d97757; box-shadow: 0 0 0 0 rgba(217, 119, 87, .6); animation: pulse 1.2s infinite; }
.spark.done { animation: none; background: #81c995; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(217, 119, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); } }
.changes { margin: 0 0 8px; padding-left: 16px; color: var(--dt-text); display: grid; gap: 3px; }
.diff { margin: 0; font: 11px/1.5 var(--mono); background: #17181a; border-radius: 6px; padding: 8px 10px; overflow: hidden; white-space: pre; max-height: 118px; }
.diff .del { color: var(--dt-red); display: block; }
.diff .add { color: #81c995; display: block; }
.claude-meta { margin: 6px 0 0; color: var(--dt-muted); }
.verdict { border-top: 1px solid var(--dt-line); padding-top: 10px; }
.verdict p { margin: 0 0 6px; }
.verdict .big { font-size: 15px; font-weight: 700; }
.verdict .fine { color: var(--dt-muted); }

/* stage bar */
.stage-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 6px 4px; color: #fff; }
.acts { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; counter-reset: act; }
.acts li { counter-increment: act; }
.acts button {
  font: 600 .82rem/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #9fb0c8; background: transparent;
  border: 1px solid #253a5c; border-radius: 99px; padding: 8px 12px; cursor: pointer; white-space: nowrap;
}
.acts button::before { content: counter(act) "  "; color: #8195b3; }
.acts button.on { color: var(--ink); background: #fff; border-color: #fff; }
.acts button.on::before { color: var(--teal-ink); }
.caption { margin: 0; font-size: 1rem; line-height: 1.4; min-height: 2.8em; display: flex; align-items: center; }
.play {
  font: 700 .9rem/1 "Plus Jakarta Sans", system-ui, sans-serif; background: var(--teal); color: #fff;
  border: 0; border-radius: 99px; padding: 11px 20px; cursor: pointer;
}
.provenance { color: var(--muted); font-size: .88rem; margin: 14px 4px 0; max-width: 80ch; }

/* ---------- how ---------- */
.how { max-width: 1240px; margin: 0 auto; padding: 40px 24px 72px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; margin: 0 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li:nth-child(3) { border-top-color: var(--teal); }
.steps li::before { content: counter(step); font-weight: 800; font-size: 1.6rem; color: var(--ink); display: block; margin-bottom: 4px; }
.steps li:nth-child(3)::before { color: var(--teal-ink); }
.steps h3 { font-size: 1.08rem; margin: 0 0 6px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.next { margin: 34px 0 0; color: var(--muted); font-size: .95rem; }

.foot { max-width: 1240px; margin: 0 auto; padding: 24px 24px 40px; border-top: 1px solid var(--paper-2); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; gap: 18px; }
  .stage-grid { grid-template-columns: 1fr; height: auto; }
  .viewport { aspect-ratio: 1100 / 690; flex: none; }
  .devtools { height: 420px; }
  .stage-bar { grid-template-columns: 1fr auto; }
  .acts { grid-column: 1 / -1; flex-wrap: wrap; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .top { padding: 16px; }
  .status { font-size: .8rem; text-align: right; }
  .brand img { height: 30px; }
  .hero, .how { padding-left: 16px; padding-right: 16px; }
  .stage { padding: 8px; border-radius: 14px; }
  .dt-extra { display: none !important; }
  .net th:nth-child(2), .net td:nth-child(2), .net th:nth-child(5), .net td:nth-child(5) { display: none; }
  .net th:nth-child(1) { width: 58%; }
  .steps { grid-template-columns: 1fr; }
  .foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Stage mode (?stage), for the live pitch: only the replay, at the top of the screen. */
.stage-mode .top, .stage-mode .hero-copy { display: none; }
.stage-mode .hero { padding-top: 12px; padding-bottom: 24px; }
