/* Monster Trucks for Babies — monstertruck.aircoded.app
   Palette drawn from the app icon and in-game art:
   cream (icon background), teal (truck body), flame orange, arrow red,
   star yellow, grass + dirt (terrain). */

:root {
  --cream: #faf4d3;
  --sky-top: #aedeed;
  --sky-bottom: #d9eef5;
  --ink: #14444f;
  --ink-soft: #3d6672;
  --teal: #12a5b0;
  --teal-dark: #0d838c;
  --flame: #f5821f;
  --red: #e2372b;
  --star: #ffcd2e;
  --grass: #7dbb42;
  --grass-dark: #5f9c2e;
  --dirt: #8a5a33;
  --dirt-dark: #74491f;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 68, 79, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", "Avenir Next", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav a.nav-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.nav a.nav-link:hover,
.nav a.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(var(--sky-bottom), var(--sky-top) 85%);
  text-align: center;
  padding: 2.5rem 0 0;
}

.hero-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.2rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
  animation: bounce-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0.7rem auto 1.6rem;
  max-width: 34em;
}

@keyframes bounce-in {
  from { transform: translateY(-40px) scale(0.8); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Store buttons ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  line-height: 1.2;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.store-btn strong {
  font-size: 1.02rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
}

.store-btn.soon {
  background: rgba(20, 68, 79, 0.45);
  cursor: default;
  box-shadow: none;
}

.store-btn.soon:hover {
  transform: none;
}

/* ---------- Video ---------- */

.video-frame {
  position: relative;
  z-index: 2;
  width: min(860px, 94%);
  margin: 0 auto -4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 18px 45px rgba(20, 68, 79, 0.3);
  background: var(--ink);
}

.video-frame video {
  width: 100%;
}

/* ---------- Terrain divider (signature: the game's grass-over-dirt ground) ---------- */

.terrain {
  display: block;
  width: 100%;
  height: 90px;
  margin-top: 0;
}

.after-video {
  padding-top: 6rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  max-width: 40em;
  margin: 0 auto 2.4rem;
}

.star {
  color: var(--star);
  -webkit-text-stroke: 1px rgba(20, 68, 79, 0.25);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--teal);
}

.feature:nth-child(2) { border-bottom-color: var(--flame); }
.feature:nth-child(3) { border-bottom-color: var(--red); }
.feature:nth-child(4) { border-bottom-color: var(--grass); }

.feature .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  height: auto;
}

.gallery figcaption {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  padding: 0.7rem 1rem 0.9rem;
  text-align: center;
  font-size: 1.02rem;
}

/* Parents strip */

.parents {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}

.parents h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1.4rem;
}

.parents ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.6rem;
  font-weight: 700;
}

.parents li {
  padding-left: 1.7rem;
  position: relative;
}

.parents li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--star);
}

/* ---------- Text pages (support / privacy) ---------- */

.page-hero {
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  text-align: center;
  padding: 2.8rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.page-hero p {
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 0.5rem;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.content h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.6rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content p + p {
  margin-top: 0.8rem;
}

.content ul {
  margin: 0.6rem 0 0.6rem 1.4rem;
}

.content .updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  margin-top: 1.2rem;
}

.card h2 {
  margin-top: 0;
}

.btn-email {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-top: 0.8rem;
  transition: transform 0.15s ease;
}

.btn-email:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.4rem 0 2.8rem;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .fine {
  width: 100%;
  font-size: 0.88rem;
  opacity: 0.7;
}

/* ---------- Motion & small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon { animation: none; }
  .store-btn, .btn-email { transition: none; }
}

@media (max-width: 560px) {
  .nav { flex-wrap: wrap; }
  .video-frame { margin-bottom: -3rem; border-width: 4px; }
  .after-video { padding-top: 4.5rem; }
  .parents { padding: 1.8rem 1.3rem; }
}
