/* MVP Learners — SAT Math tutoring
   Palette sampled from the brand logo (green/dark-green/cream). */

:root {
  --green: #65B933;
  --green-dark: #037524;
  --green-deep: #0E2712;
  --cream: #FFE19C;
  --cream-soft: #FBF3DC;
  --yellow: #FFDD40;
  --paper: #FBF8F1;
  --amber: #E8A93D;
  --amber-dark: #C98A22;
  --ink: #16231A;
  --ink-soft: #51604F;
  --white: #FFFFFF;
  --coral: #E2574C;
  --grade-green: #3E9B2C;

  --font-display: 'Baloo 2', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1180px;
  --side-pad: clamp(20px, 5vw, 72px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--amber-dark); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

.icon { display: block; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--amber-dark); color: var(--ink); transform: translateY(-1px); }
.btn-primary--lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 35, 26, 0.08);
  position: relative;
  z-index: 5;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 10px; transition: opacity .15s ease; }
.brand:hover { opacity: .8; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-link:hover { color: var(--green-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-deep);
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-copy { max-width: 700px; }
.hero-title {
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.06;
  color: var(--white);
  margin: 0 0 24px;
}
.text-highlight {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.text-highlight--red { background: var(--coral); color: var(--white); }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-sub u { text-decoration-color: var(--amber); }

/* Split hero variant: left copy + right image (Community page) */
.hero-inner--split { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 48px; }
.hero-inner--split .hero-copy { max-width: 460px; }
.hero-inner--split .hero-sub { margin: 0 0 28px; max-width: 100%; }
.hero-image-link {
  flex: 0 0 460px;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}
.hero-image-link:hover { transform: translateY(-2px); }
.hero-image-link img { display: block; width: 100%; height: auto; }

/* ---------- Checkmark list (shared: Community free-resources, Tutoring details) ---------- */
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.check-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Free resources (Community page) ---------- */
.free-resources { background: var(--white); padding: 88px 0; border-top: 1px solid rgba(22, 35, 26, 0.08); }
.free-resources-row { display: flex; gap: 64px; align-items: center; }
.free-resources-content { flex: 1; min-width: 280px; }
.free-resources-image {
  flex: 0 0 440px;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(22, 35, 26, .16);
  transition: transform .15s ease;
}
.free-resources-image:hover { transform: translateY(-2px); }
.free-resources-image img { display: block; width: 100%; height: auto; }

/* ---------- Program video (Tutoring page hero) ---------- */
.program-video {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 32px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.program-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Details (Tutoring page) ---------- */
.details { background: var(--paper); padding: 88px 0; border-top: 1px solid rgba(22, 35, 26, 0.08); }
.details-row { display: flex; gap: 64px; align-items: center; }
.details-content { flex: 0 1 380px; min-width: 280px; }
.details-art {
  flex: 1 1 620px;
  max-width: 760px;
  aspect-ratio: 1280 / 478;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 35, 26, .16);
}
.details-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sign-up form (Tutoring page) ---------- */
.signup { background: var(--paper); padding: 88px 0; }
.signup-row { display: flex; gap: 64px; align-items: center; margin-bottom: 56px; }
.signup-card {
  flex: 1 1 420px;
  max-width: 560px;
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.signup-card iframe { display: block; width: 100%; border: 0; border-radius: 10px; }
.signup-copy { flex: 1 1 320px; min-width: 280px; }

/* ---------- Countdown (Tutoring page) ---------- */
.countdown { text-align: center; }
.countdown-eyebrow { display: block; }
.countdown-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.countdown-item {
  min-width: 88px;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}
.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--green-dark);
}
.countdown-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Page header (interior pages: Tutoring, Resources, Community, legal) ---------- */
.page-hero { background: var(--green-deep); padding: 72px 0; text-align: center; }
.page-hero-title { font-weight: 700; font-size: clamp(32px, 4.2vw, 44px); color: var(--white); margin: 0 0 12px; }
.page-hero-sub { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto; }
.page-body { padding: 72px 0; }
.page-body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 640px; margin: 0 0 16px; }
.page-body p a { font-weight: 600; }
.page-body .legal-updated { font-size: 14px; color: var(--ink-soft); margin: 0 0 40px; }

/* ---------- Resources grid (Resources page) ---------- */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.resource-card {
  display: block;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.resource-card-image { aspect-ratio: 16 / 9; background: var(--paper); }
.resource-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.resource-card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0; padding: 16px 18px 20px; }

/* ---------- Lesson pages (resources/*.html) ---------- */
.lesson-download { margin-bottom: 56px; }
.page-body section h2 { font-weight: 700; font-size: 21px; color: var(--ink); margin: 40px 0 12px; }
.page-body section:first-of-type h2 { margin-top: 0; }
.page-body ul { max-width: 640px; margin: 0 0 16px; padding-left: 20px; }
.page-body li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- Section headers (shared) ---------- */
.section-header { max-width: 560px; margin: 0 0 48px; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section-title { font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 12px; color: var(--ink); }
.section-title--tight { margin-bottom: 0; }
.section-sub { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- Videos ---------- */
.videos { background: var(--white); padding: 88px 0; }
.video-carousel { margin-top: 40px; overflow: hidden; }
/* 10 cards (5 real + 5 duplicate) sit directly in one flex row with one uniform gap —
   no nested flex container, since browsers (Firefox in particular) don't always agree
   on intrinsic-size math for a flex container nested inside another flex container.
   2980px = 10 cards x 280px + 9 gaps x 20px (total track width).
   1500px = 5 cards x 280px + 5 gaps x 20px (distance from card 1 to its duplicate, i.e.
   one full lap) — the loop travels exactly this far so it lands back on an identical card.
   Keep these two numbers in sync if card size/gap/count ever changes. */
@keyframes video-marquee { from { transform: translateX(0); } to { transform: translateX(-1500px); } }
.video-track {
  display: flex;
  gap: 20px;
  width: 2980px;
  animation: video-marquee 38s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .video-track { animation: none; }
  .video-card--dup { display: none; }
}
.video-card {
  flex: 0 0 280px;
  display: block;
}
.video-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-soft);
  margin-bottom: 12px;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.video-card:hover .video-thumb { transform: scale(1.04); }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 35, 26, 0.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.video-card:hover .video-play { background: var(--amber); color: var(--ink); }
.video-play svg { margin-left: 2px; }
.video-title { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.video-card:hover .video-title { color: var(--green-dark); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream-soft); padding: 88px 0; }

/* Pure-CSS carousel: one radio per window position drives a translateX on
   the track (shifting by exactly one card + gap per step, so clicking next
   slides the leftmost card out and brings one new card in on the right —
   same in reverse for prev), and which arrow pair is visible. Three cards
   show at once out of five total, so there are 3 window positions: cards
   1-3, 2-4, and 3-5. Navigation loops: prev at position 1 jumps straight
   to position 3, and next at position 3 jumps straight back to position 1
   (an instant cut, not a slide — see the TODO in CLAUDE.md about making
   this a genuine infinite smooth loop).
   No JavaScript — arrows are <label for="..."> elements that check a
   specific radio; radios are visually hidden but stay keyboard-focusable.
   autocomplete="off" on the radios stops Firefox from restoring a stale
   checked state across reloads, which otherwise left no radio checked
   at all (and so no arrow rule ever matched). */
.carousel { position: relative; max-width: 1008px; margin: 0 auto; }
.carousel-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.carousel-radio:focus-visible ~ .carousel-viewport { outline: 2px solid var(--green-dark); outline-offset: 4px; }
.carousel-viewport { max-width: 1008px; margin: 0 auto; overflow: hidden; border-radius: 18px; }
.carousel-track { display: flex; gap: 24px; transition: transform .45s ease; }
/* -344px = one card (320px) + one gap (24px) */
#t1:checked ~ .carousel-viewport .carousel-track { transform: translateX(0); }
#t2:checked ~ .carousel-viewport .carousel-track { transform: translateX(-344px); }
#t3:checked ~ .carousel-viewport .carousel-track { transform: translateX(-688px); }

.testimonial-card { flex: 0 0 320px; background: var(--white); border-radius: 18px; padding: 28px; }
.quote-icon { color: var(--cream); margin-bottom: 12px; }
.quote-text { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.quote-author { font-weight: 700; font-size: 14px; }

.carousel-arrow {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}
.carousel-arrow:hover { background: var(--amber); }
.carousel-arrow--prev { left: -22px; }
.carousel-arrow--next { right: -22px; }
#t1:checked ~ .carousel-arrow--for-1,
#t2:checked ~ .carousel-arrow--for-2,
#t3:checked ~ .carousel-arrow--for-3 {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); padding: 56px 0 28px; }
.footer-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 260px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { width: 32px; height: 32px; object-fit: contain; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); margin: 0; }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact span { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer-legal-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .resources-grid { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .details-row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .details-art { flex: 0 0 auto; width: 100%; max-width: 620px; }
  .hero-inner--split { flex-direction: column; text-align: center; }
  .hero-inner--split .hero-copy { max-width: 100%; }
  .hero-image-link { flex: 0 0 auto; width: 100%; max-width: 460px; }
  .free-resources-row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .free-resources-image { flex: 0 0 auto; width: 100%; max-width: 440px; }
  .signup-row { flex-direction: column; gap: 32px; }
  .signup-card { max-width: 100%; width: 100%; }
  .signup-copy { text-align: center; }
  .countdown-grid { gap: 12px; }
  .countdown-item { min-width: 72px; padding: 14px 12px; }
  .countdown-value { font-size: 28px; }
}
