/* ============================================================
   Design Brief: Playtest AI ← inspired by https://macroscope.com/
   Do not copy Macroscope assets, logos, or copy. Tokens below
   are measured from the reference and retuned for a game-QA product.

   Structure
   - Sequence: capsule nav → lavender command hero with frosted
     pillar cards and a stipple scene → typographic trust strip →
     product-stage console → feature-pair rows → pastel studio lanes →
     dark dotted differentiation → typography-led close + word marquee →
     quiet multi-column footer
   - Alternation: light airy hero, white product, pale pairs, tinted
     lanes, near-black signal band, light close
   - Layout types: nav-capsule, hero-command, trust-wordstrip,
     product-stage, feature-pair-rows, studio-lanes, diff-dark,
     marquee-close, footer-quiet

   Hero
   - Layout: left headline (not centered), right stack of three
     frosted cards. Stipple figure sits in the lower wash.
   - Background: #F4F2FB falling into a periwinkle wash. Accent
     #5B4DFF appears only as stipple, focus, and small beta marks.
   - Headline: Geist 500, ~64px, tracking about -0.058em, ink #191E2D
   - CTAs: near-black pill + frosted white pill

   Navigation
   - Transparent over the hero. After scroll, a floating black
     capsule (logo, text links, ghost pill, solid pill).

   Motion
   - Reveal: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1), short stagger
   - Hover: 1–4px lift, fill shift on pills
   - One slow stipple drift and a linear word marquee
   - Reduced motion: animations.css

   Tokens
   - Page #F8F9FC, ink #191E2D, muted #50586C, accent #5B4DFF
   - Dark band #101114 with a 1px dot grid
   - Radius: pills 999px, cards 16px, product frames 22px
   - Type: Geist for display and body (reference uses one family)
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans:vf@5.2.5/latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f8f9fc;
  --color-bg-alt: #ffffff;
  --color-bg-hero: #f3f1fb;
  --color-surface: rgba(255, 255, 255, 0.62);
  --color-text: #191e2d;
  --color-text-muted: #50586c;
  --color-text-soft: #78829a;
  --color-accent: #5b4dff;
  --color-accent-hover: #4638e8;
  --color-border: rgba(25, 30, 45, 0.1);
  --color-ink: #191e2d;
  --color-dark: #101114;
  --color-on-dark: #f8fafc;
  --color-on-dark-muted: rgba(248, 250, 252, 0.72);
  --font-display: "Geist", "Segoe UI", sans-serif;
  --font-body: "Geist", "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --space-section: clamp(4.5rem, 8vw, 7.25rem);
  --space-grid: clamp(1.5rem, 3vw, 3.5rem);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 0.28s var(--ease);
  --transition-reveal: 0.7s var(--ease);
  --shadow-card: 0 10px 30px rgba(37, 32, 84, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

h1, h2, h3, p {
  margin: 0;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  color: var(--color-ink);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.72rem 1.15rem;
  background: transparent;
  color: var(--color-ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.btn--primary {
  background: var(--color-ink);
  color: #fff;
}

.btn--primary:hover {
  background: #05070c;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(25, 30, 45, 0.06);
}

.btn--ghost:hover {
  background: #fff;
}

.btn--nav-ghost {
  background: rgba(25, 30, 45, 0.06);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.btn--nav-solid {
  background: #111216;
  color: #fff;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.site-header.is-floating .btn--nav-ghost {
  background: #24262c;
  color: #fff;
  box-shadow: none;
}

.site-header.is-floating .btn--nav-solid {
  background: #fff;
  color: #111216;
}

.btn--on-dark {
  background: #fff;
  color: #111216;
}

.btn--on-dark:hover {
  background: #eceff6;
}

.btn--line {
  background: transparent;
  color: var(--color-on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn--line:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn__icon {
  width: 16px;
  height: 16px;
}

/* Header — nav-capsule */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 14px 18px 0;
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 6px 0 8px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
}

.site-header.is-floating .site-header__bar {
  background: #0e0f12;
  color: #fff;
  box-shadow: 0 12px 40px rgba(14, 15, 18, 0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 560;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
  padding-left: 0.45rem;
}

.logo img {
  width: 28px;
  height: 28px;
}

.site-header.is-floating .logo img {
  filter: invert(1);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-panel a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  color: inherit;
}

.nav-panel a:hover {
  background: rgba(25, 30, 45, 0.05);
}

.site-header.is-floating .nav-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(25, 30, 45, 0.06);
  color: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.site-header.is-floating .nav-toggle {
  background: #24262c;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }

/* Hero — hero-command */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 920px);
  padding: 7.5rem 0 0;
  background:
    radial-gradient(880px 480px at 78% 18%, rgba(91, 77, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #f7f6fc 0%, #ece8f8 46%, #f8f9fc 100%);
  overflow: hidden;
}

.hero__spray {
  position: absolute;
  z-index: 0;
  right: 6%;
  top: 8%;
  width: min(460px, 48vw);
  height: 460px;
  background-image: radial-gradient(circle, rgba(91, 77, 255, 0.55) 1.05px, transparent 1.25px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle at 40% 40%, #000 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
  gap: var(--space-grid);
  align-items: center;
  min-height: 560px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  max-width: 640px;
  padding-bottom: 4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.7rem, 5.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
  color: var(--color-ink);
}

.hero__subtitle {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.48);
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px rgba(25, 30, 45, 0.05);
}

.chip strong {
  font-weight: 500;
}

.chip span {
  color: var(--color-text-soft);
  font-weight: 500;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.82);
}

.hero__pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 5.5rem;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--color-ink);
}

.pillar h2 {
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pillar p {
  margin-top: 0.28rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.beta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.42rem;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(91, 77, 255, 0.9) 1px, transparent 1.15px) 0 0 / 5px 5px,
    #efeaff;
  color: var(--color-accent);
}

.mark svg {
  width: 18px;
  height: 18px;
}

.hero__scene {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 340px;
  pointer-events: none;
}

.hero__scene svg {
  width: 100%;
  height: 100%;
}

/* Trust — trust-wordstrip */

.trust {
  background: var(--color-bg-alt);
  padding: 2.4rem 0 2.1rem;
  border-bottom: 1px solid rgba(25, 30, 45, 0.04);
}

.trust__label {
  text-align: center;
  color: #b7becc;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trust__list {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 2.4rem;
}

.trust__list li {
  color: #c5cbd6;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* Platform — product-stage */

.stage {
  padding: var(--space-section) 0;
  background: var(--color-bg);
}

.stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: var(--space-grid);
  align-items: center;
}

.stage__copy h2,
.cap__head h2,
.lanes__head h2,
.close__copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.7rem 0 0.9rem;
}

.lede {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
}

.stat-row strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.stat-row span {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.console {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(25, 30, 45, 0.06);
  overflow: hidden;
}

.console__bar,
.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(25, 30, 45, 0.06);
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e4e7ee;
}

.dot:nth-child(1) { background: #ffb4a8; }
.dot:nth-child(2) { background: #ffe0a3; }
.dot:nth-child(3) { background: #b7ebc6; }

.console__bar span,
.shot__bar span {
  margin-left: 0.35rem;
}

.session {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(25, 30, 45, 0.05);
}

.session strong {
  letter-spacing: -0.03em;
}

.session p {
  grid-column: 1;
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.pill {
  align-self: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.55rem;
  background: #f1f2f6;
  color: var(--color-text-muted);
}

.pill--live {
  background: #efeaff;
  color: var(--color-accent);
}

.console__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  color: var(--color-text-soft);
  font-size: 0.82rem;
}

.console__foot span {
  border-radius: var(--radius-pill);
  background: #f6f7fb;
  padding: 0.28rem 0.6rem;
}

/* Capabilities — feature-pair-rows */

.cap {
  padding: 0 0 var(--space-section);
  background: var(--color-bg);
}

.cap__head {
  margin-bottom: 2.2rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-grid);
  align-items: center;
  padding: 1.5rem 0 2rem;
}

.pair + .pair {
  border-top: 1px solid rgba(25, 30, 45, 0.06);
}

.pair--flip .pair__copy { order: 2; }
.pair--flip .pair__mock { order: 1; }

.pair h3 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
  font-weight: 560;
  margin: 0.45rem 0 0.7rem;
}

.pair__copy p,
.lane p,
.diff__split p {
  color: var(--color-text-muted);
}

.pair__link {
  margin-top: 1rem;
  border: 0;
  background: none;
  color: var(--color-ink);
  padding: 0;
  cursor: pointer;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.pair__link:hover {
  color: var(--color-accent-hover);
}

.sheet {
  background: linear-gradient(180deg, #f7f4ff 0%, #fff 70%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 77, 255, 0.08);
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
}

.sheet--warm {
  background: linear-gradient(180deg, #fff3ea 0%, #fff 72%);
  border-color: rgba(214, 140, 90, 0.14);
}

.sheet--mint {
  background: linear-gradient(160deg, #e7f6ef 0%, #fff 70%);
  border-color: rgba(70, 150, 120, 0.14);
}

.obj {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid rgba(25, 30, 45, 0.06);
  font-size: 0.95rem;
}

.obj:last-child { border-bottom: 0; }

.obj em {
  font-style: normal;
  color: var(--color-text-soft);
  font-size: 0.82rem;
}

.clip {
  display: grid;
  gap: 0.8rem;
}

.clip__screen {
  height: 148px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(91, 77, 255, 0.18), rgba(255, 186, 120, 0.35)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.25) 18px 19px);
  position: relative;
}

.clip__screen i {
  position: absolute;
  left: 42%;
  top: 38%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.scrub {
  height: 6px;
  border-radius: 99px;
  background: #efe8df;
  position: relative;
}

.scrub b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  border-radius: inherit;
  background: #191e2d;
}

.scrub i {
  position: absolute;
  left: 62%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

.memory {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.memory article {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 0.85rem;
}

.memory h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.memory p {
  font-size: 0.92rem;
  color: var(--color-text);
}

.memory__arrow {
  align-self: center;
  color: var(--color-accent);
  font-weight: 600;
}

/* Solutions — studio-lanes */

.lanes {
  padding: var(--space-section) 0;
  background: #fff;
}

.lanes__head {
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem 1.3rem 1.3rem 1.5rem;
  border-radius: 28px;
  margin-top: 0.9rem;
}

.lane--lilac { background: linear-gradient(100deg, #f4f0ff, #fbfaff 55%, #efe9ff); }
.lane--apricot { background: linear-gradient(100deg, #fff1e6, #fffaf6 50%, #ffe7d4); }
.lane--mint { background: linear-gradient(100deg, #e9f7f0, #f7fdf9 52%, #def3e8); }

.lane h3 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  font-weight: 560;
  margin: 0.3rem 0 0.45rem;
}

.lane .btn {
  margin-top: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
}

.lane__note {
  justify-self: end;
  min-width: min(100%, 280px);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 24px rgba(25, 30, 45, 0.04);
}

.lane__note strong {
  display: block;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.lane__note span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Technology — diff-dark */

.diff {
  position: relative;
  background-color: var(--color-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--color-on-dark);
  padding: var(--space-section) 0;
}

.diff__title {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-size: clamp(4rem, 10vw, 6.4rem);
  margin: 0 0 1.6rem;
}

.diff__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shot {
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(160deg, #8a7dff, #3ec6c0 48%, #e2b15a);
}

.shot__inner {
  background: linear-gradient(180deg, #1a1c24, #121318 80%);
  border-radius: 25px;
  min-height: 280px;
  padding: 1rem 1rem 1.1rem;
}

.shot__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-on-dark-muted);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.shot h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 560;
  margin-bottom: 0.45rem;
}

.shot p {
  color: var(--color-on-dark-muted);
  font-size: 0.95rem;
}

.trace {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.trace li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.8);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trace li.is-hot {
  color: #fff;
}

.trace li.is-hot b {
  color: #ffb4a2;
  font-weight: 600;
}

.flag {
  display: inline-flex;
  margin-top: 0.9rem;
  background: #243026;
  color: #b7ebc6;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.diff__split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-grid);
  align-items: start;
  margin-top: 3rem;
}

.diff__split h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.diff__split p + p {
  margin-top: 0.8rem;
}

.diff__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.diff__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.diff__notes div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.7rem;
}

.diff__notes strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.diff__notes span {
  color: var(--color-on-dark-muted);
  font-size: 0.85rem;
}

/* CTA — marquee-close */

.close {
  padding: var(--space-section) 0 0;
  background: var(--color-bg);
}

.close__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 3rem;
}

.close__copy h2 {
  font-size: clamp(2.8rem, 6.4vw, 4.8rem);
  line-height: 0.96;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.close__aside {
  color: var(--color-text-muted);
  padding-bottom: 0.4rem;
}

.close__aside a {
  color: var(--color-ink);
  font-weight: 560;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(25, 30, 45, 0.06);
  padding: 1.1rem 0 1.25rem;
  background: #fff;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.marquee__item {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  color: #d5d9e4;
  white-space: nowrap;
}

.marquee__item b {
  color: var(--color-ink);
  font-weight: 500;
}

/* Footer — footer-quiet */

.footer {
  background: #fff;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(25, 30, 45, 0.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer .logo {
  padding-left: 0;
  margin-bottom: 0.8rem;
}

.footer__brand p {
  color: var(--color-text-muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.footer a {
  display: inline-flex;
  text-decoration: none;
  color: var(--color-text);
}

.footer li + li,
.footer__links li + li {
  margin-top: 0.4rem;
}

.footer a:hover {
  color: var(--color-accent-hover);
}

.footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(25, 30, 45, 0.06);
  color: var(--color-text-soft);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Modals */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 20, 0.46);
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 680px);
  overflow: auto;
  background: #fff;
  color: var(--color-text);
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 30px 80px rgba(16, 17, 20, 0.24);
}

.modal__panel h2 {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-weight: 560;
  padding-right: 2rem;
}

.modal__panel p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

.modal__panel ul {
  margin-top: 0.9rem;
}

.modal__panel li {
  position: relative;
  padding-left: 0.95rem;
  margin-top: 0.4rem;
  color: var(--color-text);
}

.modal__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1.1rem;
}

.modal__links a {
  font-weight: 600;
  color: var(--color-ink);
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f8;
  color: var(--color-ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.modal__close:hover {
  background: #e7e9f0;
}

/* Policy pages */

.legal {
  background: var(--color-bg);
}

.legal__article {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.legal__article h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  font-weight: 500;
  line-height: 1;
}

.legal__meta {
  margin: 0.8rem 0 1.6rem;
  color: var(--color-text-soft);
}

.legal__article h2 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.legal__article p,
.legal__article li {
  color: var(--color-text-muted);
}

.legal__article ul {
  margin: 0.4rem 0 0;
}

.legal__article li {
  margin-top: 0.35rem;
  padding-left: 1rem;
  position: relative;
}

.legal__article li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.legal__article a {
  color: var(--color-ink);
}
