/* ═══════════════════════════════════════════════════════
   MATHEMAGICIANS — Shared Stylesheet
   Colors: Indigo #0E1B4A · Teal #00B8A9 · Cream #F5F0E8
           Charcoal #2A2A2A · Amber #F5A623 · Mist #8A8F99
   Fonts: Libre Baskerville (display) · Inter (body) · JetBrains Mono (math)
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --indigo:      #0E1B4A;
  --teal:        #00B8A9;
  --cream:       #F5F0E8;
  --charcoal:    #2A2A2A;
  --amber:       #F5A623;
  --mist:        #8A8F99;
  --baskerville: 'Libre Baskerville', Georgia, serif;
  --inter:       'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Courier New', monospace;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--inter);
  font-size: 17px;
  line-height: 1.78;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container       { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
.container--wide { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* ─── NAVIGATION ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14,27,74,0.08);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--baskerville); font-weight: 400;
  font-size: 17px; color: var(--indigo); letter-spacing: 0.01em; line-height: 1.2;
}
.nav-logo span {
  display: block; color: var(--teal);
  font-size: 11px; font-style: italic; font-weight: 400;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--inter); font-size: 13px; font-weight: 500;
  color: rgba(14,27,74,0.45); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--indigo); text-decoration: none; }

/* ─── HOME HERO (full-viewport) ──────────────────────── */
.hero {
  background: var(--cream); min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,184,169,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--baskerville); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 5vw, 56px); line-height: 1.25;
  color: var(--indigo); letter-spacing: -0.01em;
  max-width: 760px; margin: 0 auto 32px;
}
.hero-sub {
  font-family: var(--inter); font-size: 14px; font-weight: 500;
  color: rgba(14,27,74,0.4); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0;
}

/* ─── PAGE HERO (inner pages — light) ────────────────── */
.page-hero {
  background: var(--cream); padding: 140px 32px 80px;
  border-bottom: 1px solid rgba(14,27,74,0.08);
}
.page-label {
  display: block; font-family: var(--inter); font-size: 11px;
  font-weight: 500; color: var(--teal); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--baskerville); font-weight: 400;
  font-size: clamp(32px, 5.5vw, 58px); line-height: 1.15;
  color: var(--indigo); letter-spacing: -0.01em; margin-bottom: 20px;
}
.page-hero h1 em {
  font-style: italic; color: var(--indigo);
}
.page-hero .hero-sub {
  font-family: var(--baskerville); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 2.5vw, 22px);
  color: rgba(14,27,74,0.55); line-height: 1.55;
}

/* ─── SECTION UTILITIES ──────────────────────────────── */
.section       { background: var(--cream); padding: 80px 32px; }
.section--dark { background: #FFFFFF; padding: 100px 32px; }
.section--tight { padding: 48px 32px; }
.section--border-top { border-top: 1px solid rgba(14,27,74,0.1); }

.section-label {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--mist); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 28px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.body-copy p {
  font-size: 17px; line-height: 1.85;
  color: var(--charcoal); margin-bottom: 22px;
}
.body-copy p:last-child { margin-bottom: 0; }

.body-copy--light p { color: var(--charcoal); }
.body-copy--light p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: var(--baskerville); font-weight: 400; font-style: italic;
  font-size: clamp(20px, 3vw, 30px); line-height: 1.5;
  color: var(--indigo); text-align: center;
  padding: 60px 0; margin: 60px 0;
  border-top: 1px solid rgba(14,27,74,0.12);
  border-bottom: 1px solid rgba(14,27,74,0.12);
}
.pull-quote--light {
  color: var(--indigo);
  border-color: rgba(14,27,74,0.12);
}
.pull-quote--teal  { color: var(--teal);  border-color: rgba(0,184,169,0.22); }
.pull-quote--amber { color: var(--amber); border-color: rgba(245,166,35,0.22); }

.section-headline {
  font-family: var(--baskerville); font-weight: 400;
  font-size: clamp(26px, 3.5vw, 38px); line-height: 1.25;
  color: var(--indigo); margin-bottom: 32px;
}
.section-headline--light  { color: var(--indigo); }
.section-headline--italic { font-style: italic; }

.amber-statement {
  font-family: var(--baskerville); font-style: italic;
  font-size: clamp(20px, 2.8vw, 28px); line-height: 1.4;
  color: var(--amber); display: block; margin: 32px 0;
}

/* ─── PILLAR ─────────────────────────────────────────── */
.pillar { padding: 40px 0; border-top: 1px solid rgba(14,27,74,0.1); }
.pillar:last-child { border-bottom: 1px solid rgba(14,27,74,0.1); }
.pillar h3 {
  font-family: var(--baskerville); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px); line-height: 1.3;
  color: var(--indigo); margin-bottom: 20px;
}
.pillar--light { border-color: rgba(14,27,74,0.1); }
.pillar--light h3 { color: var(--indigo); }
.pillar--light p  { color: rgba(14,27,74,0.7); font-size: 17px; line-height: 1.85; }

/* ─── SUBJECT SECTION ─────────────────────────────────── */
.subject-section { padding: 60px 0; border-top: 1px solid rgba(14,27,74,0.1); }
.subject-section:last-of-type { border-bottom: 1px solid rgba(14,27,74,0.1); }
.subject-name {
  font-family: var(--baskerville); font-weight: 400;
  font-size: clamp(24px, 3.5vw, 36px); line-height: 1.2;
  color: var(--indigo); margin-bottom: 4px;
}
.subject-tagline {
  font-family: var(--baskerville); font-style: italic; font-weight: 400;
  font-size: clamp(15px, 2vw, 19px); color: var(--teal);
  display: block; margin-bottom: 24px;
}
.subject-covered {
  margin-top: 24px;
  border-top: 1px solid rgba(14,27,74,0.08);
  padding-top: 20px;
}
.subject-covered-label {
  font-size: 11px; font-weight: 500; color: var(--mist);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.subject-covered p {
  font-size: 15px; line-height: 1.8; color: var(--charcoal);
  margin-bottom: 0;
}

/* ─── BOARD TABLE ─────────────────────────────────────── */
.board-table {
  width: 100%; border-collapse: collapse; margin-top: 8px;
  font-family: var(--inter); font-size: 14px;
}
.board-table th {
  font-size: 11px; font-weight: 500; color: var(--mist);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 16px; text-align: center;
  border-bottom: 1px solid rgba(14,27,74,0.15);
}
.board-table th:first-child { text-align: left; }
.board-table td {
  padding: 13px 16px; text-align: center;
  border-bottom: 1px solid rgba(14,27,74,0.07);
  color: var(--charcoal);
}
.board-table td:first-child { text-align: left; font-weight: 500; }
.board-table tr:last-child td { border-bottom: none; }
.board-table .check { color: var(--teal); font-size: 16px; }
.board-table tbody tr:hover { background: rgba(0,184,169,0.03); }

/* ─── HOW WE TEACH FEATURES ──────────────────────────── */
.feature-section { padding: 60px 0; border-top: 1px solid rgba(14,27,74,0.1); }
.feature-section:last-of-type { border-bottom: 1px solid rgba(14,27,74,0.1); }
.feature-label {
  font-size: 11px; font-weight: 500; color: var(--teal);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.feature-headline {
  font-family: var(--baskerville); font-weight: 400; font-style: italic;
  font-size: clamp(20px, 2.8vw, 28px); line-height: 1.3;
  color: var(--indigo); margin-bottom: 24px;
}

.struggle-panel {
  border: 1px solid rgba(14,27,74,0.18);
  padding: 44px 48px; margin: 0;
  background: rgba(14,27,74,0.025);
}
.struggle-panel p {
  font-size: 17px; line-height: 1.85;
  color: var(--charcoal); margin-bottom: 20px;
}
.struggle-panel p:last-child { margin-bottom: 0; }

/* ─── TUTORING ─────────────────────────────────────────── */
.student-type { padding: 36px 0; border-top: 1px solid rgba(14,27,74,0.1); }
.student-type:last-child { border-bottom: 1px solid rgba(14,27,74,0.1); }
.student-type h3 {
  font-family: var(--baskerville); font-weight: 400;
  font-size: 19px; color: var(--indigo); margin-bottom: 12px; line-height: 1.3;
}

/* ─── DIVIDER ─────────────────────────────────────────── */
.divider {
  width: 40px; height: 1px;
  background: var(--teal); opacity: 0.35;
  margin: 0 auto;
}
.divider--left { margin: 0; }

/* ─── CTA STYLES ─────────────────────────────────────── */
.cta-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--inter); font-size: 13px; font-weight: 500; color: var(--teal);
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: gap 0.2s;
}
.cta-text::after { content: '→'; font-size: 15px; transition: transform 0.2s; }
.cta-text:hover { text-decoration: none; gap: 12px; }
.cta-text:hover::after { transform: translateX(4px); }
.cta-text--light { color: rgba(14,27,74,0.55); }
.cta-text--light:hover { color: var(--indigo); }

.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--inter); font-size: 12px; font-weight: 500; color: var(--cream);
  background: var(--teal); padding: 14px 28px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s;
}
.cta-button::after { content: '→'; }
.cta-button:hover { background: #009e91; text-decoration: none; }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--inter); font-size: 12px; font-weight: 500; color: var(--teal);
  border: 1px solid var(--teal); padding: 13px 28px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s;
}
.cta-ghost::after { content: '→'; }
.cta-ghost:hover { background: var(--teal); color: var(--cream); text-decoration: none; }

.cta-group { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-secondary {
  font-family: var(--inter); font-size: 13px; font-weight: 400;
  color: var(--mist); font-style: italic;
}

/* ─── CARDS ──────────────────────────────────────────── */
.card {
  border: 1px solid rgba(14,27,74,0.14);
  padding: 44px 48px; background: rgba(0,184,169,0.03);
}
.card--dark { background: #FFFFFF; border-color: rgba(14,27,74,0.14); }
.card h2 {
  font-family: var(--baskerville); font-weight: 400;
  font-size: 28px; color: var(--indigo); line-height: 1.2; margin-bottom: 6px;
}
.card h2.light { color: var(--cream); }
.card p { font-size: 16px; line-height: 1.8; color: var(--charcoal); margin-bottom: 20px; }
.card p.light { color: rgba(245,240,232,0.7); }

/* ─── FORM ───────────────────────────────────────────── */
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--mist); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 10px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--inter); font-size: 16px; color: var(--charcoal);
  background: rgba(255,255,255,0.7); border: 1px solid rgba(14,27,74,0.18);
  border-radius: 0; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

.form-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.form-check {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--inter); font-size: 15px; color: var(--charcoal);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px; height: 16px;
  border: 1px solid rgba(14,27,74,0.3);
  accent-color: var(--teal); cursor: pointer;
  flex-shrink: 0;
}
.form-check-label { font-size: 15px; }

.form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--inter); font-size: 13px; font-weight: 500;
  color: var(--cream); background: var(--indigo);
  padding: 14px 32px; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: #1a2e68; }
.response-promise {
  font-size: 13px; color: var(--mist); margin-top: 16px;
  font-style: italic;
}

/* ─── CLOSING NAV ─────────────────────────────────────── */
.closing-nav {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 8px 24px; list-style: none;
}
.closing-nav a {
  font-size: 12px; font-weight: 500;
  color: rgba(14,27,74,0.35); letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
.closing-nav a:hover { color: var(--indigo); text-decoration: none; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { background: var(--indigo); padding: 36px 32px; text-align: center; }
footer p { font-size: 12px; color: rgba(245,240,232,0.35); letter-spacing: 0.04em; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .card { padding: 32px 24px; }
  .page-hero { padding: 120px 24px 60px; }
  .hero { padding: 100px 24px 60px; }
  .section, .section--dark { padding: 60px 24px; }
  .container, .container--wide { padding: 0 24px; }
  .struggle-panel { padding: 32px 24px; }
  .cta-group { gap: 16px; }
  .board-table { font-size: 12px; }
  .board-table th, .board-table td { padding: 10px 10px; }
}
