/* Games to Literacy — AI Detective collection */
:root {
  color-scheme: light;
  --navy: #12283d;
  --navy-deep: #0b1d30;
  --ink: #183047;
  --muted: #506476;
  --paper: #fffefb;
  --cream: #f6f5ee;
  --line: #dae3e2;
  --mint: #c4f4dc;
  --mint-deep: #147d72;
  --gold: #f8ca72;
  --shadow: 0 18px 50px rgba(16, 45, 58, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #edaa38; outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 16px; background: white; border-radius: 8px; padding: 12px 20px; z-index: 100; font-weight: 800; }
.skip-link:focus { top: 12px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { letter-spacing: -.042em; line-height: 1.14; }
h1 { font-size: clamp(3.15rem, 6vw, 5.8rem); margin: 18px 0 22px; }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.55rem; }
p { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .74rem; font-weight: 850; letter-spacing: .15em; color: #bce9d4; }
.eyebrow-dark { color: #16776f; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #64d9a3; }
.eyebrow-dark .status-dot { background: #168c7d; }

/* Header */
.site-header { background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.12); color: white; }
.nav { min-height: 84px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; white-space: nowrap; font-weight: 850; letter-spacing: -.035em; font-size: 1.14rem; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #b6f1d1; color: #123b43; font-weight: 900; }
.brand-light { font-weight: 500; }
.nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 650; color: #d4e5eb; }
.nav-links a:hover { color: white; }
.nav-cta { text-decoration: none; border: 1px solid #548477; color: #dcffec; border-radius: 999px; padding: 10px 17px; font-weight: 800; font-size: .9rem; }

/* Hero */
.hero { overflow: hidden; background: radial-gradient(circle at 78% 42%, #22485a 0, var(--navy) 38%, var(--navy-deep) 100%); color: white; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; padding-block: 94px 100px; }
.hero h1 span { color: #c1f1d8; }
.hero-lede { max-width: 610px; color: #d2e0e6; font-size: clamp(1rem, 1.6vw, 1.13rem); line-height: 1.75; }
.hero-lede strong { color: white; font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 52px; padding: 13px 21px; text-decoration: none; border-radius: 999px; font-weight: 800; font-size: .94rem; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #c2f1d8; color: #123343; }
.btn-primary:hover { background: white; }
.btn-ghost { color: white; border: 1px solid #5d7b8b; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 38px; color: #b9ccd3; font-size: .86rem; }
.hero-facts strong { color: #ffdc9a; font-size: 1.1rem; margin-right: 5px; }
.hero-art { position: relative; padding: 22px; background: #eacfa0; border-radius: 18px; box-shadow: 0 28px 65px rgba(0,0,0,.22); transform: rotate(1.2deg); }
.board-top { display: flex; justify-content: space-between; gap: 12px; color: #526170; border-bottom: 1px solid #d2c6ad; padding-bottom: 13px; font-size: .67rem; font-weight: 850; letter-spacing: .13em; }
.board-open { color: #217f70; white-space: nowrap; }
.board-main { margin-top: 14px; background: #fffdf6; border: 1px solid #dfd1b7; border-radius: 12px; padding: 24px; color: var(--ink); position: relative; overflow: hidden; }
.board-glass { position: absolute; right: -4px; top: -38px; font-family: Georgia, serif; font-size: 185px; color: #e5efe9; line-height: 1; pointer-events: none; }
.board-kicker { position: relative; color: #a67839; font-size: .68rem; letter-spacing: .14em; font-weight: 900; }
.board-main h2 { position: relative; font-size: clamp(1.9rem, 3vw, 2.8rem); margin: 12px 0 25px; }
.mini-case-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-case { display: flex; align-items: center; gap: 10px; min-height: 54px; background: #f4f6f0; border: 1px solid #e4e6dc; border-radius: 10px; padding: 10px 12px; text-decoration: none; font-weight: 750; font-size: .86rem; }
.mini-case:hover { background: #e6f8ee; border-color: #99d7bd; }
.mini-case span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #ddede3; font-size: 1.2rem; flex: none; }
.mini-case:last-child { grid-column: span 2; }
.board-footer { position: relative; margin: 22px 0 0; font-weight: 700; font-size: .78rem; color: #477267; }
.corner-tape { position: absolute; width: 80px; height: 20px; background: #f8db8c; opacity: .7; transform: rotate(-30deg); }
.corner-tape-one { top: 0; left: -26px; }
.corner-tape-two { bottom: 0; right: -26px; }

/* Ticker and section headings */
.ticker { background: #dbefe7; border-bottom: 1px solid #b8dacf; }
.ticker-content { padding-block: 19px; display: flex; flex-wrap: wrap; gap: 12px 35px; justify-content: space-between; font-size: .82rem; font-weight: 850; color: #266256; }
.section { padding-block: 100px; }
.section-heading { max-width: 710px; margin-bottom: 34px; }
.section-heading h2 { margin: 14px 0 17px; }
.section-heading > p:last-child { font-size: 1.06rem; line-height: 1.75; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .eyebrow { justify-content: center; }

/* Game gallery */
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button, .surprise-button { border-radius: 999px; padding: 10px 17px; background: white; border: 1px solid #d5e2df; color: #315666; font-size: .89rem; font-weight: 750; cursor: pointer; }
.filter-button:hover, .surprise-button:hover { border-color: #398d7d; }
.filter-button.is-active { background: #143d46; color: #fff; border-color: #143d46; }
.surprise-button { color: #17766d; background: transparent; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.game-card { --accent: #e6c7ba; --tint: #f8e8e0; display: flex; flex-direction: column; background: white; border: 1px solid #e2e9e6; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); min-width: 0; transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(16,45,58,.12); }
.game-card[hidden] { display: none !important; }
.game-card.is-picked { outline: 4px solid #ecb94e; outline-offset: 4px; }
.game-card.math { --accent: #c2caef; --tint: #e9ebff; }
.game-card.science { --accent: #a6dbbc; --tint: #e3f7e8; }
.game-card.reading { --accent: #e3c6e9; --tint: #f6e9f8; }
.game-card.social { --accent: #f2d18d; --tint: #fff2ce; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.card-icon { display: grid; place-items: center; width: 76px; height: 76px; background: var(--tint); border: 1px solid var(--accent); border-radius: 20px; font: 2.7rem/1 Georgia, serif; color: #264c58; }
.card-number { font-size: .67rem; letter-spacing: .13em; font-weight: 850; color: #6e858c; white-space: nowrap; }
.card-subject { font-size: .7rem; font-weight: 850; letter-spacing: .13em; color: #188271; margin-bottom: 8px; }
.game-card h3 { margin: 0 0 13px; }
.game-card > p:not(.card-subject) { font-size: .92rem; line-height: 1.75; margin-bottom: 20px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-bottom: 22px; }
.skill-tags span { font-size: .72rem; color: #456069; font-weight: 700; background: #f1f6f3; padding: 6px 9px; border-radius: 7px; }
.play-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e1e9e5; padding-top: 17px; color: #137268; font-size: .92rem; text-decoration: none; font-weight: 850; }
.play-link:hover { color: #0b413f; text-decoration: underline; text-underline-offset: 4px; }
.play-link span { font-size: 1.3rem; }
.game-note { margin: 26px 0 0; color: #66777c; font-size: .88rem; }

/* Process */
.process-section { background: #e8f0e9; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.step { position: relative; background: #fffefc; border: 1px solid #dce8df; border-radius: 20px; padding: 29px; }
.step-no { position: absolute; right: 24px; top: 24px; font-weight: 900; letter-spacing: .1em; color: #98b5ac; }
.step-emoji { display: grid; place-items: center; border-radius: 15px; background: #edf5e9; width: 64px; height: 64px; font-size: 2rem; margin-bottom: 24px; }
.step h3 { margin: 0 0 12px; }
.step p { margin: 0; font-size: .94rem; }

/* Educators */
.educator-section { padding-block: 92px; }
.educator-panel { display: grid; grid-template-columns: 1.25fr .85fr; gap: 50px; align-items: center; padding: clamp(30px,5vw,60px); border-radius: 24px; color: white; background: linear-gradient(120deg,#10394b,#12323c); }
.educator-panel h2 { margin: 15px 0 20px; }
.educator-panel p:not(.eyebrow) { color: #cfe0e3; margin-bottom: 0; font-size: 1.02rem; }
.educator-points { display: grid; gap: 13px; }
.educator-points span { display: block; padding: 13px 16px; border-radius: 12px; border: 1px solid #496d73; background: rgba(255,255,255,.04); font-size: .93rem; font-weight: 700; }
.ai-disclaimer { margin: 19px 7px 0; font-size: .83rem; color: #627478; }

/* FAQs */
.faq-section { background: #fffefa; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; }
.faq-intro h2 { margin: 17px 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 21px 0; }
.faq-list summary { cursor: pointer; font-weight: 800; padding-right: 28px; }
.faq-list details p { margin: 13px 0 0; font-size: .94rem; }

/* CTA + Footer */
.final-cta { background: #172f40; padding: 86px 0; text-align: center; }
.final-cta-inner { max-width: 760px; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { color: white; margin: 15px 0 20px; }
.final-cta p:not(.eyebrow) { color: #cddce1; margin-bottom: 29px; }
.site-footer { background: #0b1d30; color: #dce7e9; padding: 32px 0; }
.footer-inner { display: flex; gap: 18px 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; font-size: .82rem; color: #bbccd0; }

@media (max-width: 980px) {
  .hero-grid { gap: 25px; padding-block: 75px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-links { gap: 15px; }
  .nav-cta { display: none; }
}
@media (max-width: 740px) {
  .nav { flex-wrap: wrap; justify-content: space-between; padding-block: 14px; gap: 15px; }
  .nav-links { width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
  .hero-art { max-width: 520px; margin-inline: auto; transform: rotate(0deg); }
  .ticker-content { justify-content: center; gap: 9px 20px; text-align: center; }
  .section { padding-block: 74px; }
  .game-grid, .steps, .educator-panel, .faq-layout { grid-template-columns: 1fr; }
  .educator-panel { gap: 28px; }
  .faq-layout { gap: 27px; }
}
@media (max-width: 500px) {
  .container { width: min(100% - 30px, 1160px); }
  .brand { font-size: 1.02rem; }
  .nav-links a { font-size: .8rem; }
  h1 { font-size: clamp(2.9rem, 11.5vw, 4rem); }
  .hero-facts { gap: 9px 15px; font-size: .78rem; }
  .hero-actions .btn { width: 100%; }
  .hero-art { padding: 13px; }
  .board-main { padding: 18px; }
  .mini-case { font-size: .78rem; padding: 8px; }
  .mini-case span { width: 28px; height: 28px; }
  .filter-button { font-size: .8rem; padding: 9px 12px; }
  .game-card { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card { transition: none; }
}
