/*
 * Stellaroni — promotional landing page (standalone; not part of the game app).
 * Palette from the approved logo (purple, gold, blue, green, pink on a deep navy outline) and the
 * splash navy (#060e59, `apps/web/game/brand.ts`). Type: Nunito, the game's font, self-hosted.
 */

/* ---------- Fonts (Nunito variable, SIL OFL — see assets/fonts/OFL-LICENSE.txt) ---------- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('assets/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('assets/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --navy-950: #030629;
  --navy-900: #060e59;
  --navy-850: #0a1468;
  --navy-800: #101d7f;
  --ink: #f2f4ff;
  --ink-soft: #c5cbf0;
  --ink-muted: #9aa3d9;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.22);
  --glass: rgb(255 255 255 / 0.06);
  --glass-strong: rgb(255 255 255 / 0.1);

  /* The logo's region colours. */
  --gold: #ffc93c;
  --gold-deep: #f59e0b;
  --purple: #a855f7;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #34d399;
  --orange: #fb923c;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-lg: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  --container: 1160px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
/* Balanced headings and intros: no single word left alone on the last line. */
h1,
h2,
h3,
.section-lead,
.hero-lead {
  text-wrap: balance;
}
a {
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.text-gradient {
  background: linear-gradient(100deg, var(--gold) 10%, var(--orange) 45%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Brand (logo + name, used in the footer) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/*
 * The brand mark: the approved logo, cropped by CSS to its board icon (the full logo's
 * wordmark is illegible at 40px). The image file itself is untouched.
 */
.brand-mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.cta-center {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
/*
 * Store buttons (Android, iOS — hero and Download section): one identical treatment, a lighter
 * navy (--navy-800) that sits on the cosmic background, neither one looking selected. Hover
 * (devices that truly hover only, so a tap never leaves it behind) lifts the button with a gold
 * outline; a press scales it down slightly; keyboard focus keeps the white focus ring below.
 */
.btn-store {
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  background: rgb(16 29 127 / 0.72);
}
.btn-store .btn-icon {
  color: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
  .btn-store:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--navy-800);
    box-shadow: 0 0 22px -6px rgb(255 201 60 / 0.45);
  }
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 479px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Shared starfield ---------- */
.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.stars-far {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1px 1px at 120px 90px, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1.2px 1.2px at 200px 160px, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 60px 200px, rgb(200 210 255 / 0.55), transparent);
  background-size: 240px 240px;
}
.stars-near {
  background-image:
    radial-gradient(1.6px 1.6px at 40px 60px, rgb(255 236 170 / 0.9), transparent),
    radial-gradient(1.4px 1.4px at 260px 220px, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 170px 300px, rgb(220 200 255 / 0.85), transparent);
  background-size: 340px 340px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 3rem 0 5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(3 6 41 / 0.35), rgb(3 6 41 / 0.15) 40%, var(--navy-950) 100%),
    url('assets/brand/stellaroni-space-background.png') center / cover no-repeat,
    var(--navy-900);
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Radial gradients are already soft; no blur filter (cheap to paint on phones). */
.glow {
  position: absolute;
  border-radius: 50%;
}
.glow-a {
  top: -10%;
  right: -10%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgb(168 85 247 / 0.28), transparent 62%);
}
.glow-b {
  bottom: -25%;
  left: -15%;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgb(59 130 246 / 0.22), transparent 62%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 960px) {
  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }
}
.hero-logo {
  width: clamp(150px, 40vw, 210px);
  height: auto;
  margin-bottom: 0.5rem;
  /* A soft light behind the logo so its navy outline separates from the night sky. */
  filter: drop-shadow(0 0 28px rgb(140 160 255 / 0.45)) drop-shadow(0 12px 24px rgb(0 0 0 / 0.45));
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-lead {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
/* Laptops with short screens (e.g. 1024×768, 1280×800): tighten the hero so the CTAs stay in view. */
@media (min-width: 960px) and (max-height: 860px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
  .hero-logo {
    width: 150px;
    margin-bottom: 0.25rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }
  .hero-lead {
    margin: 1rem 0 1.5rem;
  }
  .board-card {
    width: min(100%, 360px);
  }
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.board-card {
  width: min(100%, 400px);
  padding: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.75rem;
  background: linear-gradient(160deg, rgb(40 52 160 / 0.62), rgb(10 18 96 / 0.72));
  box-shadow:
    var(--shadow-lg),
    0 0 80px -20px rgb(168 85 247 / 0.5);
  animation: float 9s ease-in-out infinite alternate;
}
/* Phones and tablets: a straight float, so the card never leans into the side gutters. */
@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}
@media (min-width: 960px) {
  .board-card {
    animation-name: float-tilt;
  }
}
@keyframes float-tilt {
  from {
    transform: translateY(0) rotate(-1.5deg);
  }
  to {
    transform: translateY(-12px) rotate(1deg);
  }
}
.board-caption {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* The example board (generated; exactly one solution). */
.board-svg {
  width: 100%;
  height: auto;
}
.board-svg .board-bg {
  fill: var(--navy-800);
}
.board-svg .cell.reg-0 {
  fill: #c084fc;
}
.board-svg .cell.reg-1 {
  fill: #fcd34d;
}
.board-svg .cell.reg-2 {
  fill: #60a5fa;
}
.board-svg .cell.reg-3 {
  fill: #6ee7b7;
}
.board-svg .cell.reg-4 {
  fill: #f472b6;
}
.board-svg .grid {
  stroke: rgb(6 14 89 / 0.28);
  stroke-width: 1;
}
.board-svg .wall {
  stroke: var(--navy-900);
  stroke-width: 3.5;
  stroke-linecap: square;
}
.board-svg .frame {
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 5;
}
/*
 * Hero board "solve" loop: a soft glow sweeps region-by-region, and each region's star lands as it
 * glows — so the board appears to solve itself one star at a time, holds solved, then re-solves.
 * Star `--i:N` sits in region `reg-N`, so the star stagger and the region stagger share the same beat.
 * A single 12s period on every element keeps them in lock-step across loops.
 * (prefers-reduced-motion disables all of this below and leaves the fully-solved board static.)
 */
.board-svg .cell {
  animation: region-glow 8s ease-in-out infinite;
}
.board-svg .cell.reg-0 {
  animation-delay: 0s;
}
.board-svg .cell.reg-1 {
  animation-delay: 0.7s;
}
.board-svg .cell.reg-2 {
  animation-delay: 1.4s;
}
.board-svg .cell.reg-3 {
  animation-delay: 2.1s;
}
.board-svg .cell.reg-4 {
  animation-delay: 2.8s;
}
@keyframes region-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  3% {
    filter: brightness(1.22);
  }
  10% {
    filter: brightness(1);
  }
}
.board-svg .star {
  fill: #fff7d6;
  stroke: var(--gold-deep);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgb(255 201 60 / 0.9));
  animation: star-cycle 8s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.7s);
}
@keyframes star-cycle {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-40deg);
  }
  5% {
    opacity: 1;
    transform: none;
  }
  78% {
    opacity: 1;
    transform: none;
  }
  86% {
    opacity: 0;
    transform: scale(0.9) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) rotate(-40deg);
  }
}

/*
 * The scroll cue: only on wide, tall screens where the hero fits the viewport (elsewhere it would
 * sit on top of the hero content). A 44px hit area around the 30×48 outline.
 */
.scroll-cue {
  display: none;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 52px;
}
@media (min-width: 960px) and (min-height: 861px) {
  .scroll-cue {
    display: block;
  }
}
.scroll-cue::before {
  content: '';
  position: absolute;
  inset: 2px 7px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.scroll-cue:hover::before {
  border-color: rgb(255 255 255 / 0.5);
}
.scroll-cue span {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink-soft);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Entrance + reveal animations ---------- */
.enter {
  animation: enter 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 0.1s + 0.1s);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Sections fade up as they scroll in (only with JavaScript, so content is never hidden without it). */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}
/* Alternate sections fade in and out of the page navy, so there is no hard seam between sections. */
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 100% 10%, rgb(168 85 247 / 0.12), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 90%, rgb(59 130 246 / 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 14%, var(--navy-900) 86%, var(--navy-950));
}
.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
.section-head h2,
.about-copy h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}
.section-lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
}

/* --- Rules --- */
.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .rules {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rule-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--glass-strong), rgb(255 255 255 / 0.02));
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease;
}
.rule-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.rule-num {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(255 201 60 / 0.15);
  color: var(--gold);
  font-weight: 900;
}
.rule-art {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.25rem;
}
.ra-bg {
  fill: rgb(255 255 255 / 0.08);
  stroke: rgb(255 255 255 / 0.18);
}
.ra-band {
  fill: rgb(96 165 250 / 0.35);
}
.ra-region-a {
  fill: rgb(192 132 252 / 0.55);
}
.ra-region-b {
  fill: rgb(252 211 77 / 0.55);
}
.ra-region-c {
  fill: rgb(110 231 183 / 0.5);
}
.ra-halo {
  fill: rgb(244 114 182 / 0.22);
  stroke: rgb(244 114 182 / 0.6);
  stroke-dasharray: 3 3;
}
.ra-star {
  fill: var(--gold);
  filter: drop-shadow(0 0 3px rgb(255 201 60 / 0.8));
}
.ra-dot {
  fill: var(--ink-soft);
}
.rule-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
}
.rule-card p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}
/* Phones: illustration beside the text, so the three rules read as a compact list. */
@media (max-width: 719px) {
  .rule-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      'art title'
      'art text';
    column-gap: 1.1rem;
    align-items: center;
    padding: 1.25rem;
    text-align: left;
  }
  .rule-art {
    grid-area: art;
    width: 84px;
    height: 84px;
    margin: 0;
  }
  .rule-card h3 {
    grid-area: title;
    align-self: end;
    font-size: 1.1rem;
  }
  .rule-card p {
    grid-area: text;
    align-self: start;
    margin-top: 0.25rem;
    font-size: 0.98rem;
  }
  .rule-num {
    top: 0.75rem;
    left: auto;
    right: 0.75rem;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.85rem;
  }
}
.play-tip {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  text-align: center;
}
.play-tip strong {
  color: var(--ink);
}

/* --- A better kind of break (3 cards; each card uses the .feature look) --- */
.pitch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .pitch {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.035);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 0.07);
  border-color: var(--line-strong);
}
.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  padding: 10px;
  border-radius: 14px;
  fill: currentColor;
  color: var(--navy-950);
  background: var(--gold);
}
.feature:nth-child(4n + 2) .feature-icon {
  background: #c084fc;
}
.feature:nth-child(4n + 3) .feature-icon {
  background: #60a5fa;
}
.feature:nth-child(4n + 4) .feature-icon {
  background: #6ee7b7;
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 900;
}
/* Single-column phones: icon beside the text, keeping the eight features scannable. */
@media (max-width: 559px) {
  .feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 1rem;
    padding: 1.2rem 1.25rem;
  }
  .feature-icon {
    grid-row: span 2;
    margin: 0;
  }
  .feature p {
    margin-top: 0.25rem;
  }
}
.feature p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}
.about-copy p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.values {
  display: grid;
  gap: 1rem;
}
.values li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.05);
}
.value-dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.4rem;
  border-radius: 50%;
}
.value-calm {
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}
.value-fair {
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
.value-intentional {
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}
.values h3 {
  font-size: 1.1rem;
  font-weight: 900;
}
.values p {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --- Download --- */
.download {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgb(255 201 60 / 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% -20%, rgb(168 85 247 / 0.25), transparent 70%),
    var(--navy-950);
}
.download-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.8;
}
/* The closing CTA: one framed panel with a gold-lit rim. */
.download-panel {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border: 1px solid rgb(255 201 60 / 0.35);
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(168 85 247 / 0.22), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgb(255 201 60 / 0.14), transparent 70%),
    linear-gradient(180deg, rgb(16 29 127 / 0.65), rgb(6 14 89 / 0.65));
  box-shadow:
    0 40px 80px -40px rgb(0 0 0 / 0.8),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  text-align: center;
}
.download-logo {
  width: clamp(104px, 22vw, 128px);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 24px rgb(140 160 255 / 0.4));
}
.download h2 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 900;
}
.download-lead {
  margin: 0.9rem auto 2rem;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
/* Both store buttons share one width, so the pair reads as a set. */
@media (min-width: 480px) {
  .download-panel .btn {
    min-width: 15.5rem;
  }
}
.store-status {
  min-height: 1.6em;
  margin-top: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}
.download-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}
.download-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.download-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Footer ---------- */
/* Footer: brand + tagline on the left, (legal links +) copyright on the right; stacked on phones. */
.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-tagline {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .footer-meta {
    align-items: flex-end;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }
}
/* Reserved for legal links (e.g. Privacy Policy): each a 44px touch target. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-weight: 700;
  text-underline-offset: 4px;
}
.footer-legal a:hover {
  color: var(--ink);
}
.copyright {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
