/* ==========================================================================
   Built for the Game — Design Tokens
   Palette: Navy / Field White / Slate / Whistle Amber / Chalk Line
   Type: Oswald (display) + Source Serif 4 (body) + Inter (utility)
   ========================================================================== */

:root {
  --navy: #16233F;
  --navy-deep: #0F1A2E;
  --field-white: #F7F7F4;
  --slate: #4B5563;
  --ink: #1A1D23;
  --amber: #C77D22;
  --amber-dark: #A5651A;
  --chalk-line: #E4E7EB;
  --white: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-utility: 'Inter', sans-serif;

  --max-width: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--field-white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--slate); }

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-dark);
  margin-bottom: 0.9em;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-utility);
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-outline {
  background: transparent;
  color: var(--field-white);
  border-color: rgba(247,247,244,0.5);
}
.btn-outline:hover { border-color: var(--field-white); background: rgba(247,247,244,0.08); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-deep); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand span { color: var(--amber); }
.brand:hover { text-decoration: none; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-family: var(--font-utility);
  color: var(--field-white);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav.main-nav a:hover { color: var(--amber); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main-nav ul { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--field-white);
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero .container { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: var(--white); }
.hero p.lede {
  color: rgba(247,247,244,0.82);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-episode {
  margin-top: 36px;
  max-width: 460px;
  background: rgba(247,247,244,0.06);
  border: 1px solid rgba(247,247,244,0.18);
  border-radius: var(--radius);
  padding: 22px;
}
.hero-episode-label {
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  display: block;
  margin-bottom: 6px;
}
.hero-episode-title {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.play-diagram {
  position: absolute;
  top: 0; right: -8%;
  height: 100%;
  width: 60%;
  opacity: 0.16;
  z-index: 1;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--chalk-line); border-bottom: 1px solid var(--chalk-line); }

.section-head { max-width: 640px; margin-bottom: 50px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--chalk-line);
  padding: 34px 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  display: block;
}
.trust-stat .label {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .trust-strip .container { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Product feature panel ---------- */
.product-feature {
  background: var(--navy);
  color: var(--field-white);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.product-feature .diagram-bg {
  position: absolute;
  right: -10%; top: -20%;
  width: 70%; height: 140%;
  opacity: 0.14;
}
.product-feature h3 {
  color: var(--white);
  font-size: 1.9rem;
}
.product-feature p { color: rgba(247,247,244,0.82); }
.product-feature .price-tag {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--amber);
  margin-bottom: 6px;
}
.product-feature-visual {
  background: rgba(247,247,244,0.06);
  border: 1px solid rgba(247,247,244,0.18);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  z-index: 2;
}
.product-feature-visual .file-label {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247,247,244,0.6);
  margin-bottom: 10px;
}
@media (max-width: 820px) {
  .product-feature { grid-template-columns: 1fr; padding: 36px; }
}

/* ---------- Episode / card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--chalk-line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--amber); transform: translateY(-2px); }
.card .eyebrow { margin-bottom: 0.6em; }
.card h3 { margin-bottom: 0.4em; }
.card .meta {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Product cards (shop) ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--chalk-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card h3 { font-size: 1.25rem; }
.product-card .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 10px 0 18px;
}
.product-card .btn { margin-top: auto; text-align: center; }
.product-card-thumb {
  height: 6px;
  background: var(--amber);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"] {
  font-family: var(--font-utility);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--chalk-line);
  border-radius: var(--radius);
  width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247,247,244,0.65);
  padding: 50px 0 30px;
  font-family: var(--font-utility);
  font-size: 0.9rem;
}
.site-footer a { color: rgba(247,247,244,0.85); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  color: var(--field-white);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(247,247,244,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Status / confirmation pages ---------- */
.status-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--chalk-line);
  border-radius: var(--radius);
  padding: 60px 44px;
}
.status-icon {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
}
.download-box {
  background: var(--field-white);
  border: 1px dashed var(--chalk-line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 26px 0;
  font-family: var(--font-utility);
}
.spinner {
  border: 3px solid var(--chalk-line);
  border-top-color: var(--amber);
  border-radius: 50%;
  width: 30px; height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-text { color: #B3261E; font-family: var(--font-utility); font-size: 0.92rem; }
