@font-face {
  font-family: 'Space Grotesk';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/IBMPlexMono-SemiBold.ttf') format('truetype');
}

:root {
  --bg: #0A0E14;
  --panel: #0E131B;
  --raised: #151C26;
  --alt: #1C2430;
  --border: #2B3748;
  --control: #566882;
  --accent: #5EEAD4;
  --on-accent: #0A0E14;
  --text: #E8EEF6;
  --muted: #93A4BA;
  --radius: 6px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, li, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Keyboard users must always be able to see where they are. */
.nowrap { white-space: nowrap; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 16px; z-index: 10; }

.label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.label.accent { color: var(--accent); }
.label.muted { color: var(--muted); }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid var(--border);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark { font-weight: 700; font-size: 24px; letter-spacing: -0.4px; }
.wordmark span { color: var(--accent); }

.site-nav { display: flex; gap: 4px; }
.site-nav a, .sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .sign-in:hover { color: var(--text); background: var(--alt); }
.site-nav a[aria-current='page'] { color: var(--accent); }
.sign-in {
  color: var(--text);
  border: 1px solid var(--control);
  padding-inline: 16px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(44px, 7vw, 76px);
}
.hero-copy { display: grid; gap: 16px; }
h1 {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}
.tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.lead { color: var(--text); font-size: clamp(16px, 1.5vw, 18px); max-width: 62ch; }
.note { color: var(--muted); font-size: 13px; max-width: 58ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary span { font-weight: 400; font-size: 13px; opacity: 0.78; }
.button.secondary { border-color: var(--control); color: var(--text); }
.button:hover { filter: brightness(1.08); }

/* The reveal artifact, matching the shipped RevealCard. */
.proof {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.proof-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.disclosure {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}
.proof-goal { font-weight: 600; font-size: 21px; letter-spacing: -0.2px; }
.criterion { border-left: 3px solid var(--accent); padding-left: 12px; }
.criterion p:last-child { color: var(--muted); font-size: 13px; }
.scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-block: 12px;
  border-block: 1px solid var(--border);
  text-align: center;
}
.score-value {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
}
.score-anchor { color: var(--muted); font-size: 13px; }
.next-move {
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(94, 234, 212, 0.08);
  padding: 12px 16px;
}
.next-move p:last-child { font-weight: 600; }

/* Sections */
.band { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--border); }
.page-head { display: grid; gap: 12px; padding-block: clamp(40px, 6vw, 72px); max-width: 72ch; }
.section-heading { display: grid; gap: 8px; max-width: 68ch; margin-bottom: 24px; }
h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.16; letter-spacing: -0.5px; }
h3 { font-weight: 600; font-size: 18px; letter-spacing: -0.2px; }

.grid { display: grid; gap: 12px; }
.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 { display: grid; gap: 8px; align-content: start; border-radius: var(--radius-sm); }
.card p:last-child { color: var(--muted); font-size: 15px; }
.card.raised {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
}
.card.accent-edge {
  background: var(--panel);
  border-left: 2px solid var(--accent);
  padding: 16px;
}

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.step div { display: grid; gap: 4px; }
.step p:last-child { color: var(--muted); font-size: 15px; }
.step-number {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
}

/* The blind-reflection band. The page is otherwise one continuous Night
   scroll; this is the section a visitor has to actually read, so it sits on
   its own Panel ground — the tonal ladder from brand/PLAYBOOK.md, not a
   shadow. It is a contained surface rather than a full-bleed one so it can
   never introduce horizontal overflow. */
.reveal-band {
  margin-block: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rooms { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.room {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.room p:last-child { color: var(--muted); font-size: 15px; }

.seal {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: clamp(170px, 20vw, 240px);
  padding-inline: 24px;
  text-align: center;
}
/* The seal is the product's one hard rule, so it is drawn, not asserted. */
.seal::before, .seal::after {
  content: '';
  position: absolute;
  left: 50%;
  height: 22%;
  border-left: 1px dashed var(--control);
}
.seal::before { top: 6%; }
.seal::after { bottom: 6%; }
.seal-title { font-weight: 600; }
.seal p:last-child { color: var(--muted); font-size: 13px; }

.trigger {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.trigger::before, .trigger::after { content: ''; height: 2px; background: var(--accent); }

/* The signature device: two readings out of alignment, the measured gap
   between them, and a mint connector rising to one next-action point. */
.signal-gap { display: grid; gap: 16px; margin-top: clamp(16px, 2vw, 24px); }
.signal-gap-plot { position: relative; }
.gap-geometry { display: block; width: 100%; height: auto; }
.gap-baseline { fill: none; stroke: var(--control); stroke-width: 3; stroke-linecap: square; }
.gap-measure { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 6; }
.gap-connector { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.gap-halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.38; }
.gap-point { fill: var(--accent); }

.gap-label { position: absolute; display: grid; gap: 3px; }
.gap-anchor { border-left: 2px solid var(--control); padding-left: 12px; }
.gap-focus { font-weight: 600; font-size: 19px; letter-spacing: -0.2px; }
.gap-reading {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 17px;
}
.gap-note { color: var(--muted); font-size: 15px; }
.gap-next { top: 3.333%; right: 3.356%; max-width: 31%; justify-items: end; text-align: right; }
.gap-action { font-weight: 600; font-size: 15px; line-height: 1.45; }

.outcomes { margin-top: clamp(24px, 3vw, 36px); }

/* The four phases are one ordered track, not four peers. */
.loop-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--border);
}
.loop-phase {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 24px;
  padding-right: 16px;
}
.loop-phase::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}
.loop-meta { display: flex; align-items: center; gap: 8px; }
.loop-number {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
}
.loop-phase p:last-child { color: var(--muted); font-size: 15px; }

/* Call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block: clamp(40px, 6vw, 64px);
  padding: 32px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.cta > div { display: grid; gap: 8px; max-width: 62ch; }
.cta p { color: var(--text); }
.cta .privacy { color: var(--muted); font-size: 13px; }

.site-footer {
  display: grid;
  gap: 12px;
  padding-block: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.footer-links a:hover { color: var(--text); background: var(--alt); }
.footer-note { color: var(--muted); font-size: 13px; max-width: 72ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; min-height: 0; padding-block: 12px; gap: 8px; }
  .site-nav { order: 3; width: 100%; }

  /* Stacked, the seal sits between the two rooms rather than beside them. */
  .rooms { grid-template-columns: 1fr; gap: 12px; }
  .seal { width: auto; padding-block: 8px; }
  .seal::before, .seal::after { content: none; }

  .loop-rail { grid-template-columns: 1fr; border-top: 0; }
  .loop-phase { border-top: 1px solid var(--border); padding-right: 0; }
}

/* Below this width the drawing is too small to read, so it is dropped and the
   readings stack. Nothing is lost: every value in the device is HTML text. */
@media (max-width: 880px) {
  .gap-geometry { display: none; }
  .signal-gap-plot { display: grid; gap: 16px; }
  .gap-label { position: static; }
  .gap-next { max-width: none; justify-items: start; text-align: left; }
}

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
  .scores { grid-template-columns: 1fr; }
  .button { width: 100%; text-align: center; align-items: center; }
}
