/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ───────────────────────────────────────────── */
:root {
  --navy:    #1B3A5C;
  --navy-dk: #14304e;
  --blue-lt: #EEF4FB;
  --accent:  #2563EB;
  --gray-50: #F8FAFC;
  --gray-100:#F0F4F8;
  --gray-200:#D1D9E0;
  --gray-400:#8896A7;
  --gray-600:#4A5568;
  --gray-800:#1a1a2e;
  --radius:  10px;
  --shadow:  0 2px 16px rgba(27,58,92,.09);
  --shadow-lg:0 8px 40px rgba(27,58,92,.13);
}

/* ─── Layout ───────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── Nav ──────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -.3px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: color .15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 7px;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--navy-dk) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #F0F6FF 0%, #fff 60%);
  padding: 100px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 auto 24px;
}
.hero-sub {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,58,92,.25); }
.btn-secondary { background: var(--gray-100); color: var(--navy); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ─── Features ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-lt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ─── Section headers ──────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.section-header p { font-size: 17px; color: var(--gray-600); max-width: 520px; margin: 0 auto; }

/* ─── How it works ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 32px; position: relative; }
.step + .step::before {
  content: '';
  position: absolute; left: 0; top: 32px;
  width: 1px; height: 40px;
  background: var(--gray-200);
}
.step-num {
  width: 64px; height: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-600); }

/* ─── CTA band ─────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.4px;
}
.cta-band p { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 36px; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* ─── Pricing ──────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pricing-card {
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(27,58,92,.07);
}
.pricing-tag {
  position: absolute; top: -14px; left: 32px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 100px;
}
.pricing-type { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px; }
.pricing-fee { font-size: 48px; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1; }
.pricing-fee span { font-size: 18px; font-weight: 500; color: var(--gray-600); }
.pricing-desc { font-size: 14px; color: var(--gray-600); margin: 12px 0 24px; }
.pricing-features { list-style: none; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray-600);
  padding: 7px 0; border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--navy); font-size: 16px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.pricing-note strong { color: var(--navy); }
.pricing-example {
  background: var(--blue-lt);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 28px;
}
.pricing-example h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.example-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px solid rgba(27,58,92,.1); color: var(--gray-600); }
.example-row:last-child { border-bottom: none; font-weight: 700; color: var(--navy); font-size: 15px; }
.example-row span:last-child { font-weight: 600; }

/* ─── Schools ──────────────────────────────────────────── */
.schools-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--gray-50);
  border-radius: 16px;
  border: 2px dashed var(--gray-200);
}
.schools-empty h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.schools-empty p { color: var(--gray-600); font-size: 15px; }

/* ─── Policies ─────────────────────────────────────────── */
.policy-list { list-style: none; }
.policy-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.policy-item:first-child { border-top: 1px solid var(--gray-200); }
.policy-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.policy-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.policy-item p { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.third-party-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 32px; }
.tp-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  color: var(--gray-600);
}
.tp-card strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.tp-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #F0F6FF 0%, #fff 70%);
  padding: 72px 0 56px;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.page-hero p { font-size: 17px; color: var(--gray-600); max-width: 560px; }

/* ─── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.footer-brand h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: 13px; max-width: 260px; line-height: 1.5; }
.footer-links h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; }

/* ─── Badge ─────────────────────────────────────────────── */
.badge { display: inline-block; background: var(--blue-lt); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }

/* ─── Utility ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step + .step::before { display: none; }
  .third-party-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid var(--gray-200); gap: 16px; z-index: 100; }
  .nav-mobile-toggle { display: flex; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
