/* ─────────────────────────────────────────────────────────────────
   Wander Wagon — shared stylesheet
   Palette mirrors lib/core/theme/app_tokens.dart (light mode values)
   ───────────────────────────────────────────────────────────────── */

:root {
  --red:        #D7402B;
  --blue:       #2A6F8E;
  --gold:       #F2A93B;
  --cream:      #F6ECD9;
  --cream-deep: #ECDFC4;
  --asphalt:    #2B2622;
  --soft:       #5A524A;
  --mint:       #5FB49C;
  --rose:       #C96E73;
  --wood:       #B07B4F;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1120px;
}

/* ── Reset / base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--asphalt);
  line-height: 1.6;
  font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p  { color: var(--soft); }

/* ── Layout helpers ───────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: 72px; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--asphalt);
  border-bottom: 3px solid var(--red);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--cream); }

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav__links a:hover { opacity: 1; text-decoration: none; }

.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: filter 0.15s !important;
}
.nav__cta:hover { filter: brightness(1.12); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: var(--asphalt);
  color: var(--cream);
  overflow: hidden;
  padding-block: 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero h1 { color: var(--gold); }
.hero h1 span { color: var(--cream); }

.hero__sub {
  margin-top: 16px;
  font-size: 1.15rem;
  color: rgba(246,236,217,0.75);
  max-width: 480px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--asphalt);
  border: 2.5px solid var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.badge-btn:hover { background: transparent; color: var(--cream); text-decoration: none; }
.badge-btn svg  { width: 28px; height: 28px; flex-shrink: 0; }

.badge-btn--outline {
  background: transparent;
  color: var(--cream);
}
.badge-btn--outline:hover { background: var(--cream); color: var(--asphalt); }

.badge-btn__label { display: flex; flex-direction: column; line-height: 1.2; }
.badge-btn__sub   { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }
.badge-btn__main  { font-size: 1rem; font-weight: 700; }

.hero__image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: min(280px, 80%);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}

/* ── Feature strip ────────────────────────────────────────────── */
.features {
  background: var(--red);
  padding-block: 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.feature-item__icon { font-size: 2rem; margin-bottom: 8px; }
.feature-item__label {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.feature-item__sub  { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* ── Games ────────────────────────────────────────────────────── */
.games { background: var(--cream); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px;
}

.section-title { margin-bottom: 8px; }
.section-desc  { max-width: 560px; margin-bottom: 48px; }

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--cream-deep);
  border: 2.5px solid var(--wood);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(43,38,34,0.12);
}

.game-card__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 2px solid var(--cream-deep);
}

.game-card h3 { color: var(--asphalt); margin-bottom: 4px; }
.game-card p  { font-size: 0.88rem; line-height: 1.5; }

/* ── Screenshots ──────────────────────────────────────────────── */
.screenshots { background: var(--cream-deep); }

.screenshot-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshot-scroll::-webkit-scrollbar { height: 6px; }
.screenshot-scroll::-webkit-scrollbar-track { background: var(--cream); border-radius: 3px; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 3px; }

.screenshot-scroll img {
  scroll-snap-align: start;
  height: 480px;
  width: auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--wood);
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(43,38,34,0.18));
}

/* ── How it works ─────────────────────────────────────────────── */
.how { background: var(--cream); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 48px;
  position: relative;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.step h3 { color: var(--asphalt); margin-bottom: 6px; }
.step p   { font-size: 0.9rem; }

/* ── Download CTA ─────────────────────────────────────────────── */
.cta-section {
  background: var(--asphalt);
  text-align: center;
  padding-block: 80px;
}

.cta-section h2 { color: var(--gold); margin-bottom: 12px; }
.cta-section p  { color: rgba(246,236,217,0.72); max-width: 480px; margin-inline: auto; margin-bottom: 36px; }

.cta-section .hero__badges { justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--asphalt);
  border-top: 2px solid rgba(176,123,79,0.3);
  padding-block: 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold);
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer__links a { color: rgba(246,236,217,0.6); font-size: 0.85rem; }
.footer__links a:hover { color: var(--cream); text-decoration: none; }

.footer__copy { color: rgba(246,236,217,0.4); font-size: 0.8rem; width: 100%; }

/* ── Inner page (privacy, support) ───────────────────────────── */
.inner-hero {
  background: var(--asphalt);
  padding-block: 56px;
  text-align: center;
}
.inner-hero h1 { color: var(--gold); font-size: clamp(1.8rem, 5vw, 3rem); }
.inner-hero p  { color: rgba(246,236,217,0.7); margin-top: 12px; font-size: 1rem; }

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 64px;
}

.prose h2 {
  font-size: 1.4rem;
  color: var(--asphalt);
  margin-top: 48px;
  margin-bottom: 12px;
}
.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: var(--soft);
  font-size: 0.97rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-top: 8px;
}

.prose li { margin-bottom: 6px; }
.prose a  { color: var(--blue); }

.prose .updated {
  display: inline-block;
  background: var(--cream-deep);
  border: 1.5px solid var(--wood);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--soft);
  margin-bottom: 36px;
}

/* Support specific */
.faq-item {
  border-bottom: 1.5px solid var(--cream-deep);
  padding-block: 20px;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--asphalt); font-size: 1rem; margin-bottom: 8px; }
.faq-item p  { font-size: 0.9rem; }

.contact-box {
  background: var(--cream-deep);
  border: 2.5px solid var(--wood);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.contact-box h2 { font-size: 1.5rem; margin-bottom: 8px; color: var(--asphalt); }
.contact-box p  { margin-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter 0.15s;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn--red   { background: var(--red); color: #fff; }
.btn--blue  { background: var(--blue); color: #fff; }
.btn--ghost { border: 2px solid var(--blue); color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .nav__links  { display: none; }
  section      { padding-block: 48px; }
  .screenshot-scroll img { height: 360px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
