:root {
  --teal: #0b3d4a;
  --teal-deep: #072f38;
  --mint: #39c4b0;
  --mint-soft: #7dd9cb;
  --sand: #f5f0e8;
  --sand-dark: #e8e0d2;
  --ink: #1a2e34;
  --muted: #5a6f76;
  --white: #ffffff;
  --warn: #fff4d6;
  --warn-ink: #6b5400;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(11, 61, 74, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--mint); }
ul { list-style: none; }

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

/* Age gate */
.age-gate, .age-block {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 47, 56, 0.88);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}
.age-gate[hidden], .age-block[hidden] { display: none !important; }
.age-card {
  background: var(--sand);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease both;
}
.age-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.age-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.age-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
.age-block .age-card { border: 2px solid #c45c5c; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem;
  color: var(--teal); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--teal); display: grid; place-items: center;
}
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--mint); }
.badge-21 {
  font-size: 0.72rem; font-weight: 700;
  background: var(--teal); color: var(--sand);
  padding: 0.28rem 0.55rem; border-radius: 999px;
  letter-spacing: 0.04em;
}

.warn-bar {
  background: var(--warn); color: var(--warn-ink);
  font-size: 0.82rem; padding: 0.55rem 0;
  border-bottom: 1px solid #f0e0a8;
}
.warn-bar .container { display: flex; gap: 0.5rem; align-items: flex-start; }
.warn-bar strong { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.85rem 1.4rem;
  border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--mint); color: var(--teal-deep); box-shadow: 0 8px 24px rgba(57, 196, 176, 0.35); }
.btn-primary:hover { background: var(--mint-soft); }
.btn-secondary { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-ghost { background: var(--teal); color: var(--sand); }
.btn-danger { background: #e8d5d5; color: #8a3030; }

/* Hero strip */
.hero-strip {
  padding: 2.5rem 0 1rem;
  animation: fadeUp 0.6s ease both;
}
.hero-strip .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint);
  margin-bottom: 0.6rem;
}
.hero-strip h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.03em;
  color: var(--teal); max-width: 18ch;
}
.hero-strip .lead {
  margin-top: 1rem; max-width: 52ch; color: var(--muted); font-size: 1.05rem;
}

/* Asymmetric layout */
.play-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}
.steps-nav {
  position: sticky; top: 7.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-dark);
}
.steps-nav h3 {
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--teal);
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.step-link {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.75rem 0.6rem; border-radius: 10px;
  color: var(--ink); transition: background 0.2s;
  margin-bottom: 0.25rem;
}
.step-link:hover { background: var(--sand); color: var(--teal); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  color: var(--mint); min-width: 1.8rem;
}
.step-label { font-size: 0.9rem; font-weight: 500; line-height: 1.35; }

.content-col { display: flex; flex-direction: column; gap: 1.75rem; }

.step-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  border: 1px solid var(--sand-dark);
  box-shadow: 0 8px 28px rgba(11, 61, 74, 0.06);
  scroll-margin-top: 8rem;
  animation: fadeUp 0.55s ease both;
}
.step-panel:nth-child(2) { animation-delay: 0.08s; }
.step-panel:nth-child(3) { animation-delay: 0.14s; }
.step-panel:nth-child(4) { animation-delay: 0.2s; }
.step-panel:nth-child(5) { animation-delay: 0.26s; }

.panel-head {
  display: flex; align-items: baseline; gap: 0.85rem;
  margin-bottom: 1rem;
}
.panel-head .num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--mint);
  line-height: 1;
}
.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--teal); letter-spacing: -0.02em;
}
.step-panel p { color: var(--muted); margin-bottom: 0.85rem; }
.step-panel .note {
  background: var(--sand);
  border-left: 3px solid var(--mint);
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem; color: var(--teal);
}

.chart-wrap {
  margin-top: 1rem;
  background: linear-gradient(160deg, var(--teal) 0%, #0f5563 100%);
  border-radius: 12px;
  padding: 1.25rem;
  overflow: hidden;
  position: relative;
}
.chart-wrap svg { width: 100%; height: auto; }
.chart-line {
  fill: none; stroke: var(--mint); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2.2s ease forwards 0.4s;
}
.chart-area {
  fill: url(#mintFade);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}
.chart-caption {
  position: absolute; bottom: 1rem; left: 1.25rem;
  color: rgba(245, 240, 232, 0.75); font-size: 0.78rem;
}

.check-list { margin-top: 0.5rem; }
.check-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.45rem 0; color: var(--ink); font-size: 0.95rem;
}
.check-list li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50%; background: var(--mint);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

.mode-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
  margin-top: 1rem;
}
.mode-card {
  background: var(--sand); border-radius: 12px; padding: 1rem;
  border: 1px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.mode-card:hover { border-color: var(--mint); transform: translateY(-3px); }
.mode-card h4 {
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--teal); margin-bottom: 0.35rem;
}
.mode-card p { font-size: 0.82rem; margin: 0; }

/* Form */
.demo-form { display: grid; gap: 0.85rem; margin-top: 1rem; max-width: 420px; }
.demo-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.demo-form input {
  padding: 0.8rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--sand-dark); background: var(--sand);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.2s;
}
.demo-form input:focus { outline: none; border-color: var(--mint); background: var(--white); }
.form-hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--teal); letter-spacing: -0.03em;
}
.page-hero p { color: var(--muted); margin-top: 0.5rem; max-width: 60ch; }
.legal-body {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--sand-dark);
  margin-bottom: 3rem;
}
.legal-body h2 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--teal); margin: 1.5rem 0 0.6rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 0.65rem; font-size: 0.95rem; }
.legal-body ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 0.75rem; }
.legal-body .highlight {
  background: var(--sand); border-left: 3px solid var(--mint);
  padding: 1rem; border-radius: 0 10px 10px 0; margin: 1rem 0;
  color: var(--teal);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card, .contact-form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; border: 1px solid var(--sand-dark);
}
.contact-card h2, .contact-form-card h2 {
  font-family: var(--font-display); color: var(--teal);
  font-size: 1.2rem; margin-bottom: 1rem;
}
.contact-item { margin-bottom: 1rem; }
.contact-item span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-item strong { color: var(--ink); font-weight: 600; }

.thanks-box {
  text-align: center; padding: 4rem 1.5rem 5rem;
  animation: fadeUp 0.5s ease both;
}
.thanks-box h1 {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--teal); margin-bottom: 0.75rem;
}
.thanks-icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: var(--mint);
  display: grid; place-items: center;
  animation: softPulse 2.5s ease-in-out infinite;
}

/* Footer */
.site-footer {
  background: var(--teal); color: rgba(245, 240, 232, 0.85);
  padding: 2.5rem 0 1.5rem; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .logo { color: var(--sand); }
.site-footer p { font-size: 0.85rem; margin-top: 0.75rem; max-width: 36ch; opacity: 0.85; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--mint); margin-bottom: 0.75rem;
}
.footer-col a { display: block; color: rgba(245, 240, 232, 0.8); font-size: 0.88rem; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 1.25rem; font-size: 0.78rem; opacity: 0.7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(57, 196, 176, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(57, 196, 176, 0); }
}

@media (max-width: 900px) {
  .play-layout { grid-template-columns: 1fr; }
  .steps-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .steps-nav h3 { width: 100%; }
  .step-link { flex: 1 1 auto; min-width: 120px; }
  .mode-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
}
