/*
 * Bellows' front page, in the Console's Forge look (docs/design/console.md): neutral dark greys, the
 * ember accent on text, icons and buttons only, Sofia Sans Condensed for headings and labels, Sofia Sans
 * for text, and JetBrains Mono only for code (Dan, 4 Oct: the header's and paragraph's fonts throughout,
 * "except the screen grabs and code text"). The fonts are served from this site (build.mjs copies them).
 */

@font-face { font-family: "Sofia Sans"; font-weight: 400; font-display: swap; src: url("/fonts/sofia-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 500; font-display: swap; src: url("/fonts/sofia-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-display: swap; src: url("/fonts/sofia-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 700; font-display: swap; src: url("/fonts/sofia-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/sofia-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/sofia-sans-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #1c1c1c;
  --band: #202020;
  --deep: #161616;
  --panel: #242424;
  --panel-border: #383838;
  --tile: #2b2b2b;
  --input: #262626;
  --input-border: #404040;
  --hairline: #333333;
  --tag: #353535;
  --button-border: #4d4d4d;
  --text: #f2ebe3;
  --soft: #cfc5b9;
  --muted: #b0a597;
  --label: #a39888;
  --nav-text: #d6ccc0;
  --accent: #ff7b2e;
  --on-accent: #1c1c1c;
  --link: #ffab78;
  --link-hover: #ffd2b5;
  --steel: #84b4ff;
  --steel-text: #a9c9ff;
  --green: #6dd49c;
  --green-text: #8fe3b5;
  --danger: #ff9b85;
  --font-body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}

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

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

p {
  margin: 0;
}

/* ---------------------------------------------------------------- pieces */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A small ember diamond: the page's one bit of ornament. */
.spark {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--button-border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover {
  color: var(--text);
  background: #2a2a2a;
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.button.primary:hover {
  color: var(--on-accent);
  background: var(--accent);
  filter: brightness(1.08);
}
.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
/* The masthead's button: quieter than the page's ember ones (Dan, 4 Oct: "light grey with white border"). */
.button.subtle {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.button.subtle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tag);
  color: #e9dfd3;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.chip.now {
  background: rgba(109, 212, 156, 0.12);
  color: var(--green-text);
}
.chip.now .dot {
  background: var(--green);
}
.chip.demo {
  background: rgba(132, 180, 255, 0.12);
  color: var(--steel-text);
}
/* A Studio-plan feature (Dan, 4 Oct: matchmaking and commerce "behind studio"). */
.chip.studio {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--link);
}

.small-print {
  font-size: 14px;
  color: var(--muted);
}

.footnote {
  margin-top: 22px;
  max-width: 820px;
  font-size: 14px;
  color: var(--label);
}

/* Bullets: the ember diamond again, smaller. */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--soft);
}
.ticks li {
  position: relative;
  padding-left: 22px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Screenshots, framed like a window. */
.shot {
  margin: 0;
  min-width: 0;
}
.frame {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #202020;
  border-bottom: 1px solid var(--hairline);
}
.frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3d3d3d;
}
.frame-bar em {
  margin-left: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--label);
}
.shot figcaption {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, 0.86);
  border-bottom: 1px solid #2a2a2a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.masthead-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
  fill: var(--accent);
}
.brand-word {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
  background: #262626;
}

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

.hero {
  position: relative;
  padding: 104px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
/* Ironwake's map, darkened to a backdrop that fades into the page. */
.hero-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -1;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  filter: saturate(0.85) brightness(0.62);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(28, 28, 28, 0.45), rgba(28, 28, 28, 0.78) 72%),
    linear-gradient(180deg, rgba(28, 28, 28, 0.15) 0%, rgba(28, 28, 28, 0.5) 55%, var(--ground) 100%);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy .eyebrow {
  color: var(--soft);
}
.hero h1 {
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.lede {
  max-width: 680px;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero .cta-row .button:not(.primary) {
  background: rgba(28, 28, 28, 0.6);
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--soft);
}
.status-item {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  text-align: center;
}

.hero-shots {
  position: relative;
  margin-top: 64px;
  padding-bottom: 48px;
}
.shot-console {
  width: 76%;
}
.shot-hub {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: 40%;
}
.shot-hub .frame {
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.demo-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--label);
}

/* ---------------------------------------------------------------- the promise strip */

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  margin-bottom: 40px;
}
.promise-strip > div {
  padding: 26px 28px;
  background: var(--band);
  border: 1px solid var(--panel-border);
  border-right-width: 0;
}
.promise-strip > div:first-child {
  border-radius: 12px 0 0 12px;
}
.promise-strip > div:last-child {
  border-right-width: 1px;
  border-radius: 0 12px 12px 0;
}
.promise-strip .big {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.promise-strip p:not(.big) {
  margin-top: 8px;
  color: var(--soft);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-top: 104px;
  padding-bottom: 104px;
}
.section-tight {
  padding-top: 8px;
  padding-bottom: 8px;
}
.band {
  padding: 104px 0;
  background: var(--band);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}
.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 18px;
  color: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.split.reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split.reverse .split-copy {
  order: 2;
}
.split-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-copy > p:not(.eyebrow):not(.small-print) {
  font-size: 18px;
  color: var(--soft);
}
.split-copy .eyebrow {
  margin-bottom: -4px;
}

/* The kinds of games: a picture over each card, and a filter by how they're played. */
.games-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 32px;
  margin-bottom: 36px;
}
.games-head .section-head {
  margin-bottom: 0;
}
.filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}
.filter[hidden] {
  display: none;
}
.filter button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--nav-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.filter button:hover {
  color: var(--text);
}
.filter button[aria-pressed="true"] {
  background: #3a3a3a;
  color: var(--text);
}
.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
/* Each card takes six of the list's rows (picture, modes, name, text, "You'd use", uses) as a subgrid, so
   the parts line up across a row whatever the length of each card's text. */
.games > li {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.games > li[hidden] {
  display: none;
}
.games img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--hairline);
}
.game-body {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 10px;
  padding: 18px 22px 22px;
}
.game-modes {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}
.game-body > p:not(.game-modes):not(.uses-title) {
  font-size: 15.5px;
  color: var(--soft);
}
.uses-title {
  padding-top: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.uses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}
.uses li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 13.5px;
  font-weight: 600;
  color: #e9dfd3;
}

/* The C# sample. */
.code-block {
  margin-top: 56px;
}
.code-block > * {
  max-width: 860px;
}
.code-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #1a1a1a;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--label);
}
.code-block pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  background: var(--deep);
  border: 1px solid var(--hairline);
  border-radius: 0 0 12px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #e9dfd3;
}
.code-block .k {
  color: var(--link);
}
.code-block .s {
  color: var(--green-text);
}
.code-block .c {
  color: #8a8073;
}
.code-block .n {
  color: var(--steel-text);
}

/* The platform's modules. */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.modules li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.module-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.module-top .icon {
  margin-right: auto;
}
.icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modules p {
  font-size: 15.5px;
  color: var(--soft);
}

/* How it works. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.steps p {
  flex: 1;
  font-size: 15.5px;
  color: var(--soft);
}
.step-n {
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent);
}

/* Pricing: the trial, then the two plans. */
.plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.plan h3 {
  font-size: 24px;
  letter-spacing: 0.08em;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.plan.featured .plan-price {
  color: var(--accent);
}
.plan-unit {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}
.plan-for {
  font-size: 16px;
  color: var(--soft);
}
.plan-players {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tile);
  font-size: 15px;
  color: var(--text);
}
.plan .ticks {
  font-size: 15.5px;
}

/* The contract's promises, under the plans. */
.promises-title {
  margin: 56px 0 18px;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.promises li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}
.promises h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promises p {
  font-size: 15px;
  color: var(--soft);
}

/* ---------------------------------------------------------------- design partners and the form */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.apply-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apply-copy > p:not(.eyebrow):not(.small-print) {
  font-size: 18px;
  color: var(--soft);
}
.list-title {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* The founding studios: an offer inside the demo section, so it sits in a panel of its own. */
.founding {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding: 22px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.founding h3 {
  font-size: 24px;
  letter-spacing: 0.06em;
}
.founding > p:not(.small-print) {
  color: var(--soft);
}
.form-title {
  font-size: 26px;
  letter-spacing: 0.04em;
}

.apply-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > span,
.wants legend {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field em,
.wants legend em {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--label);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8a8073;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.wants {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wants legend {
  margin-bottom: 8px;
  padding: 0;
}
.wants label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input);
  font-size: 15px;
  cursor: pointer;
}
.wants label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 123, 46, 0.1);
}
.wants input,
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--soft);
  cursor: pointer;
}
/* Off-screen rather than display: none, which some bots skip. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.form-foot .small-print {
  flex: 1 1 260px;
}
.form-message:empty {
  display: none;
}
.form-message {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tile);
  color: var(--soft);
}
.form-message.ok {
  background: rgba(109, 212, 156, 0.12);
  color: var(--green-text);
}
.form-message.error {
  background: rgba(255, 155, 133, 0.1);
  color: var(--danger);
}
.apply-form.sent .form-grid,
.apply-form.sent .wants,
.apply-form.sent > .field,
.apply-form.sent .check,
.apply-form.sent .form-foot {
  display: none;
}

/* ---------------------------------------------------------------- FAQ, closing, footer */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 760px;
  padding: 0 0 22px;
  color: var(--soft);
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 120px;
  text-align: center;
}
.closing p {
  font-size: 18px;
  color: var(--soft);
}

.footer {
  border-top: 1px solid #2a2a2a;
  background: var(--deep);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-row p {
  flex: 1 1 320px;
  font-size: 14px;
  color: var(--label);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--nav-text);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--text);
}
.footer .brand-mark {
  width: 28px;
  height: 28px;
}
.footer .brand-word {
  font-size: 19px;
}

/* ---------------------------------------------------------------- the privacy notice and the 404 */

.doc {
  max-width: 760px;
  padding-top: 72px;
  padding-bottom: 104px;
}
.doc h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
}
.doc h2 {
  margin-top: 40px;
  font-size: 26px;
  letter-spacing: 0.05em;
}
.doc p,
.doc li {
  color: var(--soft);
}
.doc p {
  margin-top: 14px;
}
.doc ul {
  margin: 14px 0 0;
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.doc .updated {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .masthead-row .button {
    margin-left: auto;
  }
  .modules,
  .promises,
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .split,
  .split.reverse,
  .apply {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .split.reverse .split-copy {
    order: 0;
  }
  .shot-console {
    width: 100%;
  }
  .shot-hub {
    position: relative;
    right: auto;
    width: 78%;
    margin: -18% 0 0 auto;
  }
  .hero-shots {
    padding-bottom: 0;
  }
  /* The windows overlap here, and their title bars already say which is which. */
  .hero-shots figcaption {
    display: none;
  }
  .promise-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .promise-strip > div,
  .promise-strip > div:first-child,
  .promise-strip > div:last-child {
    border-right-width: 1px;
    border-bottom-width: 0;
    border-radius: 0;
  }
  .promise-strip > div:first-child {
    border-radius: 12px 12px 0 0;
  }
  .promise-strip > div:last-child {
    border-bottom-width: 1px;
    border-radius: 0 0 12px 12px;
  }
  .section,
  .band {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .section-tight {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .masthead-row {
    height: 60px;
    gap: 12px;
  }
  .brand-word {
    font-size: 19px;
  }
  .masthead-row .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
  }
  .hero {
    padding-top: 64px;
  }
  .hero-backdrop {
    height: 640px;
  }
  .status-line {
    flex-direction: column;
    font-size: 14px;
  }
  .modules,
  .promises,
  .steps,
  .games,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply-form {
    padding: 20px 16px;
  }
  .code-block pre {
    padding: 16px;
    font-size: 12.5px;
  }
  .shot-hub {
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .faq summary::after {
    transition: none;
  }
}
