/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --base:    #2B1237;
  --deep:    #1A0A22;
  --accent:  #B9E24B;
  --accent2: #8B5CF0;
  --surface: #F6F2F8;
  --ink:     #1E1224;
  --muted:   #6B5C74;

  --radius:  8px;
  --container: 1120px;

  --font-heading: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--surface);
}

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

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover { text-decoration: underline; color: var(--accent); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--base);
}

h1 { font-size: 2.0rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

strong { font-weight: 700; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   AGE STRIP  (dark utility strip above header)
   ============================================================ */
.age-strip {
  background-color: var(--deep);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 1rem;
  text-align: left;
}

.age-strip span { display: inline-block; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: var(--base);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* WORDMARK */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1;
  user-select: none;
}

.wm-mu {
  color: #ffffff;
  background-color: transparent;
  padding: 0.1em 0.15em;
  border-radius: var(--radius) 0 0 var(--radius);
}

.wm-88 {
  color: var(--ink);
  background-color: var(--accent);
  padding: 0.1em 0.2em;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 2rem;
}

/* MAIN NAV */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--surface);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}

.main-nav a:hover {
  background-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  background-color: var(--accent);
  color: var(--ink);
}

/* ============================================================
   BONUS BANNER
   ============================================================ */
.bonus-banner {
  background-color: var(--base);
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 0;
}

.bonus-banner--top { margin-top: 0; }
.bonus-banner--mid { margin-top: 0; }

.banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.banner-text { flex: 1; }

.banner-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.35rem;
}

.banner-headline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0;
}

.banner-underline {
  height: 4px;
  background-color: var(--accent);
  width: 100%;
  margin-top: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, transform 0.12s;
  text-decoration: none;
  line-height: 1;
}

.btn-cta:hover {
  background-color: var(--accent2);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-cta:active { transform: translateY(0); }

.btn-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.btn-cta--card {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.section-block {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.section-block h2 {
  color: var(--base);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.section-block h3 {
  color: var(--accent2);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.intro-section h1 {
  color: var(--base);
  margin-bottom: 1rem;
}

/* ============================================================
   STYLED LISTS
   ============================================================ */
.styled-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.styled-list li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.styled-list li::marker {
  color: var(--accent2);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--muted);
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table thead tr {
  background-color: var(--base);
  color: #ffffff;
}

table thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: none;
}

table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

table tbody tr:nth-child(even) {
  background-color: #ece6f2;
}

table tbody tr:hover {
  background-color: #ddd5e8;
}

table tbody td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid #dcd4e5;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   FAQ ACCORDION  (CSS-only, hidden-checkbox technique)
   ============================================================ */
.faq-section h2 {
  margin-bottom: 1.25rem;
}

.faq-item {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background-color: #ffffff;
}

/* hide the actual checkbox */
.faq-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--base);
  background-color: #ffffff;
  transition: background-color 0.18s;
  user-select: none;
}

.faq-question:hover {
  background-color: #f0eaf7;
}

.faq-toggle:focus-visible + .faq-question {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* plus/minus icon drawn purely in CSS */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* horizontal bar (always visible) */
.faq-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

/* vertical bar (forms the + sign, hidden when open) */
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* when checked: hide vertical bar (show minus) */
.faq-toggle:checked + .faq-question .faq-icon {
  background-color: var(--accent2);
}

.faq-toggle:checked + .faq-question .faq-icon::before {
  background-color: #ffffff;
}

.faq-toggle:checked + .faq-question .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  background-color: #ffffff;
}

/* answer panel: hidden by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
  background-color: #faf8fc;
  border-top: 0px solid var(--muted);
}

.faq-answer p {
  color: var(--ink);
  font-size: 0.9375rem;
  margin-bottom: 0;
  padding: 0;
}

/* open state */
.faq-toggle:checked ~ .faq-answer {
  max-height: 600px;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--muted);
}

.faq-toggle:checked + .faq-question {
  background-color: #f0eaf7;
  color: var(--accent2);
}

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  background-color: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--accent2);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--ink);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 0.75rem;
}

.card p:last-of-type { margin-bottom: 0; }

.card:hover {
  border-color: var(--accent2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--deep);
  color: var(--surface);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wordmark--footer .wm-mu {
  color: #ffffff;
}

.wordmark--footer .wm-88 {
  color: var(--ink);
  background-color: var(--accent);
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-links nav a {
  color: var(--surface);
  font-size: 0.875rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links nav a:hover { color: var(--accent); text-decoration: none; }

.footer-links nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-legal {
  border-top: 1px solid var(--muted);
  padding-top: 1.25rem;
}

.footer-legal p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.footer-legal p:last-child { margin-bottom: 0; }

.age-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.2em 0.55em;
  border-radius: var(--radius);
  margin-bottom: 0.75rem !important;
  letter-spacing: 0.06em;
}

.copyright {
  color: var(--surface) !important;
  font-size: 0.78rem !important;
  margin-top: 0.5rem;
}

/* ============================================================
   BREAKPOINT — 640px
   ============================================================ */
@media (min-width: 640px) {

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .banner-headline { font-size: 1.45rem; }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .footer-brand  { flex: 0 0 100%; }
  .footer-links  { flex: 1; }
  .footer-legal  { flex: 0 0 100%; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================================
   BREAKPOINT — 1024px
   ============================================================ */
@media (min-width: 1024px) {

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-inner { flex-wrap: nowrap; }

  .main-nav { flex-wrap: nowrap; }

  .main-nav a { font-size: 0.9rem; }

  .banner-headline { font-size: 1.6rem; }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .footer-brand {
    flex: 0 0 220px;
  }

  .footer-links {
    flex: 0 0 auto;
  }

  .footer-legal {
    flex: 1;
    border-top: none;
    border-left: 1px solid var(--muted);
    padding-top: 0;
    padding-left: 2rem;
  }

  .section-block { margin-bottom: 3rem; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
}