/* ==========================================================================
   AI Literacy Worksheets — global stylesheet
   Mobile-first. Deep navy + warm orange, professional education style.
   ========================================================================== */

:root {
  --navy-950: #0b1f36;
  --navy-900: #0e2a47;
  --navy-800: #143a5e;
  --navy-700: #1d4e79;
  --navy-100: #dbe7f2;
  --navy-50:  #eef4fa;

  --orange-600: #d9701a;
  --orange-500: #f08323;
  --orange-400: #f79c48;
  --orange-100: #fdecd8;

  --paper: #fbf8f2;
  --white: #ffffff;
  --ink: #22303f;
  --muted: #5c6d7f;
  --line: #e3dccd;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 71, 0.06), 0 8px 24px rgba(14, 42, 71, 0.08);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--navy-700); }
a:hover { color: var(--orange-600); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46rem; }

/* Eyebrow section label */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--orange-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--orange-400); color: var(--navy-950); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--orange-100); color: var(--navy-900); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 3px solid var(--orange-500);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--white); text-decoration: none; margin-right: auto;
}
.brand em { font-style: normal; color: var(--orange-400); }
.brand:hover { color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,0.35); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); padding: 0.5rem 20px 1.25rem; box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-nav a, .drop-btn {
  display: block; width: 100%; padding: 0.8rem 0.25rem;
  color: var(--white); text-decoration: none; font-weight: 500; font-size: 1rem;
  background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--sans);
}
.site-nav a:hover, .drop-btn:hover { color: var(--orange-400); }
.drop-btn::after { content: "▾"; float: right; transition: transform 0.2s ease; }
.drop-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.drop { display: none; padding: 0 0 0.5rem 1rem; }
.drop.open { display: block; }
.drop a { font-size: 0.95rem; padding: 0.5rem 0.25rem; color: var(--navy-100); font-weight: 400; }

.header-cta { display: none; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
  .site-nav > ul > li { border-bottom: 0; position: relative; }
  .site-nav a, .drop-btn { padding: 0.6rem 0.8rem; width: auto; font-size: 0.95rem; }
  .drop-btn::after { float: none; margin-left: 0.25rem; }
  .drop {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--white); border-radius: 12px; padding: 0.5rem;
    box-shadow: var(--shadow); border: 1px solid var(--line);
  }
  .drop a { color: var(--ink); border-radius: 8px; padding: 0.5rem 0.75rem; }
  .drop a:hover { background: var(--orange-100); color: var(--navy-900); }
  .header-cta { display: inline-flex; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(240, 131, 35, 0.22), transparent 60%),
    var(--navy-900);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--orange-400); }
.hero .lead { color: var(--navy-100); }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.5rem; }
.hero-points li { padding-left: 1.6rem; position: relative; color: var(--navy-100); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-400); font-weight: 700; }

@media (min-width: 720px) {
  .hero { padding: 5rem 0 4.5rem; }
  .hero-actions { flex-direction: row; }
}

/* --------------------------------------------------------------------------
   Sections & grids
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section + .section { padding-top: 0; }
.section-tint { background: var(--navy-50); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Resource card */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card h3 { margin-bottom: 0.15rem; }
.card h3 a { color: var(--navy-900); text-decoration: none; }
.card h3 a:hover { color: var(--orange-600); }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--orange-600); }
.card .card-link:hover { text-decoration: underline; }
.card-topline { height: 4px; border-radius: 4px; background: var(--orange-500); width: 44px; margin-bottom: 0.75rem; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-800); background: var(--orange-100); border-radius: 999px; padding: 0.2rem 0.7rem;
}

/* Grade chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  flex: 1 1 130px; text-align: center; text-decoration: none;
  background: var(--white); border: 2px solid var(--navy-900); border-radius: 12px;
  padding: 1rem 0.75rem; color: var(--navy-900); font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.chip:hover { background: var(--navy-900); color: var(--white); }
.chip:hover small { color: var(--navy-100); }

/* --------------------------------------------------------------------------
   Free sample preview (worksheet thumbnails, code-drawn)
   -------------------------------------------------------------------------- */
.sample-strip { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .sample-strip { grid-template-columns: repeat(3, 1fr); } }
.sample-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sample-item .thumb { display: block; width: 100%; height: auto; background: var(--navy-50); }
.sample-item figcaption { padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--muted); }
.sample-item figcaption strong { display: block; color: var(--navy-900); font-family: var(--serif); font-size: 1rem; }

.sample-cta {
  margin-top: 1.75rem; padding: 1.5rem; border-radius: var(--radius);
  background: var(--orange-100); border: 1px dashed var(--orange-500);
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.sample-cta p { margin: 0; color: var(--navy-900); font-weight: 500; }
@media (min-width: 720px) {
  .sample-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Lists: what's included / how to use
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.check-list li { padding-left: 1.9rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; padding-left: 3.2rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy-900); color: var(--orange-400);
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy-900); font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 1.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.35rem; color: var(--orange-600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA band (TPT)
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(240, 131, 35, 0.25), transparent 60%),
    var(--navy-900);
  color: var(--white); border-radius: var(--radius);
  padding: 2.5rem 1.5rem; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--navy-100); max-width: 40rem; margin-inline: auto; }
.cta-band .btn { margin-top: 0.75rem; }
@media (min-width: 720px) { .cta-band { padding: 3.5rem 3rem; } }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem;
}
.quote p { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--navy-800); }
.quote p::before { content: "“"; color: var(--orange-500); font-size: 1.6rem; line-height: 0; margin-right: 0.15rem; }
.quote footer { font-size: 0.88rem; color: var(--muted); }
.quote footer strong { color: var(--navy-900); display: block; }
.stars { color: var(--orange-500); letter-spacing: 0.15em; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { padding: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb [aria-current] { color: var(--navy-900); font-weight: 600; }

.page-head { padding: 1.25rem 0 0; }

/* --------------------------------------------------------------------------
   Related resources
   -------------------------------------------------------------------------- */
.related-list { display: grid; gap: 0.75rem; }
.related-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--navy-900); font-weight: 600;
}
.related-list a small { display: block; font-weight: 400; color: var(--muted); }
.related-list a::after { content: "→"; color: var(--orange-600); font-size: 1.2rem; flex: none; }
.related-list a:hover { border-color: var(--orange-500); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--navy-100); margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--navy-100); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange-400); }
.footer-brand { max-width: 22rem; font-size: 0.92rem; }
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0; font-size: 0.82rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* --------------------------------------------------------------------------
   Email capture
   -------------------------------------------------------------------------- */
.signup {
  display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; max-width: 30rem;
}
.signup input[type="email"] {
  font: inherit; padding: 0.8rem 1.1rem; border-radius: 999px; border: 2px solid var(--line);
  background: var(--white); color: var(--ink); width: 100%;
}
.signup input[type="email"]:focus { outline: none; border-color: var(--orange-500); }
.signup .fine { font-size: 0.78rem; color: var(--navy-100); opacity: 0.8; margin: 0; }
@media (min-width: 560px) { .signup { flex-direction: row; flex-wrap: wrap; } .signup input { flex: 1; } .signup .fine { flex-basis: 100%; } }

/* Coming-soon stub pages */
.stub-note {
  background: var(--orange-100); border: 1px dashed var(--orange-500); border-radius: var(--radius);
  padding: 1.5rem; margin-top: 2rem;
}
.stub-note h2 { font-size: 1.3rem; }

/* Prose utility */
.prose { max-width: 46rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* Print-friendly note */
.noscript-note { padding: 0.5rem 1rem; background: var(--orange-100); text-align: center; font-size: 0.85rem; }
