/* ════════════════════════════════════════════════════════════
   Smart Safari · Site stylesheet
   Springbok-and-savanna aesthetic — warm, credible, editorial
   ════════════════════════════════════════════════════════════ */

:root {
  /* Brand palette */
  --green-deep: #003d1f;
  --green-bottle: #006633;
  --green-bright: #00a651;
  --gold-springbok: #FFB81C;
  --gold-deep: #d97706;
  --terracotta: #c2410c;
  --sand: #fef9e7;
  --paper: #fdf8ef;
  --ink: #1a0f06;
  --ink-soft: #4a3624;
  --ink-mute: #806950;

  /* Typography */
  --font-display: 'Fredoka One', 'Georgia', cursive;
  --font-body: 'Lora', 'Georgia', serif;
  --font-ui: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  /* Subtle paper-grain background using SVG noise */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-deep); line-height: 1.15; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; max-width: 65ch; }
a { color: var(--green-bottle); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
strong { color: var(--green-deep); font-weight: 700; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  display: block;
}

/* ─── Layout helpers ─────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.section-tight { padding: 48px 0; }
section.section-dark { background: var(--green-deep); color: var(--paper); }
section.section-dark h1, section.section-dark h2, section.section-dark h3 { color: var(--paper); }
section.section-dark .eyebrow { color: var(--gold-springbok); }
section.section-sand { background: var(--sand); }
section.section-gold { background: linear-gradient(135deg, var(--gold-springbok), var(--gold-deep)); color: var(--ink); }
section.section-gold h2 { color: var(--ink); }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  background: rgba(253, 248, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 102, 51, 0.10);
  z-index: 100;
  padding: 14px 0;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-bottle));
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 102, 51, 0.25);
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-deep);
  line-height: 1;
}
.nav-brand-text small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 50px;
  transition: all 0.15s ease;
}
.nav-links a:hover { background: rgba(0, 102, 51, 0.08); color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); background: rgba(0, 102, 51, 0.08); }
.nav-cta {
  background: linear-gradient(135deg, var(--green-bright), var(--green-bottle));
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 12px rgba(0, 102, 51, 0.30);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0, 102, 51, 0.40); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--green-bottle);
  border-radius: 8px;
  width: 38px; height: 38px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--green-deep);
  margin: 4px auto;
  transition: all 0.2s ease;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-bottle));
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 102, 51, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 26px rgba(0, 102, 51, 0.40); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-springbok), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.30);
}
.btn-gold:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 10px 26px rgba(217, 119, 6, 0.40); }
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-bottle);
}
.btn-ghost:hover { background: var(--green-bottle); color: #fff; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 184, 28, 0.25), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(0, 166, 81, 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 184, 28, 0.20);
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 28em;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-weight: 600;
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; align-items: center; gap: 6px; }
.hero-meta-item::before { content: '✓'; color: var(--green-bright); font-weight: 900; }
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-frame {
  background: linear-gradient(135deg, var(--green-deep), var(--green-bottle));
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 61, 31, 0.30);
  position: relative;
  transform: rotate(-2deg);
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-art-frame:hover {
  transform: rotate(-2deg) translateY(-4px);
  box-shadow: 0 36px 70px rgba(0, 61, 31, 0.40);
}
.hero-art-frame::after {
  content: 'Try it →';
  position: absolute;
  top: -14px; right: -14px;
  background: var(--gold-springbok);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  transform: rotate(8deg);
}
.hero-phone {
  width: 100%;
  max-width: 320px;
  height: 540px;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
  position: relative;
}
.hero-phone iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;  /* preview only — taps fall through to the overlay link */
}
.hero-phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 16px;
  pointer-events: none;
}
.hero-phone-tap {
  background: rgba(253, 248, 239, 0.95);
  color: var(--green-deep);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Stat band ──────────────────────────────────────────── */
.stat-band {
  background: var(--green-deep);
  color: var(--paper);
  padding: 36px 0;
  border-radius: 24px;
  margin: 24px 0;
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-springbok);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 248, 239, 0.85);
  margin-top: 6px;
}
.stat-sub {
  font-size: 0.74rem;
  color: rgba(253, 248, 239, 0.55);
  margin-top: 2px;
}

/* ─── Card grids ─────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(0, 102, 51, 0.10);
  box-shadow: 0 6px 24px rgba(26, 15, 6, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(26, 15, 6, 0.10); }
.card-emoji {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
.card-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(194, 65, 12, 0.10);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

/* ─── Game cards (Home + Parents) ────────────────────────── */
.game-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(0, 102, 51, 0.10);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.game-card-emoji {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--sand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-body { flex: 1; }
.game-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.game-card-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-bottle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.game-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 6px; }
.game-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.game-card-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 166, 81, 0.10);
  color: var(--green-bottle);
  padding: 2px 8px;
  border-radius: 50px;
}

/* ─── Quote block ────────────────────────────────────────── */
.quote-block {
  background: var(--sand);
  border-left: 5px solid var(--gold-springbok);
  border-radius: 4px 14px 14px 4px;
  padding: 28px 32px;
  position: relative;
  margin: 32px 0;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-springbok);
  line-height: 1;
}
.quote-block p {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink-soft);
}
.quote-attrib {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-mute);
  margin-top: 10px;
  font-style: normal !important;
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 26px;
  border: 2px solid rgba(0, 102, 51, 0.10);
  position: relative;
}
.price-card-featured {
  border-color: var(--gold-springbok);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.18);
}
.price-card-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px; right: 20px;
  background: var(--gold-springbok);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--green-bottle);
  line-height: 1;
  margin: 12px 0 4px;
}
.price-period {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 600;
}
.price-list {
  list-style: none;
  margin: 22px 0;
}
.price-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 7px 0;
  padding-left: 26px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.price-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 7px;
  color: var(--green-bright);
  font-weight: 900;
}
.price-list li:last-child { border-bottom: none; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--green-deep);
  color: var(--paper);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer h4 {
  color: var(--gold-springbok);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-block .nav-brand-text { color: var(--paper); }
.footer-brand-block p { font-size: 0.92rem; color: rgba(253, 248, 239, 0.7); margin-top: 12px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: rgba(253, 248, 239, 0.75); text-decoration: none; font-size: 0.92rem; }
.footer-list a:hover { color: var(--gold-springbok); }
.footer-bottom {
  border-top: 1px solid rgba(253, 248, 239, 0.10);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(253, 248, 239, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Misc helpers ───────────────────────────────────────── */
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 30px; }
.divider {
  width: 60px; height: 4px;
  background: var(--gold-springbok);
  border-radius: 4px;
  margin: 20px 0 24px;
}
.center .divider { margin-left: auto; margin-right: auto; }

/* Anchor offset so sticky nav doesn't cover anchored headings */
[id] { scroll-margin-top: 90px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 16px; gap: 6px; border-bottom: 1px solid rgba(0,102,51,0.10); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .nav-toggle { display: block; }
  .stat-band-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2.2rem; }
}
