:root {
  color-scheme: light;
  --sky: #8fd3f4;
  --sky-pale: #e6f7ff;
  --meadow: #7bc67e;
  --meadow-deep: #3fa34d;
  --sun: #ffd166;
  --coral: #f78c6b;
  --coral-deep: #e4572e;
  --amber: #c98b3a;
  --cream: #fff6e5;
  --ink: #3b2340;
  --ink-soft: #6b5570;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 6px 24px rgba(59, 35, 64, 0.1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.site-header .logo { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow); }
.site-header .brand { font-size: 1.35rem; font-weight: 900; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--coral-deep); }
@media (max-width: 520px) {
  .site-header .brand { font-size: 1.15rem; }
  .site-header nav { gap: 12px; flex-wrap: nowrap; }
  .site-header nav a { font-size: 0.92rem; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(var(--sky), var(--sky-pale));
  overflow: hidden;
}
.hero-scene {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  /* Fade the painted sky into the page's sky so there's no seam behind the headline. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
}
.hero-inner { position: relative; text-align: center; padding: 28px 20px 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.05; margin: 0 0 10px; font-weight: 900; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(1.1rem, 2.6vw, 1.35rem); max-width: 620px; margin: 0 auto 22px; color: var(--ink); }
.racers { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 36px); padding: 40px 0 26px; }
.racers img { width: clamp(70px, 15vw, 150px); filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.18)); animation: bob 1.1s ease-in-out infinite alternate; }
.racers img:nth-child(2) { animation-delay: 0.25s; }
.racers img:nth-child(3) { animation-delay: 0.5s; }
.racers img:nth-child(4) { animation-delay: 0.75s; }
@keyframes bob { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .racers img { animation: none; } }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.store-badge:hover { color: #fff; background: #52325a; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.store-note { display: inline-block; font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 12px 0 0; padding: 4px 14px; border-radius: 999px; background: rgba(255, 246, 229, 0.9); }

/* Sections */
section.band { padding: 64px 0; }
section.band.alt { background: #fff; }
section.band.green { background: var(--meadow); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 12px; }
h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; margin: 0 0 32px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.split img { max-width: 320px; margin: 0 auto; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split img { max-width: 220px; } }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
}
.game img { width: 84px; height: 84px; object-fit: contain; }
.game p { margin: 0; color: var(--ink-soft); }
.band.alt .game { background: var(--cream); box-shadow: none; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .emoji { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; display: block; }

.price {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.price .amount { font-size: 2.6rem; font-weight: 900; margin: 6px 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: inline-block; }
.price li { padding: 4px 0 4px 30px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--meadow-deep); font-weight: 900; }

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--coral-deep);
}
.cta:hover { color: #fff; filter: brightness(1.05); }
.cta.secondary { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(59, 35, 64, 0.2); }

/* Content pages */
.page { padding: 24px 0 72px; }
.page h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); font-weight: 900; margin: 16px 0 8px; }
.page h2 { font-size: 1.6rem; margin-top: 40px; }
.page h3 { margin-top: 24px; }
.meta { color: var(--ink-soft); margin-top: 0; }
.callout { background: #fff; border-left: 6px solid var(--meadow); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }

.faq dt { font-weight: 800; margin-top: 22px; font-size: 1.08rem; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); }

/* Contact form (same wiring as the other ByteLathe sites) */
.contact-form {
  display: grid;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.contact-form label { font-weight: 700; margin-top: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid #ead9bf;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--coral); }
.contact-form button {
  margin-top: 14px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: var(--coral);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--coral-deep);
  justify-self: start;
}
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { min-height: 1.4em; margin: 6px 0 0; font-weight: 700; }
.cf-ok { color: var(--meadow-deep); }
.cf-err { color: var(--coral-deep); }
.cf-legal { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.grecaptcha-badge { visibility: hidden; }

/* Drill link page */
.drill-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.drill-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.drill-notes li { background: var(--sun); border-radius: 10px; padding: 4px 12px; font-weight: 800; }

/* Footer */
footer.site-footer { background: var(--ink); color: #f1e8f2; padding: 36px 0; }
footer.site-footer a { color: #fff; margin-right: 18px; }
footer.site-footer p { margin: 14px 0 0; color: #cbb9cf; font-size: 0.92rem; }
