/* =========================================================
   Prize Tiles — “Match Tray Stage” landing
   Differentiated layout: tray-slot nav, stacked phone board,
   cascading clay feature tiles, curved how-to / download waves.
   Palette from in-game UI: sky blue, lime green, sunny yellow.
   ========================================================= */

:root {
  --sky: #7cb9e8;
  --sky-soft: #d6eefc;
  --sky-deep: #3b7fd4;
  --navy: #1e4d8c;
  --ink: #0f2a4a;
  --muted: #3d5a7a;
  --green: #6bcb3a;
  --green-deep: #4fad22;
  --yellow: #ffd54f;
  --yellow-deep: #f5b820;
  --white: #ffffff;
  --tray: #1a3f7a;
  --card: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 12px 28px rgba(30, 77, 140, 0.18);
  --shadow-clay: 0 8px 0 rgba(30, 77, 140, 0.12), 0 14px 32px rgba(30, 77, 140, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-soft);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

.cursor-pointer {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Scenic sky background ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #a8d8f5 0%, #c8e8fa 42%, #e8f6ff 70%, #b8e0d8 100%);
}

.sky__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 20%, rgba(255, 213, 79, 0.25), transparent 50%);
}

.sky__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  filter: blur(2px);
}

.sky__cloud--a {
  width: 180px;
  height: 60px;
  top: 12%;
  left: 8%;
  box-shadow: 40px 10px 0 -8px rgba(255, 255, 255, 0.7), 80px 4px 0 -16px rgba(255, 255, 255, 0.65);
}

.sky__cloud--b {
  width: 140px;
  height: 48px;
  top: 18%;
  right: 12%;
  box-shadow: 36px 8px 0 -6px rgba(255, 255, 255, 0.7);
}

.sky__cloud--c {
  width: 100px;
  height: 36px;
  top: 8%;
  left: 48%;
  opacity: 0.8;
}

.sky__ridge {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, #8eb8d8 0%, #6a9ec4 100%);
  clip-path: polygon(0 55%, 12% 35%, 22% 48%, 35% 22%, 48% 40%, 62% 18%, 75% 36%, 88% 28%, 100% 45%, 100% 100%, 0 100%);
  opacity: 0.45;
}

.sky__ridge--near {
  height: 28%;
  background: linear-gradient(180deg, #5a9bc4 0%, #3d7aa8 100%);
  clip-path: polygon(0 70%, 15% 45%, 28% 58%, 42% 32%, 55% 50%, 70% 30%, 85% 48%, 100% 38%, 100% 100%, 0 100%);
  opacity: 0.55;
}

.sky__lake {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12%;
  background: linear-gradient(180deg, rgba(64, 180, 190, 0.45), rgba(40, 140, 170, 0.55));
}

/* ---------- Tray nav ---------- */
.tray-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(1040px, calc(100% - 1.5rem));
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  background: linear-gradient(180deg, #2a5fa8 0%, #1a3f7a 100%);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-clay), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  border: 3px solid #0f2f5c;
  transition: box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
}

.tray-nav.is-scrolled {
  box-shadow: 0 10px 0 rgba(15, 47, 92, 0.2), 0 18px 40px rgba(15, 47, 92, 0.28);
}

.tray-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding-right: 0.35rem;
}

.tray-nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.tray-nav__slots {
  display: none;
  flex: 1;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tray-slot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8f4ff;
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tray-slot i {
  width: 16px;
  height: 16px;
}

.tray-slot:hover,
.tray-slot:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
}

.tray-slot--cta {
  background: linear-gradient(180deg, #8ee24f 0%, var(--green) 55%, var(--green-deep) 100%);
  color: #14380a;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 3px 0 rgba(40, 100, 20, 0.35);
}

.tray-slot--cta:hover,
.tray-slot--cta:focus-visible {
  background: linear-gradient(180deg, #9aef5c 0%, #78d640 55%, #58b828 100%);
  color: #0f2c08;
}

.tray-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  margin-left: auto;
}

.tray-nav__burger span {
  display: block;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tray-nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.tray-nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.tray-nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  width: min(360px, calc(100% - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(30, 77, 140, 0.12);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(124, 185, 232, 0.15);
  transition: background 0.2s ease;
}

.nav-drawer a:hover {
  background: rgba(124, 185, 232, 0.3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), filter 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(2px);
}

.btn:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn--green {
  background: linear-gradient(180deg, #8ee24f 0%, var(--green) 50%, var(--green-deep) 100%);
  color: #12380a;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 0 rgba(40, 100, 20, 0.35), 0 8px 20px rgba(80, 180, 40, 0.3);
}

.btn--blue {
  background: linear-gradient(180deg, #5aa0ef 0%, var(--sky-deep) 55%, #2a6bb8 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(20, 60, 120, 0.35);
}

.btn--yellow {
  background: linear-gradient(180deg, #ffe27a 0%, var(--yellow) 50%, var(--yellow-deep) 100%);
  color: #5a3a00;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 4px 0 rgba(180, 130, 20, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 0;
  position: relative;
}

.hero__stage {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-bottom: 1.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(30, 77, 140, 0.12);
}

.hero__badge i {
  width: 16px;
  height: 16px;
  color: var(--green-deep);
}

.hero__logo {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.hero__logo-prize {
  background: linear-gradient(180deg, #ffe566 0%, #ffb020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #1e4d8c) drop-shadow(0 5px 0 rgba(15, 47, 92, 0.35));
}

.hero__logo-tiles {
  color: #fff;
  text-shadow:
    0 3px 0 #1e4d8c,
    0 5px 0 rgba(15, 47, 92, 0.35),
    -2px -1px 0 #1e4d8c,
    2px -1px 0 #1e4d8c;
}

.hero__tagline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stacked phones as "board tiles" */
.hero__board {
  position: relative;
  height: 380px;
  margin: 0 auto;
  width: min(100%, 420px);
}

.phone {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: var(--shadow-clay);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 405 / 720;
  object-fit: cover;
}

.phone--back {
  width: 42%;
  left: 4%;
  top: 18%;
  transform: rotate(-12deg);
  z-index: 1;
  opacity: 0.92;
}

.phone--mid {
  width: 46%;
  right: 2%;
  top: 10%;
  transform: rotate(10deg);
  z-index: 2;
}

.phone--front {
  width: 52%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  box-shadow: 0 16px 0 rgba(30, 77, 140, 0.12), 0 24px 48px rgba(30, 77, 140, 0.22);
}

.float-tile {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(30, 77, 140, 0.15), 0 10px 20px rgba(30, 77, 140, 0.18);
  z-index: 4;
  animation: float-y 4s ease-in-out infinite;
}

.float-tile--a {
  top: 8%;
  left: 8%;
  background: linear-gradient(145deg, #fff 40%, #e8f8d8);
  animation-delay: 0s;
}

.float-tile--b {
  top: 0;
  right: 12%;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #fff 40%, #ffe9a8);
  animation-delay: 0.6s;
}

.float-tile--c {
  bottom: 12%;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #fff 40%, #d4ecff);
  animation-delay: 1.2s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Ticker */
.ticker {
  margin-top: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border-block: 2px solid rgba(30, 77, 140, 0.1);
  padding: 0.65rem 0;
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker__item {
  white-space: nowrap;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
}

.ticker__item strong {
  color: var(--navy);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Promo banner ---------- */
.promo {
  padding: 2rem 0 0.5rem;
}

.promo__art {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-clay);
  border: 4px solid #fff;
}

.promo__art img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.section-head--light h2,
.section-head--light .section-lead {
  color: #fff;
}

.section-head--light .section-eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(107, 203, 58, 0.18);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Features cascade ---------- */
.features {
  padding: 3.5rem 0 2rem;
}

.tile-cascade {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.clay-tile {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  border: 3px solid #fff;
  box-shadow: var(--shadow-clay);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.clay-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 rgba(30, 77, 140, 0.12), 0 20px 40px rgba(30, 77, 140, 0.2);
}

.clay-tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #e8f6ff, #c8e8fa);
  color: var(--sky-deep);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 4px 0 rgba(30, 77, 140, 0.1);
}

.clay-tile__icon i {
  width: 26px;
  height: 26px;
}

.clay-tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.clay-tile p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.clay-tile--1 .clay-tile__icon {
  background: linear-gradient(180deg, #e8fad8, #c8ef9a);
  color: var(--green-deep);
}

.clay-tile--2 .clay-tile__icon {
  background: linear-gradient(180deg, #d6eefc, #9ec8f0);
  color: var(--sky-deep);
}

.clay-tile--3 .clay-tile__icon {
  background: linear-gradient(180deg, #fff4c8, #ffe27a);
  color: #b8860b;
}

.clay-tile--4 .clay-tile__icon {
  background: linear-gradient(180deg, #e0f0ff, #b8d4f5);
  color: var(--navy);
}

/* ---------- How to play ---------- */
.how {
  position: relative;
  margin-top: 2rem;
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, #3b7fd4 0%, #1e4d8c 100%);
  overflow: hidden;
}

.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.how-tray {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: rgba(15, 47, 92, 0.35);
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.2);
}

.how-step {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem 1.25rem 1.35rem;
  position: relative;
  box-shadow: 0 6px 0 rgba(15, 47, 92, 0.2);
}

.how-step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #8ee24f, var(--green-deep));
  color: #12380a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.how-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
}

.wave--down {
  bottom: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23d6eefc' d='M0,24 C240,48 480,0 720,20 C960,40 1200,8 1440,28 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.wave--up {
  top: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23d6eefc' d='M0,28 C240,8 480,40 720,20 C960,0 1200,48 1440,24 L1440,0 L0,0 Z'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

/* ---------- Gallery fan ---------- */
.gallery {
  padding: 3.5rem 0 2rem;
}

.gallery__fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.5rem;
}

.shot {
  margin: 0;
  width: min(160px, 42vw);
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.shot img {
  width: 100%;
  aspect-ratio: 405 / 720;
  object-fit: cover;
}

.shot:hover {
  transform: translateY(-8px);
}

.shot--1 {
  transform: rotate(-6deg);
}

.shot--2 {
  transform: rotate(-2deg);
  z-index: 2;
}

.shot--3 {
  transform: rotate(2deg);
  z-index: 2;
}

.shot--4 {
  transform: rotate(6deg);
}

.shot--1:hover,
.shot--2:hover,
.shot--3:hover,
.shot--4:hover {
  transform: translateY(-8px) rotate(0deg);
  z-index: 5;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 2rem 0 3rem;
}

.faq__list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(30, 77, 140, 0.1);
  padding: 0.35rem 1rem 0.35rem;
}

.faq__item summary {
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--sky-deep);
  font-weight: 700;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Download ---------- */
.download {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #4a9ae0 0%, #2a6bb8 55%, #1e4d8c 100%);
}

.download__panel {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-clay);
  max-width: 560px;
}

.download__icon {
  display: inline-block;
  margin-bottom: 1rem;
}

.download__icon img {
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(30, 77, 140, 0.15), 0 12px 28px rgba(30, 77, 140, 0.2);
}

.download__panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy);
}

.download__panel > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

.download__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #0f2f5c;
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.footer__brand img {
  border-radius: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.footer__links a {
  color: #b8d8f5;
  transition: color 0.2s ease;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* ---------- Modal ---------- */
.modal[hidden] {
  display: none;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border: 4px solid #fff;
  box-shadow: var(--shadow-clay);
  animation: modal-in 0.28s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(124, 185, 232, 0.2);
}

.modal__x:hover {
  background: rgba(124, 185, 232, 0.35);
}

.modal__x i {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #e8fad8, #c8ef9a);
  color: var(--green-deep);
}

.modal__icon i {
  width: 28px;
  height: 28px;
}

.modal__card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.modal__card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .tray-nav__burger {
    display: none;
  }

  .tray-nav__slots {
    display: flex;
  }

  .hero__stage {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    min-height: calc(100vh - var(--nav-h) - 80px);
    align-items: center;
  }

  .hero__board {
    height: 440px;
    width: 100%;
  }

  .phone--front {
    width: 48%;
  }

  .phone--mid {
    width: 42%;
  }

  .phone--back {
    width: 38%;
  }

  .tile-cascade {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Cascading offset — not a flat equal grid */
  .clay-tile--2 {
    transform: translateY(28px);
  }

  .clay-tile--4 {
    transform: translateY(28px);
  }

  .clay-tile--2:hover,
  .clay-tile--4:hover {
    transform: translateY(20px);
  }

  .how-tray {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    padding: 1.15rem;
  }

  .gallery__fan {
    gap: 1rem;
  }

  .shot {
    width: 180px;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .tray-slot span {
    display: inline;
  }

  .hero__board {
    height: 480px;
  }

  .tile-cascade {
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
  }

  .clay-tile--1 {
    transform: translateY(0);
  }

  .clay-tile--2 {
    transform: translateY(36px);
  }

  .clay-tile--3 {
    transform: translateY(12px);
  }

  .clay-tile--4 {
    transform: translateY(48px);
  }

  .clay-tile--2:hover {
    transform: translateY(28px);
  }

  .clay-tile--3:hover {
    transform: translateY(4px);
  }

  .clay-tile--4:hover {
    transform: translateY(40px);
  }

  .shot {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hero__board {
    height: 320px;
  }

  .float-tile {
    display: none;
  }

  .hero__cta .btn--lg,
  .download__cta .btn--lg {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track,
  .float-tile,
  .modal__card {
    animation: none !important;
  }

  .clay-tile,
  .shot,
  .btn {
    transition: none;
  }
}
