/* =============================================================================
   NGA — /vision. The studio deck as one scrolling page, on the
   "Signal" design system. Tokens, header and footer are copied from the
   home page rather than linked, the same way /cross-promo does it, so this
   page doesn't shift when the root styles.css changes.

   <main> runs the argument top to bottom in thirteen bands: what is broken,
   where the incentives sit, what the chain keeps, where the model comes from,
   the claim, what NGA is, how it works, the free cross-promo that comes with
   the SDK, the order it gets built in, who is building it, and the close.

   Colour carries meaning here. Green is NGA's side of the story. Clay
   (--alarm) is what the studio pays today: the charge in the declaration,
   the cut, the wasted spend. Ink fill is the incumbent's model. Nothing else
   is coloured.

   The two phone mockups are the "Oak" artboards from the cross-promo page,
   embedded as live markup and scaled in CSS with the same --w/--h/--s
   pattern. Their colours and type belong to the games being drawn.
   ============================================================================= */

:root {
  --paper: #FBFAF7;
  --ink: #14161A;
  --body: #4A4F57;
  --label: #6E6A60;
  --line-soft: #EDEAE3;
  --line: #E3DFD6;

  --signal: oklch(0.72 0.17 152);
  --signal-deep: oklch(0.54 0.14 152);   /* lightest green text that holds 4.5:1 on paper */
  --signal-ink: #08130f;
  --signal-wash: oklch(0.72 0.17 152 / 0.10);

  /* What the studio pays today. Clay, as on the cross-promo page: expensive
     rather than broken. Holds 5.5:1 on paper. */
  --alarm: oklch(0.52 0.09 30);
  --alarm-soft: oklch(0.52 0.09 30 / 0.38);

  --shell: 1160px;
  --gutter: 28px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, li, figure, figcaption { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono, .kicker, .tag, .site-footer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-rule { width: 1px; height: 21px; background: var(--line); flex: none; }
.brand-product {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--signal);
  color: var(--signal-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------- Hero ---------- */
/* Centred over the model arena, like nga.io: this page is the long form of
   the home page, and it opens the same way. */
.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  min-height: min(78vh, 700px);
}
.hero-waves {
  position: absolute;
  inset: 46% 0 0;
  z-index: 0;
  width: 100%;
  height: 54%;
  display: block;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0), var(--paper));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 84px) var(--gutter) clamp(180px, 30vh, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero h1 {
  max-width: 17ch;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--signal-deep); }
.hero .lede { max-width: 620px; margin-top: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.hero .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}
@media (max-width: 639px) {
  .hero-waves { inset: 0; height: 100%; }
  .hero-inner { padding-bottom: 170px; }
}

/* ---------- Page shell ---------- */
.page { flex: 1; }

.band {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}

/* ---------- Type ---------- */
.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-deep);
  display: flex;
  align-items: center;
  gap: 11px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--signal-deep); }

h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 24ch;
  margin-top: 16px;
  text-wrap: balance;
}
h2.big {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 18ch;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
  margin-top: 18px;
  text-wrap: pretty;
}
.lede b { color: var(--ink); font-weight: 600; }
.lede a, .link { color: var(--signal-deep); font-weight: 600; }

/* The one-sentence version of a band, set between the headline and the lede. */
.claim {
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 34ch;
  margin-top: 20px;
  text-wrap: balance;
}

/* The declaration: the verdict on the left, the charge and its reasoning on
   the right. The charge is what the status quo costs the studio, so it is
   clay; the verdict stays ink. */
.declare {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: 16px;
}
.declare h2 { margin-top: 0; }
.declare .claim { margin-top: 0; padding-top: 0.1em; color: var(--alarm); }

.after { margin-top: clamp(22px, 3vw, 34px); }

.tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Boxes ---------- */
.grid { display: grid; gap: 16px; margin-top: clamp(26px, 3vw, 40px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  background: #fff;
}
.box .t {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: 10px;
  text-wrap: balance;
}
.box .tag + .t { margin-top: 12px; }
.box .t:first-child { margin-top: 0; }
.box .b { font-size: 15px; line-height: 1.55; color: var(--body); margin-top: 10px; text-wrap: pretty; }
.box .b b { color: var(--ink); font-weight: 600; }

.box.ours { background: var(--signal-wash); border-color: transparent; }
.box.ours .tag { color: var(--signal-deep); }

/* The incumbent's model: the one ink surface on the page. */
.box.theirs { background: var(--ink); border-color: var(--ink); }
.box.theirs .tag { color: #B9BDC4; }
.box.theirs .t { color: var(--paper); }
.box.theirs .b { color: #C9CCD1; }

/* ---------- Two columns ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(26px, 3vw, 40px);
}
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.media { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- Numbered points (from the cross-promo page) ---------- */
.points { display: flex; flex-direction: column; gap: 26px; }
.point { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.point .n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--signal-deep); padding-top: 4px; }
.point .t { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.28; }
.point .d { font-size: 15px; line-height: 1.55; color: var(--body); margin-top: 6px; text-wrap: pretty; }

/* ---------- The cost figures ---------- */
.figure-v {
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--alarm);
  font-variant-numeric: tabular-nums;
}
.box .figure-v { font-size: clamp(48px, 6vw, 76px); margin-top: 12px; }
.box .punch { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink); margin-top: 16px; }

/* ---------- Bars: what intermediaries keep ---------- */
/* One measure, three rows, each labelled with its own value, so there is no
   axis and no legend. The comparators are neutral; the chain is clay, with
   the 40-50 range drawn as a paler extension. Half the track is 50%. */
.bars { display: flex; flex-direction: column; gap: 22px; }
.bars .h { margin-bottom: 4px; }
.bar-row .l { font-size: 15px; line-height: 1.45; color: var(--ink); }
.bar-row .r { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
/* --p is the value as a share of the 50% maximum; the bar takes at most 58% of
   the row, so the label always sits right after it. */
.bar-row .seg { flex: none; display: flex; gap: 2px; width: calc(var(--p) * 0.58%); height: 18px; }
.bar-row .fill { flex: 1; background: #A9A397; border-radius: 0 4px 4px 0; }
.bar-row .fill.chain { flex: 4; background: var(--alarm); border-radius: 0; }
.bar-row .fill.range { flex: 1; background: var(--alarm-soft); }
.bar-row .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Flows: boxes joined by arrows ---------- */
.flow { display: grid; gap: 12px; align-items: stretch; margin-top: clamp(26px, 3vw, 40px); }
.flow.f3 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr); }
.flow.f4 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
.flow .arrow {
  align-self: center;
  font-size: 20px;
  line-height: 1;
  color: var(--signal-deep);
}
.flow .arrow::before { content: "\2192"; }
.flow .arrow.back::before { content: "\2190"; }

/* ---------- Wash and solid bands ---------- */
.wash, .solid {
  border-radius: 20px;
  padding: clamp(30px, 5vw, 60px) clamp(26px, 5vw, 60px);
}
.wash { background: var(--signal-wash); }
.wash h2, .solid h2 { margin-top: 14px; }
.solid { background: var(--signal); color: var(--signal-ink); }
.solid .kicker { color: var(--signal-ink); }
.solid .kicker::before { background: var(--signal-ink); }
.solid .lede { color: var(--signal-ink); }
.solid a { color: var(--signal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Sign up (/nav.css) on the green: the button turns to ink, so it reads as the action, not a second green. */
.solid-signup { margin-top: 22px; font-size: clamp(15px, 1.4vw, 17px); color: var(--signal-ink); }
.solid .signup-cta { background: var(--signal-ink); color: var(--paper); text-decoration: none; }
.solid .signup-cta:hover { background: color-mix(in oklab, var(--signal-ink) 80%, var(--signal)); }
.solid .signup-cta:focus-visible { outline-color: var(--signal-ink); }

/* ---------- Steps (from the cross-promo page) ---------- */
.steps { border-top: 1px solid var(--line-soft); margin-top: clamp(26px, 3vw, 40px); }
.step {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(0, 220px);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.step .w { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.step .t { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.step .d { font-size: 15px; line-height: 1.55; color: var(--body); margin-top: 5px; max-width: 58ch; text-wrap: pretty; }
.step .s { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.step.now .s { color: var(--signal-deep); }
.step.now .w { color: var(--signal-deep); }

/* ---------- Links list ---------- */
.links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.links a { display: inline-block; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--signal-deep); }
.links a::after { content: " \2192"; }

/* ---------- Mock scaling (same pattern as the cross-promo page) ---------- */
.mock {
  --s: 1;
  flex: none;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
  overflow: hidden;
}
.mock > * { transform: scale(var(--s)); transform-origin: top left; }
.m-unit { --w: 360px; --h: 700px; --s: 0.62; }

.units { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.units .pair { display: flex; gap: clamp(12px, 2vw, 22px); }

/* ---------- Closing note ---------- */
.note {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--label);
  max-width: 96ch;
  margin: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
}

/* ---------- Narrow ---------- */
@media (max-width: 1020px) {
  .flow.f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow.f4 .arrow { display: none; }
  .m-unit { --s: 0.54; }
}
@media (max-width: 860px) {
  .g2, .g3, .split, .split.even, .split.media { grid-template-columns: 1fr; }
  .declare { grid-template-columns: 1fr; gap: 20px; }
  .declare .claim { padding-top: 0; }
  .flow.f3 { grid-template-columns: 1fr; }
  .flow.f3 .arrow { justify-self: center; }
  .flow.f3 .arrow::before, .flow.f3 .arrow.back::before { content: "\2193"; }
  .flow.f3 .arrow.back::before { content: "\2191"; }
  .step { grid-template-columns: 72px minmax(0, 1fr); }
  .step .s { grid-column: 2; }
  .units { margin: 0 auto; }
  .m-unit { --s: 0.6; }
}
@media (max-width: 520px) {
  .flow.f4 { grid-template-columns: 1fr; }
  .m-unit { --s: 0.44; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step .s { grid-column: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--label);
}
.site-footer a { color: var(--label); }
