/* Apple-style landing — aligned with assets/apple-motion.css */
:root {
  --sky: #8fd3ff;
  --grass: #5cbf4a;
  --honey: #ffb627;
  --honey-deep: #d98300;
  --berry: #c43d6b;
  --ink: #254b45;
  --ink-soft: #4a6b63;
  --panel: #fffaf0;
  --line: #d2c6a9;
  --shadow: 0 10px 0 var(--honey-deep), 0 24px 50px rgba(37, 75, 69, 0.12);
  --radius: 28px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #dff5d4 42%, #fff8ee 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--honey-deep); }

/* Typography by size */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 span { color: var(--grass); }
h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.stat, .chip b { font-variant-numeric: tabular-nums; }

/* Press feedback */
.btn, .nav a, .chip, .card, .pillar, .feat, .adventure, .game-row, .ar-card, .game-card, .showcase {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn.is-pressed, .nav a.is-pressed, .chip.is-pressed, .card.is-pressed,
.pillar.is-pressed, .feat.is-pressed, .adventure.is-pressed, .game-row.is-pressed, .ar-card.is-pressed,
.game-card.is-pressed, .showcase.is-pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--line);
  transition-duration: 0.08s;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem max(1rem, 4vw);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a { text-decoration: none; }
.nav-cta { margin-left: auto; }
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* Layout */
.wrap { width: min(980px, 100%); margin: 0 auto; padding: 0 max(1.25rem, 4vw) 4rem; }
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid rgba(37, 75, 69, 0.08); }

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 3.5rem; }
}
.hero-art {
  justify-self: center;
  width: min(280px, 70vw);
  filter: drop-shadow(0 18px 28px rgba(37, 75, 69, 0.2));
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 3px 0 var(--line);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  border: 3px solid var(--honey-deep);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--honey-deep);
}
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-primary { background: var(--honey); color: var(--ink); }
.btn-plain {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line);
}

/* Pillars */
.pillars {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}
.pillar p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Cards & grids */
.card {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* UI atlas (matches assets/garden-ui.js) */
.art {
  display: block;
  background-image: url("assets/buzzy-ui-atlas.png");
  background-size: 400% 400%;
  background-position: var(--ax) var(--ay);
  background-repeat: no-repeat;
}
.icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f3ead8);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.icon-wrap .art { width: 44px; height: 44px; }
.icon-wrap.emoji { font-size: 1.75rem; line-height: 1; }

.feat {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--line);
}
.feat h3, .adventure h3 { font-size: 1rem; }
.feat p, .adventure p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.feat-body { min-width: 0; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.badge-free { background: #e8f8e0; color: #2d6b3a; }
.badge-premium { background: #ffe8f0; color: var(--berry); }

.benefits {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.benefits li { margin: 0.2rem 0; }

.game-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 720px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

.game-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 20px;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
}
.game-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.game-card h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.game-hook { font-weight: 700; font-size: 0.92rem; color: var(--ink); margin: 0.25rem 0 0; }
.game-play { font-size: 0.88rem; color: var(--ink-soft); margin: 0.35rem 0 0; line-height: 1.45; }
.game-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #e8f4ff;
}
.game-shot img { width: 100%; height: auto; vertical-align: middle; }
.game-shot figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border-top: 1px solid var(--line);
}

.showcase {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem;
  margin-top: 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 800px) {
  .showcase { grid-template-columns: 1fr min(42%, 320px); align-items: start; }
  .showcase.flip .showcase-copy { order: 2; }
  .showcase.flip .showcase-media { order: 1; }
}
.showcase-media img {
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--line);
  box-shadow: 0 8px 24px rgba(37, 75, 69, 0.12);
}
.showcase-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.showcase-head .icon-wrap { width: 64px; height: 64px; }
.showcase-head .icon-wrap .art { width: 52px; height: 52px; }

.gallery {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
}
.gallery img { width: 100%; display: block; }
.gallery figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* AR band */
.ar-band {
  background: linear-gradient(165deg, #1a3d38 0%, #254b45 55%, #2d5a52 100%);
  color: #e8f5f0;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 0 max(-0.5rem, 0);
  box-shadow: 0 20px 50px rgba(26, 61, 56, 0.35);
}
.ar-band h2, .ar-band h3 { color: #fff; }
.ar-band p, .ar-band li { color: #c5e8dc; }
.ar-band a { color: var(--honey); }
.ar-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .ar-grid { grid-template-columns: repeat(2, 1fr); } }
.ar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.1rem;
}
.ar-card .benefits { color: #a8d4c8; }
.ar-band .showcase { color: #e8f5f0; }
.ar-band .showcase .game-play { color: #c5e8dc; }
.ar-foot { font-size: 0.85rem; margin-top: 1.25rem; opacity: 0.85; }

/* Video */
.video-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0e221d;
}
.hero-media { justify-self: center; width: min(100%, 520px); }
.hero-promo {
  width: 100%;
  border-radius: 20px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  vertical-align: middle;
}
.promo-lead { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.promo-lead a { font-weight: 700; }

.ar-card .icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.ar-card .icon-wrap .art { width: 36px; height: 36px; }

.trust-line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer a { margin: 0 0.5rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  filter: blur(6px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

@media (prefers-contrast: more) {
  .card, .pillar, .feat, .adventure, .chip, .btn-plain {
    background: #fffdf8 !important;
    backdrop-filter: none !important;
    border: 2px solid #254b45 !important;
  }
  body { --ink-soft: #33443d; }
}
