/* ScreenScore — marketing site
   Mirrors the app: dark cinema surfaces, iOS system orange accent,
   SF Pro Rounded numbers and glass score panels. */

:root {
  color-scheme: dark;

  --bg: #070709;
  --bg-raised: #0f0f13;
  --surface: #16161c;
  --surface-2: #1e1e26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.38);

  /* AccentColor (dark appearance) from the app's asset catalog */
  --accent: #ff9f0a;
  --accent-deep: #ec7a00;

  /* ScoreScale.tint — iOS system colors in dark mode */
  --score-red: #ff453a;
  --score-orange: #ff9f0a;
  --score-yellow: #ffd60a;
  --score-green: #30d158;

  /* Popcorn machine palette from PopcornRatingView */
  --machine-red: #c7141a;
  --machine-red-dark: #73080d;
  --gold: #ffcc4d;
  --gold-light: #fff2b3;

  --font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 12px;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

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

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

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(7, 7, 9, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand b {
  color: var(--accent);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #1a0d00;
  box-shadow: 0 8px 30px -8px rgba(255, 159, 10, 0.6);
}

.btn-primary:hover {
  background: #ffb03a;
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn-primary[aria-disabled="true"] {
  background: rgba(255, 159, 10, 0.16);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.4);
}

.btn .icon {
  font-size: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 50% at 70% 35%, color-mix(in srgb, var(--glow-a, #ff6a3d) 45%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 70%, color-mix(in srgb, var(--glow-b, #6b2cff) 40%, transparent), transparent 70%),
    radial-gradient(40% 40% at 15% 20%, rgba(255, 159, 10, 0.12), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  transition: background 1.2s ease;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow .icon {
  font-size: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-rounded);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 800;
}

h1 .accent {
  background: linear-gradient(100deg, var(--gold) 0%, var(--accent) 45%, #ff5e3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 24px 0 36px;
  max-width: 34ch;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--faint);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  /* On phones the example card leads, the pitch follows. */
  .hero-stage {
    order: -1;
  }
}

/* ---------- Rating card (mirrors RatingCardView) ---------- */

.card {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  container-type: inline-size;
  background: #111114;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  isolation: isolate;
  text-align: left;
}

/* Default card preset: the poster, motion-blurred and saturated (CardBackgroundRenderer) */
.card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Images come in as stacked layers: each new one fades in over the last. */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.layer.shown {
  opacity: 1;
}

.card-bg .layer {
  transform: scale(1.25) rotate(45deg) scaleX(1.6) rotate(-45deg);
  filter: blur(14px) saturate(1.4);
}

.card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7cqw 4.6cqw 4.6cqw;
  gap: 5cqw;
}

.poster {
  position: relative;
  width: 68cqw;
  aspect-ratio: 2 / 3;
  border-radius: 2.4cqw;
  overflow: hidden;
  flex: none;
  background: rgba(128, 128, 128, 0.3);
}

.stage-glow {
  position: absolute;
  inset: 10% 5%;
  z-index: -1;
  filter: blur(70px) saturate(1.6);
  opacity: 0.45;
}

/* Score panel: the default "tinted" style, a dark fill with a matching rim */
.panel {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.6cqw 4.4cqw 0.8cqw;
  border-radius: 3.7cqw;
  background: rgba(28, 28, 28, 0.7);
  box-shadow: inset 0 0 0 0.18cqw rgba(28, 28, 28, 0.66);
  color: #fff;
}

.panel-score {
  text-align: center;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 10.5cqw;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fade-rule {
  height: 1px;
  margin: 1.2cqw 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), rgba(255,255,255,.8), rgba(255,255,255,.3), transparent);
  flex: none;
}

.panel-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5cqw;
  flex: 1;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  align-content: space-evenly;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  font-size: 3.05cqw;
  font-weight: 500;
  line-height: 1.9;
  white-space: nowrap;
  min-width: 0;
}

.panel-row .icon {
  font-size: 3cqw;
  opacity: 0.75;
  stroke-width: 2;
}

.panel-row .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-row b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.panel-mark {
  text-align: center;
  font-size: 2.9cqw;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.4cqw 0 0.8cqw;
}

/* Reveal animation, like the video card's reveal */
.card.revealing .panel-row,
.card.revealing .fade-rule,
.card.revealing .panel-mark {
  opacity: 0;
  transform: translateY(1.2cqw);
}

.card .panel-row,
.card .fade-rule,
.card .panel-mark {
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--d, 0s);
}

.hero-caption {
  margin: 20px 0 10px;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--faint);
  text-align: center;
}

.hero-caption b {
  color: var(--muted);
  font-weight: 600;
}

.hero-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-picker button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.hero-picker button[aria-current="true"] {
  width: 24px;
  background: var(--accent);
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}

.section-head p {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--muted);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Highlights ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .highlights {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.highlight {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}

.highlight h3 {
  margin-top: 28px;
  font-size: 28px;
  font-weight: 800;
}

.highlight p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.highlight-visual {
  position: relative;
  height: 272px;
  border-radius: var(--radius-m);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(255, 159, 10, 0.08), transparent),
    var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  padding: 20px;
}

.icon-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 159, 10, 0.12);
  color: var(--accent);
  font-size: 21px;
}

/* Mini popcorn machine, proportioned like PopcornMachine in the app (aspect 0.78) */
.score-visual {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  padding: 16px 14px 14px;
}

.mini-machine {
  --red: #c7141a;
  --dark-red: #73080d;
  --gold: #ffcc4d;
  width: 140px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.mm-marquee {
  width: 92%;
  height: 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--red), var(--dark-red));
  box-shadow: inset 0 0 0 1.5px rgba(255, 204, 77, 0.9);
}

.mm-word {
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff2b3, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 204, 77, 0.8));
}

.mm-bulbs {
  display: flex;
  gap: 3.5px;
}

.mm-bulbs i {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #4d1f14;
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out;
  transition-delay: var(--d, 0s);
}

.mm-bulbs i.on {
  background: #ffe680;
  box-shadow: 0 0 5px rgba(255, 214, 10, 0.9);
}

.mm-bar {
  width: 100%;
  height: 4%;
  margin-top: 1.5%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red), var(--dark-red));
}

.mm-body {
  width: 100%;
  height: 60%;
  display: flex;
}

.mm-post {
  width: 7%;
  background: linear-gradient(90deg, var(--dark-red), var(--red), var(--dark-red));
}

.mm-glass {
  position: relative;
  flex: 1;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(180deg, #6b4014, #240f08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.mm-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 10%, rgba(255, 255, 255, 0.16) 18%, transparent 26%, transparent 70%, rgba(255, 255, 255, 0.08) 76%, transparent 80%);
  pointer-events: none;
  z-index: 3;
}

.mm-kettle {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 30%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 0 0 15px 15px;
  background: linear-gradient(90deg, #ebebeb, #8c8c8c, #cccccc);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.mm-kettle::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 4px;
  height: 6px;
  transform: translateX(-50%);
  background: #8c8c8c;
}

.mm-pile {
  position: absolute;
  inset: 0;
}

/* Kernels wait invisibly at the kettle, shoot into place (.in) and pop out (.out). */
.mm-pile img {
  position: absolute;
  height: auto;
  max-width: none;
  translate: -50% -50%;
  opacity: 0;
  transform: translate(var(--sx), var(--sy)) scale(0.6);
}

.mm-pile img.in {
  opacity: 1;
  transform: rotate(var(--r));
  transition: transform 0.6s cubic-bezier(0.3, 1.25, 0.55, 1) var(--delay), opacity 0.1s linear var(--delay);
}

.mm-pile img.out {
  opacity: 0;
  transform: translateY(-22px) rotate(var(--r)) scale(1.25);
  transition: transform 0.35s ease-out var(--delay), opacity 0.35s ease-out var(--delay);
}

.no-anim .mm-pile img,
.no-anim .mm-bulbs i {
  transition: none !important;
}

.mm-base {
  position: relative;
  width: 100%;
  height: 19%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--dark-red));
  box-shadow: inset 0 1px 0 rgba(255, 204, 77, 0.85);
}

.mm-base::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
}

/* PopcornSlider: gold track, ten step dots, a rolling kernel as thumb */
.pc-slider {
  --thumb: 40px;
  --fraction: 0.78;
  grid-column: 1 / -1;
  position: relative;
  width: calc(100% - 12px);
  max-width: 300px;
  height: calc(var(--thumb) + 8px);
  margin: 6px auto 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 99px;
}

.pc-track,
.pc-fill {
  position: absolute;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  border-radius: 99px;
}

.pc-track {
  left: calc(var(--thumb) / 2 - 5px);
  right: calc(var(--thumb) / 2 - 5px);
  background: rgba(255, 255, 255, 0.1);
}

.pc-fill {
  left: calc(var(--thumb) / 2 - 5px);
  width: calc((100% - var(--thumb)) * var(--fraction) + 10px);
  background: linear-gradient(90deg, #ffd966, #ff9926);
  opacity: 0.9;
}

.pc-dots {
  position: absolute;
  inset: 0 calc(var(--thumb) / 2);
  pointer-events: none;
}

.pc-dots i {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.pc-dots i.on {
  background: rgba(255, 255, 255, 0.9);
}

.pc-thumb {
  position: absolute;
  top: 4px;
  left: calc((100% - var(--thumb)) * var(--fraction));
  width: var(--thumb);
  height: var(--thumb);
  object-fit: contain;
  transform: rotate(calc(var(--fraction) * 540deg));
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.3, 1.3, 0.5, 1), transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1), scale 0.2s;
}

.pc-fill {
  transition: width 0.3s cubic-bezier(0.3, 1.3, 0.5, 1);
}

.pc-slider.dragging .pc-thumb,
.pc-slider.dragging .pc-fill {
  transition: scale 0.2s;
}

.pc-slider.dragging .pc-thumb {
  scale: 1.15;
}

.pc-slider:focus-visible {
  outline-offset: 2px;
}

.mini-score {
  display: flex;
  flex-direction: column;
  min-width: 96px;
  font-family: var(--font-rounded);
}

.mini-score b {
  font-size: 64px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.mini-score span {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.mini-score span:first-of-type {
  margin-top: 6px;
  color: var(--faint);
}

.poster-wall {
  display: grid;
  /* Three rows of 2:3 posters must fit the tile height, however wide the tile gets. */
  grid-template-columns: repeat(5, minmax(0, 50px));
  justify-content: center;
  gap: 8px;
  padding: 14px;
  align-content: center;
}

.poster-wall img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 159, 10, 0.22), transparent);
  pointer-events: none;
}

.cta .wrap {
  position: relative;
}

.cta p {
  margin: 18px auto 36px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 19px;
}

.cta-kernels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-kernels img {
  position: absolute;
  width: 56px;
  opacity: 0.9;
  animation: bob 6s ease-in-out infinite alternate;
}

@keyframes bob {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 14deg)); }
}

@media (max-width: 700px) {
  .cta-kernels img {
    width: 36px;
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--faint);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.credits {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.credits a {
  color: var(--muted);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(38px, 6vw, 56px);
}

.legal h2 {
  margin-top: 48px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

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

.legal .updated {
  margin-top: 12px;
  color: var(--faint);
  font-size: 15px;
}

.legal .note {
  font-size: 15px;
  font-style: italic;
  color: var(--faint);
}

.legal .placeholder {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 159, 10, 0.14);
  color: var(--accent);
}

/* ---------- Motion ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
