/* Refinery — getrefinery.nl
   Design system. Dark ground, mint accent, verdict-led semantics.
   Static site: no build step, no external fonts, no trackers. */

:root {
  color-scheme: dark;

  --bg: #070a0a;
  --bg-soft: #0a0f10;
  --panel: #0d1414;
  --panel-2: #111a19;
  --panel-3: #16211f;

  --line: rgba(226, 244, 237, 0.11);
  --line-2: rgba(226, 244, 237, 0.2);
  --line-accent: rgba(119, 244, 184, 0.3);

  --text: #f4f8f6;
  --muted: #93a49d;
  --muted-2: #b9c6c1;

  --accent: #77f4b8;
  --accent-2: #42d895;
  --accent-ink: #052015;

  /* Verdict semantics — the core visual language of the product. */
  --ok: #77f4b8;
  --ok-bg: rgba(119, 244, 184, 0.1);
  --ok-line: rgba(119, 244, 184, 0.36);

  --warn: #f4c96b;
  --warn-bg: rgba(244, 201, 107, 0.1);
  --warn-line: rgba(244, 201, 107, 0.36);

  --stop: #ff8d9b;
  --stop-bg: rgba(255, 141, 155, 0.1);
  --stop-line: rgba(255, 141, 155, 0.36);

  --violet: #9a8cff;

  --max: 1140px;
  --narrow: 760px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 60rem 30rem at 12% -6%, rgba(119, 244, 184, 0.07), transparent 70%),
    radial-gradient(ellipse 50rem 26rem at 96% 6%, rgba(154, 140, 255, 0.06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.021em;
  font-weight: 600;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow { max-width: var(--narrow); }

section { padding: clamp(3.6rem, 8vw, 6.4rem) 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.05rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-head { max-width: 40rem; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.section-head p {
  margin-top: 1rem;
  color: var(--muted-2);
  font-size: 1.03rem;
}

.lede {
  color: var(--muted-2);
  font-size: clamp(1.03rem, 1.9vw, 1.2rem);
  line-height: 1.62;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 10, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.brand svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.92rem;
}
.nav-links a { color: var(--muted-2); transition: color 0.18s; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-accent); background: rgba(119, 244, 184, 0.06); }

.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.93rem;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- status pill ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

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

.hero { padding-top: clamp(3rem, 7vw, 5.2rem); }
.hero h1 {
  margin-top: 1.35rem;
  font-size: clamp(2.4rem, 6.2vw, 4.05rem);
  letter-spacing: -0.033em;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede { margin-top: 1.5rem; max-width: 41rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); content: "";
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* The headline shares its row with the visual, so it scales against the
   column rather than the viewport. */
.hero-grid h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.hero-grid .lede { max-width: 34rem; }

.viz {
  position: relative;
  padding: 1.3rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(119, 244, 184, 0.055), transparent 44%),
    var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.05rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.viz-run {
  color: var(--accent);
  transition: color 0.3s;
}

/* consumer + travelling request */
.viz-consumer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.viz-avatar {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 0.72rem;
}

.viz-track {
  position: relative;
  height: 3.9rem;
  margin: 0.3rem 0 0.3rem 0.82rem;
  border-left: 1px dashed var(--line-2);
}
.viz-packet {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-0.55rem, 0);
  transition: opacity 0.4s ease, transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.viz.is-sending .viz-packet {
  opacity: 1;
  transform: translate(-0.55rem, 1.45rem);
}
.viz.is-landed .viz-packet {
  opacity: 0;
  transform: translate(-0.55rem, 2.15rem);
}

/* gate + checks */
.viz-gate {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-2);
  transition: border-color 0.4s;
}
.viz.is-ok .viz-gate   { border-color: var(--ok-line); }
.viz.is-stop .viz-gate { border-color: var(--stop-line); }

.viz-gate-title {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.viz-checks { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.viz-checks li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
  transition: color 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
}
.viz-checks li .viz-mark {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.3s;
}
.viz-checks li.is-active {
  border-color: var(--line-2);
  color: var(--muted-2);
}
.viz-checks li.is-pass {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}
.viz-checks li.is-fail {
  border-color: var(--stop-line);
  background: var(--stop-bg);
  color: var(--stop);
}
.viz-checks li.is-skip { opacity: 0.34; }
.viz-checks li.is-pass .viz-mark,
.viz-checks li.is-fail .viz-mark,
.viz-checks li.is-skip .viz-mark { opacity: 1; }

/* verdict — the panel keeps a constant height across runs so the hero never
   reflows mid-loop, and shows a pending line instead of sitting empty. */
.viz-out {
  display: grid;
  align-content: start;
  min-height: 8.6rem;
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.4s;
}
.viz.is-ok   .viz-out { border-color: var(--ok-line); }
.viz.is-stop .viz-out { border-color: var(--stop-line); }

.viz-pending {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
}
.viz-pending::after {
  content: "";
  animation: viz-ellipsis 1.4s steps(4, end) infinite;
}
@keyframes viz-ellipsis {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}
.viz.is-decided .viz-pending { display: none; }

.viz-result {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.viz.is-decided .viz-result { opacity: 1; transform: none; }

.viz-verdict-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.viz-reason {
  margin-top: 0.5rem;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.5;
}
.viz-payload {
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  word-break: break-word;
}
.viz-payload .k { color: var(--violet); }
.viz-payload .s { color: var(--accent); }

.viz-next {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.viz-next a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.viz-foot {
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- per-page hero panels ----------
   Static CSS diagrams sharing the .viz shell. One small animated accent each;
   no layout changes over time, so no page ever reflows while it sits there. */

.panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.46rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.panel-row .n { color: var(--muted); font-size: 0.66rem; }
.panel-row .tag { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; }
.panel-stack { display: grid; gap: 0.34rem; }

.panel-row.ok   { border-color: var(--ok-line);   background: var(--ok-bg);   color: var(--ok); }
.panel-row.stop { border-color: var(--stop-line); background: var(--stop-bg); color: var(--stop); }
.panel-row.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }

/* product — six checks forking into three outcomes */
.panel-fork {
  height: 1.5rem;
  margin: 0.5rem 0 0.5rem 0.85rem;
  border-left: 1px dashed var(--line-2);
}
.panel-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.panel-outcome {
  padding: 0.62rem 0.4rem;
  border: 1px solid;
  border-radius: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.panel-outcome.ok   { border-color: var(--ok-line);   background: var(--ok-bg);   color: var(--ok); }
.panel-outcome.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.panel-outcome.stop { border-color: var(--stop-line); background: var(--stop-bg); color: var(--stop); }
.panel-outcome span { display: block; margin-top: 0.25rem; font-size: 0.6rem; opacity: 0.72; letter-spacing: 0.04em; text-transform: none; }
.panel-outcome { animation: panel-breathe 6s ease-in-out infinite; }
.panel-outcome:nth-child(2) { animation-delay: 2s; }
.panel-outcome:nth-child(3) { animation-delay: 4s; }
@keyframes panel-breathe {
  0%, 74%, 100% { transform: none; filter: none; }
  12%, 26% { transform: translateY(-2px); filter: brightness(1.28); }
}

/* trust — the refusal wall */
.panel-divider {
  margin: 0.6rem 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel-row.is-pulse { animation: panel-pulse 3.4s ease-in-out infinite; }
@keyframes panel-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(119, 244, 184, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(119, 244, 184, 0.11); }
}

/* pilot — the access timeline and its release gate */
.panel-timeline { display: grid; gap: 0.3rem; }
.panel-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}
.panel-step .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.panel-step.free .dot { background: var(--accent); }
.panel-step.free { border-color: var(--line-accent); color: var(--text); }
.panel-step .price { color: var(--muted); font-size: 0.68rem; }
.panel-step.locked { opacity: 0.62; }
.panel-gate {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin: 0.45rem 0;
  padding: 0.55rem 0.62rem;
  border: 1px dashed var(--stop-line);
  border-radius: 9px;
  background: var(--stop-bg);
  color: var(--stop);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: panel-pulse-stop 3.6s ease-in-out infinite;
}
@keyframes panel-pulse-stop {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 141, 155, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 141, 155, 0.1); }
}

/* about — the missing step */
.panel-lane { padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); }
.panel-lane + .panel-lane { margin-top: 0.6rem; }
.panel-lane.good { border-color: var(--ok-line); }
.panel-lane-label {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel-chain { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.panel-node {
  padding: 0.34rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  white-space: nowrap;
}
.panel-node.accent { border-color: var(--line-accent); background: var(--ok-bg); color: var(--accent); }
.panel-arrow { color: var(--muted); font-size: 0.72rem; }
.panel-result {
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.69rem;
}
.panel-result.bad  { color: var(--stop); }
.panel-result.good { color: var(--ok); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .viz { margin-top: 0.6rem; }
}

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.card h3 { margin-bottom: 0.65rem; font-size: 1.08rem; }
.card p { color: var(--muted-2); font-size: 0.94rem; }
.card .kicker {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-quiet { background: transparent; }

/* numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--accent);
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.step p { color: var(--muted-2); font-size: 0.94rem; }

/* ---------- verdicts ---------- */

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.verdict::before { width: 7px; height: 7px; border-radius: 50%; content: ""; }

.verdict.ok   { border-color: var(--ok-line);   background: var(--ok-bg);   color: var(--ok); }
.verdict.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.verdict.stop { border-color: var(--stop-line); background: var(--stop-bg); color: var(--stop); }

.verdict.ok::before   { background: var(--ok); }
.verdict.warn::before { background: var(--warn); }
.verdict.stop::before { background: var(--stop); }

.card-verdict { border-top: 2px solid; }
.card-verdict.ok   { border-top-color: var(--ok-line); }
.card-verdict.warn { border-top-color: var(--warn-line); }
.card-verdict.stop { border-top-color: var(--stop-line); }

/* ---------- checklists ---------- */

.checks { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.checks li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted-2);
  font-size: 0.94rem;
}
.checks li::before {
  margin-top: 0.5rem;
  width: 1.15rem;
  height: 1px;
  background: var(--line-accent);
  content: "";
}
.checks.yes li::before { background: var(--ok); }
.checks.no li::before { background: var(--stop); }

/* ---------- claim table ---------- */

.table-scroll { overflow-x: auto; }
table.claims {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.claims th,
table.claims td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.claims th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
table.claims td { color: var(--muted-2); }
table.claims td:first-child { color: var(--text); font-weight: 550; }

/* ---------- console (demo + hero visual) ---------- */

.console {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(119, 244, 184, 0.05), transparent 40%),
    var(--panel);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-body { padding: 1.35rem; }

/* scenario chooser */
.scenarios {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scenario {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.scenario:hover { border-color: var(--line-2); }
.scenario[aria-pressed="true"] {
  border-color: var(--line-accent);
  background: var(--ok-bg);
}
.scenario .scenario-title { display: block; font-size: 0.94rem; font-weight: 600; }
.scenario .scenario-sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

/* request summary */
.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.request-grid dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.request-grid dd {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  word-break: break-word;
}

/* evaluation trace */
.trace { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.trace li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.trace li.is-in { opacity: 1; transform: none; }
.trace .trace-name { font-size: 0.9rem; }
.trace .trace-detail {
  grid-column: 2 / -1;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.trace .trace-idx {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.trace .trace-mark { font-family: var(--mono); font-size: 0.76rem; font-weight: 600; }
.trace .trace-mark.ok   { color: var(--ok); }
.trace .trace-mark.warn { color: var(--warn); }
.trace .trace-mark.stop { color: var(--stop); }

/* outcome panel */
.outcome {
  margin-top: 1.1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-3);
}
.outcome.ok   { border-color: var(--ok-line); }
.outcome.warn { border-color: var(--warn-line); }
.outcome.stop { border-color: var(--stop-line); }
.outcome h3 { margin: 0.8rem 0 0.5rem; font-size: 1.08rem; }
.outcome p { color: var(--muted-2); font-size: 0.93rem; }

.payload {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.34);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.payload .k { color: var(--violet); }
.payload .s { color: var(--accent); }

.repair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.demo-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.83rem;
}

/* ---------- split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.price-card.is-featured {
  border-color: var(--line-accent);
  background: linear-gradient(180deg, rgba(119, 244, 184, 0.06), transparent 46%), var(--panel);
}
.price-card .price-name { font-size: 1.05rem; font-weight: 600; }
.price-card .price-value {
  margin: 0.75rem 0 0.15rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.price-card .price-unit { color: var(--muted); font-size: 0.85rem; }
.price-card ul { margin: 1.2rem 0 0; }
.price-card .price-foot {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--muted-2); font-size: 0.85rem; font-weight: 550; }
.field label span { color: var(--muted); font-weight: 400; }

.field input,
.field textarea,
.field select {
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6f807a; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--line-accent); outline: none; }

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted-2);
  font-size: 0.86rem;
}
.consent input { margin-top: 0.28rem; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status { color: var(--muted); font-size: 0.87rem; }
.form-status[data-state="success"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--stop); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.6rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-accent); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  content: "+";
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; }
.faq .faq-body p { color: var(--muted-2); font-size: 0.95rem; }
.faq .faq-body p + p { margin-top: 0.75rem; }
.faq .faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- callout ---------- */

.callout {
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--muted-2);
  font-size: 0.94rem;
}
.callout strong { color: var(--text); }
.callout.warn { border-left-color: var(--warn); }

/* ---------- CTA band ---------- */

.cta-band {
  padding: clamp(2.2rem, 5vw, 3.4rem);
  border: 1px solid var(--line-accent);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 40rem 18rem at 20% 0%, rgba(119, 244, 184, 0.11), transparent 70%),
    var(--panel);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
.cta-band p { margin: 1rem auto 0; max-width: 38rem; color: var(--muted-2); }
.cta-band .hero-actions { justify-content: center; }

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

.site-footer {
  padding: 3rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.footer-top p { max-width: 26rem; margin-top: 0.9rem; }
.footer-col h4 {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
}

/* ---------- breadcrumb ---------- */

.crumb {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}
.crumb a:hover { color: var(--text); }

/* ---------- prose ---------- */

.prose h2 { margin: 2.4rem 0 0.9rem; font-size: 1.35rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; font-size: 1.05rem; }
.prose p, .prose li { color: var(--muted-2); font-size: 0.96rem; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 0.9rem 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

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

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 10, 0.97);
    backdrop-filter: blur(14px);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-header { position: relative; }
  .header-cta .btn { display: none; }
}

@media (max-width: 540px) {
  /* The hero panels carry mono labels plus a right-hand tag; tighten them so a
     long row cannot force the page to scroll sideways on a phone. */
  .panel-row, .panel-step { gap: 0.45rem; padding: 0.42rem 0.5rem; font-size: 0.66rem; }
  .panel-row .tag, .panel-step .price { font-size: 0.57rem; }
  .panel-outcome { font-size: 0.57rem; letter-spacing: 0.05em; }
  .panel-outcome span { font-size: 0.53rem; }
  .panel-gate { font-size: 0.6rem; }
  .panel-node { font-size: 0.62rem; padding: 0.28rem 0.45rem; }
  .panel-result { font-size: 0.63rem; }
  .viz { padding: 0.95rem; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; }
  .request-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .console-body { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .trace li { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cta-band { display: none; }
}
