/* PlayKit storefront (ADR 0014). Deep-space dark, single indigo accent, DM Sans only.
   Tokens mirror brand/tokens.css in the PlayUGC repo; the live site is canonical.
   Everything animates on transform/opacity only, and every motion respects
   prefers-reduced-motion at the bottom of this file. */

:root {
  --bg-base: #080b12;
  --bg-panel: #0f1320;
  --bg-panel-raised: #141926;
  --bg-dark-book: #05070d;

  --border-subtle: #1c2238;
  --border-mid: #252e4a;
  --border-accent: #3d4fa8;

  --text-primary: #eef1fa;
  --text-secondary: #8b93b0;
  --text-tertiary: #525c7a;

  --accent: #6366f1;
  --accent-hover: #4f52d1;
  --accent-pressed: #3e41b8;
  --accent-dim: #2d3070;
  --accent-glow: rgba(99, 102, 241, 0.18);

  --color-success: #4ade80;
  --color-success-dim: rgba(74, 222, 128, 0.1);

  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --nav-h: 62px;

  --radius-sm: 6px;
  --radius-input: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --t-fast: 0.15s ease;
  --t-med: 0.25s ease;
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 200;
}
.skip:focus {
  left: 0;
}

/* ---------- layout ---------- */

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

section {
  position: relative;
  padding: 80px 0;
}

/* Dark-book bands carry more vertical weight than plain sections. That difference IS the
   page's rhythm: without it eleven sections scroll past at one identical metronome beat. */
.band {
  padding: 96px 0;
  background: var(--bg-dark-book);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 4.2vw, 41px);
  letter-spacing: -0.028em;
  line-height: 1.14;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 18px;
  max-width: 62ch;
}

.center {
  text-align: center;
}
.center .lede {
  margin-left: auto;
  margin-right: auto;
}

.head {
  max-width: 720px;
  margin-bottom: 54px;
}
.head.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ambient glow ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(64px);
  opacity: 0.65;
}
.glow-a {
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  margin-left: -520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.55) 0%, rgba(99, 102, 241, 0.16) 45%, transparent 72%);
}
.glow-b {
  width: 520px;
  height: 520px;
  top: 40px;
  right: -180px;
  background: radial-gradient(circle, rgba(61, 79, 168, 0.5) 0%, rgba(61, 79, 168, 0.15) 45%, transparent 74%);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.stuck {
  border-bottom-color: var(--border-subtle);
  background: rgba(8, 11, 18, 0.92);
}
.nav-in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.brand i {
  color: var(--accent);
  font-style: normal;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: -4px;
}
/* Status, not decoration: it sits against the wordmark so nobody can read the product
   as further along than it is. Stays visible at every width, including phones. */
.lbl-sm {
  display: none;
}

.beta-tag {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  /* 44px tall so every nav item clears the minimum touch target on a phone */
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-input);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast),
    box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(99, 102, 241, 0.34);
}
.btn-primary:active {
  background: var(--accent-pressed);
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}
.btn-ghost:hover {
  border-color: var(--border-accent);
  background: rgba(99, 102, 241, 0.07);
}
/* The hero and closing CTAs get the documented roomier primary-button proportions. */
.btn-primary:not(.btn-sm) {
  min-height: 50px;
  padding: 14px 28px;
}
.btn-sm {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 14px;
}
.btn-wide {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.center .cta-row {
  justify-content: center;
}
.trust {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-top: 18px;
  line-height: 1.5;
}

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

.hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 16ch;
}
.hero .lede {
  max-width: 56ch;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  background: var(--bg-panel);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.hero-pill b {
  color: var(--text-primary);
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-dim);
  flex-shrink: 0;
}

/* ---------- terminal vignette ---------- */

.term {
  margin-top: 46px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-dark-book);
  overflow: hidden;
  position: relative;
  max-width: 760px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.18),
    0 40px 90px -30px rgba(99, 102, 241, 0.4);
}
/* Its own light source. The hero's two ambient glows sit up behind the headline, which left
   the one piece of actual art on the page as its least-lit surface. */
.term::before {
  content: "";
  position: absolute;
  top: -70px;
  left: -10%;
  width: 120%;
  height: 220px;
  background: radial-gradient(ellipse at 40% 100%, rgba(99, 102, 241, 0.32), transparent 72%);
  filter: blur(56px);
  z-index: -1;
  pointer-events: none;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-panel);
}
.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-mid);
}
.term-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.term-body {
  padding: 20px 22px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
}
.term-line {
  display: flex;
  gap: 10px;
  color: var(--text-primary);
}
.term-line + .term-line {
  margin-top: 6px;
}
.term-line .pfx {
  color: var(--accent);
  flex-shrink: 0;
  user-select: none;
}
.term-out {
  color: var(--text-secondary);
  padding-left: 24px;
}
.term-ok {
  color: var(--color-success);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: -3px;
  margin-left: 2px;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* ---------- marquee ---------- */

.marquee {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-dark-book);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  padding: 0 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-accent);
  vertical-align: middle;
  margin-left: 26px;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-panel);
  padding: 32px 26px;
  text-align: center;
}
.stat b {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 32px var(--accent-glow);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------- tabs ---------- */

.tablist {
  display: flex;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: 1 1 auto;
  min-width: max-content;
  min-height: 44px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.tab:hover {
  color: var(--text-primary);
}
.tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.panel[hidden] {
  display: none;
}
.panel {
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.panel-head {
  margin-bottom: 30px;
}
.panel-head h3 {
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.panel-head p {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 66ch;
  font-size: 16.5px;
}
.feat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feat li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.feat li:hover {
  border-color: var(--border-accent);
  background: var(--bg-panel-raised);
  transform: translateY(-2px);
}
.feat li b {
  color: var(--text-primary);
  font-weight: 600;
}
.tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
}
.tick svg {
  width: 11px;
  height: 11px;
  stroke: var(--accent);
  stroke-width: 3;
  fill: none;
}
/* The proof tab's ticks echo the terminal's own green gate line, so the section that is
   about pass/fail reads as pass/fail instead of as one more indigo checklist. */
#p3 .tick {
  background: var(--color-success-dim);
}
#p3 .tick svg {
  stroke: var(--color-success);
}
/* The honesty list is "what we will not oversell," not a feature win. Neutral, not accent. */
.honest-list .tick {
  background: transparent;
  border: 1px solid var(--border-mid);
}
.honest-list .tick svg {
  stroke: var(--text-tertiary);
}

.beta {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: 1px;
}

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color var(--t-med), transform var(--t-med);
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.card h3 {
  margin-bottom: 12px;
}
.card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}
.card-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* the wounds cards */
.wound {
  position: relative;
  padding-top: 34px;
}
.wound::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 28px;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.wound h3 {
  margin-top: 14px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: s;
}
.step {
  position: relative;
  padding-left: 60px;
}
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-panel);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ---------- honesty band ---------- */

.honest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.honest-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}
.honest-list li:last-child {
  border-bottom: none;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}
.faq details {
  border-bottom: 1px solid var(--border-subtle);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t-med);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq details p {
  padding: 0 4px 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 70ch;
}

/* ---------- pricing ---------- */

.featured {
  position: relative;
  background: var(--gradient-accent-panel, linear-gradient(135deg, var(--accent-dim), var(--bg-panel) 72%));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 10px 50px var(--accent-glow);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 8px;
}
.price b {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price span {
  font-size: 16px;
  color: var(--text-secondary);
}
.price-note {
  font-size: 14px;
  color: var(--text-tertiary);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.tier {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--t-med), transform var(--t-med);
}
/* The tier we expect to be the upsell once self-serve ships. */
.tier[data-highlight] {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), var(--bg-panel) 45%);
}
.tier:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
}
.tier h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.soon {
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-mid);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.tier-who {
  margin: 12px 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  min-height: 66px;
}
.tier ul {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}
.tier ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.tier .btn {
  margin-top: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 8px;
}
.compare th,
.compare td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.compare thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom-color: var(--border-mid);
}
.compare td:first-child,
.compare th:first-child {
  color: var(--text-primary);
  font-weight: 500;
}
.compare td {
  color: var(--text-secondary);
}
.compare .yes {
  color: var(--color-success);
  font-weight: 600;
}
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.note {
  max-width: var(--wrap-narrow);
  margin: 42px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- audience ---------- */

.who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.who div {
  padding: 26px 24px;
  border-left: 2px solid var(--border-accent);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
}
.who div:nth-child(2) {
  border-left-color: var(--border-mid);
}
.who h3 {
  margin-bottom: 10px;
}
.who p {
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark-book);
  padding: 62px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 46px;
}
.foot-grid h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.foot-grid li {
  margin-bottom: 11px;
}
.foot-grid li a {
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.foot-grid li a:hover {
  color: var(--text-primary);
}
.foot-blurb {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 34ch;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-tertiary);
}

/* ---------- the demo video ---------- */

/* preload="none" plus a poster means this costs nothing until someone chooses to watch,
   which matters because it is the heaviest asset on the page by an order of magnitude. */
.vid {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: var(--bg-dark-book);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.14),
    0 60px 130px -40px rgba(99, 102, 241, 0.34);
}
.vid video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-dark-book);
}
.vid-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.24), rgba(8, 11, 18, 0.68));
  transition: background var(--t-med), opacity var(--t-med);
}
.vid-play:hover {
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.14), rgba(8, 11, 18, 0.6));
}
.vid.playing .vid-play {
  opacity: 0;
  pointer-events: none;
}
.vid-play i {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.55);
  transition: transform var(--t-med);
}
.vid-play:hover i {
  transform: scale(1.06);
}
.vid-play i::after {
  content: "";
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
}
.vid-play b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vid-play span {
  font-size: 13px;
  color: var(--text-secondary);
}
.vid-cap {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-tertiary);
}
/* Bridges backward to the setup the poster frame does not show, which is the reason
   to press play at all. */
.vid-hook {
  position: absolute;
  left: 22px;
  bottom: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}
.vid-len {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid var(--border-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.vid.playing .vid-hook,
.vid.playing .vid-len {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}

@media (max-width: 620px) {
  .vid-play i {
    width: 60px;
    height: 60px;
  }
  .vid-play i::after {
    border-width: 11px 0 11px 17px;
  }
  .vid-play b {
    font-size: 15px;
  }
}

/* ---------- angled product shots (the gamebeast move) ---------- */

/* A real screenshot presented in perspective, easing flat as it enters the viewport.
   The tilt is the resting state; site.js adds .flat when the shot scrolls in, and
   prefers-reduced-motion ships them flat from the start. */
.shot3d {
  perspective: 1400px;
  perspective-origin: 50% 30%;
}
.shot3d .shot {
  position: relative;
  transform: rotateX(16deg) rotateY(-6deg) scale(0.96);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.14),
    0 60px 130px -40px rgba(99, 102, 241, 0.38);
  background: var(--bg-panel);
}
.shot3d.flat .shot {
  transform: rotateX(3deg) rotateY(0deg) scale(1);
}
.shot3d.tilt-r .shot {
  transform: rotateX(14deg) rotateY(7deg) scale(0.96);
}
.shot3d.tilt-r.flat .shot {
  transform: rotateX(3deg) rotateY(0deg) scale(1);
}
.shot3d .shot img {
  display: block;
  width: 100%;
}
/* the soft screen glow under a shot */
.shot3d::after {
  content: "";
  display: block;
  margin: -8% auto 0;
  width: 82%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.28), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

/* outcome art panels */
.art {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.art img {
  width: 100%;
  display: block;
}
.art-cap {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* outcome blocks: text one side, visual the other, alternating */
.outcome {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
/* Grid children default to min-width:auto, so a nowrap proof chip's min-content width
   can force the whole document wider than a phone. Zero it so overflow-x:auto on the
   chip actually scrolls instead of stretching the page. */
.outcome > * {
  min-width: 0;
}
.outcome.rev {
  grid-template-columns: 1.1fr 1fr;
}
.outcome.rev .outcome-copy {
  order: 2;
}
.outcome + .outcome {
  margin-top: 96px;
}
.outcome-copy .lede {
  font-size: 17px;
  margin-top: 16px;
}
.outcome-proof {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-dark-book);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-success);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- the kit wall (real cards, same anatomy as the app) ---------- */

.kitwall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kitcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.kitcard:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
}
.kitcard-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.kitcard-top b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.kitcard-top .v {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.kitcard p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  flex: 1;
}
.kitcard-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kitcard-cmds span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  background: var(--bg-dark-book);
  color: var(--text-secondary);
}
.kitcard-cmds .lib {
  border-style: dashed;
  color: var(--text-tertiary);
}
.kitcard-more {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
}
.kitcard-more b {
  font-size: 15.5px;
  color: var(--text-primary);
}
.kitcard-more span {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .featured {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px;
  }
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  section {
    padding: 56px 0;
  }
  .band {
    padding: 68px 0;
  }
  .outcome,
  .outcome.rev {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .outcome.rev .outcome-copy {
    order: 0;
  }
  .outcome + .outcome {
    margin-top: 64px;
  }
  /* a long gate line wraps on a phone instead of forcing a horizontal scroll */
  .outcome-proof {
    white-space: normal;
    word-break: break-word;
  }
  .kitwall {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3,
  .steps,
  .who {
    grid-template-columns: 1fr;
  }
  .feat {
    grid-template-columns: 1fr;
  }
  .honest {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-links a[data-opt] {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 20px;
  }
  section {
    padding: 44px 0;
  }
  .band {
    padding: 56px 0;
  }
  .head {
    margin-bottom: 38px;
  }
  .grid-2,
  .tiers,
  /* one column: the stat captions differ in length by 4x, and a 2-up grid makes that lumpy */
  .stats {
    grid-template-columns: 1fr;
  }
  .tier-who {
    min-height: 0;
  }
  .card,
  .featured {
    padding: 26px 22px;
  }
  .stat {
    padding: 26px 18px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .kitwall {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 14px;
  }
  /* On a phone the nav keeps the brand and the one CTA; the section links live in
     the page itself, one swipe away. Two text links plus a wide button cannot share
     390px without wrapping or clipping. */
  .nav-links a:not(.btn) {
    display: none;
  }
  /* The beta pill costs real width here, so the wordmark drops its byline and the CTA
     tightens rather than letting the button clip off the right edge. */
  .nav-in {
    gap: 12px;
  }
  .brand small {
    display: none;
  }
  .beta-tag {
    margin-left: 8px;
    padding: 3px 7px;
    font-size: 9.5px;
  }
  .nav-links .btn-sm {
    padding: 9px 14px;
    font-size: 13.5px;
  }
  .lbl-lg {
    display: none;
  }
  .lbl-sm {
    display: inline;
  }
  .term-body {
    font-size: 12px;
    padding: 16px;
  }
  .price b {
    font-size: 42px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .glow-a,
  .glow-b {
    width: 340px;
    height: 340px;
    filter: blur(70px);
  }
}

/* Motion is decoration. If the reader has asked the OS to stop it, stop all of it:
   the reveals become their final state rather than never appearing. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
  .caret {
    animation: none;
  }
}
