:root {
  --blue: #0c3f9f;
  --blue-2: #1257c8;
  --blue-deep: #082b72;
  --yellow: #ffb703;
  --yellow-2: #ffc933;
  --ink: #10213e;
  --muted: #64748b;
  --line: #dfe8f5;
  --paper: #f7faff;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(24, 58, 110, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

section[id] { scroll-margin-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 3%, rgba(18,87,200,.08) 0 95px, transparent 96px),
    radial-gradient(circle at 97% 13%, rgba(255,183,3,.07) 0 115px, transparent 116px),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.section-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1200px, calc(100% - 32px));
  min-height: 78px;
  margin: 16px auto 0;
  padding: 10px 14px;
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(219,230,246,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(29,60,111,.08);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { color: var(--blue-deep); font-size: .98rem; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .73rem; letter-spacing: .03em; }

.site-header nav { justify-self: center; display: flex; gap: 22px; }
.site-header nav a { text-decoration: none; color: #43506a; font-weight: 700; font-size: .92rem; }
.site-header nav a:hover { color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-deep));
  box-shadow: 0 10px 24px rgba(12,63,159,.22);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12,63,159,.28); }
.button-small { min-height: 44px; padding-inline: 17px; font-size: .9rem; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 64px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 70px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .4;
}
.hero::before {
  width: 120px; height: 120px; right: -28px; top: 58px;
  background-image: radial-gradient(circle, #8db5ec 2px, transparent 2px);
  background-size: 18px 18px;
}
.hero::after {
  width: 160px; height: 3px; left: -76px; bottom: 110px;
  background: repeating-linear-gradient(90deg, rgba(12,63,159,.32) 0 2px, transparent 2px 8px);
  transform: rotate(-48deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: .83rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(3.1rem, 6.3vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--yellow); }
.hero-lead { max-width: 760px; margin: 24px 0 0; color: #47566e; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link span { display: inline-block; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.trust-row div { padding-right: 14px; border-right: 1px solid var(--line); display: grid; }
.trust-row div:last-child { border: 0; }
.trust-row strong { color: var(--blue-deep); font-size: .94rem; }
.trust-row span { color: var(--muted); font-size: .8rem; margin-top: 3px; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #dbe7f7;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f1f6ff);
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 170px; height: 170px; border-radius: 50%;
  right: -80px; bottom: -80px;
  background: rgba(255,183,3,.12);
}
.mini-logo-wrap { width: 88px; height: 88px; padding: 4px; margin-bottom: 18px; border-radius: 24px; background: white; box-shadow: 0 8px 25px rgba(31,67,123,.12); }
.mini-logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: #fff; }
.card-kicker { margin: 0 0 12px; color: var(--blue-deep); font-weight: 900; font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: #40516b; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; font-size: .72rem; font-weight: 900; }

.school-year-banner {
  margin-bottom: 98px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  box-shadow: 0 15px 35px rgba(255,183,3,.18);
}
.school-year-banner > div { display: flex; align-items: center; gap: 14px; }
.school-year-banner strong { display: block; color: var(--blue-deep); font-size: 1.08rem; }
.school-year-banner span:not(.banner-icon) { color: #584600; font-size: .9rem; }
.banner-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.45); color: var(--blue); font-size: 1.4rem; }
.school-year-banner a { white-space: nowrap; color: var(--blue-deep); font-weight: 900; text-decoration: none; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; padding-bottom: 110px; }
.section-heading h2 { margin: 0; color: var(--blue-deep); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); }
.about-copy { color: #506078; font-size: 1.08rem; }
.about-copy p { margin-top: 0; margin-bottom: 18px; }

.subject-section { padding-bottom: 110px; }
.centered { text-align: center; max-width: 760px; margin-inline: auto; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.subject-card {
  position: relative;
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.08);
}
.subject-card.featured { border-color: rgba(255,183,3,.65); background: linear-gradient(150deg, #fffdf6, #fff); }
.subject-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 17px; background: #eaf2ff; color: var(--blue); font-size: 1.3rem; font-weight: 950; }
.featured .subject-icon { background: #fff3c4; color: #8b5f00; }
.subject-card h3 { margin: 0 0 16px; color: var(--blue-deep); font-size: 1.45rem; }
.subject-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: #526179; }
.subject-card li::before { content: "•"; color: var(--yellow); font-weight: 900; margin-right: 9px; }
.subject-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-inline: auto;
  margin-top: 42px;
}
.lesson-feature-grid {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #526179;
}
.lesson-feature-grid li {
  position: relative;
  padding-left: 22px;
  font-weight: 700;
}
.lesson-feature-grid li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 950;
}

/* Pricing */
.pricing-section { padding-bottom: 110px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; align-items: stretch; }
.price-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.08);
}
.price-card.featured-price { border-color: rgba(255,183,3,.65); background: linear-gradient(150deg, #fffdf6, #fff); }
.price-level { margin: 0 0 10px; color: var(--blue-deep); font-weight: 900; font-size: 1.05rem; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 12px; color: var(--blue); }
.price > span { font-size: 1.55rem; font-weight: 900; }
.price strong { font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: .92rem; font-weight: 750; }
.price-card > p:not(.price-level) { color: #56657b; }
.price-features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: #526179; }
.price-features li { position: relative; padding-left: 24px; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 950; }
.intro-price { display: flex; flex-direction: column; }
.intro-price .price strong { color: var(--yellow); font-size: clamp(2.35rem, 4vw, 3.8rem); }
.intro-price .button { margin-top: auto; align-self: flex-start; }

.approach-section { padding: 92px 0 104px; background: linear-gradient(135deg, var(--blue-deep), #0d4bb8); color: white; overflow: hidden; position: relative; }
.approach-section::after { content: ""; position: absolute; width: 380px; height: 380px; border: 70px solid rgba(255,183,3,.08); border-radius: 50%; right: -210px; top: -190px; }
.section-heading.light .eyebrow { color: #ffd65a; }
.section-heading.light h2 { color: white; }
.approach-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.approach-grid article { min-height: 220px; padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.07); }
.approach-grid span { display: inline-block; color: #ffd252; font-weight: 950; letter-spacing: .1em; }
.approach-grid h3 { margin: 38px 0 10px; font-size: 1.15rem; }
.approach-grid p { margin: 0; color: #d9e5ff; font-size: .93rem; }

.placeholder-note {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(255,183,3,.45);
  border-radius: 14px;
  background: #fff9e8;
  color: #6b5700 !important;
  font-size: .9rem;
}
.sample-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; padding-bottom: 110px; }
.faq-list { display: grid; gap: 12px; }
details { padding: 0 22px; border-radius: 18px; border: 1px solid var(--line); background: white; box-shadow: 0 8px 24px rgba(29,60,111,.05); }
summary { cursor: pointer; padding: 20px 30px 20px 0; color: var(--blue-deep); font-weight: 850; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 15px; font-size: 1.35rem; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { margin: -2px 0 20px; color: #5b697d; }

.final-cta {
  margin-bottom: 50px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-2));
  color: white;
  box-shadow: 0 18px 50px rgba(9,44,110,.22);
}
.final-cta .eyebrow { color: #ffd55c; }
.final-cta h2 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.final-cta p:last-child { color: #d9e6ff; }
.cta-actions { display: grid; gap: 12px; }
.button-light { background: var(--yellow); color: var(--blue-deep); box-shadow: none; }
.phone-link { text-align: center; color: white; text-decoration: none; font-size: 1.25rem; font-weight: 900; letter-spacing: .035em; }

.site-footer { padding: 18px 0 46px; display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; color: #718096; font-size: .85rem; }
.footer-brand { color: var(--blue-deep); text-decoration: none; font-weight: 900; }
.site-footer p { margin: 0; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 62px; }
  .hero-card { max-width: 650px; }
  .split-section, .faq-section { grid-template-columns: 1fr; gap: 34px; }
  .subject-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
.subject-card:last-child, .intro-price { grid-column: 1 / -1; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 88px; }
  section[id] { scroll-margin-top: 88px; }
  .section-shell { width: min(100% - 28px, 1160px); }
  .site-header { width: calc(100% - 20px); top: 8px; margin-top: 10px; gap: 12px; border-radius: 18px; }
  .brand span { display: none; }
  .brand img { width: 42px; height: 42px; }
  .button-small { min-height: 42px; padding-inline: 14px; font-size: .82rem; }
  .hero { padding-top: 48px; padding-bottom: 46px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .hero-card { padding: 26px; border-radius: 24px; }
  .school-year-banner { margin-bottom: 74px; align-items: flex-start; flex-direction: column; }
  .school-year-banner a { white-space: normal; }
  .split-section, .subject-section, .pricing-section, .faq-section { padding-bottom: 80px; }
  .subject-grid, .pricing-grid, .approach-grid { grid-template-columns: 1fr; }
  .subject-grid-two, .lesson-feature-grid { grid-template-columns: 1fr; }
  .lesson-feature-grid { padding: 22px 18px; gap: 12px; }
  .subject-card:last-child, .intro-price { grid-column: auto; }
  .approach-section { padding: 78px 0; }
  .approach-grid article { min-height: auto; }
  .approach-grid h3 { margin-top: 22px; }
  .final-cta { padding: 32px 24px; border-radius: 24px; }
}

/* Multi-page tutoring options */
.nav-active { color: var(--blue) !important; }

.tuition-options-section { padding-bottom: 110px; }
.tuition-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.tuition-option-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.08);
}
.tuition-option-card.featured-option {
  border-color: rgba(255,183,3,.65);
  background: linear-gradient(150deg, #fffdf6, #fff);
}
.option-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-option .option-label { background: #fff2bd; color: #8b5f00; }
.tuition-option-card h3 { margin: 0 0 12px; color: var(--blue-deep); font-size: 1.8rem; }
.tuition-option-card > p { color: #56657b; }
.option-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; color: #526179; }
.option-list li { position: relative; padding-left: 24px; }
.option-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 950; }
.button-outline {
  background: white;
  color: var(--blue-deep);
  border: 1px solid #cfdcf0;
  box-shadow: none;
}
.button-outline:hover { box-shadow: 0 12px 24px rgba(12,63,159,.12); }

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 64px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 100px;
}
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.page-hero h1 span { color: var(--yellow); }
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.page-summary-card {
  padding: 34px;
  border: 1px solid #dbe7f7;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f1f6ff);
  box-shadow: var(--shadow);
}
.group-summary-card { background: linear-gradient(145deg, #fffdf8, #fff7d8); border-color: rgba(255,183,3,.35); }

.content-section { padding-bottom: 110px; }
.feature-grid { display: grid; gap: 20px; margin-top: 42px; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.07);
}
.feature-card > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 950;
}
.feature-card h3 { margin: 0 0 10px; color: var(--blue-deep); font-size: 1.25rem; }
.feature-card p { margin: 0; color: #5a687d; }

.inner-pricing { padding-top: 0; }
.pricing-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 850px; margin-inline: auto; margin-top: 42px; }
.page-approach { margin-bottom: 100px; }
.group-fit-section { padding-top: 10px; }

.compare-cta-section { padding-bottom: 100px; }
.compare-cta-card,
.group-pricing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.07);
}
.compare-cta-card h2,
.group-pricing-card h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.compare-cta-card p:last-child,
.group-pricing-card p:last-child { margin-bottom: 0; color: #5b697d; }
.group-pricing-section { padding-bottom: 90px; }
.group-pricing-card { background: linear-gradient(145deg, #fffdf7, #fff8de); border-color: rgba(255,183,3,.35); }
.group-page-hero { padding-bottom: 110px; }

@media (max-width: 960px) {
  .tuition-option-grid,
  .page-hero,
  .three-col,
  .pricing-grid-two,
  .compare-cta-card,
  .group-pricing-card { grid-template-columns: 1fr; }
  .page-summary-card { max-width: 720px; }
  .compare-cta-card .button,
  .group-pricing-card .button { justify-self: start; }
}

@media (max-width: 640px) {
  .tuition-options-section,
  .content-section,
  .compare-cta-section { padding-bottom: 80px; }
  .tuition-option-card,
  .feature-card,
  .page-summary-card { padding: 26px; border-radius: 22px; }
  .page-hero { padding-top: 46px; padding-bottom: 78px; gap: 34px; }
  .page-hero h1 { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .compare-cta-card,
  .group-pricing-card { padding: 28px 24px; border-radius: 22px; }
  .page-approach { margin-bottom: 80px; }
}
.group-rate-badge {
  display: inline-flex;
  margin: 8px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff3c4;
  color: #7a5500;
  font-weight: 900;
  letter-spacing: .01em;
}

.trial-note { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid rgba(12,63,159,.12); }

/* V7 refinements */
.lesson-feature-grid {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.07);
}

/* Compact cross-link between the dedicated tuition pages */
.subtle-crosslink {
  padding: 0 0 48px;
  text-align: center;
}
.subtle-crosslink p {
  margin: 0;
  color: #65748a;
  font-size: .96rem;
}
.subtle-crosslink a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
.subtle-crosslink a:hover { text-decoration: underline; }

/* Full-width bottom contact band rather than a floating card */
.final-cta {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-2));
  color: white;
  box-shadow: none;
}
.final-cta-inner {
  min-height: 300px;
  padding-top: 54px;
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 48px;
  align-items: center;
}
.final-cta .eyebrow { color: #ffd55c; }
.final-cta h2 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.final-cta p:last-child { color: #d9e6ff; }

/* Pull the footer directly under the CTA so the bottom of each page reads as one finish. */
.site-footer { padding-top: 24px; }

@media (max-width: 960px) {
  .final-cta-inner { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 640px) {
  .lesson-feature-grid { padding: 22px 20px; border-radius: 20px; }
  .subtle-crosslink { padding-bottom: 36px; }
  .final-cta-inner { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
}

/* V8: dedicated About Me page + more prominent personal card */
.profile-card {
  border-color: rgba(12,63,159,.22);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,246,255,.98));
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-2), var(--yellow));
}
.profile-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-photo-thumb {
  width: 94px;
  height: 94px;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 24px;
  border: 3px solid white;
  box-shadow: 0 10px 26px rgba(18,54,110,.16);
}
.profile-card .card-kicker { margin-bottom: 4px; }
.profile-card h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.profile-role {
  margin: 7px 0 0;
  color: #65748a;
  font-size: .88rem;
  line-height: 1.4;
}
.profile-card .check-list { position: relative; z-index: 1; gap: 12px; }
.about-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 15px 17px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.about-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,183,3,.2);
}
.about-card-link span { font-size: 1.2rem; }

.about-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: 70px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 105px;
}
.about-page-hero h1 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.about-page-hero h1 span { color: var(--yellow); }
.about-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe7f7;
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}
.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
}
.about-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.about-trust-chips span {
  padding: 9px 13px;
  border: 1px solid #d9e5f6;
  border-radius: 999px;
  background: white;
  color: var(--blue-deep);
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(32,65,115,.05);
}

.about-background-section { padding-bottom: 108px; }
.academic-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}
.academic-result-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  box-shadow: 0 12px 34px rgba(32,65,115,.07);
}
.academic-result-card.featured-result {
  border-color: rgba(255,183,3,.55);
  background: linear-gradient(150deg, #fffdf6, #fff);
}
.result-label {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: .94rem;
  font-weight: 900;
}
.academic-result-card > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.featured-result > strong { color: #d99b00; }
.academic-result-card > p:last-child { margin: 0; color: #5b697e; }

.about-teaching-section {
  padding: 94px 0;
  background: linear-gradient(135deg, var(--blue-deep), #0f4dad);
  color: white;
}
.about-teaching-section .section-heading h2 { color: white; }
.about-teaching-section .section-heading .eyebrow { color: #ffd55c; }
.about-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.about-method-grid article {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.075);
}
.about-method-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(255,213,92,.16);
  color: #ffd55c;
  font-size: .78rem;
  font-weight: 950;
}
.about-method-grid h3 { margin: 0 0 10px; color: white; font-size: 1.25rem; }
.about-method-grid p { margin: 0; color: #d7e4fb; }
.notes-after-card {
  margin-top: 18px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255,213,92,.26);
  border-radius: 20px;
  background: rgba(255,213,92,.1);
}
.notes-after-card strong { color: #ffd55c; }
.notes-after-card p { margin: 0; color: #e3ecff; }

.why-tutor-section { padding-top: 100px; padding-bottom: 100px; }
.why-tutor-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 66px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: 0 14px 40px rgba(32,65,115,.08);
}
.why-tutor-card h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.why-tutor-copy { color: #526179; font-size: 1.04rem; }
.why-tutor-copy p { margin-top: 0; margin-bottom: 18px; }
.why-tutor-copy p:last-child { margin-bottom: 0; }

.about-route-section { padding-bottom: 100px; }
.about-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 38px auto 0;
}
.about-route-grid a {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(32,65,115,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.about-route-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(12,63,159,.28);
  box-shadow: 0 16px 36px rgba(32,65,115,.11);
}
.about-route-grid span {
  color: var(--blue-2);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-route-grid strong { color: var(--blue-deep); font-size: 1.4rem; }
.about-route-grid small { color: #627087; font-size: .94rem; }

@media (max-width: 960px) {
  .about-page-hero,
  .why-tutor-card { grid-template-columns: 1fr; }
  .about-photo-card { max-width: 520px; }
  .academic-results-grid { grid-template-columns: 1fr; }
  .about-method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-card-header { grid-template-columns: 78px 1fr; gap: 14px; }
  .profile-photo-thumb { width: 78px; height: 78px; border-radius: 20px; }
  .profile-card h2 { font-size: 1.35rem; }
  .about-page-hero { padding-top: 46px; padding-bottom: 80px; gap: 34px; }
  .about-page-hero h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .about-background-section,
  .why-tutor-section,
  .about-route-section { padding-bottom: 80px; }
  .about-teaching-section { padding: 78px 0; }
  .why-tutor-section { padding-top: 80px; }
  .why-tutor-card { padding: 28px 24px; gap: 26px; border-radius: 24px; }
  .notes-after-card { grid-template-columns: 1fr; gap: 8px; }
  .about-route-grid { grid-template-columns: 1fr; }
}

/* V10: integrated availability, cleaner About Me page, centered profile crop */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255,183,3,.38);
  border-radius: 999px;
  background: rgba(255,183,3,.12);
  color: var(--blue-deep);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,183,3,.08);
}
.availability-pill:hover { background: rgba(255,183,3,.18); }
.availability-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,183,3,.16);
}
.availability-pill-action {
  margin-left: 4px;
  color: var(--blue-2);
  font-weight: 850;
}

.profile-photo-thumb {
  border-radius: 50%;
  object-position: 50% 50%;
}

.academic-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.why-tutor-section {
  padding-top: 0;
  padding-bottom: 100px;
}

.about-teaching-section {
  padding: 94px 0;
}
.about-teaching-prose {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 74px;
  align-items: start;
}
.about-teaching-heading .eyebrow { color: #ffd55c; }
.about-teaching-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.about-teaching-copy {
  padding: 30px 32px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(255,255,255,.075);
  color: #e3ecff;
  font-size: 1.04rem;
  line-height: 1.75;
}
.about-teaching-copy p { margin: 0 0 18px; }
.about-teaching-copy p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .about-teaching-prose { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .profile-photo-thumb { border-radius: 50%; object-position: 50% 50%; }
  .availability-pill { flex-wrap: wrap; border-radius: 18px; }
  .availability-pill-action { width: 100%; margin-left: 18px; }
  .academic-results-grid { grid-template-columns: 1fr; }
  .about-teaching-copy { padding: 24px 22px; border-radius: 22px; }
}


/* V11: clearer section markers, refined profile crop and true full-width footer */

/* The homepage profile photo stays circular, but the portrait is positioned so the face sits visually in the centre. */
.profile-photo-thumb {
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Section labels remain understated, but now clearly signal a new section. */
.section-heading {
  padding-top: 34px;
}
.section-heading .eyebrow,
.why-tutor-card .eyebrow,
.about-teaching-heading .eyebrow {
  position: relative;
}
.section-heading .eyebrow::before,
.why-tutor-card .eyebrow::before,
.about-teaching-heading .eyebrow::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0 0 13px;
  border-radius: 999px;
  background: var(--yellow);
}
.centered .eyebrow::before {
  margin-left: auto;
  margin-right: auto;
}
.section-heading.light .eyebrow::before,
.about-teaching-heading .eyebrow::before {
  background: #ffd55c;
}

/* Give a clearer reset after full-width blue sections, where the next label previously felt attached. */
.approach-section + .section-shell .section-heading,
.about-teaching-section + .section-shell .section-heading,
.about-route-section .section-heading {
  padding-top: 76px;
}
.approach-section .section-heading,
.about-teaching-section .section-heading {
  padding-top: 0;
}

/* The contact band and footer now read as one deliberate full-width page ending. */
.final-cta {
  margin-bottom: 0;
}
.site-footer.section-shell,
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px clamp(24px, 4vw, 72px);
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.35fr) auto;
  gap: 34px;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e5edf8;
  color: #718096;
  font-size: .84rem;
}
.site-footer > p:nth-of-type(1) {
  text-align: center;
}
.site-footer .copyright {
  text-align: right;
}

@media (max-width: 960px) {
  .site-footer.section-shell,
  .site-footer {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 24px 20px;
    text-align: center;
  }
  .site-footer > p:nth-of-type(1),
  .site-footer .copyright {
    text-align: center;
  }
  .section-heading { padding-top: 30px; }
  .approach-section + .section-shell .section-heading,
  .about-teaching-section + .section-shell .section-heading,
  .about-route-section .section-heading { padding-top: 58px; }
}

@media (max-width: 640px) {
  .profile-photo-thumb { object-position: 50% 50%; }
  .section-heading { padding-top: 26px; }
  .approach-section + .section-shell .section-heading,
  .about-teaching-section + .section-shell .section-heading,
  .about-route-section .section-heading { padding-top: 48px; }
  .section-heading .eyebrow::before,
  .why-tutor-card .eyebrow::before,
  .about-teaching-heading .eyebrow::before {
    margin-bottom: 10px;
  }
}

/* V12: integrated full-width footer, balanced CTA columns and updated About Me details */
.final-cta-inner {
  min-height: 0;
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .72fr) minmax(260px, .8fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: center;
}
.final-cta .cta-copy {
  max-width: 610px;
}
.final-cta .cta-copy p:last-child {
  margin-bottom: 0;
}
.final-cta .cta-actions {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}
.cta-footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: center;
  text-align: right;
  color: #c9d8f5;
  font-size: .84rem;
  line-height: 1.5;
}
.cta-footer-meta p {
  margin: 0;
}
.cta-footer-brand {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  font-size: .98rem;
}
.cta-footer-meta .cta-copyright {
  color: #aebfe3;
}

/* The old white footer is intentionally removed in V12. */
.site-footer { display: none !important; }

@media (max-width: 1040px) {
  .final-cta-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr);
  }
  .cta-footer-meta {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.16);
    justify-items: start;
    text-align: left;
    align-items: center;
  }
  .cta-footer-meta p:nth-of-type(1) { text-align: center; justify-self: center; }
  .cta-footer-meta .cta-copyright { justify-self: end; text-align: right; }
}

@media (max-width: 720px) {
  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 38px;
    padding-bottom: 30px;
  }
  .final-cta .cta-actions {
    max-width: none;
    justify-self: stretch;
  }
  .cta-footer-meta {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 22px;
    justify-items: center;
    text-align: center;
  }
  .cta-footer-meta p:nth-of-type(1),
  .cta-footer-meta .cta-copyright {
    justify-self: center;
    text-align: center;
  }
}

/* V13: true full-width contact footer */
.final-cta {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.final-cta .final-cta-inner.section-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px clamp(32px, 5vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .8fr) minmax(300px, .9fr);
  gap: clamp(44px, 5vw, 96px);
  align-items: center;
}

.final-cta .cta-copy {
  max-width: 720px;
}
.final-cta .cta-copy h2 {
  max-width: 700px;
}
.final-cta .cta-actions {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}
.final-cta .cta-footer-meta {
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

@media (max-width: 1100px) {
  .final-cta .final-cta-inner.section-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    padding-inline: clamp(28px, 4vw, 56px);
  }
  .final-cta .cta-footer-meta {
    grid-column: 1 / -1;
    max-width: none;
    grid-template-columns: auto 1fr auto;
    justify-self: stretch;
    justify-items: start;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.16);
    text-align: left;
  }
  .final-cta .cta-footer-meta p:nth-of-type(1) {
    justify-self: center;
    text-align: center;
  }
  .final-cta .cta-footer-meta .cta-copyright {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 720px) {
  .final-cta .final-cta-inner.section-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 22px 30px;
  }
  .final-cta .cta-actions,
  .final-cta .cta-footer-meta {
    max-width: none;
    justify-self: stretch;
  }
  .final-cta .cta-footer-meta {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 22px;
    justify-items: center;
    text-align: center;
  }
  .final-cta .cta-footer-meta p:nth-of-type(1),
  .final-cta .cta-footer-meta .cta-copyright {
    justify-self: center;
    text-align: center;
  }
}


/* V14: simplified, genuinely full-width contact footer */
.final-cta {
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--blue-deep), #2457c8);
}

.final-cta .final-cta-inner.section-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 54px clamp(34px, 6vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(64px, 9vw, 180px);
  align-items: center;
}

.final-cta .cta-copy {
  width: 100%;
  max-width: 820px;
}

.final-cta .cta-copy .eyebrow {
  margin-bottom: 18px;
}

.final-cta .cta-copy h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.65rem, 4.6vw, 5rem);
  line-height: 1.02;
}

.final-cta .cta-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.final-cta .cta-actions {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  display: grid;
  gap: 14px;
  align-content: center;
  text-align: center;
}

.final-cta .cta-actions .button {
  width: 100%;
  justify-content: center;
}

.final-cta .cta-trial {
  margin: 0 0 2px;
  color: #ffffff;
  font-size: .98rem;
  font-weight: 850;
  letter-spacing: .01em;
}

.final-cta .phone-link {
  justify-self: center;
}

/* No separate footer metadata or copyright strip. */
.final-cta .cta-footer-meta,
.site-footer {
  display: none !important;
}

@media (max-width: 900px) {
  .final-cta .final-cta-inner.section-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 46px 28px;
  }
  .final-cta .cta-copy,
  .final-cta .cta-copy h2,
  .final-cta .cta-copy > p:last-child,
  .final-cta .cta-actions {
    max-width: none;
  }
  .final-cta .cta-actions {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .final-cta .final-cta-inner.section-shell {
    padding: 38px 20px;
    gap: 28px;
  }
  .final-cta .cta-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }
}


/* V16: approved black-jumper portrait + smaller About Me hero image */
.profile-photo-thumb {
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-page-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .5fr);
  gap: clamp(44px, 5vw, 72px);
}

.about-photo-card {
  width: min(100%, 350px);
  max-width: 350px;
  justify-self: end;
  border-radius: 28px;
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
}

@media (max-width: 960px) {
  .about-page-hero {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    width: min(100%, 340px);
    max-width: 340px;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .about-photo-card {
    width: min(86vw, 310px);
    max-width: 310px;
  }
}
