/* ============================================================
   H.O.P.E™ — Enterprise Design System
   Palette: Midnight Navy · Muted Metallic Gold · Refined Teal
   Type: Plus Jakarta Sans (display) / Inter (body)
   Grid: 8pt spacing system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand – matured */
  --navy: #0A1128;
  --navy-dark: #060B1A;
  --navy-mid: #141E38;
  --gold: #C9A227;
  --gold-dark: #A8841E;
  --teal: #1F7A6E;
  --teal-dark: #176057;

  /* Surfaces */
  --bg: #FAFAFA;
  --bg-tint: #F4F5F7;
  --bg-tint-strong: #EBEDF0;
  --surface: #FFFFFF;

  /* Text */
  --text: #0A1128;
  --text-body: #3D4554;
  --text-muted: #6B7280;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #94A3B8;

  /* Borders & elevation */
  --border: rgba(10, 17, 40, 0.06);
  --border-strong: rgba(10, 17, 40, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;

  /* Refined shadows (Stripe-style) */
  --shadow-sm: 0 1px 2px rgba(10, 17, 40, 0.04);
  --shadow-hover: 0 20px 40px -12px rgba(10, 17, 40, 0.10);
  --shadow-modal: 0 24px 48px -12px rgba(10, 17, 40, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 180ms;

  /* Typography */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p {
  margin: 0 0 1em;
  max-width: 62ch;
  line-height: 1.65;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
a:hover { color: var(--teal); text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
  box-shadow: none;
}
.btn-outline-dark:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ============================================================
   Header / Navigation — native-app header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 26, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; opacity: 0.92; }
.brand .tm {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--gold);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--duration) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: width 200ms var(--ease-out);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: #fff; }
.nav-links a.current::after { width: 100%; }

.nav-links a.audit-link {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 11, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms var(--ease-out);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 0.75rem 0; width: 100%; }
  .nav-links a::after { display: none; }
}

/* ============================================================
   Hero + Entrance Animations
   ============================================================ */

.hero {
  background: var(--navy-dark);
  color: var(--text-on-dark);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 30, 56, 0.9) 0%, rgba(20, 30, 56, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* —— Entrance animations (slide from left) —— */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: slideInLeft 0.7s var(--ease-out) both;
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
  animation: slideInLeft 0.75s var(--ease-out) 0.08s both;
}

.hero .lede {
  color: var(--text-on-dark-muted);
  font-size: 1.125rem;
  max-width: 48ch;
  margin: 1.25rem 0 2rem;
  line-height: 1.6;
  animation: slideInLeft 0.75s var(--ease-out) 0.16s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: slideInLeft 0.75s var(--ease-out) 0.24s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out) 0.32s both;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stats .stat-label {
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  letter-spacing: 0.01em;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy-dark);
  color: var(--text-on-dark);
  padding: 3.75rem 0;
}
.page-hero .eyebrow {
  margin-bottom: 0.625rem;
  animation: slideInLeft 0.7s var(--ease-out) both;
}
.page-hero h1 {
  color: #fff;
  max-width: 22ch;
  animation: slideInLeft 0.75s var(--ease-out) 0.08s both;
}
.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.0625rem;
  max-width: 54ch;
  animation: slideInLeft 0.75s var(--ease-out) 0.16s both;
}

/* Section headings also get a gentle slide */
.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
  animation: slideInLeft 0.7s var(--ease-out) both;
}
.section-head p {
  color: var(--text-body);
  font-size: 1.0625rem;
}

/* ============================================================
   Sections & Cards
   ============================================================ */

section { padding: 5rem 0; }
.section-tint { background: var(--bg-tint); }

/* Card base + refined hover */
.division-card,
.plan-card,
.tutor-card,
.guide-card,
.calc-card,
.session-card,
.service-card {
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

.division-card:hover,
.tutor-card:hover,
.guide-card:hover,
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Division cards */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .division-grid { grid-template-columns: 1fr; }
}

.division-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.division-card:nth-child(1) { animation-delay: 0.05s; }
.division-card:nth-child(2) { animation-delay: 0.12s; }
.division-card:nth-child(3) { animation-delay: 0.19s; }

.division-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.icon-teal { background: #E6F3F0; color: var(--teal-dark); }
.icon-gold { background: #F8F1DC; color: var(--gold-dark); }
.icon-navy { background: #E8EBF2; color: var(--navy); }

.division-card h3 { margin-bottom: 0.5rem; }
.division-card p { font-size: 0.9375rem; flex-grow: 1; }
.division-card .card-link {
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1.25rem;
  display: inline-block;
  letter-spacing: -0.01em;
}

/* Audit banner */
.audit-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}
.audit-banner h3 { color: #fff; margin-bottom: 0.375rem; }
.audit-banner p {
  color: var(--text-on-dark-muted);
  margin-bottom: 0;
}

/* Feature rows */
.feature-list { display: grid; gap: 1.75rem; }
.feature-row {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}
.feature-row .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tint-strong);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}
.feature-row h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.feature-row p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.625rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.service-card h4 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}
.service-card p {
  font-size: 0.875rem;
  margin: 0;
}
.service-price {
  font-family: var(--font-display);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Guide / book cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.guide-card:nth-child(1) { animation-delay: 0.05s; }
.guide-card:nth-child(2) { animation-delay: 0.12s; }
.guide-card:nth-child(3) { animation-delay: 0.19s; }

.guide-cover {
  height: 160px;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  overflow: hidden;
}
.guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.guide-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.guide-body h4 { margin-bottom: 0.375rem; }
.guide-body p {
  font-size: 0.875rem;
  flex-grow: 1;
}
.guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.guide-price {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.guide-price.free { color: var(--teal-dark); }

/* CTA band */
.cta-band {
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p {
  color: var(--text-on-dark-muted);
  margin: 0 auto 1.75rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-dark);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h5 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
}
.footer-grid a {
  color: var(--text-on-dark-muted);
  transition: color var(--duration) var(--ease-out);
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   "In development" badge
   ============================================================ */

.badge-dev {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.2em 0.7em;
  vertical-align: middle;
  margin-left: 0.6em;
}
.badge-dev.on-dark {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   Plan tabs
   ============================================================ */

.plan-tabs { margin-top: 1rem; }

.plan-tab-buttons {
  display: inline-flex;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.plan-tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5em 1.25em;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}
.plan-tab-btn:hover { color: var(--navy); }
.plan-tab-btn.active {
  background: var(--navy);
  color: #fff;
}

.plan-panel { display: none; }
.plan-panel.active {
  display: block;
  animation: fadeIn 160ms var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
}
.plan-card.plan-highlight {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.plan-price .period {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}
.plan-feature .check {
  color: var(--teal-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   Tutoring calculator
   ============================================================ */

.tier-tabs {
  display: inline-flex;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}
.tier-tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5625em 1.375em;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}
.tier-tab-btn:hover { color: var(--navy); }
.tier-tab-btn.active {
  background: var(--navy);
  color: #fff;
}

.tier-panel { display: none; }
.tier-panel.active {
  display: block;
  animation: fadeIn 160ms var(--ease-out);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.calc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--surface);
}
.calc-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.calc-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 500px) {
  .subject-grid { grid-template-columns: 1fr; }
}

.subject-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625em 0.875em;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  transition:
    border-color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
  user-select: none;
}
.subject-chip:hover { border-color: var(--teal); }
.subject-chip.checked {
  border-color: var(--navy);
  background: var(--bg-tint);
  color: var(--navy);
}
.subject-chip input {
  accent-color: var(--navy);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.calc-summary {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calc-summary .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.calc-summary .total {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.calc-summary .total .period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.calc-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.session-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-tint);
}
.session-card .session-price {
  font-family: var(--font-display);
  font-size: 2.125rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.session-card select {
  width: 100%;
  padding: 0.6875em 0.875em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin: 1rem 0 1.25rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--duration) var(--ease-out);
}
.session-card select:focus {
  outline: none;
  border-color: var(--navy);
}

/* Forage callout */
.forage-callout {
  border: 1.5px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
}
.forage-callout .forage-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F8F1DC;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.forage-callout h4 { margin-bottom: 0.375rem; }
.forage-callout p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.grade-select {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.grade-option {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.4375em 0.875em;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  transition:
    border-color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
  user-select: none;
}
.grade-option:hover { border-color: var(--teal); }
.grade-option.checked {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
}
.grade-option input {
  accent-color: var(--gold-dark);
  width: 13px;
  height: 13px;
}

/* ============================================================
   H.O.P.E Credit section
   ============================================================ */

.credit-banner {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .credit-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.badge-sdg {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-dark);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin-bottom: 1rem;
}

.credit-copy h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.credit-copy p { color: var(--text-on-dark-muted); }

.credit-features {
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: 0.625rem;
}
.credit-features .plan-feature {
  color: #E2E8F0;
  font-size: 0.9375rem;
}
.credit-features .check { color: var(--gold); }

.credit-minor-note {
  align-self: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.credit-minor-note h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}
.credit-minor-note p {
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.credit-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credit-eligibility {
  margin: 0;
  padding-left: 1.125rem;
  display: grid;
  gap: 0.5625rem;
}
.credit-eligibility li {
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* YouTube callout */
.youtube-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
}
.youtube-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FF0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  flex-shrink: 0;
}
.youtube-copy {
  flex: 1;
  min-width: 240px;
}
.youtube-copy h3 { margin-bottom: 0.25rem; }
.youtube-copy p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.btn-youtube {
  background: #FF0000;
  color: #fff;
}
.btn-youtube:hover { background: #CC0000; }

/* ============================================================
   Trusted by — Endless testimonial marquee
   ============================================================ */

.trusted-section {
  padding: 5rem 0 5.5rem;
  background: var(--bg-tint);
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}

/* Pause on hover for readability */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: #fff;
  flex-shrink: 0;
}
.avatar-teal { background: var(--teal); }
.avatar-gold { background: var(--gold-dark); }
.avatar-navy { background: var(--navy); }

.testimonial-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.testimonial-tag {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }

  .eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .hero-stats,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p,
  .section-head,
  .division-card,
  .guide-card,
  .audit-banner {
    animation: none !important;
  }
}

/* ============================================================
   Checkout modal
   ============================================================ */

.checkout-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.checkout-modal.open {
  display: flex;
  animation: fadeIn 160ms var(--ease-out);
}

.checkout-modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border);
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration) var(--ease-out);
}
.checkout-close:hover { color: var(--navy); }

.checkout-modal-card h3 { margin-bottom: 0.5rem; }
.checkout-summary {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.25rem;
}
.checkout-amount {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.checkout-amount strong { color: var(--teal-dark); }

.checkout-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
.checkout-label:first-of-type { margin-top: 0; }

.checkout-input {
  width: 100%;
  padding: 0.6875em 0.875em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--duration) var(--ease-out);
}
.checkout-input:focus {
  outline: none;
  border-color: var(--navy);
}

.checkout-error {
  display: none;
  color: #B3261E;
  font-size: 0.8125rem;
  margin: 0.875rem 0 0;
}

.checkout-fallback {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1.25rem 0 0;
}

/* ============================================================
   Tiered service cards
   ============================================================ */

.service-card-tiered {
  flex-direction: column;
  align-items: stretch;
}
.service-card-tiered > div:first-child { width: 100%; }

.tier-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.tier-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625em 0.875em;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.tier-list li span { color: var(--text-body); }
.tier-list li strong {
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.875rem 0 0;
}

/* ============================================================
   Pay buttons
   ============================================================ */

.tier-info {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

.pay-btn-sm {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.375em 0.875em;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}
.pay-btn-sm:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.service-pay-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ============================================================
   Format badges (Press)
   ============================================================ */

.format-badges {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}
.format-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.format-badge.available {
  color: var(--teal-dark);
  border-color: rgba(31, 122, 110, 0.35);
  background: #EAF4F2;
}
.format-badge.unavailable {
  color: var(--text-muted);
  background: var(--bg-tint);
}

.guide-buy-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.guide-buy-row .btn {
  padding: 0.5em 1.125em;
  font-size: 0.8125rem;
}

/* Coming-soon placeholders */
.guide-card.coming-soon { opacity: 0.72; }
.guide-card.coming-soon .guide-cover {
  background: var(--bg-tint-strong);
  color: var(--text-muted);
}
.guide-tag.soon { color: var(--text-muted); }

/* ============================================================
   Tutor cards
   ============================================================ */

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .tutor-grid { grid-template-columns: 1fr; }
}

.tutor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.tutor-card:nth-child(1) { animation-delay: 0.05s; }
.tutor-card:nth-child(2) { animation-delay: 0.12s; }
.tutor-card:nth-child(3) { animation-delay: 0.19s; }

.tutor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.tutor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutor-card h4 {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tutor-uni {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: #EAF4F2;
  border-radius: 999px;
  padding: 0.15em 0.6em;
  letter-spacing: 0.02em;
}
.tutor-status {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.tutor-subjects-line {
  font-size: 0.8125rem;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}
.tutor-subjects-line strong { color: var(--navy); }

.tutor-bio {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.tutor-card.coming-soon {
  opacity: 0.68;
  align-items: center;
  text-align: center;
}
.tutor-card.coming-soon .tutor-avatar {
  background: var(--bg-tint-strong);
  color: var(--text-muted);
}

/* ============================================================
   H.O.P.E™ — Global Page Entrance Motion
   Headings/content slide in from the left on page load.
   ============================================================ */

@keyframes hopeSlideFromLeft {
  0% {
    opacity: 0;
    transform: translate3d(-42px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Interior-page headings */
.page-hero h1,
.page-hero h2,
.page-hero h3,
main > section h1,
main > section h2,
main > section h3 {
  animation: hopeSlideFromLeft 0.8s var(--ease-out) both;
}

/* Stagger supporting text so the heading arrives first. */
.page-hero p,
main > section .section-head p {
  animation: hopeSlideFromLeft 0.8s var(--ease-out) 0.12s both;
}

/* Hero content keeps its existing polished stagger. */
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-actions,
.hero-stats,
.page-hero .eyebrow,
.page-hero h1,
.page-hero p,
.section-head {
  will-change: transform, opacity;
}

/* ============================================================
   Trusted By — Truly Seamless Endless Testimonial Cascade
   IMPORTANT: .marquee-track must contain TWO identical sets
   of testimonial cards for the loop to be seamless.
   ============================================================ */

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  min-width: max-content;
  animation: hopeMarquee 42s linear infinite;
  will-change: transform;
}

/* A duplicated track/set should occupy exactly the second half. */
@keyframes hopeMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.testimonial-card {
  flex: 0 0 320px;
}

/* Keep the cascade moving continuously; hover may still pause it. */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ============================================================
   Reduced-motion accessibility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .page-hero h1,
  .page-hero h2,
  .page-hero h3,
  .page-hero p,
  main > section h1,
  main > section h2,
  main > section h3,
  main > section .section-head p {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================================
   H.O.P.E™ — FINAL MOTION FIX
   Entrance animations + seamless testimonial cascade
   ============================================================ */

/* ---------- PAGE ENTRANCE ---------- */

@keyframes hopePageSlide {
  0% {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Main hero */
.hero .eyebrow {
  animation: hopePageSlide 0.75s ease-out 0s both !important;
}

.hero h1 {
  animation: hopePageSlide 0.8s ease-out 0.1s both !important;
}

.hero .lede {
  animation: hopePageSlide 0.8s ease-out 0.2s both !important;
}

.hero-actions {
  animation: hopePageSlide 0.8s ease-out 0.3s both !important;
}

.hero-stats {
  animation: hopePageSlide 0.8s ease-out 0.4s both !important;
}

/* Interior page heroes */
.page-hero .eyebrow {
  animation: hopePageSlide 0.75s ease-out 0s both !important;
}

.page-hero h1 {
  animation: hopePageSlide 0.8s ease-out 0.1s both !important;
}

.page-hero p {
  animation: hopePageSlide 0.8s ease-out 0.2s both !important;
}

/* Section headings */
.section-head {
  animation: hopePageSlide 0.8s ease-out 0.15s both !important;
}

/* ---------- TESTIMONIAL CASCADE ---------- */

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 1.25rem;

  /*
     The HTML already contains TWO identical testimonial sets.
     Therefore -50% gives us a seamless loop.
  */
  width: max-content !important;
  min-width: max-content !important;

  animation: hopeTestimonialScroll 35s linear infinite !important;

  will-change: transform;
}

/* Continuous right → left movement */
@keyframes hopeTestimonialScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Keep cards from shrinking */
.testimonial-card {
  flex: 0 0 320px !important;
}

/* Pause only while the user deliberately hovers */
.marquee:hover .marquee-track {
  animation-play-state: paused !important;
}


/* ============================================================
   IMPORTANT:
   Override previous reduced-motion rules for this website.
   The user has explicitly requested these animations.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .hero-stats,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p,
  .section-head {
    animation: hopePageSlide 0.8s ease-out both !important;
  }

  .marquee-track {
    animation: hopeTestimonialScroll 35s linear infinite !important;
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================================
   H.O.P.E™ — TESTIMONIALS CONTINUOUS FLOW
   ============================================================ */

.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;

    width: max-content !important;
    max-width: none !important;

    gap: 24px;

    /* THE ACTUAL CONTINUOUS FLOW */
    animation: testimonialFlow 40s linear infinite !important;

    transform: translateX(0);
    will-change: transform;
}

/* Every testimonial remains a fixed-width card */
.marquee-track .testimonial-card {
    flex: 0 0 340px !important;
    width: 340px !important;
}

/* Move the ENTIRE row of testimonials */
@keyframes testimonialFlow {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when the user deliberately hovers */
.marquee:hover .marquee-track {
    animation-play-state: paused !important;
}

/* ============================================================
   H.O.P.E™ — NAVBAR LOGO SIZE FIX
   ============================================================ */

.site-header .brand {
  display: flex !important;
  align-items: center !important;
  width: 130px !important;
  height: 55px !important;
  overflow: hidden !important;
}

.site-header .brand img {
  display: block !important;
  width: 110px !important;
  height: 45px !important;
  max-width: 110px !important;
  max-height: 45px !important;
  object-fit: contain !important;
  object-position: center !important;
}