/* =====================
   ThinkViva — CSS
   Mobile-first, low-bandwidth friendly (no external fonts/images)
   ===================== */

:root {
  --navy:       #1E5A3A;   /* Dark Forest Green */
  --navy-dark:  #163025;   /* Deeper Forest Green */
  --gold:       #2E7D4A;   /* Medium Forest Green — CTAs & accents */
  --gold-light: #37965A;   /* Medium Forest Green hover */
  --green:      #2E7D4A;   /* Forest Green — success states */
  --celadon:    #88D498;   /* Celadon — decorative */
  --tea:        #C6DABF;   /* Tea Green — soft accents */
  --text:       #1B2E24;
  --muted:      #5A6B5E;
  --bg:         #F3E9D2;   /* Vanilla Cream */
  --warm-white: #FAF7F2;   /* Warm Off-White — page base */
  --white:      #FFFFFF;
  --border:     #CBDAC3;   /* Muted Tea Green */
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30,90,58,0.10);
  --shadow-lg: 0 8px 32px rgba(30,90,58,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.6;
  font-size: 16px;
}

/* ---- UTILITIES ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(46,125,74,0.28);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,147,111,0.38); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; border-radius: 50px; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---- NAV ---- */
/* Tutor top bar */
.tutor-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.1px;
}
.tutor-bar a {
  color: var(--celadon);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;
}
.tutor-bar a:hover { text-decoration: underline; }

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(30,90,58,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.nav-tagline {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.2px;
  line-height: 1.3;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.nav-brand-tag {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .nav-brand-name { font-size: 1rem; }
  .nav-brand-tag { font-size: 0.55rem; }
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; }

/* ---- HERO ---- */
.hero {
  background: var(--warm-white);
  padding: 48px 0 52px;
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }
.hero::after { display: none; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-tagline {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.hero-flags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hero-flags-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero-flags span:not(.hero-flags-label) {
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0.9;
  cursor: default;
}
.flag-img {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  vertical-align: middle;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,125,74,0.2);
  border: 1px solid rgba(46,125,74,0.4);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 480px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero trust items — inline, under CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  max-width: 540px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.855rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-trust-icon { font-size: 1.1rem; line-height: 1; }
.trust-icon-img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.benefits-icon-img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 12px; display: block; }

/* Hero visual — real photo with floating badges */
.hero-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 540px;
}
.hero-photo-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(30,90,58,0.18);
}
.hero-photo {
  width: 100%;
  height: auto;
  display: block;
}
/* Badge positions — overlaid on photo corners */
.float-badge--tl {
  position: absolute;
  top: 18px;
  left: 18px;
}
.float-badge--mr {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}
.float-badge--bl {
  position: absolute;
  bottom: 38%;
  left: 18px;
}
.float-badge--tl,
.float-badge--mr,
.float-badge--bl {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.7);
}

/* Session card */
.session-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.session-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #e53e3e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53e3e;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.session-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.session-body {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.session-tutor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}
.tutor-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tutor-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
}
.tutor-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.session-board {
  flex: 1;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  min-height: 100px;
}
.board-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}
.board-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 3px;
  flex-wrap: wrap;
}
.board-wrong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c53030;
  text-decoration: line-through;
  text-decoration-color: #c53030;
}
.board-arrow {
  font-size: 0.75rem;
  color: var(--muted);
}
.board-right {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(46,125,74,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}
.board-tutor-note {
  font-size: 0.63rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2px;
}
.board-eq {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.board-eq span {
  color: var(--gold);
  background: rgba(46,125,74,0.1);
  padding: 0 4px;
  border-radius: 4px;
}
.board-line {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.board-sentence {
  font-size: 0.8rem;
  color: var(--text);
  font-style: italic;
}
.board-sentence u {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
.chat-pop {
  display: inline-block;
  margin-top: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 12px 12px 12px 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.session-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.subj-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
}
.session-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--celadon) 100%);
  border-radius: 3px;
}
.progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Floating stat badges */
.float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(30,90,58,0.12);
  min-width: 80px;
}
.float-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.float-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.grade-picker { }
.grade-picker h3 {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.grade-footnote {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.grade-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.grade-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.grade-pill:hover,
.grade-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.grade-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 40px;
  transition: opacity 0.2s;
}

/* ---- TRUST ROW ---- */
.trust-row {
  background: var(--navy);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust-feature-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  line-height: 1;
}
.trust-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.trust-feature p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item .flag { font-size: 1.2rem; }

/* ---- BENEFITS ---- */
.benefits-section { background: var(--navy); padding: 44px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
}
.benefits-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 18px;
}
.benefits-icon { font-size: 2rem; margin-bottom: 10px; }
.benefits-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.benefits-sub {
  color: var(--celadon);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.benefits-list { list-style: none; }
.benefits-list li {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  line-height: 1.55;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--celadon);
  font-weight: 700;
}
.benefits-illustration {
  margin-top: 36px;
  text-align: center;
}
.benefits-illustration img {
  max-width: 780px;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ---- SECTION HEADERS ---- */
section { padding: 72px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- STATS ---- */
.stats-section { background: var(--navy); padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item p { color: rgba(255,255,255,0.75); font-size: 0.875rem; }

/* ---- SUBJECTS ---- */
.subjects-section {
  padding: 44px 0;
  background:
    linear-gradient(rgba(250,247,242,0.88), rgba(250,247,242,0.88)),
    url('/img/illustration-benefits.png') center/cover no-repeat;
}
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.subject-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  text-align: center;
}
.subject-card.coming-soon { opacity: 0.7; }
.coming-soon-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.subject-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.subject-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.subject-icon.math    { background: #3A6B50; }
.subject-icon.english { background: #1B3A2D; }
.subject-icon.science { background: #E8D09A; }
.subject-icon.lang    { background: #8DB5A0; }
.subject-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.subject-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}
.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--bg) url('/img/thought-leadership.png') center bottom / contain no-repeat;
  padding: 44px 0;
}
.how-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.how-intro .section-title { margin-bottom: 10px; }
.how-intro .section-sub { margin: 0; text-align: left; max-width: 100%; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.how-step {
  text-align: center;
  padding: 14px 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-number {
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(30,90,58,0.25);
}
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.how-step p { font-size: 0.875rem; color: var(--muted); }

/* ---- TUTOR SECTION ---- */
.tutor-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 72px 0;
}
.tutor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.tutor-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.tutor-inner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1rem; }
.tutor-perks { list-style: none; margin-bottom: 32px; }
.tutor-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.tutor-perks li::before {
  content: '✓';
  background: var(--gold);
  color: var(--white);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.earnings-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 32px;
}
.earnings-card h3 { color: var(--gold); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.earnings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.earnings-row:last-child { border-bottom: none; }
.earnings-row .amount { font-weight: 700; color: var(--gold); }

/* ---- HOW IT WORKS ---- */
#how-it-works { background: var(--bg); }

/* ---- READY CTA BANNER ---- */
.ready-section {
  background:
    linear-gradient(rgba(243,233,210,0.88), rgba(243,233,210,0.88)),
    url('/img/lampstand%20pic.jpeg') center/cover no-repeat;
  padding: 36px 0;
}
.ready-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  gap: 0;
}
.ready-half { flex: 1; padding: 0 36px; }
.ready-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(30, 90, 58, 0.2);
  flex-shrink: 0;
  min-height: 120px;
}
.ready-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.ready-text p { color: var(--navy); font-size: 0.95rem; opacity: 0.8; }
.ready-visual { flex-shrink: 0; }
.ready-icon-stack { display: flex; align-items: flex-end; line-height: 1; }

/* ---- FAQ ---- */
.faq-section { background: var(--warm-white); padding: 44px 0; }
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 16px;
}
.faq-q:hover { color: var(--gold); }
.faq-chevron {
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--gold);
  line-height: 1;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--muted); font-size: 0.925rem; line-height: 1.72; }

/* ---- CONTACT SECTION ---- */
.contact-section { background: var(--gold); padding: 44px 0; }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-text h2 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.contact-text p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 11px 18px;
  border-radius: 8px;
  transition: background 0.2s;
}
.contact-link:hover { background: rgba(255,255,255,0.25); }
.whatsapp-btn {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: var(--white) !important;
}
.whatsapp-btn:hover { background: #1EBE5C !important; border-color: #1EBE5C !important; }
.wa-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366 !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.footer-whatsapp-link:hover { opacity: 0.8; }

/* ---- FEEDBACK WIDGET (kept for admin/apply reuse) ---- */
.feedback-section { background: var(--white); padding: 48px 0; }
.feedback-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto;
}
.feedback-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feedback-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }
.star-row { display: flex; gap: 8px; margin-bottom: 20px; }
.star {
  font-size: 1.8rem;
  cursor: pointer;
  color: #D5D8DC;
  transition: color 0.15s;
  line-height: 1;
}
.star.active, .star:hover { color: var(--gold); }
.role-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.role-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.role-btn.active { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label span { color: #E74C3C; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}
.checkbox-label:has(input:checked) { border-color: var(--navy); background: #DFF0EC; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--navy); }
.checkbox-coming-soon { opacity: 0.55; cursor: not-allowed; }
.checkbox-coming-soon input { cursor: not-allowed; }
.cs-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; background: var(--bg); color: var(--muted); padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }

/* ---- PACKAGE PICKER ---- */
.package-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.package-option { cursor: pointer; }
.package-option input[type=radio] { display: none; }
.package-card {
  display: flex; flex-direction: column; gap: 3px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--warm-white);
  transition: all 0.2s;
  position: relative;
  min-height: 58px;
}
.package-option input:checked + .package-card {
  border-color: var(--navy);
  background: #DFF0EC;
}
.package-card:hover { border-color: var(--gold); }
.package-name { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.package-detail { font-size: 0.75rem; color: var(--muted); }
.package-badge {
  position: absolute; top: -8px; right: 8px;
  background: var(--gold); color: var(--white);
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.4px;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,48,37,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.modal-header p { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.modal-close {
  background: var(--bg);
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.modal-close:hover { background: var(--border); color: var(--text); }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  max-width: 360px;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); }
.toast.error { background: #C0392B; }

/* ---- NEWSLETTER ---- */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.875rem;
  font-family: inherit;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-input:focus { outline: none; border-color: rgba(46,125,74,0.7); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.footer-logo { height: 52px; width: auto; display: block; border-radius: 8px; }
.footer-brand-text { display: flex; flex-direction: column; gap: 2px; }
.footer-brand-name { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: -0.2px; }
.footer-brand-tag { font-size: 0.58rem; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: 0.2px; }
.footer-brand h3 { color: var(--white); font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 0.875rem; max-width: 300px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.pilot-badge {
  background: var(--gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.footer-tagline-text {
  color: var(--celadon);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: 0.2px;
}
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.20); color: var(--white); }
.footer-contact-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--gold); }
.footer-terms-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-terms-link:hover { color: var(--celadon); }

/* ---- APPLY PAGE ---- */
.apply-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 60px 0;
  text-align: center;
}
.apply-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.apply-tagline { color: var(--gold); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.2px; }
.apply-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; }

.apply-form-wrap {
  max-width: 680px;
  margin: -32px auto 60px;
  padding: 0 20px;
}
.apply-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.apply-step {
  padding: 36px;
  display: none;
}
.apply-step.active { display: block; }
.step-indicator {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.step-dot {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
  position: relative;
}
.step-dot + .step-dot { margin-left: 4px; }
.step-dot.done { background: var(--navy); }
.step-dot.current { background: var(--gold); }

.it-test-q {
  margin-bottom: 28px;
}
.it-test-q .q-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.it-test-q .q-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
}
.option-btn:hover { border-color: var(--navy); background: #DFF0EC; }
.option-btn.selected { border-color: var(--navy); background: #DFF0EC; color: var(--navy); font-weight: 600; }
.option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.option-btn.selected .option-letter { background: var(--navy); color: var(--white); }

.score-display {
  text-align: center;
  padding: 32px;
}
.score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  margin: 0 auto 20px;
  font-size: 2rem;
  font-weight: 800;
}
.score-circle.pass { background: #EAFAF1; color: var(--green); border: 4px solid var(--green); }
.score-circle.fail { background: #FDEDEC; color: #C0392B; border: 4px solid #C0392B; }
.score-circle small { font-size: 0.7rem; font-weight: 500; }

/* ---- ADMIN PAGE ---- */
.admin-header { background: var(--navy); padding: 20px 0; }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { color: var(--white); font-size: 1.2rem; font-weight: 700; }
.admin-body { padding: 32px 0; background: var(--bg); min-height: 100vh; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.metric-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.metric-card .metric-val { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.metric-card .metric-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.metric-card .metric-sub { font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-top: 4px; }
.admin-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.admin-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: inherit;
}
.admin-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}
.data-table td { padding: 12px 16px; font-size: 0.875rem; border-top: 1px solid var(--border); }
.data-table tr:hover td { background: #EDE8DC; }
.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-new      { background: #DFF0EC; color: #1E5A3A; }
.status-active   { background: #DFF5E8; color: #2E7D4A; }
.status-approved { background: #DFF5E8; color: #2E7D4A; }
.status-pending  { background: #FEF9E7; color: #9A7D0A; }
.status-rejected { background: #FDEDEC; color: #922B21; }

/* ---- MOBILE STICKY CTA ---- */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 12px 20px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(30,90,58,0.12);
  border-top: 1px solid var(--border);
  z-index: 300;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-sticky.visible { opacity: 1; transform: translateY(0); }
.body-sticky-offset { padding-bottom: 74px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: block; max-width: 480px; margin: 0 auto; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.22; }
  .hero p { font-size: 1rem; margin-bottom: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
  .how-layout { grid-template-columns: 1fr; gap: 24px; }
  .how-intro .section-sub { text-align: center; max-width: 560px; margin: 0 auto; }
  .how-intro { text-align: center; }
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ready-inner { flex-direction: column; text-align: center; }
  .ready-half { padding: 24px 0; }
  .ready-divider { width: 60%; height: 1px; min-height: 0; background: rgba(30, 90, 58, 0.2); }
  .ready-visual { display: none; }
  .contact-inner { flex-direction: column; text-align: center; }
  .contact-links { justify-content: center; }
  .feedback-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nav-links { display: none; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .modal { padding: 24px 20px; }
}

/* Modal as bottom sheet on small phones */
@media (max-width: 540px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay .modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    padding: 28px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateY(80px);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  section { padding: 40px 0; }
  .hero-actions { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 10px; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
  .subjects-grid { grid-template-columns: 1fr; }
  .package-picker { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-logo { font-size: 1.1rem; }
  .nav-tagline { display: none; }
  .mobile-sticky { display: block; }
  .hero-visual { max-width: 100%; }
}

/* Touch device active feedback */
@media (hover: none) {
  .subject-card:active { transform: scale(0.98); box-shadow: var(--shadow); border-color: var(--gold); }
  .btn:active { transform: scale(0.97); opacity: 0.92; }
  .grade-pill:active { background: var(--gold); border-color: var(--gold); }
  .option-btn:active { border-color: var(--navy); background: #DFF0EC; }
}

/* ---- HAMBURGER NAV ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  margin-right: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-hamburger:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 8px 20px 20px;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(30,90,58,0.1);
    gap: 0;
    z-index: 99;
  }
  .nav.mobile-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; }
  .nav-cta { display: none; }
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  background: var(--warm-white);
  padding: 44px 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testimonial-stars {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 2px;
}
.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1px;
}
.testimonial-summary {
  font-size: 0.9rem;
  color: var(--muted);
}
.testimonial-summary strong { color: var(--navy); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---- PRICING PREVIEW ---- */
.pricing-preview-section {
  background: var(--navy);
  padding: 44px 0;
}
.pricing-preview-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.pricing-preview-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: background 0.2s;
}
.pricing-preview-item:hover { background: rgba(255,255,255,0.14); }
.pricing-preview-item.pp-popular {
  background: rgba(255,255,255,0.14);
  border-color: var(--celadon);
  padding-top: 28px;
}
.pp-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--celadon);
  color: var(--navy-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pp-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pp-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.pp-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.pp-detail {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
@media (max-width: 900px) { .pricing-preview-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pricing-preview-inner { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* ---- FAQ BOTTOM CTA ---- */
.faq-cta {
  margin-top: 40px;
  background: var(--bg);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.faq-cta-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 500;
}
.faq-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- FOCUS VISIBLE STATES (accessibility) ---- */
.btn:focus-visible { outline: 3px solid var(--celadon); outline-offset: 3px; }
.nav-links a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.faq-q:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.grade-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal-close:focus-visible { outline: 2px solid var(--celadon); outline-offset: 2px; }
.subject-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
