/* ============================================================
   Rock N' Rumble — rocknrumble.io
   Saturday-morning toy-box: sky dominant, meadow accents,
   chunky rounded type, toy-press buttons, drifting clouds.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-v17-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-v17-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-v17-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-v32-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-v32-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-v32-latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --sky-100: #EAF7FF;
  --sky-200: #C9ECFF;
  --sky-300: #8FD9FF;
  --sky-400: #5EC4F8;
  --sky-500: #3FB1F0;
  --ink: #1B3A5B;
  --ink-soft: #44617F;
  --cream: #FFF9EC;
  --paper: #FFFFFF;
  --grass-300: #A8E07A;
  --grass-500: #58B947;
  --grass-700: #2F8A3B;
  --sun: #FFD66B;
  --sun-deep: #FFB938;
  --poppy: #FF5D5D;
  --poppy-deep: #DE4040;
  --berry: #8E5BC9;
  --line: #E2EEF8;
  --shadow-card: 0 12px 30px rgba(27, 58, 91, .10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: 'Fredoka', 'Avenir Next Rounded', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --wrap: 1140px;
  --pad: clamp(20px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* pin the footer to the bottom on short pages (404) */
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line);
  padding: .45em 1.1em; border-radius: 999px;
  box-shadow: 0 3px 0 var(--line);
}
.eyebrow::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--poppy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; border: 0;
  padding: .85em 1.7em; border-radius: 999px;
  background: var(--poppy); color: #fff;
  box-shadow: 0 5px 0 var(--poppy-deep), 0 14px 26px rgba(222, 64, 64, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--poppy-deep), 0 4px 10px rgba(222, 64, 64, .25); }
.btn--ghost {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 5px 0 var(--line), 0 14px 26px rgba(27, 58, 91, .08);
}
.btn--ghost:active { box-shadow: 0 1px 0 var(--line), 0 4px 10px rgba(27, 58, 91, .08); }

.store-badge { display: inline-block; transition: transform .15s ease, filter .15s ease; }
.store-badge img { height: 56px; width: auto; }
/* Google's badge artwork carries built-in padding — compensate to visually match the Apple badge */
.store-badge--play img { height: 82px; width: auto; margin: -13px 0; }
.store-badge:hover { transform: translateY(-2px) scale(1.02); }
.store-badge:active { transform: translateY(2px); }
/* keep both badges on one row on phones */
@media (max-width: 520px) {
  .store-badge img { height: 44px; }
  .store-badge--play img { height: 64px; margin: -10px 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(27, 58, 91, .06);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: .01em;
}
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 3px 8px rgba(27, 58, 91, .18); }
.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  margin-left: auto; list-style: none; padding: 0;
}
.nav-links a:where(:not(.btn)) {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  text-decoration: none; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:where(:not(.btn)):hover { color: var(--poppy); }
.nav-cta { margin-left: 1.2rem; }
.nav .btn { padding: .6em 1.3em; font-size: .95rem; }

.menu-btn {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--paper); cursor: pointer; box-shadow: 0 3px 0 var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 880px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: var(--pad); right: var(--pad);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: .6rem; margin: .5rem 0 0;
    display: none;
  }
  .nav-links a { display: block; padding: .8rem 1rem; border-radius: 12px; }
  .nav-links a:where(:not(.btn)):hover { background: var(--sky-100); }
  .nav-links .btn { border-radius: 999px; text-align: center; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-open .nav-links { display: flex; }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(63, 177, 240, .25) 0%, rgba(63, 177, 240, 0) 40%),
    url('../img/sky.jpg') center / cover no-repeat,
    linear-gradient(180deg, var(--sky-400), var(--sky-200));
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.7rem);
  text-transform: uppercase;
  margin: .55em 0 .35em;
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(27, 58, 91, .25), 0 12px 30px rgba(27, 58, 91, .25);
}
.hero h1 .chaos {
  display: inline-block; color: var(--sun);
  transform: rotate(-2.5deg);
  text-shadow: 0 4px 0 rgba(173, 109, 0, .45), 0 12px 30px rgba(27, 58, 91, .3);
  animation: wiggle 5s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 86%, 100% { transform: rotate(-2.5deg); }
  90% { transform: rotate(1.5deg) scale(1.04); }
  95% { transform: rotate(-3.5deg); }
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 700;
  color: #0E2C49;
  max-width: 34em;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

.hero-art { position: relative; }
.hero-art .burst {
  position: absolute; inset: -18%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .4) 0deg 12deg, rgba(255, 255, 255, 0) 12deg 26deg);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  animation: spin 48s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .frame {
  position: relative;
  border-radius: 36px;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 60px rgba(14, 44, 73, .35);
  overflow: hidden;
  transform: rotate(1.5deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-12px); }
}

/* clouds */
.cloud {
  position: absolute; pointer-events: none;
  background: #fff; opacity: .95;
  border-radius: 999px;
  filter: drop-shadow(0 8px 18px rgba(27, 58, 91, .08));
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.cloud--a { width: 150px; height: 46px; top: 13%; left: 6%; animation: drift 16s ease-in-out infinite alternate; }
.cloud--a::before { width: 64px; height: 64px; top: -30px; left: 26px; }
.cloud--a::after { width: 44px; height: 44px; top: -18px; left: 78px; }
.cloud--b { width: 110px; height: 36px; top: 8%; right: 12%; opacity: .8; animation: drift 22s ease-in-out infinite alternate-reverse; }
.cloud--b::before { width: 48px; height: 48px; top: -22px; left: 20px; }
.cloud--b::after { width: 32px; height: 32px; top: -12px; left: 58px; }
.cloud--c { width: 90px; height: 30px; bottom: 24%; left: 14%; opacity: .65; animation: drift 19s ease-in-out infinite alternate; }
.cloud--c::before { width: 40px; height: 40px; top: -18px; left: 16px; }
.cloud--c::after { width: 26px; height: 26px; top: -10px; left: 48px; }
@keyframes drift {
  from { transform: translateX(-22px); }
  to { transform: translateX(26px); }
}

/* keep hero clouds clear of the copy and badges at any viewport */
.hero .hero-grid { position: relative; z-index: 1; }
.hero .cloud--a { top: 6%; left: 42%; }
.hero .cloud--c { left: auto; right: 3%; bottom: 7%; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .cloud--a, .hero .cloud--c,
  .cta .cloud, .page-hero .cloud { display: none; }
}

/* wave divider */
.wave { display: block; width: 100%; height: clamp(46px, 7vw, 90px); margin-top: -1px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-soft); font-weight: 700; }

/* features */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 var(--line), var(--shadow-card);
  padding: 1.8rem 1.5rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 6px 0 var(--line), 0 22px 44px rgba(27, 58, 91, .14); }
.feature-card .icon {
  width: 62px; height: 62px; border-radius: 20px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.feature-card .icon svg { width: 32px; height: 32px; }
.icon--sky { background: var(--sky-100); color: var(--sky-500); }
.icon--sun { background: #FFF3D6; color: var(--sun-deep); }
.icon--grass { background: #EAF7DF; color: var(--grass-700); }
.icon--berry { background: #F1E8FB; color: var(--berry); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.feature-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* how to play */
.howto { background: var(--paper); }
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: step; }
@media (max-width: 800px) { .howto-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 2.75rem; } }
.howto-step {
  position: relative; text-align: center;
  background: var(--cream);
  border: 2px solid #F0E6CE;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 #F0E6CE;
  padding: 2.6rem 1.6rem 1.8rem;
}
.howto-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 4px 0 rgba(27, 58, 91, .35);
}
.howto-step .token { width: 86px; height: 86px; margin: 0 auto 1rem; }
.howto-step h3 { font-size: 1.3rem; }
.howto-step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* arena */
.arena-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.arena-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: 0 24px 60px rgba(27, 58, 91, .22);
}
.arena-copy {
  position: absolute; bottom: -2.2rem; left: clamp(1rem, 4vw, 3rem);
  max-width: 420px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 0 var(--line), var(--shadow-card);
  padding: 1.4rem 1.6rem;
  transform: rotate(-1deg);
}
.arena-copy h3 { font-size: 1.4rem; margin-bottom: .3em; }
.arena-copy p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 640px) {
  /* relative (not static) so the card paints above the image, white bg included */
  .arena-copy { position: relative; max-width: none; margin: -2.5rem 1rem 0; transform: none; }
}

/* screens */
.screens { background: var(--paper); }
.screen-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.phone {
  flex: 0 0 auto;
  width: min(352px, 86vw);
  border-radius: 30px;
  border: 9px solid #14283C;
  box-shadow: 0 22px 50px rgba(20, 40, 60, .28);
  overflow: hidden;
  position: relative;
  background: #14283C;
}
.phone img { border-radius: 21px; }
.phone:nth-child(1) { transform: rotate(-3deg) translateY(12px); }
.phone:nth-child(3) { transform: rotate(3deg) translateY(12px); }
.phone:hover { z-index: 2; }
@media (max-width: 760px) {
  .screen-row { justify-content: flex-start; overflow-x: auto; padding: 1rem var(--pad) 1.6rem; scroll-snap-type: x mandatory; }
  .phone, .phone:nth-child(odd) { transform: none; scroll-snap-align: center; }
}

/* CTA */
.cta {
  /* glow stays clear of the top edge so the wave divider (--sky-400 fill) meets an identical color */
  background:
    radial-gradient(60% 35% at 50% 48%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, var(--sky-400) 0%, var(--sky-400) 12%, var(--sky-300) 100%);
  overflow: hidden;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(27, 58, 91, .25);
}
.cta p { color: #0E2C49; font-weight: 800; }
.cta .fine { font-size: .85rem; font-weight: 700; color: #19405F; opacity: .8; margin-top: 1.2rem; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFE3F3; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3.2rem 0 2.4rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--paper); }
.site-footer h4 {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--sky-300); margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #CFE3F3; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--sun); }
.footer-note { max-width: 30em; font-size: .95rem; color: #9DBBD4; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(207, 227, 243, .15);
  padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  justify-content: space-between;
  font-size: .85rem; color: #9DBBD4;
}
.footer-bottom p { margin: 0; }

/* ---------- Doc pages (privacy / terms / support) ---------- */
.page-hero {
  background:
    linear-gradient(180deg, rgba(63, 177, 240, .2), rgba(63, 177, 240, 0)),
    linear-gradient(180deg, var(--sky-400), var(--sky-200));
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.4rem, 7vw, 5.2rem);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  color: var(--paper);
  text-shadow: 0 3px 0 rgba(27, 58, 91, .25);
  margin: .4em 0 .2em;
}
.page-hero .updated {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  background: rgba(255, 255, 255, .85); border-radius: 999px;
  padding: .4em 1.1em; color: var(--ink-soft);
}
.doc {
  max-width: 820px;
  margin: clamp(-2.2rem, -4vw, -3rem) auto clamp(3.5rem, 7vw, 5rem);
  position: relative; z-index: 2;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--line), var(--shadow-card);
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
}
.doc h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.12rem; margin: 1.4em 0 .4em; }
.doc p, .doc li { color: #2C4A68; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .summary {
  background: var(--sky-100);
  border: 2px solid #CBE9FC;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.doc a:where(:not(.btn)) { color: var(--poppy-deep); font-weight: 700; }
.doc hr { border: 0; border-top: 2px solid var(--line); margin: 2.2rem 0; }

/* support page */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  background: var(--sky-100);
  border: 2px solid #CBE9FC;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2.2rem;
}
.contact-card .email {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
.contact-card .email:hover { color: var(--poppy); }
.contact-card p { margin: .2em 0 0; font-size: .92rem; color: var(--ink-soft); }
details.faq {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: .8rem;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--line);
  overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--poppy);
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* 404 */
.lost { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.lost .big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 14vw, 8rem); line-height: 1;
  color: var(--sky-400);
  text-shadow: 0 4px 0 rgba(27, 58, 91, .12);
  margin-bottom: .2em;
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.985); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1.08);
}
.feature-grid .reveal.in:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal.in:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal.in:nth-child(4) { transition-delay: .24s; }
.howto-grid .reveal.in:nth-child(2) { transition-delay: .1s; }
.howto-grid .reveal.in:nth-child(3) { transition-delay: .2s; }
.screen-row .reveal.in:nth-child(2) { transition-delay: .1s; }
.screen-row .reveal.in:nth-child(3) { transition-delay: .2s; }
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
