/* Crowdify 3D website
   Colors are taken straight from the game (web/giga-run.html in the game repo)
   so the site looks like the thing you download: sky blue, white road, cherry
   red crowd, blue and red gates, gold tokens, violet boss. */

:root {
  --sky-top: #2aa6e8;
  --sky: #3fb6ee;
  --sky-low: #b7e6fa;
  --road: #ffffff;
  --road-band: #e8f4fb;
  --page: #eef6fb;
  --blue: #1e9df0;
  --blue-dark: #0f6fb4;
  --red: #f4451e;
  --red-dark: #b32c0d;
  --cherry: #e4222f;
  --cherry-dark: #a5131f;
  --gold: #ffc300;
  --gold-dark: #c9820a;
  --violet: #6b3fd4;
  --violet-dark: #43269b;
  --ink: #12222e;
  --ink-soft: #4f6678;
  --line: #d5e6f0;
  --radius: 22px;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.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; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 16px; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn-cherry { background: var(--cherry); color: #fff; box-shadow: 0 5px 0 var(--cherry-dark); }
.btn-cherry:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cherry-dark); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #b9d3e3; }
.btn-white:active { transform: translateY(4px); box-shadow: 0 1px 0 #b9d3e3; }
.btn-sm { padding: 11px 18px; font-size: 16px; border-radius: 13px; }

/* Google Play button */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #333;
  box-shadow: 0 5px 0 #3a3a3a; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.play-badge:active { transform: translateY(4px); box-shadow: 0 1px 0 #3a3a3a; }
.play-badge svg { width: 30px; height: 30px; flex: 0 0 auto; }
.play-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .8; line-height: 1; margin-bottom: 4px; }
.play-badge strong { display: block; font-size: 21px; font-weight: 700; line-height: 1; font-family: var(--body); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(18,34,46,.06);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(18,34,46,.35); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(18,34,46,.5); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; }
.brand b { color: var(--cherry); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15.5px;
  padding: 8px 12px; border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.nav a:not(.btn):hover { background: #e3f2fb; color: var(--blue-dark); }
.nav a.active:not(.btn) { color: var(--blue-dark); background: #e3f2fb; }
.nav .btn { margin-left: 8px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: #e8f3fa; color: var(--ink); align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .close { display: none; }
.menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .close { display: block; }
.back-link { font-weight: 800; text-decoration: none; color: var(--blue-dark); padding: 8px 12px; border-radius: 10px; }
.back-link:hover { background: #e3f2fb; }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px rgba(18,34,46,.45);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px 12px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 40%, #8fd6f6 72%, var(--sky-low) 100%);
  padding: 56px 0 0;
}
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; left: 0; fill: #fff; opacity: .7; animation: drift linear infinite; }
.cloud.c1 { top: 2%; width: 170px; animation-duration: 90s; animation-delay: -20s; }
.cloud.c2 { top: 12%; width: 110px; animation-duration: 110s; animation-delay: -75s; opacity: .55; }
.cloud.c3 { top: 58%; width: 220px; animation-duration: 140s; animation-delay: -40s; opacity: .45; }
.cloud.c4 { top: 4%; width: 90px; animation-duration: 100s; animation-delay: -55s; opacity: .6; }
@keyframes drift { from { transform: translateX(110vw); } to { transform: translateX(-260px); } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-copy { padding-bottom: 90px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-weight: 800; font-size: 14px; line-height: 1.2;
  box-shadow: 0 3px 0 rgba(15,111,180,.25);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cherry); box-shadow: 0 0 0 3px rgba(228,34,47,.18); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; color: #fff; line-height: .98;
  text-shadow: 0 4px 0 var(--blue-dark), 0 12px 26px rgba(8,50,90,.35);
}
.hero h1 .army { color: var(--cherry); text-shadow: 0 4px 0 #fff, 0 12px 26px rgba(8,50,90,.3); }
.hero .lead { margin-top: 20px; max-width: 34rem; font-size: 19px; font-weight: 700; color: #0d3552; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-facts li {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.55); font-weight: 800; font-size: 14px; color: #0d3552;
}
.hero-facts svg { width: 18px; height: 18px; color: var(--blue-dark); }

.hero-art { position: relative; height: 600px; align-self: end; }
.phone {
  position: relative; border-radius: 34px; padding: 9px;
  background: #12222e;
  box-shadow: 0 30px 60px -24px rgba(8,40,70,.6), inset 0 0 0 2px #2c3e4c;
}
.phone img { width: 100%; height: auto; aspect-ratio: 430 / 880; object-fit: cover; border-radius: 26px; background: var(--sky); }
.hero-art .phone.front { position: absolute; width: 272px; left: 50%; bottom: -120px; transform: translateX(-30%) rotate(3deg); z-index: 2; }
.hero-art .phone.back { position: absolute; width: 230px; left: 50%; bottom: -40px; transform: translateX(-112%) rotate(-7deg); z-index: 1; opacity: .98; }

/* Floating gate labels, drawn the way the game draws them */
.float-gate { position: absolute; z-index: 3; animation: bob 4.5s ease-in-out infinite; }
.float-gate.g1 { top: 40px; right: 2%; }
.float-gate.g2 { top: 190px; left: 0; animation-delay: -1.5s; }
.float-gate.g3 { top: 300px; right: 0; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.gate {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 110px; padding: 12px 18px;
  border-left: 7px solid var(--blue-dark); border-right: 7px solid var(--blue-dark);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(160,215,250,.95), rgba(116,194,244,.92));
  font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1;
  color: #fff; -webkit-text-stroke: 3px var(--blue-dark); paint-order: stroke fill;
  box-shadow: 0 14px 24px -12px rgba(8,50,90,.55);
}
.gate.bad {
  border-color: var(--red-dark);
  background: linear-gradient(180deg, rgba(255,190,170,.96), rgba(250,160,140,.94));
  -webkit-text-stroke-color: var(--red-dark);
  position: relative; padding-bottom: 20px;
}
.gate.bad::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(135deg, #1b1b1b 0 7px, #ffd400 7px 14px);
}
.gate.boss {
  border-radius: 999px; border: 0; min-width: 0; padding: 10px 24px;
  background: var(--violet-dark); -webkit-text-stroke: 0; font-size: 38px;
}

.hills { position: relative; z-index: 1; display: block; width: 100%; height: 90px; margin-top: -90px; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 52px; }
.section-head .chip { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 18.5px; color: var(--ink-soft); font-weight: 600; }

/* How to play: three gate cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 30px 28px 32px;
  box-shadow: 0 6px 0 var(--line), 0 20px 40px -30px rgba(18,34,46,.45);
}
.step-art { height: 118px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; border-radius: 16px; }
.step:nth-child(1) .step-art { background: linear-gradient(180deg, #e6f5fe, #d3edfc); }
.step:nth-child(2) .step-art { background: linear-gradient(180deg, #fff0ea, #ffe2d7); }
.step:nth-child(3) .step-art { background: linear-gradient(180deg, #f0eaff, #e3d9ff); }
.step-art .gate { font-size: 36px; min-width: 88px; padding: 10px 14px; }
.step-art .gate.bad { padding-bottom: 18px; }
.hazard {
  width: 64px; height: 64px; border-radius: 6px; border: 3px solid var(--red);
  background: repeating-linear-gradient(135deg, #1b1b1b 0 11px, #ffd400 11px 22px);
  box-shadow: 0 12px 20px -12px rgba(0,0,0,.5);
}
.crown { width: 44px; height: 30px; color: var(--gold); margin-bottom: 4px; }
.boss-stack { display: flex; flex-direction: column; align-items: center; }
.step .num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; background: var(--ink);
  margin-bottom: 12px;
}
.step h3 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-weight: 600; }
.controls-note { margin: 34px auto 0; font-weight: 800; color: var(--ink-soft); text-align: center; line-height: 2.2; }
.key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 8px; margin: 0 2px; vertical-align: middle; line-height: 1;
  border-radius: 8px; background: #fff; box-shadow: 0 3px 0 var(--line); color: var(--ink); font-size: 15px;
}

/* Boss section */
.boss-section { background: linear-gradient(180deg, #dff2fc 0%, #f1f8fd 100%); overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.copy h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; }
.copy > p { margin-top: 16px; font-size: 18.5px; color: var(--ink-soft); font-weight: 600; }
.beats { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 28px 0 8px; padding: 0; list-style: none; }
.beats li {
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--cherry); -webkit-text-stroke: 5px #fff; paint-order: stroke fill;
  filter: drop-shadow(0 3px 4px rgba(18,34,46,.18));
  display: flex; align-items: center; gap: 14px;
}
.beats li.boss { color: var(--violet); }
.beats li.win { color: var(--gold); -webkit-text-stroke-color: #fff; }
.beats li:not(:last-child)::after {
  content: ""; width: 18px; height: 18px; flex: 0 0 auto;
  background: var(--ink-soft); -webkit-text-stroke: 0;
  clip-path: polygon(20% 10%, 80% 50%, 20% 90%);
  opacity: .45;
}
.tip {
  margin-top: 24px; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 5px 0 var(--line); font-weight: 700; color: var(--ink);
}
.tip svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--violet); margin-top: 1px; }
.phone-pair { position: relative; height: 560px; }
.phone-pair .phone { position: absolute; width: 250px; }
.phone-pair .phone:first-child { left: 6%; top: 0; transform: rotate(-5deg); }
.phone-pair .phone:last-child { right: 6%; top: 60px; transform: rotate(5deg); }

/* Shop section */
.shop-section { overflow: hidden; }
.shop-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.shop-grid .phone { width: 280px; margin: 0 auto; transform: rotate(-3deg); }
.stat-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.stat {
  flex: 1 1 150px; background: #fff; border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 5px 0 var(--line);
}
.stat strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.stat:nth-child(1) strong { color: var(--cherry); }
.stat:nth-child(2) strong { color: var(--blue); }
.stat:nth-child(3) strong { color: var(--gold-dark); }
.coin { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }

.marquee { margin-top: 64px; display: grid; gap: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 4px 14px 6px 0; list-style: none; animation: scroll 90s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 75s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.swatch {
  flex: 0 0 auto; width: 104px; padding: 12px 8px 10px; border-radius: 18px;
  background: #fff; box-shadow: 0 4px 0 var(--line); text-align: center;
}
.swatch .name { display: block; margin-top: 8px; font-weight: 800; font-size: 14px; line-height: 1.1; }
.swatch .price { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-weight: 800; font-size: 12.5px; color: var(--gold-dark); }
.swatch .price.free { color: #16925a; }
.runner { display: block; position: relative; width: 44px; height: 62px; margin: 0 auto; }
.runner::before, .runner::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.runner::before {
  top: 0; width: 30px; height: 30px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 40%, #fff) 0 12%, var(--c) 48%, var(--d) 100%);
}
.runner::after {
  top: 26px; width: 30px; height: 34px; border-radius: 12px 12px 8px 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 45%, var(--d));
}
.theme {
  display: block; position: relative; width: 70px; height: 62px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--t) 0%, var(--m) 40%, var(--l) 56%, var(--g) 56%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}
.theme::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 56%;
  background: var(--r); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

/* More features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 5px 0 var(--line);
}
.feature .icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.feature .icon svg { width: 27px; height: 27px; }
.feature h3 { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.feature p { color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.i-blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.i-red { background: var(--cherry); box-shadow: 0 4px 0 var(--cherry-dark); }
.i-gold { background: var(--gold); box-shadow: 0 4px 0 var(--gold-dark); color: #3a2600 !important; }
.i-violet { background: var(--violet); box-shadow: 0 4px 0 var(--violet-dark); }
.i-green { background: #18b56b; box-shadow: 0 4px 0 #0d7a47; }
.i-ink { background: var(--ink); box-shadow: 0 4px 0 #000; }

/* Screens gallery */
.screens-section { background: linear-gradient(180deg, var(--sky) 0%, #7fcdf3 100%); color: #fff; overflow: hidden; }
.screens-section .section-head h2 { color: #fff; text-shadow: 0 4px 0 var(--blue-dark); }
.screens-section .section-head p { color: #0d3552; }
.screens {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 30px; margin: 0 -20px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.screens::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: 228px; scroll-snap-align: center; text-align: center; background: none; border: 0; padding: 0; cursor: zoom-in; color: inherit; }
.shot .phone { transition: transform .2s ease; }
.shot:hover .phone { transform: translateY(-6px); }
.shot span { display: block; margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 20px; color: #0d3552; }
.screens-nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: 0 4px 0 #9cc9e4;
  display: inline-flex; align-items: center; justify-content: center;
}
.round-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #9cc9e4; }
.round-btn svg { width: 22px; height: 22px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: rgba(8,20,32,.86);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 22px; box-shadow: 0 30px 60px -20px #000; margin: 0 auto; }
.lightbox figcaption { color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; margin-top: 12px; }
.lightbox .close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 640px) {
  .lightbox .prev, .lightbox .next { position: absolute; bottom: 18px; }
  .lightbox .prev { left: calc(50% - 60px); }
  .lightbox .next { right: calc(50% - 60px); }
  .lightbox img { max-height: 72vh; }
}

/* Download */
.download { padding: 96px 0 110px; }
.download-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, var(--cherry) 0%, #f0453a 100%);
  color: #fff; border-radius: 32px; padding: 44px 48px;
  box-shadow: 0 8px 0 var(--cherry-dark), 0 30px 60px -30px rgba(165,19,31,.7);
}
.download-card .app-icon { width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 18px 30px -12px rgba(80,0,10,.6); }
.download-card h2 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 800; }
.download-card p { margin-top: 10px; font-size: 18.5px; font-weight: 700; color: rgba(255,255,255,.92); max-width: 36rem; }
.download-card .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.download-card .deco { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; justify-items: end; }
.download-card .deco .gate:nth-child(1) { transform: rotate(4deg); }
.download-card .deco .gate:nth-child(2) { transform: rotate(-5deg); margin-right: 60px; }
.download-card .deco .gate:nth-child(3) { transform: rotate(3deg); }
.download-card .soon { font-weight: 800; font-size: 15px; background: rgba(0,0,0,.18); padding: 7px 14px; border-radius: 999px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 30px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer .brand span { color: #fff; }
.site-footer .brand b { color: #ff5a64; }
.site-footer .brand img { box-shadow: none; }
.site-footer p { margin-top: 12px; max-width: 20rem; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: 18px; margin: 4px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,.5);
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 800; box-shadow: 0 16px 40px -14px rgba(0,0,0,.6);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,1.35,.45,1), opacity .25s ease;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .coin { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--sky-top), var(--sky) 60%, #8fd6f6);
  padding: 54px 0 70px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.legal-hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; text-shadow: 0 4px 0 var(--blue-dark); position: relative; z-index: 1; }
.legal-hero p { position: relative; z-index: 1; margin-top: 10px; font-weight: 800; color: #0d3552; }
.legal-hero .chip { position: relative; z-index: 1; margin-bottom: 14px; }
.legal-body { padding: 0 0 90px; margin-top: -40px; position: relative; z-index: 2; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.toc {
  position: sticky; top: 92px; background: #fff; border-radius: 20px; padding: 18px 14px;
  box-shadow: 0 5px 0 var(--line);
}
.toc h2 { font-size: 15px; font-family: var(--body); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 10px 8px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.toc a:hover { background: #eef6fb; }
.toc a.active { background: #e3f2fb; color: var(--blue-dark); }
.paper {
  background: #fff; border-radius: 26px; padding: 44px 48px;
  box-shadow: 0 6px 0 var(--line), 0 30px 60px -40px rgba(18,34,46,.4);
  min-width: 0;
}
.prose { font-size: 17px; }
.prose > * + *, .prose section > * + *, .option > * + * { margin-top: 14px; }
.prose > section { margin-top: 40px; }
.prose h2 { font-size: 28px; font-weight: 800; }
.prose h2 + * { margin-top: 10px; }
.prose h3 { font-size: 21px; font-weight: 800; margin-top: 24px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--cherry); }
.prose strong { color: var(--ink); }
.prose .intro { font-size: 18.5px; font-weight: 600; color: var(--ink-soft); }
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: #eef8ff; border-radius: 16px; padding: 16px 18px; font-weight: 600;
}
.callout svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--blue-dark); margin-top: 2px; }
.callout.gold { background: #fff7dc; }
.callout.gold svg { color: var(--gold-dark); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 900; background: #f4f9fc; }

/* Data deletion: option cards + form */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.option { background: #f4f9fc; border-radius: 18px; padding: 20px; }
.option h3 { margin: 0; font-size: 21px; }
.option > h3 + p { margin-top: 6px; }
.option p { color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.option .steps-list { margin-top: 10px; padding-left: 20px; font-weight: 600; font-size: 15.5px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line);
  font: inherit; font-weight: 600; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,157,240,.15); }
.field .error { display: none; color: var(--cherry); font-weight: 700; font-size: 14.5px; margin-top: 6px; }
.field.invalid input { border-color: var(--cherry); }
.field.invalid .error { display: block; }
.form-note { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .shop-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-art { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-art .phone.front { width: 230px; bottom: -150px; }
  .hero-art .phone.back { width: 196px; bottom: -80px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .phone-pair { height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone-pair .phone { width: 215px; }
  .shop-grid .copy { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-card .deco { display: none; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .steps, .features, .options { grid-template-columns: 1fr; }
  .hero-art { height: 330px; margin-top: 18px; }
  .hero-art .phone.front { width: 196px; bottom: -190px; transform: translateX(-24%) rotate(3deg); }
  .hero-art .phone.back { width: 166px; bottom: -120px; }
  .cloud { opacity: .35; }
  .float-gate .gate { font-size: 32px; min-width: 80px; padding: 8px 12px; }
  .float-gate .gate.bad { padding-bottom: 16px; }
  .float-gate.g1 { top: 0; right: 0; }
  .float-gate.g2 { top: 80px; left: 0; }
  .float-gate.g3 { top: 150px; right: 0; }
  .phone-pair { height: 420px; }
  .phone-pair .phone { width: 175px; }
  .phone-pair .phone:first-child { left: 2%; }
  .phone-pair .phone:last-child { right: 2%; }
  .beats li { font-size: 22px; }
  .shop-grid .phone { width: 240px; }
  .download-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .download-card .deco { display: none; }
  .download-card .app-icon { margin: 0 auto; width: 120px; height: 120px; border-radius: 28px; }
  .download-card .row { justify-content: center; }
  .download-card p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .paper { padding: 28px 22px; border-radius: 22px; }
  .brand span { font-size: 20px; }
  .back-link .long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .float-gate, .marquee-track { animation: none !important; }
  .cloud.c1 { left: 48%; } .cloud.c2 { left: 78%; } .cloud.c3 { left: 60%; } .cloud.c4 { left: 30%; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .play-badge, .shot .phone { transition: none; }
}
