/* Prowlogue — prowlogue.app
   Tokens first, then components in page order. Motion durations are multiplied by
   --mt, which drops to 0 when the visitor prefers reduced motion. Hover styles sit
   behind (hover: hover) so taps on touch screens don't leave them stuck on. */

:root {
  --bg: #050A1A;
  --bg-deep: #040817;
  --surface: #0A1129;
  --surface-screen: #0B1430;

  --text: #EEF1F8;
  --white: #FFFFFF;
  --muted: #AEB6CC;
  --subtle: #9AA3BA;
  --faint: #7E87A0;
  --dim: #5F6882;
  --soft: #C9CFDF;
  --legal: #C3CADB;

  --link: #9DBEFF;
  --violet: #A98CFF;
  --sky: #7EB2FF;
  --amber: #F2C46B;
  --btn-hover: #DCE6FF;
  --discord: #5865F2;
  --discord-hover: #4752C4;
  --line: rgba(255, 255, 255, 0.08);

  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-glass: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --mt: 1;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
@media (hover: hover) {
  a:hover { color: var(--white); }
}

::selection { background: rgba(139, 60, 230, 0.55); color: var(--white); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  transition: background-color 200ms ease, transform 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-sm:active { transform: scale(0.96); }
.btn-md { font-size: 15px; padding: 12px 20px; }
.btn-lg { font-size: 16px; padding: 14px 24px; }

.btn-light { font-weight: 600; color: var(--bg); background: var(--white); }
.btn-ghost { font-weight: 500; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-discord { font-weight: 600; color: var(--white); background: var(--discord); }

@media (hover: hover) {
  .btn-light:hover { color: var(--bg); background: var(--btn-hover); }
  .btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
  .btn-discord:hover { color: var(--white); background: var(--discord-hover); }
}

/* ---------- Nav: full-width bar at the top, floating glass capsule once scrolled ---------- */

.nav { position: sticky; top: 0; z-index: 50; }

.nav-bar {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 26, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity calc(400ms * var(--mt)) ease;
  pointer-events: none;
}

.nav-wrap {
  position: relative;
  padding: 0;
  transition: padding calc(600ms * var(--mt)) var(--ease-glass);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 23px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0);
  background-color: rgba(18, 24, 52, 0);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0), inset 0 1px 0 rgba(255, 255, 255, 0);
  transition:
    max-width calc(600ms * var(--mt)) var(--ease-glass),
    padding calc(600ms * var(--mt)) var(--ease-glass),
    background-color calc(450ms * var(--mt)) ease,
    border-color calc(450ms * var(--mt)) ease,
    box-shadow calc(450ms * var(--mt)) ease;
}

.nav.is-glass .nav-bar { opacity: 0; }
.nav.is-glass .nav-wrap { padding: 10px 16px 0; }
.nav.is-glass .nav-inner {
  max-width: 760px;
  padding: 8px 8px 8px 16px;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(18, 24, 52, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.nav-spacer { flex: 1; }

.nav-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-right: -11px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 250ms ease;
}
.nav-links a.is-current { color: var(--white); }
@media (hover: hover) {
  .nav-links a:hover { color: var(--white); }
}

/* Scroll-spy pill; app.js sets its position and size. */
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sw, 0px);
  height: var(--sh, 0px);
  transform: translate(var(--sx, 0px), var(--sy, 0px));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: var(--so, 0);
  transition:
    transform calc(520ms * var(--mt)) var(--ease-glass),
    width calc(520ms * var(--mt)) var(--ease-glass),
    opacity calc(300ms * var(--mt)) ease;
  pointer-events: none;
}

@media (max-width: 599.98px) {
  .nav-links { display: none; }
}

/* ---------- Home ---------- */

.home { overflow-x: hidden; overflow-x: clip; }

.section { scroll-margin-top: 80px; }

.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.section-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.section-lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 24px 40px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: -120px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 60, 230, 0.22), rgba(59, 149, 245, 0.10) 55%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* The logo is one image shown twice: the lion (left 60%) and the runner (right 40%),
   so each can move on its own. */
.hero-logo {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4000 / 1733;
  margin-bottom: 8px;
}
.hero-lion, .hero-runner { position: absolute; inset: 0; }
.hero-lion { transform: translate3d(var(--chl, 0px), 0, 0); }
.hero-runner { transform: translate3d(var(--chr, 0px), 0, 0); }
.hero-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-lion img {
  clip-path: inset(0 40% 0 0);
  transform-origin: 20% 90%;
  transform: translateX(var(--lx, 0%)) rotate(var(--lr, 0deg));
  transition: transform 700ms var(--ease-spring);
}
.hero-runner img {
  clip-path: inset(0 0 0 60%);
  transform: translate(var(--hx, 0%), var(--hy, 0%));
  transition: transform 600ms var(--ease-spring);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(100deg, #B04BF0, #4A9BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 0;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Screenshot carousel */

.showcase { padding: 24px clamp(32px, 8vw, 80px) 96px; }
.showcase-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stage { position: relative; }

/* Ambient light: the current screenshot, blurred, glowing behind the frame. Rendered
   at a quarter size and scaled up so the blur stays cheap. */
.ambient {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 10%;
  bottom: 2%;
  z-index: -1;
  pointer-events: none;
}
.ambient img {
  position: absolute;
  left: 0;
  top: 0;
  width: 25%;
  height: 25%;
  object-fit: cover;
  transform: scale(4);
  transform-origin: 0 0;
  filter: blur(18px) saturate(1.6);
  opacity: 0;
  transition: opacity 1400ms ease;
}
.ambient img.is-active { opacity: 0.55; }

.frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-screen);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 120px -30px rgba(70, 60, 200, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.025);
  touch-action: pan-y;
  outline-offset: 6px;
  transform: perspective(1800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(calc(1 + var(--hov, 0) * 0.006));
  transition: transform var(--tt, 800ms) var(--ease-out);
}
.screen { position: absolute; inset: 0; }

/* The incoming slide settles from a slight zoom while it fades in. */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity calc(700ms + 250ms * var(--mt)) ease,
    transform calc(1800ms * var(--mt)) var(--ease-out);
}
.slide.is-active, .slide.is-prev { transform: scale(1); }
.slide.is-active { opacity: 1; }

.frame-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 45%);
  opacity: var(--hov, 0);
  transition: opacity 500ms ease;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 300ms ease;
}
.progress-fill {
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: rgba(255, 255, 255, 0.85);
}

.showcase-meta { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }

.captions { flex: 1; min-width: 260px; display: grid; }
.caption {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 260ms ease;
  pointer-events: none;
}
.caption.is-prev { transform: translateY(-6px); }
.caption.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease 140ms, transform 720ms var(--ease-out) 140ms;
  pointer-events: auto;
}
.caption-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.caption-text { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.controls { display: flex; align-items: center; gap: 10px; }

.counter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 52px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
}
.counter-window { display: block; height: 18px; overflow: hidden; }
.counter-roll {
  display: flex;
  flex-direction: column;
  transition: transform calc(600ms * var(--mt)) var(--ease-out);
}
.counter-roll span { display: block; height: 18px; color: var(--soft); }

.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}
.arrow:active { transform: scale(0.92); }
@media (hover: hover) {
  .arrow:hover { background: rgba(255, 255, 255, 0.08); }
}

.chips {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

/* White pill that slides behind the active chip; app.js sets its position and size. */
.chips-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw, 0px);
  height: var(--chh, 0px);
  transform: translateX(var(--cx, 0px));
  border-radius: 999px;
  background: var(--white);
  transition:
    transform calc(560ms * var(--mt)) var(--ease-glass),
    width calc(560ms * var(--mt)) var(--ease-glass);
  pointer-events: none;
}
.chip {
  position: relative;
  flex: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  transition: color 200ms ease, border-color 300ms ease 120ms;
}
.chip.is-active {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0);
  transition: color 240ms ease 200ms, border-color 240ms ease;
}
/* Until the pill has been measured, the active chip draws its own background. */
.chips:not(.is-ready) .chip.is-active { background: var(--white); border-color: var(--white); }

/* Features */

.features { padding: 64px 24px; }
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.feature-copy { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}
.feature-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.feature-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 13px;
  color: var(--soft);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* Specular highlight that follows the pointer on tilting cards. */
.shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--hov, 0);
}

.shot {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 calc(30px + var(--hov, 0) * 16px) calc(80px + var(--hov, 0) * 24px) -30px rgba(0, 0, 0, 0.7);
  transform:
    perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(calc(var(--hov, 0) * -6px)) scale(calc(1 + var(--hov, 0) * 0.012));
  transition: transform var(--tt, 700ms) var(--ease-out), box-shadow 500ms ease;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.shot .shine {
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.13), transparent 42%);
  transition: opacity 400ms ease;
}

/* Hairline grid of smaller features. Capped at three columns so six cells always fill
   complete rows. */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(260px, (100% - 3px) / 3)), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.cell { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.cell-title { margin: 0; font-size: 17px; font-weight: 600; }
.cell-text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Integrations */

.integrations { padding: 96px 24px; }
.integrations-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 12px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, calc(0.07 + var(--hov, 0) * 0.07));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform:
    perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(calc(var(--hov, 0) * -3px)) scale(calc(1 + var(--hov, 0) * 0.02));
  transition: transform var(--tt, 600ms) var(--ease-out), border-color 300ms ease;
}
.card .shine {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
  transition: opacity 300ms ease;
}
.card-title { position: relative; margin: 0; font-size: 16px; font-weight: 600; }
.card-text { position: relative; font-size: 14px; line-height: 1.5; color: var(--subtle); }

.card--soon {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, calc(0.14 + var(--hov, 0) * 0.08));
}
.card--soon .shine {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 60%);
}
.card-head { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
}

/* Install */

.install { padding: 48px 24px 96px; }
.install-box {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: center;
}
.install-glow {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(139, 60, 230, 0.25), transparent);
  pointer-events: none;
}
.install-copy { position: relative; display: flex; flex-direction: column; gap: 20px; }
.install-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.step-num { font-family: var(--mono); font-size: 14px; color: var(--violet); padding-top: 2px; }
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-title { font-size: 17px; font-weight: 600; }
.step-text { font-size: 15px; line-height: 1.5; color: var(--subtle); }

/* FAQ */

.faq { padding: 64px 24px 96px; }
.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font: inherit; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease;
}
@media (hover: hover) {
  .faq-btn:hover { color: var(--white); }
}
.faq-btn-text { flex: 1; }

/* Plus that turns into a minus: the vertical bar rotates flat. */
.faq-icon { position: relative; flex: none; width: 24px; height: 24px; }
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  border-radius: 2px;
  background: var(--faint);
}
.faq-icon::before { left: 5px; right: 5px; top: 11px; height: 2px; }
.faq-icon::after {
  top: 5px;
  bottom: 5px;
  left: 11px;
  width: 2px;
  transition: transform calc(420ms * var(--mt)) var(--ease-glass);
}
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows calc(480ms * var(--mt)) var(--ease-glass);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-clip { overflow: hidden; min-height: 0; }
.faq-a {
  margin: 0;
  padding-bottom: 24px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity calc(380ms * var(--mt)) ease,
    transform calc(480ms * var(--mt)) var(--ease-out);
}
.faq-item.is-open .faq-a { opacity: 1; transform: translateY(0); }

/* Credits */

.credits { padding: 0 24px 96px; }
.credits-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.credits-copy { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.credits-title { font-size: 18px; font-weight: 600; }
.credits-text {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--subtle);
  text-wrap: pretty;
}
.credits .btn { flex: none; white-space: nowrap; }

/* ---------- Legal pages ----------
   Privacy and Terms text sits between legal:start / legal:end markers and is generated by
   tools/sync-legal.py from the app, so the markup below is what that script emits. */

.legal { padding: 72px 24px 120px; }
.legal-article {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--legal);
  overflow-wrap: break-word; /* long bare URLs on phones */
}
.legal-article p { margin: 0; }
.legal-article h2 {
  margin: 16px 0 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-article ul {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-article li { padding-left: 0.2em; }
.legal-article li::marker { color: var(--faint); }

.legal-section,
.legal-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 96px;
}
.legal-num { color: var(--faint); font-variant-numeric: tabular-nums; }

.legal-summary {
  gap: 6px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.legal-article .legal-summary h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}

/* All-caps notices (the arbitration clause) keep a box so they stay conspicuous. */
.legal-notice {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(242, 196, 107, 0.28);
  background: rgba(242, 196, 107, 0.06);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.back-link { font-size: 14px; color: var(--subtle); }

.legal-head { display: flex; flex-direction: column; gap: 12px; }
.legal-head h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
}
.legal-date { font-family: var(--mono); font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */

.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.footer .brand img { width: 30px; height: 30px; }
.footer .brand span { font-size: 17px; letter-spacing: normal; }
.footer-tagline { margin: 0; font-size: 14px; line-height: 1.6; color: var(--faint); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a { color: var(--legal); }
@media (hover: hover) {
  .footer-col a:hover { color: var(--white); }
}
.footer-fine {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

/* ---------- Entrance gating ----------
   The inline script in <head> adds .js; app.js adds .is-ready once the entrance
   animations are queued. Until then the animated parts stay hidden so they don't
   flash. If app.js never runs, they appear after 3s anyway. */

.js:not(.is-ready) [data-hero],
.js:not(.is-ready) [data-lion],
.js:not(.is-ready) [data-runner],
.js:not(.is-ready) [data-enter] {
  opacity: 0;
  animation: reveal-fallback 0s 3s forwards;
}
@keyframes reveal-fallback { to { opacity: 1; } }

/* Without JavaScript the accordion can't open, so show every answer. */
html:not(.js) .faq-panel { grid-template-rows: 1fr; }
html:not(.js) .faq-a { opacity: 1; transform: none; }

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

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

  .js:not(.is-ready) [data-hero],
  .js:not(.is-ready) [data-lion],
  .js:not(.is-ready) [data-runner],
  .js:not(.is-ready) [data-enter] { opacity: 1; animation: none; }

  .slide { transform: none; }
  .caption, .caption.is-prev, .caption.is-active { transform: none; transition: none; }
  .chip, .chip.is-active { transition: none; }
  .progress { opacity: 0; }
  .faq-a { transform: none; }
}
