/* clawguard.aarvion.ai — the site speaks the console's language.
   Tokens lifted from the product's local console SPA: near-black canvas,
   one signal-cyan accent, semantic verdict colours, hairlines, 4px radius,
   mono-first. Display face: Martian Mono (self-hosted, variable). */

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #0a0b0d;
  --bg-raise: #101216;
  --bg-raise-2: #14161b;
  --bg-inset: #0d0f12;
  --bg-hover: #14171c;
  --line: #1c2027;
  --line-soft: #171a20;
  --ink: #e7e9ec;
  --ink-dim: #9aa1ab;
  --ink-mute: #7a8290;
  --ink-faint: #444a54;
  --accent: #2fd6c6;
  --accent-ink: #04120f;
  --accent-soft: rgba(47, 214, 198, 0.12);
  --accent-line: rgba(47, 214, 198, 0.36);
  --allow: #4ec98a;
  --allow-soft: rgba(78, 201, 138, 0.12);
  --allow-line: rgba(78, 201, 138, 0.34);
  --deny: #e5675f;
  --deny-soft: rgba(229, 103, 95, 0.12);
  --deny-line: rgba(229, 103, 95, 0.34);
  --ask: #e0a83c;
  --ask-soft: rgba(224, 168, 60, 0.12);
  --ask-line: rgba(224, 168, 60, 0.34);
  --radius: 4px;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --head: "Schibsted Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle, rgba(231, 233, 236, 0.024) 1px, transparent 1px);
  background-size: 28px 28px;
}

::selection { background: var(--accent-soft); color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  color: var(--ink-dim);
  white-space: nowrap;
}
pre code {
  white-space: pre;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; font-family: var(--mono); font-size: 12px;
  border-radius: var(--radius); z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

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

/* ---------------------------------------------------------------- marks */

.mark {
  display: inline-block; width: 14px; height: 14px;
  border: 1.5px solid var(--accent); border-radius: 3px;
  box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 4px var(--accent);
  flex: none;
}
.mark-sm { width: 11px; height: 11px; border-radius: 2px;
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3.2px var(--accent); }

/* ---------------------------------------------------------------- topbar */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.top-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 600; letter-spacing: 0.02em; }
.brand-sep { color: var(--ink-faint); }
.brand-sub { color: var(--ink-mute); }
.top-nav { display: flex; gap: 18px; align-items: center; }
.top-nav a:not(.btn) {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim);
}
.top-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }

/* ---------------------------------------------------------------- type */

h1 {
  font-family: var(--head);
  font-weight: 750;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; }

.lede {
  margin-top: 26px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-dim);
  max-width: 36em;
  text-wrap: pretty;
}

/* the phrase reads as console-selected text — our gesture, not a gradient */
.hl {
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 2px;
}

.kick {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-mute);
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 12px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-raise); color: var(--ink);
  cursor: pointer;
  transition: border-color 0.13s ease, background 0.13s ease, color 0.13s ease;
}
.btn:hover { border-color: #2a2f38; background: var(--bg-hover); text-decoration: none; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 600;
}
.btn-accent:hover { background: #45e2d2; border-color: #45e2d2; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.cta-center { justify-content: center; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -10%;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 214, 198, 0.07) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  position: relative;
}

.verdict-row {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) var(--pad) 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.verdict-item p { margin-top: 12px; font-size: 15px; color: var(--ink-dim); }
.verdict-item .chip { font-size: 13px; padding: 4px 12px; }

/* console fragment */
.console {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.console-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.console-title { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }
.console-task {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.console-task span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); margin-right: 6px;
}
.console-foot {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute);
  padding: 8px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.hero-console .console { border-color: rgba(47, 214, 198, 0.14); }
.console-title i { font-style: normal; color: var(--ink-faint); }
.live {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--allow);
  display: flex; align-items: center; gap: 6px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--allow);
  animation: pulse 1.6s ease-in-out infinite; }

.badge {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  background: var(--deny); color: #0a0b0d;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; font-variant-numeric: tabular-nums;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.feed { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.feed thead th {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-mute); text-align: left;
  padding: 9px 14px; background: var(--bg-inset);
  border-bottom: 1px solid var(--line-soft);
}
.feed tbody td {
  padding: 9px 14px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-dim); vertical-align: top;
}
.feed tbody tr:last-child td { border-bottom: none; }
.feed .num { text-align: right; font-variant-numeric: tabular-nums; }
.feed .is-hot { color: var(--ask); }

.feed tbody tr.row-in td { animation: rowin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.feed tbody tr.is-fresh td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.feed tbody tr.is-deny td:first-child { box-shadow: inset 2px 0 0 var(--deny); }
.feed tbody tr.is-ask td:first-child { box-shadow: inset 2px 0 0 var(--ask); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: lowercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-allow { color: var(--allow); background: var(--allow-soft); border: 1px solid var(--allow-line); }
.chip-deny  { color: var(--deny);  background: var(--deny-soft);  border: 1px solid var(--deny-line); }
.chip-ask   { color: var(--ask);   background: var(--ask-soft);   border: 1px solid var(--ask-line); }

/* the ask card */
.ask-card {
  margin: 12px; padding: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--ask-line); border-left-width: 2px;
  border-radius: var(--radius);
  animation: rowin 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ask-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ask-agent { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ask-arrow { color: var(--ink-faint); }
.ask-timer {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ask);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--ask-line); border-radius: 999px;
  padding: 2px 9px;
}
.ask-reason { margin: 10px 0 12px; font-size: 13.5px; color: var(--ink-dim); }
.ask-card-static .ask-reason { margin-bottom: 2px; }
.ask-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ask-actions .btn { padding: 8px 16px; font-size: 12px; }
.ask-actions .btn:not(.btn-accent):hover { border-color: var(--deny-line); color: var(--deny); }

.ask-after {
  margin: 0 14px 14px; padding: 10px 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute);
  background: var(--bg-inset); border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.ask-after b { color: var(--ink-dim); font-weight: 600; }

/* ---------------------------------------------------------------- features */

/* section bands — quiet chapter breaks: a slightly raised full-bleed surface
   with hairline edges. The body dot-grid disappears behind them, which is a
   second, subliminal cue that the chapter changed. */
.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(231, 233, 236, 0.015), rgba(231, 233, 236, 0) 160px),
    #0c0e12;
  margin-top: clamp(72px, 13vh, 150px);
  padding: clamp(64px, 10vh, 120px) 0;
}
.band > .feature,
.band > .answers { padding-top: 0; }
.band-cta {
  background:
    radial-gradient(ellipse 720px 520px at 50% 92%, rgba(47, 214, 198, 0.07), transparent 70%),
    #0c0e12;
}
/* the problem chapter runs warm: amber = warning, same semantic token as ask */
.band-problem {
  background:
    radial-gradient(ellipse 720px 420px at 78% 0%, rgba(224, 168, 60, 0.04), transparent 70%),
    #0c0e12;
}
.band-problem .skillfile-path { color: var(--ask); }
.band > .cta-band {
  border: 0;
  margin-top: clamp(64px, 10vh, 120px);
  padding-top: 0;
  padding-bottom: 0;
  background: none;
}
/* cards sit one elevation step above whichever surface they're on */
.band :is(.pack:not(.pack-etc), .tg, .console, .skillfile) {
  background: var(--bg-raise-2);
}

.feature {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) var(--pad) 0;
}
.feature-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.feature-media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature-copy p {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-dim);
}

.feature-intro { max-width: 60em; }
.feature-intro p {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-dim);
}
.feature-note {
  margin-top: 22px; max-width: 72ch;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute);
}

/* skill file figure */
.skillfile {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.skillfile-path {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  padding: 10px 16px; background: var(--bg-inset);
  border-bottom: 1px solid var(--line-soft);
}
.skillfile pre {
  padding: 20px 18px; font-family: var(--mono); font-size: 13px;
  line-height: 1.7; color: var(--ink); overflow-x: auto;
}
.skillfile .c { color: var(--ink-mute); }

/* ---------------------------------------------------------------- statement */

.statement {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 14vh, 170px) var(--pad) 0;
}
.statement p {
  font-family: var(--head); font-weight: 750;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- terminal */

.moment {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) var(--pad) 0;
}
.moment-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 30px; }
.moment-sub { font-size: 16px; color: var(--ink-dim); max-width: 44em; }

.term {
  background: #07080a; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--bg-inset);
  border-bottom: 1px solid var(--line-soft);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-title { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.term-replay {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  background: none; border: 1px solid var(--line); border-radius: 3px;
  padding: 4px 10px; cursor: pointer;
  transition: color 0.13s ease, border-color 0.13s ease;
}
.term-replay:hover { color: var(--accent); border-color: var(--accent-line); }
.term-body {
  padding: 24px clamp(18px, 3vw, 32px) 28px;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  line-height: 1.75;
  min-height: calc(6 * 1.75em + 52px);
  white-space: pre-wrap; word-break: break-word;
  color: var(--ink-dim);
}
.term-body .t-prompt { color: var(--ink); }
.term-body .t-dim { color: var(--ink-mute); }
.term-body .t-tool { color: var(--accent); }
.term-body .t-deny { color: var(--deny); font-weight: 600; }
.term-body .t-meta { color: var(--ink-mute); }
.term-body .t-ghost { color: var(--ink-faint); }

/* anatomy of the verdict the terminal just produced */
.specimen {
  margin-top: 14px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.specimen-title {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.specimen-grid {
  margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.spec-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.spec-cell:nth-child(3n) { border-right: 0; }
.spec-cell:nth-child(n + 4) { border-bottom: 0; }
.spec-cell dt {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.spec-cell dd {
  margin: 7px 0 0;
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.spec-cell dd code { white-space: nowrap; background: none; border: 0; padding: 0; color: var(--ink-dim); }
.term-body .cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--ink-dim); vertical-align: -2px;
  animation: pulse 1s steps(2, start) infinite;
}

/* ---------------------------------------------------------------- packs */

.pack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px; margin-top: 44px;
}
.pack {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-left-width: 2px; border-radius: var(--radius);
  padding: 16px 16px 14px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.pack[data-mode="off"] { border-left-color: var(--ink-faint); }
.pack[data-mode="off"] .pack-body { opacity: 0.55; }
.pack[data-mode="observe"] { border-left-color: var(--accent); }
.pack[data-mode="ask"] { border-left-color: var(--ask); }
.pack[data-mode="enforce"] { border-left-color: var(--deny); }

.pack-top { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.pack h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.pack-id {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}
.pack select {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-inset); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 5px 8px; cursor: pointer; flex: none;
}
.pack select:hover { border-color: #2a2f38; }
.pack-so {
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  color: var(--ink-dim); min-height: 48px;
}
.pack-so .so-label { color: var(--ink-faint); }

.pack-etc {
  border-style: dashed; border-left-width: 1px;
  background: transparent;
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px;
}
.pack-etc h3 { font-size: 15px; color: var(--ink-dim); }
.pack-etc p { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); }

/* ---------------------------------------------------------------- learn */

.learn-panel {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.panel-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 { font-size: 15px; }
.panel-head .btn { margin-left: auto; padding: 8px 14px; font-size: 12px; }

.learn-table tbody tr { transition: opacity 0.4s ease; }
.learn-panel.is-promoted .learn-table tbody tr { opacity: 0.45; }

.proposal { padding: 16px 18px 18px; background: var(--bg-inset); border-top: 1px solid var(--line-soft); }
.proposal-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-mute); margin-bottom: 12px;
}
.proposal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 6px 10px; background: var(--bg-raise);
  animation: rowin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.pchip:nth-child(2) { animation-delay: 0.07s; }
.pchip:nth-child(3) { animation-delay: 0.14s; }
.pchip:nth-child(4) { animation-delay: 0.21s; }
.pchip b { color: var(--ink); font-weight: 600; }
.pchip i {
  font-style: normal; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 2px; padding: 1px 5px; margin: 0 2px;
}
.pchip .m-enforce { color: var(--deny); border: 1px solid var(--deny-line); }
.pchip .m-ask { color: var(--ask); border: 1px solid var(--ask-line); }

/* ---------------------------------------------------------------- approvals */

.approve-media { display: flex; flex-direction: column; gap: 18px; }
.approve-console .ask-card-static { animation: none; }

.tg {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.tg-bar {
  padding: 11px 16px; font-family: var(--mono); font-size: 12px;
  color: var(--ink-dim); background: var(--bg-inset);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 8px;
}
.tg-bot {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent-line);
  border-radius: 2px; padding: 1px 5px;
}
.tg-msg { padding: 18px 16px 20px; font-size: 14px; color: var(--ink-dim); }
.tg-msg b { color: var(--ink); font-weight: 600; }
.tg-quote {
  margin: 12px 0; padding: 10px 14px;
  border-left: 2px solid var(--ask);
  background: var(--bg-inset); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.tg-btns { display: flex; gap: 10px; margin-top: 14px; }
.tg-btns[hidden] { display: none; }
.tg-btns button {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 12.5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 0; color: var(--ink-dim); background: var(--bg-inset);
  cursor: pointer;
  transition: border-color 0.13s ease, color 0.13s ease, background 0.13s ease;
}
#tg-approve:hover { border-color: var(--allow-line); color: var(--allow); background: var(--allow-soft); }
#tg-deny:hover { border-color: var(--deny-line); color: var(--deny); background: var(--deny-soft); }
.tg-result {
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: var(--ink-mute);
  animation: rowin 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.tg-result .tg-ok { color: var(--allow); font-weight: 600; }
.tg-result .tg-no { color: var(--deny); font-weight: 600; }

/* ---------------------------------------------------------------- audit */

.receipt-wrap {
  margin-top: 44px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-raise);
}
.receipts { min-width: 560px; }
.table-scroll { overflow-x: auto; }
.receipts tbody td { padding: 13px 16px; }
.receipts thead th { padding: 11px 16px; }
.rnote { display: block; margin-top: 4px; font-size: 10.5px; color: var(--ink-mute); }
.receipts code { white-space: nowrap; }

/* ---------------------------------------------------------------- answers */

.answers {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) var(--pad) 0;
}
.answers-grid {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.answer h3 { font-size: 17px; }
.answer p { margin-top: 10px; font-size: 15.5px; color: var(--ink-dim); }

/* ---------------------------------------------------------------- cta band */

.cta-band {
  max-width: var(--maxw); margin: clamp(80px, 14vh, 160px) auto 0;
  padding: clamp(56px, 9vh, 96px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(47, 214, 198, 0.05), transparent);
}
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); }
.cta-cmd {
  margin: 28px auto 0; display: inline-block;
  padding: 14px 22px;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: 6px;
}
.cta-cmd code {
  background: none; border: 0; padding: 0;
  font-size: clamp(12.5px, 1.6vw, 15px); color: var(--ink);
  white-space: normal; word-break: break-word;
}
.cta-sub { margin: 18px auto 0; font-size: 15px; color: var(--ink-mute); max-width: 44em; }
.cta-band .cta-row { margin-top: 30px; }

/* ---------------------------------------------------------------- footer */

.foot { margin-top: 0; }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 44px var(--pad) 46px;
  display: flex; flex-direction: column; gap: 30px;
}
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
}
.foot-cols { display: flex; gap: clamp(36px, 6vw, 88px); flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-h {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); margin-bottom: 3px;
}
.foot-col a { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim);
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.foot-links a:hover { color: var(--accent); text-decoration: none; }
.foot-note { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

/* ---------------------------------------------------------------- reveal */

.feature-grid, .feature-intro, .pack-grid, .receipt-wrap, .verdict-row,
.statement p, .moment-head, .term, .answers-grid, .cta-band {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.is-seen { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; }
  .verdict-row { grid-template-columns: 1fr; gap: 22px; padding-top: 48px; }
  .feature-grid, .feature-media-left { grid-template-columns: 1fr; gap: 26px; }
  .feature-media-left .learn-panel { order: 2; }
  .feature-media-left .feature-copy { order: 1; }
  .answers-grid { grid-template-columns: 1fr; }
  .feature, .moment, .answers { padding-top: 72px; }
  .statement { padding-top: 80px; }
  .cta-band { margin-top: 80px; padding-top: 56px; padding-bottom: 56px; }
  .moment-head { margin-bottom: 22px; }
  .pack-grid, .receipt-wrap { margin-top: 28px; }
}
@media (max-width: 700px) {
  .nav-xtra { display: none; }
  .specimen-grid { grid-template-columns: 1fr; }
  .spec-cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .spec-cell:last-child { border-bottom: 0; }
  .foot-top { flex-direction: column; gap: 26px; }
}
@media (max-width: 560px) {
  .brand-sep, .brand-sub { display: none; }
  #hero-console .feed thead th:nth-child(4),
  #hero-console .feed tbody td:nth-child(4) { display: none; }
  .learn-table { min-width: 0; }
  .learn-table th:nth-child(4), .learn-table td:nth-child(4) { display: none; }
  /* right-edge fade = "there's more, scroll" */
  .receipt-wrap, .table-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .ask-actions { justify-content: stretch; }
  .ask-actions .btn { flex: 1; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .feed thead th, .feed tbody td { padding: 8px 10px; }
  .hero-grid { padding-top: 36px; }
  .top-inner { padding-top: 10px; padding-bottom: 10px; }
  .panel-head { padding: 12px 14px; }
  .cta-cmd { padding: 12px 14px; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .feature-grid, .feature-intro, .pack-grid, .receipt-wrap, .verdict-row,
  .statement p, .moment-head, .term, .answers-grid, .cta-band {
    opacity: 1; transform: none;
  }
}
