/*
 * Noetfield Runway — landing + cockpit.
 *
 * One palette. The page used to carry two: a mint/teal set in :root that the hero and brand read
 * from, and an indigo set hardcoded into every card, button and panel. Two accent families on one
 * page is what made a technically careful product look assembled rather than designed, so every
 * surface colour below resolves to a token and there is exactly one accent family.
 *
 * Manrope carries prose and UI. Space Mono carries machine data — run ids, hashes, log lines,
 * contract names — so anything a machine produced is visually distinct from anything we wrote.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Surfaces, darkest to lightest */
  --ink-900: #04080c;
  --ink-800: #070e14;
  --ink-700: #0a141b;
  --surface: rgba(9, 19, 26, 0.66);
  --surface-raised: rgba(13, 27, 35, 0.84);
  --surface-sunken: rgba(3, 8, 12, 0.78);

  /* Hairlines carry structure; the page has almost no heavy borders. */
  --hairline: rgba(126, 200, 184, 0.15);
  --hairline-strong: rgba(126, 200, 184, 0.34);

  --text: #e6f1ee;
  --text-dim: #9db3af;
  --text-faint: #78908c;

  --accent: #3fd4a8;
  --accent-bright: #6ff0c6;
  --accent-soft: rgba(63, 212, 168, 0.13);
  --accent-ink: #032018;

  --ok: #47f3a5;
  --warning: #ffcc77;
  --bad: #ff6b87;

  /* Legacy aliases still referenced from app.js inline styles. */
  --bg: var(--ink-800);
  --muted: var(--text-dim);
  --line: var(--hairline);
  --panel: var(--surface);
  --brand-ink: #d7efe8;

  /* Fluid type scale */
  --step--2: clamp(0.7rem, 0.68rem + 0.1vw, 0.76rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(0.97rem, 0.94rem + 0.16vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.45vw, 2.55rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.3vw, 4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.35rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.8);
  --shadow: var(--shadow-md);

  --motion-fast: 160ms;
  --motion: 240ms;
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);

  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(45, 132, 116, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 88% 62%, rgba(30, 84, 78, 0.2) 0%, transparent 48%),
    linear-gradient(180deg, #061219 0%, var(--ink-800) 46%, var(--ink-900) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
a,
li,
button,
dl,
dd,
dt,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

code,
pre {
  font-family: var(--mono);
}

::selection {
  background: rgba(63, 212, 168, 0.3);
  color: #f2fffa;
}

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

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

main {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ─── Ambient layers ─────────────────────────────────────────────────────── */

.bg-plane {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(8, 30, 34, 0.85) 0%, transparent 44%),
    linear-gradient(0deg, rgba(3, 8, 12, 0.6), transparent 42%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--space-3);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 60px;
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: rgba(5, 13, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.brand {
  font-weight: 800;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-ink);
  white-space: nowrap;
}

.nav-status {
  flex: 1 1 8rem;
  min-width: 0;
}

.status-quiet {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a:not(.btn) {
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--text);
  background: rgba(126, 200, 184, 0.08);
}

.nav-cta {
  flex: none;
  padding: 0.55rem 0.95rem;
  font-size: var(--step--1);
}

/* Retired sticky promo bars; markup no longer emits them. */
.trust-strip,
.sticky-cta {
  display: none !important;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn,
.btn-soft {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.72rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition:
    transform var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease);
}

.btn {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: rgba(111, 240, 198, 0.6);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(63, 212, 168, 0.7);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(63, 212, 168, 0.85);
}

.btn:active {
  transform: translateY(0);
}

.btn-soft {
  background: rgba(126, 200, 184, 0.07);
  border-color: var(--hairline-strong);
  color: var(--text);
  box-shadow: none;
}

.btn-soft:hover,
.btn-soft:focus-visible {
  transform: translateY(-1px);
  background: rgba(126, 200, 184, 0.13);
  border-color: rgba(126, 200, 184, 0.5);
}

.btn[disabled],
.btn-soft[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-small,
.btn-small.btn-soft {
  padding: 0.5rem 0.8rem;
  font-size: var(--step--2);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero-bleed {
  padding: clamp(var(--space-6), 7vw, var(--space-9)) 0 var(--space-7);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: center;
}

.hero-copy {
  max-width: 40rem;
  animation: heroRise 0.7s var(--ease) both;
}

.brand-mark {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero-bleed h1 {
  margin-bottom: var(--space-4);
}

.hero-bleed .lead {
  font-size: var(--step-1);
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* The above-the-fold attestation card. Every value in it comes from the runtime over the wire. */
.hero-proof {
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(14, 32, 40, 0.72), rgba(6, 14, 20, 0.86));
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  animation: heroRise 0.7s var(--ease) 0.08s both;
}

.hero-proof-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline);
}

.hero-proof-head h2 {
  flex: 1;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
  background: var(--text-faint);
}

.hero-proof-dot.is-live {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(71, 243, 165, 0.16);
}

.hero-proof-dot.is-down {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(255, 204, 119, 0.16);
}

.hero-proof-state {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
}

.hero-proof-grid dt {
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}

.hero-proof-grid dd {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--text);
  overflow-wrap: anywhere;
}

.hero-proof-foot {
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  font-size: var(--step--2);
  color: var(--text-faint);
}

.hero-proof-foot a {
  font-family: var(--mono);
  color: var(--accent);
  border-bottom: 1px solid rgba(63, 212, 168, 0.3);
}

.hero-proof-foot a:hover {
  border-bottom-color: var(--accent);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-bootstrap-notice {
  margin: var(--space-3) auto var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  color: var(--text-dim);
  text-align: center;
  font-size: var(--step--1);
}

.landing-bootstrap-notice.hidden {
  display: none;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.section {
  margin: var(--space-8) 0 0;
  scroll-margin-top: 6rem;
}

.section-title {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.section-title h2 {
  margin-bottom: var(--space-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-subtitle,
.lead {
  color: var(--text-dim);
  max-width: 60ch;
}

.section-subtitle {
  margin-bottom: var(--space-4);
}

.muted {
  color: var(--text-dim);
  font-size: var(--step--1);
}

/* ─── Cards (shared) ─────────────────────────────────────────────────────── */

.kpi-band,
.feature-grid,
.pricing-grid,
.faq-grid,
.problem-solution,
.proof-grid,
.workflow-rail {
  display: grid;
  gap: var(--space-4);
}

.kpi-band article,
.feature-card,
.problem-card,
.rail-step,
.price-card,
.faq-grid article,
.proof-card,
.proof-contract {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--space-5);
  transition: border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.problem-card:hover,
.proof-card:hover,
.faq-grid article:hover {
  border-color: var(--hairline-strong);
}

.kpi-band h3,
.feature-card h3,
.problem-card h3,
.rail-step h3,
.price-card h3,
.proof-card h3,
.faq-grid h3 {
  margin-bottom: var(--space-2);
}

.kpi-band p,
.feature-card p,
.problem-card p,
.rail-step p,
.price-card p,
.faq-grid p,
.proof-card p {
  color: var(--text-dim);
  font-size: var(--step--1);
}

.proof-card ul,
.price-card ul {
  margin: var(--space-3) 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--text);
  font-size: var(--step--1);
}

.proof-card li,
.price-card li {
  position: relative;
  padding-left: 1.35rem;
}

.proof-card li::before,
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.75;
}

.kpi-band,
.problem-solution,
.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Cockpit ────────────────────────────────────────────────────────────── */

.control-surface {
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(13, 30, 38, 0.6), rgba(6, 13, 19, 0.86));
  padding: clamp(var(--space-4), 2.4vw, var(--space-6));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.surface-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline);
}

.surface-head h2 {
  flex: 1 1 auto;
  font-size: var(--step-1);
  min-width: 10rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.status-indicator strong {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
  display: inline-block;
  background: var(--ok);
}

.control-surface.running #statusDot {
  animation: runPulse 1.1s var(--ease) infinite;
}

@keyframes runPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.trust-pill {
  flex: none;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--hairline-strong);
  background: rgba(126, 200, 184, 0.07);
  color: var(--text);
}

.trust-pill.mode-live {
  border-color: rgba(71, 243, 165, 0.55);
  background: rgba(19, 48, 36, 0.7);
  color: var(--ok);
}

.trust-pill.mode-local-replay {
  border-color: var(--hairline-strong);
  background: rgba(14, 32, 38, 0.7);
  color: var(--text-dim);
}

.trust-pill.mode-offline {
  border-color: rgba(255, 204, 119, 0.5);
  background: rgba(52, 38, 14, 0.7);
  color: var(--warning);
}

.trust-line {
  color: var(--text);
  font-size: var(--step--1);
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-soft);
}

.mode-legend {
  font-size: var(--step--1);
  color: var(--text-dim);
}

.mode-legend summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.2rem 0;
}

.mode-legend summary::-webkit-details-marker {
  display: none;
}

.mode-legend summary::before {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
}

.mode-legend[open] summary::before {
  content: "−";
}

.mode-legend p {
  margin-top: var(--space-2);
  padding-left: var(--space-4);
  border-left: 1px solid var(--hairline);
  font-size: var(--step--2);
  line-height: 1.7;
}

.mode-legend strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95em;
}

.scenario-meta {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-4);
  background: var(--surface-sunken);
  display: grid;
  gap: var(--space-3);
}

.scenario-meta p {
  color: var(--text-dim);
  font-size: var(--step--1);
}

.scenario-meta p strong {
  color: var(--text);
}

.scenario-meta-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  /* Without this every metric card grows to match the tallest, and the risk envelope — which is a
     sentence, not a number — inflated the whole row into a band of empty boxes. */
  align-items: start;
}

.scenario-metric {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--space-3);
  background: rgba(126, 200, 184, 0.04);
}

.scenario-metric small {
  display: block;
  color: var(--text-faint);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.scenario-metric strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 700;
}

/* The risk envelope is prose. It gets the width of a paragraph and the typeface of one. */
.scenario-metric-wide {
  grid-column: span 2;
}

.scenario-metric-wide strong {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dim);
}

.scenario-legend {
  color: var(--text-faint);
  font-size: var(--step--2);
}

.scenario-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.scenario-btn {
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(126, 200, 184, 0.04);
  color: var(--text-dim);
  font-size: var(--step--1);
  font-weight: 600;
  transition:
    color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease);
}

.scenario-btn:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
}

.scenario-btn.active {
  border-color: rgba(63, 212, 168, 0.6);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.control-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.run-kpi-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  align-items: start;
}

.run-kpi-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-3);
  background: var(--surface-raised);
  display: grid;
  gap: 0.2rem;
}

.run-kpi-card small {
  color: var(--text-faint);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.run-kpi-card strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--step-0);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Run state is a sentence ("Completed · Graph Studio chain ACCEPTED"), not a measurement. In the
   monospace measurement face it wrapped to four lines and dragged the whole KPI row taller. */
#runState {
  font-family: inherit;
  font-size: var(--step--1);
  line-height: 1.35;
}

/* ─── Run log ────────────────────────────────────────────────────────────── */

.stream {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  padding: var(--space-3);
  min-height: 13rem;
  max-height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 1px;
  font-family: var(--mono);
  font-size: var(--step--2);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.stream::-webkit-scrollbar {
  width: 8px;
}

.stream::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 999px;
}

.stream.loading {
  border-color: rgba(63, 212, 168, 0.35);
}

.stream-entry {
  display: grid;
  gap: var(--space-3);
  /* Wide enough for the longest node kind the graph emits (ROLEPOD_MEMORYSTEWARD); narrower and it
     broke mid-word, which reads as corruption in a log. */
  grid-template-columns: minmax(10.5rem, 13rem) minmax(10rem, 4fr) auto;
  align-items: baseline;
  padding: 0.45rem var(--space-2);
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  animation: streamIn 220ms var(--ease) both;
}

.stream-entry:nth-child(odd) {
  background: rgba(126, 200, 184, 0.028);
}

@keyframes streamIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stream-phase {
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--step--2);
  overflow-wrap: anywhere;
}

.stream-text {
  color: var(--text);
  overflow-wrap: anywhere;
}

.stream-timing {
  color: var(--text-faint);
  font-size: var(--step--2);
  white-space: nowrap;
}

.stream-entry.ok {
  border-left-color: rgba(71, 243, 165, 0.5);
}

.stream-entry.ok .stream-phase {
  color: var(--ok);
}

.stream-entry.warn {
  border-left-color: rgba(255, 204, 119, 0.55);
  background: rgba(255, 204, 119, 0.05);
}

.stream-entry.warn .stream-phase,
.stream-entry.warn .stream-text {
  color: var(--warning);
}

.stream-entry.fail {
  border-left-color: rgba(255, 107, 135, 0.6);
  background: rgba(255, 107, 135, 0.06);
}

.stream-entry.fail .stream-phase,
.stream-entry.fail .stream-text {
  color: var(--bad);
}

.stream-skeleton {
  padding: var(--space-2);
  color: var(--text-faint);
  animation: streamPulse 1.4s var(--ease) infinite;
}

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

/* ─── Receipt ────────────────────────────────────────────────────────────── */

.receipt-panel {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  background: var(--surface-raised);
}

.receipt-panel.receipt-appear {
  animation: receiptIn 0.4s var(--ease) both;
}

@keyframes receiptIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline);
}

.receipt-panel h3 {
  flex: 1 1 auto;
  font-size: var(--step-0);
  min-width: 9rem;
}

.receipt-run-id {
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

/* The one chip that answers "has this been checked?" without reading any JSON. */
.verify-verdict {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(126, 200, 184, 0.05);
}

.verify-verdict::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.verify-verdict.is-pending {
  color: var(--warning);
  border-color: rgba(255, 204, 119, 0.45);
  background: rgba(255, 204, 119, 0.08);
}

.verify-verdict.is-pass {
  color: var(--ok);
  border-color: rgba(71, 243, 165, 0.55);
  background: rgba(71, 243, 165, 0.1);
}

.verify-verdict.is-fail {
  color: var(--bad);
  border-color: rgba(255, 107, 135, 0.55);
  background: rgba(255, 107, 135, 0.1);
}

#receiptBody {
  margin: var(--space-3) 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--step--2);
  line-height: 1.65;
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--space-3);
  max-height: 20rem;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text-dim);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

#receiptBody::-webkit-scrollbar {
  width: 8px;
}

#receiptBody::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 999px;
}

.receipt-fade {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.receipt-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.snapshot-line,
.receipt-meta {
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--text-faint);
  white-space: pre-wrap;
  word-break: break-word;
}

.receipt-actions {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.receipt-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.receipt-hints {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--text-dim);
  text-align: right;
  margin-left: auto;
}

.receipt-note {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  font-size: var(--step--2);
  line-height: 1.7;
  color: var(--text-faint);
}

/* ─── Workflow rail ──────────────────────────────────────────────────────── */

/*
 * The step badges hang on the rail rather than floating inside the cards. Sitting them inside meant
 * they overlapped the step headings, and the connector line — drawn behind cards that are
 * deliberately translucent — showed straight through each card as a stray horizontal rule.
 */
.workflow-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
  padding-top: 13px;
}

.workflow-rail::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  z-index: 0;
}

.rail-step {
  position: relative;
  z-index: 1;
  padding-top: var(--space-5);
}

.rail-step::before {
  content: attr(data-step);
  position: absolute;
  top: -13px;
  left: var(--space-5);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--step--2);
}

/* ─── Proof contract ─────────────────────────────────────────────────────── */

.proof-contract {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.proof-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-2);
}

.proof-contract-grid a {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: rgba(126, 200, 184, 0.04);
  padding: var(--space-3);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: var(--step--2);
  transition: color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}

.proof-contract-grid a:hover,
.proof-contract-grid a:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(63, 212, 168, 0.45);
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-card .btn,
.price-card .btn-soft {
  margin-top: auto;
}

.price-card.best {
  border-color: rgba(63, 212, 168, 0.45);
  background: linear-gradient(168deg, rgba(16, 44, 38, 0.6), var(--surface));
  box-shadow: var(--shadow-lg);
}

.price-card.best span {
  width: max-content;
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(63, 212, 168, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.price {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
}

.price-value {
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.pricing-trust {
  margin-top: var(--space-5);
}

/* ─── Lead form ──────────────────────────────────────────────────────────── */

.lead-capture {
  margin-top: var(--space-8);
}

.lead-form {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 46rem;
  padding: var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.lead-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--text-dim);
  font-size: var(--step--1);
  font-weight: 600;
}

/* Email and company pair up; everything after them runs full width rather than leaving a ragged
   empty cell beside the use-case select. */
.lead-form label:nth-of-type(n + 3),
.lead-form > p,
.lead-form > button {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  background: var(--surface-sunken);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 400;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-faint);
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.lead-form button {
  width: max-content;
}

.lead-form .muted {
  margin: 0;
  min-height: 1.15rem;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  text-align: left;
}

/* ─── Final CTA + footer ─────────────────────────────────────────────────── */

.final-cta {
  text-align: center;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  margin-bottom: var(--space-7);
  padding: var(--space-7) var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(14, 38, 33, 0.5), rgba(6, 13, 19, 0.72));
}

.final-cta p {
  max-width: 52ch;
  color: var(--text-dim);
}

.site-footer {
  margin: var(--space-7) 0 var(--space-5);
}

.footer-inner {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-5);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  color: var(--text-faint);
  font-size: var(--step--1);
}

.footer-inner a {
  padding: 0.25rem 0.4rem;
  border-radius: var(--r-sm);
  transition: color var(--motion-fast) var(--ease);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--text);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-copy {
    max-width: none;
  }

  .kpi-band,
  .pricing-grid,
  .problem-solution,
  .proof-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-rail::before {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --space-8: 3.25rem;
    --space-9: 4rem;
  }

  html {
    /* Matches the two-row mobile header so an anchor jump does not land under it. */
    scroll-padding-top: 8.5rem;
  }

  /* Two rows, never three: brand and the call to action beside each other, section anchors beneath.
     The runtime status leaves the header entirely — the hero attestation card states it in full and
     with more context, and a sticky bar that eats 40% of a phone screen is not worth the repeat. */
  .nav-shell {
    padding: var(--space-2) var(--space-3);
    row-gap: var(--space-2);
  }

  .nav-status {
    display: none;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
  }

  .nav-cta {
    order: 2;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .nav-links a:not(.btn) {
    padding-inline: 0.35rem;
  }

  .hero-proof-grid,
  .kpi-band,
  .pricing-grid,
  .problem-solution,
  .proof-grid,
  .faq-grid,
  .workflow-rail,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: var(--space-4);
  }

  .stream-entry {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: var(--space-2);
  }

  .stream-entry .stream-timing {
    justify-self: start;
  }

  .receipt-hints {
    text-align: left;
    margin-left: 0;
  }

  .final-cta {
    padding: var(--space-6) var(--space-4);
  }
}

/* Motion is decoration here; nothing below is needed to read or operate the page. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
