:root {
  --stage: #15110c;
  --stage-raised: #201a13;
  --stage-sunk: #0e0b07;
  --live: #ffc65c;
  --ember: #f0a03c;
  --spent: #6b5231;
  --desk: #eceef1;
  --desk-raised: #fbfbfc;
  --ink: #16171a;
  --ink-soft: #5c6069;
  --rule-dark: rgba(255, 198, 92, 0.18);
  --rule-light: rgba(22, 23, 26, 0.12);

  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 34rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stage);
  color: var(--desk);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

a { color: inherit; }

img, svg, video { display: block; max-width: 100%; }

.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.band { padding-block: clamp(4.5rem, 9vw, 8rem); }
.band--stage { background: var(--stage); color: var(--desk); }
.band--sunk { background: var(--stage-sunk); color: var(--desk); }
.band--desk { background: var(--desk); color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark img { width: 1.6rem; height: 1.6rem; }

.nav-links { display: flex; gap: 1.75rem; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: rgba(236, 238, 241, 0.72); }
.nav-links a:hover { color: var(--live); }

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

.hero { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }

@media (min-width: 62rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-script {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.hero-script .w { color: var(--desk); transition: color 260ms ease, text-shadow 260ms ease; }

.is-reading .hero-script .w { color: rgba(236, 238, 241, 0.24); }
.is-reading .hero-script .w.is-spent { color: var(--desk); }
.is-reading .hero-script .w.is-live { color: var(--live); text-shadow: 0 0 1.6rem rgba(255, 198, 92, 0.45); }

.hero-sub { color: rgba(236, 238, 241, 0.74); max-width: var(--measure); margin: 0 0 2.25rem; }

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.7rem;
  background: var(--live);
  color: #17120a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 0.9rem 2rem rgba(255, 198, 92, 0.22);
}

.download:hover { background: #ffd27f; transform: translateY(-1px); box-shadow: 0 1.1rem 2.4rem rgba(255, 198, 92, 0.3); }
.download:active { transform: none; }

.requirements {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(236, 238, 241, 0.62);
}

.specs {
  display: grid;
  gap: 0.5rem 2.5rem;
  margin: 0.5rem 0 0;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule-dark);
  border-radius: 0.8rem;
  font-size: 0.92rem;
  text-align: left;
}

@media (min-width: 40rem) { .specs { grid-auto-flow: column; } }

.specs div { display: grid; gap: 0.15rem; }
.specs dt { color: rgba(236, 238, 241, 0.5); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.specs dd { margin: 0; color: var(--desk); }

.hero-terms {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: rgba(236, 238, 241, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  padding: 0;
}
.hero-terms li { display: flex; align-items: center; gap: 0.5rem; }
.hero-terms li::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: var(--spent); }

/* ---------- demo ---------- */

.rig { position: relative; justify-self: center; width: min(20rem, 100%); }

.rig video {
  width: 100%;
  border-radius: 1.4rem;
  border: 1px solid var(--rule-dark);
  background: #000;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
}

.rig-caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(236, 238, 241, 0.5);
}

/* ---------- takes ---------- */

.takes-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.takes-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
.takes-head p { color: rgba(236, 238, 241, 0.7); max-width: var(--measure); margin: 1.25rem 0 0; }

.takes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }

.take {
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 48rem) {
  .take { grid-template-columns: 7rem 1fr; align-items: baseline; }
}

.take-no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spent);
}

.take p { margin: 0; color: rgba(236, 238, 241, 0.88); }

.tally {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule-dark);
  border-radius: 1rem;
  background: var(--stage-raised);
  max-width: 44rem;
}
.tally p { margin: 0; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); line-height: 1.4; }
.tally strong { color: var(--live); font-weight: 600; }

/* ---------- turn ---------- */

.turn { max-width: 48rem; }
.turn h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
.turn p { color: rgba(236, 238, 241, 0.74); margin: 1.5rem 0 0; }

/* ---------- features ---------- */

.features-head { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.features-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.features-head p { color: var(--ink-soft); margin: 1.25rem 0 0; }


.feature-aha { margin-top: 1.1rem; font-weight: 600; color: var(--ink); }

.shot {
  aspect-ratio: 16 / 10;
  border-radius: 0.9rem;
  background: var(--desk-raised);
  border: 1px solid var(--rule-light);
  box-shadow: 0 1.5rem 3rem rgba(22, 23, 26, 0.09);
  overflow: hidden;
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot--empty {
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  border-style: dashed;
  border-color: rgba(22, 23, 26, 0.22);
  box-shadow: none;
  background: rgba(22, 23, 26, 0.04);
  color: var(--ink-soft);
  padding: 1.5rem;
}
.shot--empty code { font-size: 0.78rem; color: #9a6b1f; }
.shot--empty span { font-size: 0.85rem; }

/* ---------- promise ---------- */

.promise { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .promise { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.promise h3 { font-size: 1.15rem; }
.promise p { margin: 0.7rem 0 0; color: rgba(236, 238, 241, 0.68); font-size: 0.95rem; }

/* ---------- close ---------- */

.close-icon { width: 5.5rem; height: 5.5rem; filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.5)); }

.close { text-align: center; display: grid; justify-items: center; gap: 1.5rem; }
.close h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 18ch; }
.close p { color: rgba(236, 238, 241, 0.7); max-width: 34rem; margin: 0; }

.foot { padding-block: 2.5rem; border-top: 1px solid var(--rule-dark); color: rgba(236, 238, 241, 0.45); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.foot a { color: rgba(236, 238, 241, 0.6); }

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(0.75rem); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .is-reading .hero-script .w { color: var(--desk); }
  .hero-script .w { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 2px; }
.band--desk :focus-visible { outline-color: #9a6b1f; }

/* ---------- showcase ---------- */

.showcase { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 60rem) {
  .showcase { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
}

.showcase-stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 52vh;
  padding-block: 1rem;
  background: var(--desk);
  z-index: 1;
}

@media (min-width: 60rem) {
  .showcase-stage { height: 100vh; padding-block: 4rem; }
}

.stage-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
}

.stage-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.965);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.stage-shot[data-active] { opacity: 1; transform: none; pointer-events: auto; }

.stage-shot .shot {
  width: 100%;
  height: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 2rem 4.5rem rgba(22, 23, 26, 0.16), 0 0 0 1px rgba(22, 23, 26, 0.06);
}

.stage-rail {
  display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0;
  justify-content: center;
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 4vh, 2.5rem);
}

.rail-tick {
  appearance: none;
  border: 0;
  padding: 0.6rem 0;
  background: none;
  cursor: pointer;
  width: 2.1rem;
  display: block;
}

.rail-tick::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(22, 23, 26, 0.18);
  transition: background 320ms ease, transform 320ms ease;
}

.rail-tick:hover::after { background: rgba(22, 23, 26, 0.4); }
.rail-tick[data-active]::after { background: #9a6b1f; transform: scaleY(2); }
.rail-tick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.showcase-copy { display: grid; }

@media (min-width: 60rem) {
  /* The sticky picture can only stay pinned while there is column left to
     pin it against. Without this the last chapter scrolls past a picture
     that has already come unstuck. */
  .showcase-copy { padding-bottom: 30vh; }
}

.chapter {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  min-height: 60vh;
  padding-block: clamp(2rem, 6vw, 4rem);
  opacity: 0.45;
  transition: opacity 480ms ease;
}

@media (min-width: 60rem) {
  .chapter { min-height: 100vh; }
}

.chapter[data-active] { opacity: 1; }
.chapter h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.chapter p { margin: 0; color: var(--ink-soft); max-width: 32rem; }
.chapter .feature-aha { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .stage-shot { transition: none; }
  .chapter { opacity: 1; transition: none; }
}

/* ---------- legal pages ---------- */

.legal { background: var(--desk); color: var(--ink); min-height: 100vh; }

.legal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule-light);
}
.legal-nav .wordmark { color: var(--ink); }
.legal-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.legal-nav a:hover { color: var(--ink); }

.prose { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 0.75rem; }
.prose h2 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}
.prose h3 { font-size: 1.02rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.65; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: #8a5f16; }

.stamp { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2rem; }

.fill {
  background: rgba(154, 107, 31, 0.12);
  border-radius: 0.25rem;
  padding: 0.05rem 0.35rem;
  color: #7d5512;
  font-weight: 600;
}

.summary {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rule-light);
  border-left: 3px solid #9a6b1f;
  border-radius: 0.5rem;
  background: rgba(22, 23, 26, 0.03);
}
.summary p { margin: 0; color: var(--ink); }

.legal-foot {
  border-top: 1px solid var(--rule-light);
  padding-block: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--ink-soft); font-size: 0.85rem;
}
.legal-foot a { color: var(--ink-soft); }

/* Buy page */
.buy { max-width: 42rem; padding-block: 4rem 6rem; }
.buy h1 { margin-bottom: .5rem; }
.buy-lede { color: var(--muted, #9aa0a6); margin-bottom: 2.5rem; }
.buy-form { display: grid; gap: .5rem; }
.buy-form label { font-weight: 600; }
.buy-form input {
  font: inherit; padding: .8rem 1rem; border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: inherit;
}
.buy-form input:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
.buy-form button, .buy-done button {
  font: inherit; font-weight: 600; cursor: pointer; justify-self: start;
  padding: .8rem 1.5rem; border-radius: .6rem; border: 0;
  background: #0a84ff; color: #fff; margin-top: .5rem;
}
.buy-form button[disabled] { opacity: .55; cursor: progress; }
.buy-note { font-size: .85rem; color: var(--muted, #9aa0a6); margin: 0; }
.buy-status { margin-top: 1.5rem; }
.buy-status.bad { color: #ff6b6b; }
.buy-done { margin-top: 2rem; }
.buy-licence {
  overflow-wrap: anywhere; white-space: pre-wrap; font-size: .8rem; line-height: 1.6;
  padding: 1rem; border-radius: .6rem; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.buy-price { font-size: 1.15rem; margin: -1.5rem 0 2rem; }
.buy-remaining { color: #ffb340; }

/* Pricing */
.price-card {
  max-width: 34rem; margin: 2.5rem 0 0; padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); text-align: left;
}
.price-launch {
  margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #ffb340;
}
.price-figure { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; }
.price-figure span { font-size: 1rem; font-weight: 400; opacity: .75; }
.price-after { margin: .6rem 0 1.5rem; font-size: .9rem; opacity: .75; }
.price-list { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.price-list li { padding-left: 1.5rem; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: #ffb340; }
.price-note { margin: 1.25rem 0 0; font-size: .85rem; opacity: .75; }

.hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; }
.hero-price s { opacity: .5; font-size: 1.05rem; text-decoration-thickness: 1.5px; }
.hero-price strong { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1; }
.hero-price span { font-size: .9rem; opacity: .75; }
.hero-second { display: inline-block; margin-left: 1rem; font-weight: 600; opacity: .8; }
