/* ─── WorldQuest — Shared Stylesheet ───────────────────────────────────────── */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:           #F5EDD8;
  --bg-light:     #FAF3E6;
  --surface:      #FFFDF7;
  --surface-warm: #FFF8EC;
  --border:       #E8D9C0;
  --border-warm:  #DFD0B0;

  --red:          #F04E37;
  --red-deep:     #C03520;
  --blue:         #3B8FE8;
  --blue-deep:    #2468B8;
  --green:        #4BBE6A;
  --green-deep:   #2E8A49;
  --yellow:       #F5C842;
  --yellow-deep:  #C49810;
  --purple:       #8B5CF6;
  --purple-deep:  #6333CC;
  --orange:       #F97316;
  --orange-deep:  #C45408;

  --brown:        #8B6340;
  --brown-deep:   #6A4520;
  --gold:         #D4A017;
  --gold-deep:    #A07A10;

  --text-primary: #2C1E0F;
  --text-second:  #6B4E2E;
  --text-muted:   #A08060;
  --text-on-dark: #FFFFFF;

  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  --shadow-soft:   0 4px 12px rgba(44,30,15,0.10);
  --shadow-medium: 0 6px 20px rgba(44,30,15,0.14);
  --shadow-heavy:  0 12px 40px rgba(44,30,15,0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Map-grid background pattern ── */
.map-bg {
  background-image:
    linear-gradient(rgba(139,99,64,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,99,64,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Clay card ── */
.clay-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-medium);
}

/* ── Clay tile (coloured) ── */
.clay-tile {
  border-radius: var(--radius-lg);
  border-top: 2px solid rgba(255,255,255,0.4);
  border-bottom-width: 5px;
  border-bottom-style: solid;
  box-shadow: 0 8px 20px rgba(44,30,15,0.18);
}

/* ── Clay button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  border: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-bottom: 5px solid var(--blue-deep);
  border-top: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 6px 20px rgba(59,143,232,0.4);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(59,143,232,0.5); }

.btn-red {
  background: var(--red);
  color: #fff;
  border-bottom: 5px solid var(--red-deep);
  border-top: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 6px 20px rgba(240,78,55,0.4);
}
.btn-red:hover { box-shadow: 0 10px 28px rgba(240,78,55,0.5); }

.btn-outline {
  background: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}

/* ── Section ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border-warm);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-second);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Map pin marker ── */
.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* ── Pill badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Float animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(-3deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,243,230,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.navbar-logo-globe {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 50%;
  border-bottom: 3px solid var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-second);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.navbar-cta { padding: 10px 20px; font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.orb-1 { width:500px; height:500px; background:var(--yellow);  top:-100px; right:-80px; animation: float 8s ease-in-out infinite; }
.orb-2 { width:350px; height:350px; background:var(--blue);   bottom:-60px; left:-60px;  animation: float2 10s ease-in-out infinite; }
.orb-3 { width:220px; height:220px; background:var(--red);    top:40%;  right:20%;       animation: float 7s ease-in-out infinite 2s; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-age-badge {
  background: var(--yellow);
  color: var(--text-primary);
  border-bottom: 3px solid var(--yellow-deep);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title span { color: var(--blue); }
.hero-title .accent-red   { color: var(--red); }
.hero-title .accent-green { color: var(--green); }
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-second);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  border-bottom: 3px solid #000;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-text small { font-size: 0.65rem; font-weight: 500; opacity: 0.75; }

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.stat-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-soft);
}
.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-chip span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Phone mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-wrap {
  position: relative;
  animation: float2 6s ease-in-out infinite;
}
.phone-frame {
  width: 280px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(44,30,15,0.35),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}
.phone-notch {
  width: 100px; height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
}
.phone-notch-camera {
  width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a;
  border: 1px solid #333;
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  position: relative;
}
/* App UI inside phone */
.app-header {
  background: var(--bg);
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.app-header-row {
  display: flex; align-items: center; justify-content: space-between;
}
.app-greeting { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.app-xp-pill {
  background: var(--yellow); color: var(--text-primary);
  border-radius: 99px; padding: 2px 10px;
  font-size: 0.65rem; font-weight: 800; font-family: var(--font-display);
  border-bottom: 2px solid var(--yellow-deep);
}
.app-content { padding: 12px; }
.app-hero-card {
  background: var(--blue);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  border-bottom: 4px solid var(--blue-deep);
  position: relative;
  overflow: hidden;
}
.app-hero-card::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.app-hero-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.app-hero-sub { font-size: 0.65rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.app-globe-emoji { position: absolute; right: 12px; top: 10px; font-size: 28px; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.app-mini-card {
  border-radius: 12px;
  padding: 10px;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  display: flex; flex-direction: column; gap: 4px;
}
.app-mini-card .icon { font-size: 18px; }
.app-mini-card .label { font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; }
.app-mini-card .sub   { font-size: 0.5rem; color: rgba(0,0,0,0.5); font-weight: 600; }

.app-section-title { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.app-story-row {
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.app-story-emoji { font-size: 18px; }
.app-story-info .story-title { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; color: var(--text-primary); }
.app-story-info .story-sub   { font-size: 0.55rem; color: var(--text-muted); font-weight: 600; }

.app-tab-bar {
  display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); padding: 8px 4px;
  border-top: 1px solid var(--border);
}
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.55rem; font-weight: 700; color: var(--text-muted); }
.tab-item.active { color: var(--blue); }
.tab-item .tab-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.tab-item.active .tab-dot { background: var(--blue); }

/* Floating decorations around phone */
.deco {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  white-space: nowrap;
  box-shadow: var(--shadow-medium);
  z-index: 3;
}
.deco-1 {
  background: var(--green); color: #fff;
  border-bottom: 3px solid var(--green-deep);
  top: 8%; left: -30%;
  animation: float 5s ease-in-out infinite 1s;
}
.deco-2 {
  background: var(--purple); color: #fff;
  border-bottom: 3px solid var(--purple-deep);
  bottom: 22%; right: -28%;
  animation: float2 7s ease-in-out infinite;
}
.deco-3 {
  background: var(--surface); color: var(--text-primary);
  border: 2px solid var(--border); border-bottom: 3px solid var(--border-warm);
  top: 68%; left: -28%;
  animation: float 9s ease-in-out infinite 3s;
}
.deco-4 {
  background: var(--orange); color: #fff;
  border-bottom: 3px solid var(--orange-deep);
  top: 2%; right: -20%;
  animation: float2 6s ease-in-out infinite 0.5s;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--surface-warm);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text-second);
}
.trust-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  border-top: 2px solid rgba(255,255,255,0.5);
  border-bottom-width: 4px;
  border-bottom-style: solid;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-second);
  line-height: 1.65;
}

/* ── Age groups ── */
.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.age-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.age-card:hover { transform: translateY(-6px); }
.age-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.age-emoji { font-size: 3rem; margin-bottom: 12px; }
.age-range {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}
.age-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.age-desc { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }
.age-features { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; }
.age-feature-item {
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Countries strip ── */
.countries-strip {
  padding: 48px 0;
  overflow: hidden;
  background: var(--surface-warm);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.countries-track {
  display: flex;
  gap: 12px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}
.countries-track:hover { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.country-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--border-warm);
  border-radius: 99px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-second);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

/* ── How it works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: calc(16.66% + 20px);
  width: calc(66.66% - 40px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
}
.step-card { text-align: center; }
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 20px;
  border-top: 2px solid rgba(255,255,255,0.5);
  border-bottom-width: 4px;
  border-bottom-style: solid;
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.step-desc { font-size: 0.9rem; color: var(--text-second); line-height: 1.65; }

/* ── Safe for kids ── */
.safe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.safe-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
}
.safe-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border-top: 2px solid rgba(255,255,255,0.5);
  border-bottom-width: 3px;
  border-bottom-style: solid;
}
.safe-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--text-primary); }
.safe-desc  { font-size: 0.875rem; color: var(--text-second); line-height: 1.6; }

/* ── CTA section ── */
.cta-section {
  background: var(--text-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.7; }
.cta-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-badges .store-badge { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.15); border-bottom: 3px solid rgba(0,0,0,0.3); }
.cta-badges .store-badge:hover { background: rgba(255,255,255,0.15); }

/* ── Footer ── */
footer {
  background: var(--surface-warm);
  border-top: 1.5px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-primary); }
.made-by { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.made-by a { color: var(--blue); font-weight: 700; }

/* ── Legal pages (privacy / terms) ── */
.legal-hero {
  background: var(--text-primary);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.legal-hero-inner { position: relative; z-index: 1; }
.legal-badge { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.legal-hero-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; margin-bottom: 10px; }
.legal-hero-date { font-size: 0.9rem; color: rgba(255,255,255,0.5); font-weight: 600; }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1.5px solid var(--border);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; }
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-second);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 12px 0 14px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-content li { font-size: 0.95rem; color: var(--text-second); line-height: 1.7; }
.legal-content strong { color: var(--text-primary); font-weight: 700; }
.legal-content a { color: var(--blue); font-weight: 700; }
.legal-highlight {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-second);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .age-grid      { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .safe-grid     { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-visual   { display: none; }
  .deco          { display: none; }
  .nav-links     { display: none; }
  .hamburger     { display: flex; }
  .hero { min-height: auto; padding: 60px 0 40px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .age-grid      { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
  .section { padding: 56px 0; }
  .hero-stats { gap: 12px; }
}
