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

html, body { min-height: 100vh; }

body {
  margin: 0;
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
}

a { text-decoration: none; }
ul { margin: 0; }

/* ── Wordmark ─────────────────────────────────────────────────────────── */
.wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-block;
}
.wordmark-classroom { color: var(--color-primary); }
.wordmark-bingo     { color: var(--color-accent); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--color-background);
  border-bottom: 1px solid #e5e0d5;
  backdrop-filter: blur(8px);
}
.nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav__links--desktop { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 7px 14px; font-size: 14px; font-weight: 500;
  color: #374151; text-decoration: none; border-radius: 6px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
  align-items: center; justify-content: center;
}
.ham-bar {
  display: block; width: 22px; height: 2px;
  background: #1B1B2F; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.ham-top.open { transform: translateY(7px) rotate(45deg); }
.ham-mid.open { opacity: 0; transform: scaleX(0); }
.ham-bot.open { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 60px; right: 0;
  height: calc(100vh - 60px); width: 280px; max-width: 85vw;
  background: #fff; z-index: 201;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.drawer-content { padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
  display: block; padding: 14px 0; font-size: 17px; font-weight: 600;
  color: #374151; text-decoration: none; border-bottom: 1px solid #f0ede8;
}
.drawer-link:hover { color: #006D77; }

@media (min-width: 641px) {
  .nav__links--desktop { display: flex !important; }
  .hamburger            { display: none !important; }
}
@media (max-width: 640px) {
  .nav__links--desktop { display: none !important; }
  .hamburger            { display: flex !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background-color: #006D77;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px);
  padding: 80px 5%; min-height: 92vh; box-sizing: border-box;
  display: flex; align-items: center;
}
.hero__grid {
  max-width: 1080px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__badge {
  display: inline-block; background-color: #83C5BE; color: #004f58;
  font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  border-radius: 20px; padding: 5px 14px; margin-bottom: 24px;
}
.hero__title {
  font-weight: 900; font-size: 54px; color: #fff;
  line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.5px;
}
.hero__title-accent { color: #83C5BE; }
.hero__sub {
  font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.7;
  margin: 0 0 32px; max-width: 440px;
  font-family: 'Nunito Sans', 'Nunito', sans-serif;
}
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  padding: 14px 28px; background-color: #FF6B6B; color: #fff;
  font-weight: 800; font-size: 15px; border-radius: 10px;
  text-decoration: none; display: inline-block;
}
.btn-secondary {
  padding: 14px 28px; background-color: transparent; color: #fff;
  font-weight: 600; font-size: 15px; border-radius: 10px;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.6);
  display: inline-block;
}

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr !important; }
  .hero__title { font-size: 38px !important; }
}

/* ── Hero board preview ──────────────────────────────────────────────── */
.hero__board-wrap { display: flex; justify-content: center; align-items: center; }
.board-frame {
  background-color: #004f58; border-radius: 16px; padding: 20px;
  border: 2px solid rgba(255,255,255,0.1); max-width: 400px; width: 100%;
}
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.board-class { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.board-novel { font-size: 11px; color: rgba(255,255,255,0.35); }
.clue-box {
  background-color: #83C5BE; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.clue-label { font-size: 10px; text-transform: uppercase; color: rgba(0,79,88,0.65); letter-spacing: 1.5px; margin-bottom: 4px; font-weight: 600; }
.clue-word { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 22px; color: #004f58; }

.win-pattern { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.win-pattern-label { font-size: 8px; text-transform: uppercase; color: rgba(0,79,88,0.65); letter-spacing: 1px; font-weight: 600; }
.win-pattern-grid { display: grid; grid-template-columns: repeat(5, 6px); gap: 2px; }
.win-cell { width: 6px; height: 6px; border-radius: 1px; }
.win-cell--on   { background-color: #004f58; }
.win-cell--off  { background-color: color-mix(in srgb, #83C5BE 30%, #EDF6F9); }
.win-cell--free { background-color: #FF6B6B; }
.win-pattern-name { font-size: 8px; font-weight: 800; color: #004f58; letter-spacing: 1px; text-transform: uppercase; }

.board-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.board-cell {
  border-radius: 6px; min-height: 46px; display: flex;
  align-items: center; justify-content: center;
  font-size: 9px; text-align: center; padding: 4px;
}
.board-cell--default { background-color: #EDF6F9; color: #4a5568; }
.board-cell--marked  { background-color: rgba(131,197,190,0.25); border: 1.5px solid rgba(131,197,190,0.5); color: #fff; }
.board-cell--free    { background-color: #FF6B6B; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.board-bingo-btn {
  width: 100%; background-color: #FF6B6B; color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: 1px;
  border: none; border-radius: 8px; padding: 12px;
  opacity: 0.5; cursor: default;
}

/* ── Shared section styles ───────────────────────────────────────────── */
.section-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.section-h2 { font-weight: 900; font-size: 38px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.3px; }
.section-h2--dark  { color: #1B1B2F; }
.section-h2--light { color: #fff; }
.section-sub { font-size: 17px; max-width: 520px; margin: 0 auto 52px; line-height: 1.6; font-family: 'Nunito Sans', 'Nunito', sans-serif; }
.section-sub--dark  { color: #4a5568; }
.section-sub--light { color: rgba(255,255,255,0.6); }
.label { font-weight: 800; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px; }
.label--red  { color: #FF6B6B; }
.label--teal { color: #83C5BE; }

/* ── Features ─────────────────────────────────────────────────────────── */
.section-features { background-color: #EDF6F9; padding: 100px 5%; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.feature-card {
  background-color: #fff; border-radius: 16px; padding: 28px 24px;
  border: 1.5px solid #c2dfe6;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; font-size: 24px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-h3 { font-size: 17px; font-weight: 800; color: #1B1B2F; margin: 0 0 10px; }
.feature-body { font-size: 14px; color: #4a5568; line-height: 1.65; margin: 0; font-family: 'Nunito Sans', 'Nunito', sans-serif; }

@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr !important; } }

/* ── How it works ─────────────────────────────────────────────────────── */
.section-how { background-color: #006D77; padding: 100px 5%; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.how-card {
  background-color: rgba(255,255,255,0.07); border-radius: 16px; padding: 28px 24px;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.how-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.how-step-num { font-weight: 900; font-size: 40px; color: #83C5BE; opacity: 0.6; line-height: 1; margin-bottom: 12px; }
.how-card-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.how-card-body { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.65; margin: 0; font-family: 'Nunito Sans', 'Nunito', sans-serif; }

@media (max-width: 640px) { .how-grid { grid-template-columns: 1fr !important; } }

/* ── Library ──────────────────────────────────────────────────────────── */
.section-lib { background-color: #EDF6F9; padding: 100px 5%; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; margin-bottom: 16px; }
.lib-card {
  background-color: #fff; border-radius: 16px; padding: 20px 18px 20px 22px;
  border: 1.5px solid #c2dfe6; position: relative; overflow: hidden;
}
.lib-accent-bar { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: #006D77; }
.lib-grade { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #006D77; margin-bottom: 6px; }
.lib-title { font-weight: 800; font-size: 15px; color: #1B1B2F; line-height: 1.3; margin-bottom: 4px; }
.lib-author { font-size: 12px; color: #718096; }
.lib-words { font-size: 12px; color: #718096; margin-top: 10px; padding-top: 10px; border-top: 1px solid #d8edf2; }
.lib-note {
  background-color: #daeef4; border-radius: 10px; padding: 14px 20px;
  border: 1.5px solid #c2dfe6; text-align: center;
  font-size: 14px; color: #4a5568; font-family: 'Nunito Sans', 'Nunito', sans-serif;
}

@media (max-width: 768px) { .lib-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .lib-grid { grid-template-columns: 1fr !important; } }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.section-pricing { background-color: #fff; padding: 100px 5%; border-top: 1.5px solid #c2dfe6; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; gap: 24px; text-align: left; }
.pricing-card-tpt {
  background-color: #EDF6F9; border-radius: 16px; padding: 32px;
  border: 1.5px solid #c2dfe6; display: flex; flex-direction: column;
}
.pricing-card-sub {
  background-color: #fff; border-radius: 16px; padding: 32px;
  border: 2px solid #006D77; position: relative;
  display: flex; flex-direction: column;
}
.pricing-best-value {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background-color: #006D77; color: #fff; font-weight: 800;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; white-space: nowrap;
}
.pricing-tier { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #718096; margin-bottom: 12px; }
.pricing-price { font-weight: 900; font-size: 40px; color: #1B1B2F; line-height: 1; margin-bottom: 10px; }
.pricing-price-sub { font-size: 16px; font-weight: 600; color: #718096; }
.pricing-desc { font-size: 13px; color: #4a5568; line-height: 1.6; margin: 10px 0 24px; flex: 1; font-family: 'Nunito Sans', 'Nunito', sans-serif; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-item {
  display: flex; gap: 8px; font-size: 14px; color: #1B1B2F;
  align-items: flex-start; line-height: 1.5; font-family: 'Nunito Sans', 'Nunito', sans-serif;
}
.pricing-item--dim { color: #718096; }
.check-teal { color: #006D77; font-weight: 800; flex-shrink: 0; }
.check-dim  { color: #c0ccd4; font-weight: 800; flex-shrink: 0; }
.pricing-btn-tpt {
  display: block; text-align: center; padding: 13px;
  border: 2px solid #006D77; border-radius: 10px;
  color: #006D77; font-weight: 800; font-size: 15px; text-decoration: none;
  background-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.pricing-btn-tpt:hover { background-color: #006D77; color: #fff; }
.pricing-btn-sub {
  display: block; text-align: center; padding: 13px;
  background-color: #FF6B6B; border-radius: 10px;
  color: #fff; font-weight: 800; font-size: 15px; text-decoration: none;
  transition: background 0.15s;
}
.pricing-btn-sub:hover { background-color: #e04f4f; }
.pricing-closing {
  margin-top: 56px; max-width: 640px; margin-left: auto; margin-right: auto;
  font-weight: 900; font-size: 26px; color: #1B1B2F;
  letter-spacing: -0.3px; line-height: 1.3;
}

@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr !important; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background-color: #EDF6F9; border-top: 1.5px solid #c2dfe6; padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: #718096; text-decoration: none; font-family: 'Nunito Sans', 'Nunito', sans-serif; }
.footer-link:hover { color: #1B1B2F; }
.footer-copy { font-size: 12px; color: #a0aec0; font-family: 'Nunito Sans', 'Nunito', sans-serif; }
