/* Time for Spelling - marketing pages
   Bright curriculum-site system (v2): white and sky-blue surfaces, vivid blue
   primary with orange/green/purple/pink accent pops, rounded cards, soft
   shadows, pill buttons, friendly rounded display type.
   Game pages (play.html) use their own style.css; this file is marketing only. */

:root {
  --blue: #0F7BD9;
  --blue-dark: #0B5FA5;
  --sky: #29ABE2;
  --sky-light: #EAF6FE;
  --sky-mid: #D8EEFC;
  --sky-pale: #CDEBFF;
  --orange: #F7941E;
  --orange-dark: #C96E04;
  --green: #58B947;
  --green-dark: #3E8F31;
  --purple: #7B61C9;
  --pink: #EF5DA8;
  --yellow: #FFC531;
  --cream: #FFF6E9;
  --bg-soft: #F2F8FD;
  --line: #E1F0FA;
  --ink: #22344E;
  --ink-soft: #54657D;
  --heading: #123C63;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(21, 94, 156, 0.10);
  --shadow-lg: 0 16px 38px rgba(21, 94, 156, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.kicker {
  display: inline-block;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.6em;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(21, 94, 156, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue-dark);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand .brand-sub {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.brand svg { flex: none; }
.brand svg path { stroke: var(--blue); }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 9px 12px;
  border-radius: 999px;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--sky-light);
  color: var(--blue-dark);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-gold {
  background: var(--orange);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(247, 148, 30, 0.38);
}

.btn-gold:hover { background: #FFA63D; transform: translateY(-1px); }

.btn-outline {
  border-color: var(--blue);
  color: var(--blue-dark) !important;
  background: #fff;
}

.btn-outline:hover { background: var(--sky-light); }

.btn-parchment {
  border-color: #fff;
  color: #fff !important;
  background: transparent;
}

.btn-parchment:hover { background: rgba(255, 255, 255, 0.14); }

.main-nav .btn { padding: 10px 20px; margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 2px solid var(--sky-mid);
  border-radius: 10px;
  color: var(--blue-dark);
  padding: 7px 12px;
  font-size: 1.15rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 18px 30px rgba(21, 94, 156, 0.16);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--sky-light) 58%, #fff 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 340px; height: 340px;
  top: -150px; right: -90px;
  background: rgba(41, 171, 226, 0.16);
}

.hero::after {
  width: 240px; height: 240px;
  bottom: -120px; left: -70px;
  background: rgba(88, 185, 71, 0.14);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--heading); }
.hero h1 .gold-word { color: var(--orange); }

.hero .lede { color: #3D5875; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: #3D5875; font-weight: 700; }

.hero-art {
  position: relative;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(21, 94, 156, 0.18));
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--sky-light);
  border-bottom: 1px solid var(--sky-mid);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--heading);
}

.trust-item svg {
  flex: none;
  margin-top: 0;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
  padding: 7px;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 10px rgba(21, 94, 156, 0.12);
}
.trust-item span { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Sections & cards ---------- */

.section { padding: 64px 0; }
.section-parchment { background: #F7FBFE; }
.section-light { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: #E3F2FD; }
.section-dark .kicker { color: #FFD9A0; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) { .cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cols-5 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--sky);
}

.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }

.card .card-icon { color: var(--blue); margin-bottom: 12px; }

a.card { text-decoration: none; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.card .card-link {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  margin-top: 12px;
  box-shadow: 0 5px 14px rgba(247, 148, 30, 0.35);
}

/* Grade-band cards: uniform shop-card chrome with a flat illustration
   thumbnail strip on top (like a curriculum product card). Only the
   thumbnail tint varies from card to card. */
.cols-5 a.card { overflow: hidden; }
.cols-5 a.card::before {
  content: "";
  display: block;
  height: 104px;
  margin: -26px -24px 18px;
  background-color: var(--sky-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 104'%3E%3Cg font-family='Verdana,sans-serif' font-weight='bold' font-size='26' text-anchor='middle'%3E%3Crect x='52' y='28' width='42' height='48' rx='9' fill='%2329ABE2'/%3E%3Ctext x='73' y='62' fill='%23FFFFFF'%3EA%3C/text%3E%3Crect x='106' y='28' width='42' height='48' rx='9' fill='%23F7941E'/%3E%3Ctext x='127' y='62' fill='%23FFFFFF'%3EB%3C/text%3E%3Crect x='160' y='28' width='42' height='48' rx='9' fill='%2358B947'/%3E%3Ctext x='181' y='62' fill='%23FFFFFF'%3EC%3C/text%3E%3C/g%3E%3Cpath d='M232 22l3 9 9 3-9 3-3 9-3-9-9-3 9-3z' fill='%23FFC531'/%3E%3Cpath d='M256 58l2.2 6.6 6.6 2.2-6.6 2.2-2.2 6.6-2.2-6.6-6.6-2.2 6.6-2.2z' fill='%23EF5DA8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.cols-5 a.card:nth-child(1)::before { background-color: #EAF6FE; }
.cols-5 a.card:nth-child(2)::before { background-color: #FFF1DE; }
.cols-5 a.card:nth-child(3)::before { background-color: #EAF7E6; }
.cols-5 a.card:nth-child(4)::before { background-color: #F0EBFB; }
.cols-5 a.card:nth-child(5)::before { background-color: #FDEAF3; }

.band-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Steps */

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(21, 94, 156, 0.22);
}



/* The Path (bright blue band, white cards) */

.path-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
@media (max-width: 860px) { .path-list { grid-template-columns: 1fr; } }

.path-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 26px rgba(11, 95, 165, 0.22);
}

.path-step .rank {
  font-family: "Fredoka", "Nunito", sans-serif;
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.path-step .grades { color: var(--ink-soft); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }
.path-step p { color: var(--ink-soft); font-size: 0.97rem; margin: 8px 0 0; }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--sky) 100%);
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.94); font-weight: 600; max-width: 40em; margin: 0 auto 22px; }
.cta-band .btn { background: var(--orange); color: #fff !important; box-shadow: 0 8px 22px rgba(11, 60, 110, 0.35); }
.cta-band .btn:hover { background: #FFA63D; }

/* Page hero (inner pages) */

.page-hero {
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--sky-light) 70%, var(--bg-soft) 100%);
  padding: 46px 0 50px;
}

/* Skill lists */

.skill-list { list-style: none; padding: 0; margin: 10px 0 0; }
.skill-list li {
  padding: 7px 0 7px 30px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
  border-bottom: 1px dashed var(--sky-mid);
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: "\2726";
  position: absolute;
  left: 4px;
  color: var(--orange);
}

.rank-card .band-tag { margin-bottom: 8px; }

/* Tables (screen-time guide) */

table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
  font-size: 0.98rem;
}

table th {
  background: var(--blue);
  color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
}

table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

table td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
table tbody tr:nth-child(even) { background: var(--bg-soft); }

@media (max-width: 620px) {
  table td:first-child { white-space: normal; }
  table th, table td { padding: 10px 12px; }
}

/* FAQ */

.faq-list { max-width: 820px; margin: 30px auto 0; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-q .chev { color: var(--orange); transition: transform 0.2s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }

.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-soft); }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* Footer */

.site-footer {
  background: var(--blue-dark);
  color: #D8EEFC;
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand svg path { stroke: var(--yellow); }
.site-footer .brand .brand-sub { color: #BDE6FF; }
.site-footer a { color: #D8EEFC; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.free-note { color: #FFE1B3; font-weight: 800; }

/* Small helpers */
.mt { margin-top: 26px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
