/* ==========================================================================
   Teacher Growth - Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0B1F33;
  --navy-800: #12293f;
  --navy-700: #1c374f;
  --coral: #FF6B4A;
  --coral-600: #f2542f;
  --offwhite: #F7F7F4;
  --soft-blue: #DCE8F2;
  --white: #FFFFFF;

  /* Derived */
  --ink: #0B1F33;
  --muted: #556579;
  --line: #e4e7ec;
  --line-soft: #eef1f4;

  /* Typography */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing / layout */
  --maxw: 1160px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 1px 3px rgba(11, 31, 51, .05);
  --shadow-md: 0 10px 30px rgba(11, 31, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1rem; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--muted);
  line-height: 1.65;
}

/* Layout helpers ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.section--navy {
  background: var(--navy);
  color: #d9e2ec;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section--blue { background: var(--soft-blue); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--coral); }

.center { text-align: center; }
.measure { max-width: 720px; }
.measure-narrow { max-width: 620px; }
.center.measure, .center.measure-narrow { margin-left: auto; margin-right: auto; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 74, .28);
}
.btn--primary:hover { background: var(--coral-600); box-shadow: 0 10px 26px rgba(255, 107, 74, .34); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(11, 31, 51, .18);
}
.btn--ghost:hover { border-color: var(--navy); background: rgba(11, 31, 51, .04); }

.section--navy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.section--navy .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--lg { padding: 18px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 244, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  font-size: 1.12rem;
  flex: 0 0 auto;
}
.brand svg { display: block; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .98rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--coral-600); }
.nav-cta { flex: 0 0 auto; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(220, 232, 242, .7), transparent 60%),
    var(--offwhite);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 560px; }
.hero-note {
  margin-top: 20px;
  font-size: .92rem;
  color: var(--muted);
}

/* Dashboard mock card (hero visual) ---------------------------------------- */
.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mock-head .score {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}
.mock-head .score span { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.badge {
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--navy);
}
.badge--coral { background: rgba(255, 107, 74, .14); color: var(--coral-600); }

.bar-row { margin-bottom: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-700);
}
.bar-label .val { color: var(--muted); }
.bar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), #ff8b6f);
}
.bar-fill--blue { background: linear-gradient(90deg, var(--navy-700), #4a6b8a); }

/* Cards -------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

.pillar-num {
  font-size: .82rem;
  font-weight: 800;
  color: var(--coral-600);
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}
.pillar-icon svg { width: 24px; height: 24px; }

/* Steps -------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 68px; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin-bottom: 0; }

/* Offer stack -------------------------------------------------------------- */
.offer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.offer--feature { border-color: rgba(255, 107, 74, .4); box-shadow: 0 12px 34px rgba(255, 107, 74, .12); }
.offer-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.offer-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.offer-free { color: var(--coral-600); }
.offer h3 { margin-bottom: 4px; }
.offer p { margin: 0; color: var(--muted); font-size: .95rem; }
.offer-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 74, .14);
  color: var(--coral-600);
  margin-bottom: 8px;
}

/* Before / after ----------------------------------------------------------- */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ba-col { padding: 30px; }
.ba-before { background: #fbfbf9; }
.ba-after { background: var(--navy); color: #d9e2ec; }
.ba-after h3 { color: #fff; }
.ba-col h3 { font-size: 1.05rem; margin-bottom: 18px; }
.ba-list { list-style: none; margin: 0; padding: 0; }
.ba-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: .98rem;
}
.ba-list li:last-child { margin-bottom: 0; }
.ba-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.ba-before .ba-list li::before { background: #d7dbe0; }
.ba-after .ba-list li::before { background: var(--coral); }

/* FAQ ---------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 44px 24px 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--coral-600);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a p { padding-bottom: 24px; color: var(--muted); margin: 0; }

/* Founder ------------------------------------------------------------------ */
.founder-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.founder-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft-blue);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .placeholder {
  color: var(--navy-700);
  opacity: .5;
  font-weight: 700;
  font-size: .9rem;
  padding: 30px;
  text-align: center;
}

/* CTA band ----------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 80% 120%, rgba(255, 107, 74, .28), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #9fb0c1;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .94rem; color: #9fb0c1; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .95rem; color: #b7c4d2; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .86rem;
}

/* Utilities ---------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.stack-lg > * + * { margin-top: 40px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; order: 3; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 10px 24px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-menu { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
  }
  .nav-cta { margin-top: 16px; width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; text-align: left; gap: 12px; }
  .offer-price { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { padding-left: 60px; }
  .btn--block-mobile { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Visual layer - iconography, decoration, depth
   ========================================================================== */

/* Decorative gradient orbs */
.hero { position: relative; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 74, .22), transparent 70%);
}
.hero::after {
  width: 380px; height: 380px;
  bottom: -180px; left: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(220, 232, 242, .8), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

/* Dot-grid pattern helper */
.pattern-dots {
  background-image: radial-gradient(rgba(11, 31, 51, .06) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.section--navy .pattern-dots,
.pattern-dots--light {
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1.4px, transparent 1.4px);
}

/* Icon badges */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(150deg, #fff, var(--soft-blue));
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.icon-badge svg { width: 26px; height: 26px; stroke-width: 1.9; }
.icon-badge--coral {
  background: linear-gradient(150deg, #ff8b6f, var(--coral));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 74, .3);
}

/* Pillar card refinement */
.card { position: relative; overflow: hidden; }
.pillar-card { padding-top: 26px; }
.pillar-card .pillar-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(11, 31, 51, .06);
  letter-spacing: -.03em;
  margin: 0;
}
.pillar-card .icon-badge { margin-bottom: 20px; }
.pillar-card h3 { font-size: 1.18rem; }

/* Number-led step cards */
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-card .s-num {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--coral-600);
  display: block;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-card::after {
  content: "";
  position: absolute;
  left: 26px; bottom: 0;
  width: 34px; height: 3px;
  background: var(--coral);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.step-card:hover::after { transform: scaleX(1); }

/* Trust / stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}
.section--navy .stat .stat-num { color: #fff; }
.stat .stat-label { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.section--navy .stat .stat-label { color: #9fb0c1; }

/* Hero growth chart */
.mock-chart { margin: 6px 0 20px; }
.mock-chart svg { width: 100%; height: auto; display: block; }
.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin-top: 4px;
}
.mock-foot .mf-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.mock-foot .mf-delta { font-size: .84rem; font-weight: 700; color: #1f9d63; }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--navy-700);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li svg {
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  color: var(--coral);
}

/* Section eyebrow with line */
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow-line::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

/* Refined divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin: 0;
}

@media (max-width: 940px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 640px) {
  .hero::before, .hero::after { display: none; }
}
