/* GuardSign — layout: single column of full-width bands, 1180px content well,
   blueprint grid in the hero, cards only where an element is a separate object. */

:root {
  /* dark-first palette */
  --bg: #0A0F1E;
  --bg-alt: #0D1427;
  --surface: #111A31;
  --surface-2: #16213D;
  --line: #22304F;
  --line-soft: #1A2642;
  --fg: #E7EBF6;
  --muted: #95A2C1;
  --accent: #7D93FF;
  --accent-ink: #0A0F1E;
  --accent-soft: rgba(125, 147, 255, 0.14);
  --allow: #35D4A4;
  --allow-soft: rgba(53, 212, 164, 0.14);
  --deny: #FF7D6E;
  --deny-soft: rgba(255, 125, 110, 0.14);
  --warn: #F2C14E;
  --warn-soft: rgba(242, 193, 78, 0.14);
  --grid: rgba(125, 147, 255, 0.07);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.1rem + 3.1vw, 3.5rem);

  --radius: 12px;
  --radius-s: 8px;
  --wrap: 1180px;
  --nav-h: 64px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F7FC;
    --bg-alt: #ECF0F8;
    --surface: #FFFFFF;
    --surface-2: #F3F6FC;
    --line: #D3DBEA;
    --line-soft: #E2E8F3;
    --fg: #0E1630;
    --muted: #55627F;
    --accent: #3D5AF1;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(61, 90, 241, 0.10);
    --allow: #0C9A72;
    --allow-soft: rgba(12, 154, 114, 0.10);
    --deny: #D2402F;
    --deny-soft: rgba(210, 64, 47, 0.10);
    --warn: #A87A06;
    --warn-soft: rgba(168, 122, 6, 0.10);
    --grid: rgba(61, 90, 241, 0.07);
    --shadow: 0 24px 60px -28px rgba(20, 35, 80, 0.28);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F7FC;
  --bg-alt: #ECF0F8;
  --surface: #FFFFFF;
  --surface-2: #F3F6FC;
  --line: #D3DBEA;
  --line-soft: #E2E8F3;
  --fg: #0E1630;
  --muted: #55627F;
  --accent: #3D5AF1;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(61, 90, 241, 0.10);
  --allow: #0C9A72;
  --allow-soft: rgba(12, 154, 114, 0.10);
  --deny: #D2402F;
  --deny-soft: rgba(210, 64, 47, 0.10);
  --warn: #A87A06;
  --warn-soft: rgba(168, 122, 6, 0.10);
  --grid: rgba(61, 90, 241, 0.07);
  --shadow: 0 24px 60px -28px rgba(20, 35, 80, 0.28);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--f-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-inner { gap: 12px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand-mark { width: 26px; height: 26px; }
}
@media (max-width: 350px) {
  .nav-cta { display: none; }
}
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: 72px 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 30%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  width: 620px; height: 620px; right: -140px; top: -120px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: -4px; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.lede em { color: var(--fg); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-facts dt { color: var(--fg); font-size: 0.95rem; font-weight: 500; }
.hero-facts dd { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.tag {
  display: inline-block; padding: 0 8px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 0.85em; line-height: 1.6; font-weight: 500;
}
.tag-allow { background: var(--allow-soft); color: var(--allow); }

/* ---------- demo ---------- */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.8rem; color: var(--muted);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.demo-label { font-size: 0.78rem; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.02em; }

.req-list { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.req {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  min-width: 0;
  transition: border-color .15s ease, background-color .15s ease;
}
.req:hover { border-color: var(--accent); }
.req[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.req-who { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.req-who::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; border: 1.5px solid var(--muted); vertical-align: 1px; }
.req[aria-checked="true"] .req-who::before { border-color: var(--accent); background: var(--accent); }
.req-what { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }

.signers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: -6px; }
.signer {
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
  transition: border-color .2s ease, background-color .2s ease;
}
.signer.is-busy { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.signer.is-allow { border-color: var(--allow); border-style: solid; background: var(--allow-soft); }
.signer.is-deny { border-color: var(--deny); border-style: solid; background: var(--deny-soft); }
.signer-name { font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.share { display: flex; justify-content: space-between; gap: 8px; font-size: 0.72rem; line-height: 1.5; }
.share span { color: var(--muted); }
.share b { font-weight: 500; color: var(--fg); letter-spacing: 0.02em; }

.log {
  list-style: none; margin: 0; padding: 12px 14px;
  min-height: 148px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  font-size: 0.74rem; line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.log li { display: flex; gap: 8px; }
.log li::before { content: "›"; color: var(--accent); flex: none; }
.log .ok { color: var(--allow); }
.log .bad { color: var(--deny); }
.log .hi { color: var(--fg); }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verdict {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.82rem;
}
.verdict-label { color: var(--muted); }
.verdict-value { font-weight: 500; }
.verdict[data-state="running"] { border-color: var(--accent); color: var(--accent); }
.verdict[data-state="allow"] { border-color: var(--allow); background: var(--allow-soft); color: var(--allow); }
.verdict[data-state="deny"] { border-color: var(--deny); background: var(--deny-soft); color: var(--deny); }
.demo-note { font-size: 0.72rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.hero + .section { padding-top: 72px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section h2 { max-width: 22em; }
.section-lede { color: var(--muted); font-size: var(--step-1); max-width: 40em; margin-top: 16px; }

/* problem */
.problem-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px;
  margin-top: 36px; align-items: start;
}
.problem-text { display: flex; flex-direction: column; gap: 16px; color: var(--muted); max-width: 38em; }
.problem-text strong { color: var(--fg); font-weight: 600; }
.incidents { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.incidents li {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; row-gap: 2px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.incidents li:last-child { border-bottom: 1px solid var(--line); }
.inc-when { grid-row: span 2; font-size: 0.78rem; color: var(--muted); padding-top: 6px; }
.inc-figure { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: var(--deny); letter-spacing: -0.02em; line-height: 1.2; }
.inc-text { color: var(--muted); font-size: 0.92rem; }

.flaws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.flaw {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.flaw-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--deny); }
.flaw p:last-child { color: var(--muted); font-size: 0.95rem; }

.fineprint { margin-top: 28px; font-size: 0.82rem; color: var(--muted); max-width: 60em; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--accent); }

/* how */
.diagram-wrap {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow-x: auto;
}
.diagram { display: block; width: 100%; min-width: 720px; height: auto; }
.d-box { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.2; }
.d-signer { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .5; }
.d-check { fill: var(--allow-soft); stroke: var(--allow); stroke-opacity: .55; }
.d-quorum { fill: none; stroke: var(--accent); stroke-dasharray: 6 6; stroke-width: 1.4; stroke-opacity: .7; }
.d-t { fill: var(--fg); font: 600 15px var(--f-display); }
.d-s { fill: var(--muted); font: 400 13px var(--f-body); }
.d-m { fill: var(--accent); font: 500 12.5px var(--f-mono); }
.d-line { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.d-ok { stroke: var(--allow); stroke-width: 2; }
.d-ok-t { fill: var(--allow); font-family: var(--f-mono); font-weight: 500; }
.d-arrowhead { fill: var(--muted); }
.d-arrowhead-ok { fill: var(--allow); }

.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  counter-reset: step;
}
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent);
}
.steps li::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent);
}
.steps p { color: var(--muted); font-size: 0.95rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.feature {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.feature p:last-child { color: var(--muted); font-size: 0.95rem; }
.feature-lead { grid-column: span 2; background: var(--surface); padding: 30px; }
.feature-lead h3 { font-size: var(--step-2); }
.feature-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--allow); }

/* policy */
.policy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.policy-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.policy-copy .eyebrow { margin-bottom: -4px; }
.policy-copy > p:not(.eyebrow) { color: var(--muted); }
.guardrails {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px;
}
.guardrails li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.guardrails li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--allow); flex: none; }
.code-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.code-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 0.8rem; color: var(--muted);
}
.code-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 0.84rem; line-height: 1.75; color: var(--fg); }
.c-k { color: var(--accent); }
.c-s { color: var(--allow); }
.c-n { color: var(--warn); }

/* tables */
.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
.compare { min-width: 760px; }
.compare td { text-align: center; vertical-align: middle; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 500; width: 24%; }
.row-us { background: var(--accent-soft); }
.row-us th { font-family: var(--f-display); font-weight: 700; color: var(--accent); }
.mark { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.mark.yes { background: var(--allow-soft); color: var(--allow); }
.mark.no { background: var(--deny-soft); color: var(--deny); }
.mark.part { background: var(--warn-soft); color: var(--warn); }
.papers { min-width: 680px; }
.papers td:first-child { white-space: nowrap; color: var(--accent); font-size: 0.82rem; }
.papers td:last-child { color: var(--muted); }

/* research metrics */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-block: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 26px 0; min-width: 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric-n { font-family: var(--f-display); font-weight: 600; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.metric-n small { font-size: 0.5em; color: var(--accent); letter-spacing: 0; font-weight: 500; }
.metric-t { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.metrics.metrics-market { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics-market + .fineprint { margin-top: 14px; }
@media (max-width: 1080px) {
  .metrics-market .metric:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); border-top: 0; }
  .metrics-market .metric-n { font-size: 1.9rem; }
}
@media (max-width: 960px) {
  .metrics.metrics-market { grid-template-columns: minmax(0, 1fr); }
  .metrics-market .metric, .metrics-market .metric + .metric,
  .metrics-market .metric:nth-child(3) { padding: 20px 0; border-left: 0; }
  .metrics-market .metric + .metric { border-top: 1px solid var(--line); }
}

/* customers */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.segment { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--accent); }
.segment p { color: var(--muted); font-size: 0.95rem; }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.offer-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.offer-item h3 { font-size: var(--step-2); }
.offer-item p:last-child { color: var(--muted); }

/* roadmap */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.phase {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.phase-when { font-size: 0.78rem; color: var(--accent); }
.phase ul { margin: 0 0 6px; padding-left: 18px; color: var(--muted); font-size: 0.93rem; display: flex; flex-direction: column; gap: 6px; }
.ms {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--radius-s);
  background: var(--allow-soft); font-size: 0.86rem; line-height: 1.45;
}
.ms b { color: var(--allow); font-size: 0.74rem; font-weight: 500; }
.ms-group { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.founder { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.founder .eyebrow { margin-bottom: -2px; }
.founder > p:not(.eyebrow) { color: var(--muted); max-width: 36em; }
.founder-links { display: flex; flex-wrap: wrap; gap: 20px; }
.founder-links a { font-family: var(--f-mono); font-size: 0.88rem; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.person-photo { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; border: 2px solid var(--accent); display: block; }
.person h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.person-role { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.person-aff { margin: 6px 0 10px; font-size: 0.8rem; line-height: 1.45; color: var(--fg); }
.person > div > p:not(.person-aff):not(.founder-links) { color: var(--muted); }
.person .founder-links { margin-top: 10px; }
.cta-card {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 36px; border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-card .eyebrow { margin-bottom: -4px; }
.cta-card > p:not(.eyebrow):not(.contact-line) { color: var(--muted); }
.contact-line { font-size: 0.95rem; padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--radius-s); color: var(--fg); user-select: all; }

/* footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 28px; font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero-grid, .problem-grid, .policy-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-block: 48px 56px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .phases, .segments { grid-template-columns: minmax(0, 1fr); }
  .segments { gap: 28px; }
  .flaws { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .section, .hero + .section { padding-block: 64px; }
  .features, .offer { grid-template-columns: minmax(0, 1fr); }
  .feature-lead { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-facts div { flex-direction: row; align-items: baseline; gap: 10px; }
  .req-what { padding-left: 20px; }
  .demo-foot .btn { flex: 1 1 auto; }
  .demo-foot .verdict { flex: 1 1 auto; justify-content: center; }
  .signers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .signer { padding: 8px; }
  .share { flex-direction: column; gap: 0; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric, .metric + .metric { padding: 20px 0; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .guardrails { grid-template-columns: minmax(0, 1fr); }
  .cta-card { padding: 26px; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .person-photo { width: 80px; height: 80px; }

  /* tables become stacked cards on phones */
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .compare, .papers { min-width: 0; }
  .compare thead, .papers thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td,
  .papers, .papers tbody, .papers tr, .papers td { display: block; width: 100%; }
  .compare tr, .papers tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 12px;
  }
  .compare tr.row-us { background: var(--accent-soft); border-color: var(--accent); }
  .compare th, .compare td, .papers td { border: 0; padding: 0; }
  .compare tbody th { width: auto; font-size: 1rem; margin-bottom: 8px; }
  .compare td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
  .compare td::before { content: attr(data-label); color: var(--muted); }
  .papers td { padding: 2px 0; }
  .papers td:first-child { margin-bottom: 4px; }
  .papers td:last-child { margin-top: 6px; font-size: 0.88rem; }
  .papers td:last-child::before { content: "Role: "; color: var(--accent); }
  .diagram-wrap { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
