/* =========================================================================
   BananaLearn Homepage — brand layer (Fraunces + Nunito Sans, cream/ink/yellow)
   Scoped to body.page-home; loads after assets/styles.css
   Structure matches index baseline; typography, colour, spacing, hero image only.
   ========================================================================= */

body.page-home {
  --ink: #1A1A1A;
  --body: #555555;
  --muted: #999999;
  --cream: #FAF7F2;
  --yellow: #F5C518;
  --yellow-soft: #FFFAEB;
  --white: #FFFFFF;
  --f-display: 'Fraunces', Georgia, serif;
  --f-ui: 'Nunito Sans', system-ui, sans-serif;
  --r-card: 20px;
  --r-pill: 100px;
  --r-icon: 14px;
  --r-img: 28px;
  --s1: 0 1px 3px rgba(0,0,0,0.05), 0 6px 24px rgba(0,0,0,0.06);
  --s2: 0 4px 16px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.10);
  --s3: 0 8px 40px rgba(0,0,0,0.14);
  --s-nav: 0 1px 0 rgba(0,0,0,0.07);
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap: 16px;
  --gap-card: 20px;
  --pad-card: 32px;
  --pad-section: 48px;
  --section-pad: 100px;
  --section-pad-sm: 64px;
  --section-lg: 120px;
  --section-label-yellow: color-mix(in srgb, var(--yellow) 78%, var(--ink));
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.65;
}

body.page-home h1,
body.page-home h2 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

body.page-home h3,
body.page-home h4 {
  font-family: var(--f-ui);
  font-weight: 800;
  color: var(--ink);
}

body.page-home .section-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

body.page-home .section-sub {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

body.page-home .section-label {
  display: block !important;
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--section-label-yellow);
  margin-bottom: 12px;
  line-height: 1.3;
}

body.page-home .section-label::before {
  display: none !important;
}

/* Nav */
body.page-home .nav {
  height: 72px;
  padding: 0 var(--pad-section);
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--s-nav);
  border-bottom: none;
}

body.page-home .nav::before {
  display: none;
}

body.page-home .nav-logo,
body.page-home .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.page-home .nav-logo .logo-mark,
body.page-home .nav-logo svg.logo-mark {
  width: 34px;
  height: 34px;
  max-width: none;
}

body.page-home .nav-logo .logo-wordmark {
  font-family: var(--f-ui);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

body.page-home .footer-logo .logo-mark,
body.page-home .footer-logo svg.logo-mark {
  width: 34px;
  height: 34px;
  max-width: none;
}

@media (max-width: 768px) {
  body.page-home .nav-logo {
    gap: 6px;
  }
  body.page-home .nav-logo .logo-mark,
  body.page-home .nav-logo svg.logo-mark {
    width: 26px;
    height: 26px;
  }
  body.page-home .nav-logo .logo-wordmark {
    font-size: 18px;
  }
}

body.page-home .footer-logo .logo-wordmark {
  font-family: var(--f-ui);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}

body.page-home .nav-link {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}

body.page-home .nav-link:hover {
  color: var(--ink);
}

body.page-home .nav-cta {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  box-shadow: none;
}

body.page-home .nav-cta:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  background: var(--yellow);
}

body.page-home .nav-hamburger span {
  background: var(--ink);
}

/* Hero — tight vertical rhythm (30–40px between blocks) */
body.page-home .hero {
  background: var(--cream) !important;
  background-image: none !important;
  padding: 40px 0 40px !important;
  min-height: 0;
  overflow: visible;
}

body.page-home .hero::before,
body.page-home .hero-punch-strip,
body.page-home .hero-grid,
body.page-home .hero-glow-1,
body.page-home .hero-glow-2,
body.page-home .hero-dots,
body.page-home .hero-parallax-layer,
body.page-home .hero-scanline {
  display: none !important;
}

body.page-home .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px 40px !important;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--pad-section);
}

body.page-home .hero-content {
  min-width: 0;
}

body.page-home .hero-lead {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Headline and image share one row — top-aligned on desktop */
body.page-home .hero-lead-headline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  min-height: 0;
}

@media (min-width: 861px) {
  body.page-home .hero-lead-headline {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px 32px;
  }

  body.page-home .hero-lead-headline picture {
    order: 0;
  }
}

body.page-home .hero-lead-headline .hero-h1 {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  align-self: flex-start;
}

body.page-home .hero-lead .hero-sub {
  max-width: 520px;
  margin-bottom: 0;
}

body.page-home .hero-lead .hero-value-strip {
  margin-bottom: 0;
}

body.page-home .hero-descriptor {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 !important;
}

body.page-home .hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 !important;
  max-width: 520px;
}

body.page-home .hero-h1 em {
  font-style: italic;
  color: var(--yellow);
  -webkit-text-fill-color: var(--yellow);
  background: none;
}

/* Legacy homepage.css clip reveal can hide the h1 on mobile */
body.page-home .hero-h1.hero-h1--reveal {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.page-home .hero-sub {
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 !important;
}

body.page-home .hero-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}

body.page-home .hero-lead .hero-value-strip {
  margin-bottom: 0 !important;
}

body.page-home .hero-value-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--yellow-soft);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

body.page-home .hero-lead-headline picture {
  flex: 0 0 auto;
  width: min(42%, 380px);
  max-width: 380px;
  margin: 0;
  display: block;
  align-self: flex-start;
}

body.page-home .hero-lead-headline .hero-student-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  min-height: unset;
  display: block;
  border-radius: var(--r-img);
  object-fit: contain !important;
  object-position: center top;
  box-shadow: var(--s1);
}

/* Form card */
body.page-home .hero .form-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 28px 24px 20px;
  box-shadow: var(--s3);
  border: none;
}

body.page-home .form-heading {
  font-family: var(--f-ui);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--gap-sm);
}

body.page-home .form-trust-quote {
  background: var(--yellow-soft) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  font-family: var(--f-ui) !important;
  font-size: 13px !important;
  color: var(--ink) !important;
}

body.page-home .form-trust-stars {
  display: block;
  color: var(--yellow) !important;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

body.page-home .form-trust-attr {
  color: var(--muted) !important;
  opacity: 1 !important;
}

body.page-home .form-sub {
  font-size: 14px;
  color: var(--muted);
}

body.page-home .form-group label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.page-home .form-group input,
body.page-home .form-group select,
body.page-home .phone-row {
  border: none;
  box-shadow: var(--s1);
  border-radius: 14px;
  background: var(--cream);
}

body.page-home .form-submit,
body.page-home .demo-form-continue {
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: var(--r-pill);
  font-weight: 800;
  box-shadow: none;
}

body.page-home .demo-form-progress-fill {
  background: var(--yellow) !important;
}

body.page-home .demo-form-progress-track {
  background: rgba(0,0,0,0.08) !important;
}

body.page-home .hero-form-faq-item {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  padding: 12px 0 !important;
}

body.page-home .hero-form-faq-q {
  font-family: var(--f-ui) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  background: none !important;
  border: none !important;
}

body.page-home .hero-form-faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--ink) !important;
}

body.page-home .hero-form-faq-icon::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
}

body.page-home .hero-form-faq-q[aria-expanded="true"] .hero-form-faq-icon::before {
  transform: rotate(45deg);
}

body.page-home .hero-form-faq-a {
  font-family: var(--f-ui) !important;
  font-size: 13px !important;
  color: var(--body) !important;
}

/* Gold ticker */
body.page-home .gold-ticker {
  display: block !important;
  background: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  margin: 0;
  transform: none;
  box-shadow: var(--s1);
}

body.page-home .gold-ticker-item,
body.page-home .gt-item {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}

body.page-home .gold-ticker-dot,
body.page-home .gt-sep {
  color: var(--ink);
  opacity: 0.45;
}

/* Parent question — cream, not green block */
body.page-home #parent-question,
body.page-home #parent-question.features-section {
  background: var(--cream) !important;
  padding: var(--section-pad) var(--pad-section) !important;
  text-align: center;
}

body.page-home #parent-question .section-title {
  color: var(--ink);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

body.page-home #parent-question .section-sub {
  color: var(--body);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

/* Sections */
body.page-home .features-section,
body.page-home .archetype-section,
body.page-home .testimonials-section,
body.page-home .trajectory-section {
  background: var(--cream) !important;
  background-image: none !important;
  padding: var(--section-pad) var(--pad-section) !important;
  border: none !important;
}

body.page-home .steps-section,
body.page-home .curriculum-section {
  background: var(--white) !important;
  background-image: none !important;
  padding: var(--section-pad) var(--pad-section) !important;
  border: none !important;
}

body.page-home .teacher-select-section {
  background: var(--cream) !important;
  background-image: none !important;
  border: none !important;
}

body.page-home .features-section::before,
body.page-home .teacher-select-section::before,
body.page-home .trajectory-section::before,
body.page-home .steps-section::before,
body.page-home .curriculum-section::before,
body.page-home .testimonials-section::before,
body.page-home .final-cta::before {
  display: none !important;
}

body.page-home section {
  border-top: none !important;
}

/* Archetypes */
body.page-home .archetype-section {
  text-align: center;
}

body.page-home .archetype-section .section-title {
  max-width: 600px;
  margin: 0 auto 48px;
}

body.page-home .archetype-grid {
  max-width: 1160px;
  margin: 0 auto;
}

body.page-home .archetype-card {
  background: var(--white);
  border: none !important;
  border-top: none !important;
  border-radius: var(--r-card);
  box-shadow: var(--s1);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-home .archetype-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--s2);
}

body.page-home .archetype-title {
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

body.page-home .archetype-body {
  font-size: 14px;
  color: var(--body);
}

/* Feature cards */
body.page-home .feature-card,
body.page-home .bento-card {
  background: var(--white) !important;
  border: none !important;
  border-left: none !important;
  border-radius: var(--r-card);
  box-shadow: var(--s1) !important;
}

body.page-home .feature-card::after,
body.page-home .bento-card::after {
  display: none !important;
}

body.page-home .feature-title {
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

body.page-home .feature-desc {
  font-size: 14px;
  color: var(--body);
}

body.page-home .bento-stat-label,
body.page-home .ts-label {
  color: var(--section-label-yellow) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
}

/* Curriculum */
body.page-home .grade-pill {
  border: none;
  box-shadow: var(--s1);
  background: var(--cream);
  color: var(--body);
}

body.page-home .grade-pill.active {
  background: var(--ink);
  color: var(--white);
}

body.page-home .grade-preview-card {
  background: var(--cream);
  border: none !important;
  box-shadow: var(--s1);
  border-radius: var(--r-card);
}

body.page-home .gpc-subject-card {
  background: var(--white);
  border: none;
  box-shadow: var(--s1);
  border-radius: var(--r-card);
}

body.page-home .gpc-subject-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  padding: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 800;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.2s ease;
}

body.page-home .gpc-subject-cta:hover {
  background: transparent !important;
  color: var(--body) !important;
}

body.page-home .gpc-chip {
  background: var(--yellow-soft);
  color: var(--ink);
}

body.page-home .gpc-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: var(--r-pill);
}

body.page-home .gpc-cta-secondary {
  background: rgba(0,0,0,0.06) !important;
  color: var(--body) !important;
}

/* Testimonials */
body.page-home .testimonial-card {
  background: var(--white);
  border: none;
  box-shadow: var(--s1);
  border-radius: var(--r-card);
}

body.page-home .testimonial-card::before {
  color: var(--yellow);
  font-family: var(--f-display);
}

body.page-home .t-stars {
  color: var(--yellow);
}

body.page-home .t-text {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ink);
}

body.page-home .t-avatar-img {
  border: 2px solid var(--cream);
  box-shadow: var(--s1);
  background: var(--white);
}

/* Steps */
body.page-home .steps-section .steps-title,
body.page-home .steps-section .step-title {
  color: var(--ink);
}

body.page-home .steps-section .steps-sub,
body.page-home .steps-section .step-desc {
  color: var(--body);
}

body.page-home .step-circle {
  background: var(--ink) !important;
  border-color: var(--white);
}

/* Teacher selection — vertical timeline (5-col grid is too cramped in content column) */
body.page-home .teacher-select-section .ts-inner {
  padding: var(--section-pad) var(--pad-section) !important;
  max-width: 1160px;
  margin: 0 auto;
}

body.page-home .teacher-select-section .ts-layout {
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  align-items: center !important;
}

body.page-home .teacher-select-section .ts-header {
  margin-bottom: 32px;
  max-width: none;
}

body.page-home .teacher-select-section .ts-rhetorical-pause {
  display: none;
}

body.page-home .teacher-select-section .ts-title {
  color: var(--ink);
}

body.page-home .teacher-select-section .ts-sub,
body.page-home .teacher-select-section .ts-step-desc {
  color: var(--body);
}

body.page-home .teacher-select-section .ts-flow {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  position: relative;
  padding-left: 0;
}

body.page-home .teacher-select-section .ts-connector {
  display: none !important;
}

body.page-home .teacher-select-section .ts-step {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 16px !important;
  padding: 16px 0 !important;
  position: relative;
  z-index: 1;
}

body.page-home .teacher-select-section .ts-step:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.page-home .teacher-select-section .ts-step-icon {
  flex-shrink: 0;
  margin: 0 !important;
  width: 52px;
  height: 52px;
  font-size: 22px;
  background: var(--yellow-soft) !important;
  border: none !important;
  color: var(--ink);
}

body.page-home .teacher-select-section .ts-step:hover .ts-step-icon {
  background: var(--yellow) !important;
}

body.page-home .teacher-select-section .ts-step-body {
  flex: 1;
  min-width: 0;
  gap: 4px !important;
}

body.page-home .teacher-select-section .ts-step-name {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

body.page-home .teacher-select-section .ts-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

body.page-home .teacher-select-section .ts-photo {
  height: auto;
  min-height: 320px;
  max-height: 480px;
  border-radius: var(--r-img);
  box-shadow: var(--s2);
}

body.page-home .ts-step-icon {
  background: var(--yellow-soft);
  border: none;
  color: var(--ink);
}

body.page-home .teacher-select-section .ts-stat-callout {
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
  padding: 20px 24px;
  background: var(--yellow-soft) !important;
  border: none !important;
  border-radius: var(--r-card);
  box-shadow: none !important;
}

body.page-home .teacher-select-section .ts-stat-num {
  flex-shrink: 0;
  font-family: var(--f-ui);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink) !important;
  white-space: nowrap;
}

body.page-home .teacher-select-section .ts-stat-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body) !important;
  max-width: none;
}

/* Journey */
body.page-home .day90-card {
  background: var(--white);
  border: none;
  box-shadow: var(--s1);
  border-radius: var(--r-card);
}

body.page-home .day90-card-title,
body.page-home .day90-bullets li,
body.page-home .day90-bar-label {
  color: var(--ink) !important;
}

body.page-home .day90-bullets li::before {
  color: var(--yellow) !important;
}

body.page-home .day90-fill {
  background: var(--yellow) !important;
}

body.page-home .day90-month-badge {
  background: var(--yellow-soft) !important;
  color: var(--ink) !important;
  border: none;
}

/* Final CTA */
body.page-home .final-cta {
  background: var(--ink) !important;
  background-image: none !important;
  padding: var(--section-pad) var(--pad-section);
}

body.page-home .final-cta .hero-grid,
body.page-home .final-cta .hero-glow-1 {
  display: none !important;
}

body.page-home .final-cta .section-label,
body.page-home .final-cta .cta-label {
  color: var(--yellow);
}

body.page-home .final-cta .section-title,
body.page-home .final-cta .cta-title {
  color: var(--white);
  max-width: 640px;
}

body.page-home .final-cta .cta-proof {
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
  font-weight: 400;
  font-size: 15px;
}

body.page-home .final-cta .cta-btn-primary,
body.page-home .cta-primary-btn {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border-radius: var(--r-pill);
  font-weight: 800;
  border: none;
  box-shadow: none;
}

body.page-home .final-cta .cta-btn-primary:hover,
body.page-home .cta-primary-btn:hover {
  filter: brightness(0.92);
}

body.page-home .final-cta .cta-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--r-pill);
  border: none;
}

/* Footer */
body.page-home .footer-full {
  background: var(--ink);
  border-top: none;
  padding: 48px var(--pad-section) 32px;
}

body.page-home .footer-full::before {
  display: none;
}

body.page-home .footer-tagline {
  color: rgba(255,255,255,0.38);
}

body.page-home .footer-col-title {
  color: rgba(255,255,255,0.28);
  font-size: 10px;
  letter-spacing: 0.12em;
}

body.page-home .footer-col a,
body.page-home .footer-address,
body.page-home .footer-hours {
  color: rgba(255,255,255,0.5);
}

body.page-home .footer-col a:hover {
  color: var(--white);
}

body.page-home .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
}

body.page-home .footer-copy {
  color: rgba(255,255,255,0.28);
}

/* Sticky + WhatsApp — visibility toggled via .sticky-demo-btn--active (homepage.css) */
body.page-home .sticky-demo-btn {
  position: fixed;
  z-index: 9999;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--s2);
  border: none;
}

body.page-home .sticky-demo-btn.sticky-demo-btn--active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.page-home .sticky-demo-btn:hover {
  filter: brightness(0.92);
  background: var(--yellow);
}

@media (max-width: 1024px) {
  body.page-home .sticky-demo-btn {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    font-size: 16px;
    z-index: 110;
    box-shadow: var(--s2);
  }

  body.page-home:has(.sticky-demo-btn--active) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.page-home .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}

body.page-home .form-group input:focus,
body.page-home .form-group select:focus,
body.page-home .phone-row:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: var(--s1) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  body.page-home .nav {
    justify-content: space-between;
    gap: 12px;
  }

  body.page-home .nav-links {
    display: none !important;
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    z-index: 120;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--cream);
    border-radius: 16px;
    box-shadow: var(--s2);
  }

  body.page-home .nav-links.open {
    display: flex !important;
  }

  body.page-home .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }

  body.page-home .nav-cta {
    display: none !important;
  }

  body.page-home .hero {
    padding: 32px 0 32px !important;
  }

  body.page-home .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 32px !important;
  }

  body.page-home .hero-content {
    display: block !important;
    width: 100%;
    order: 1;
  }

  body.page-home .hero .form-card {
    order: 2;
    width: 100%;
  }

  body.page-home .hero-lead {
    gap: 24px;
    width: 100%;
  }

  body.page-home .hero-lead-headline picture {
    width: 100%;
    max-width: min(360px, 100%);
  }

  body.page-home .hero-lead-headline .hero-student-image {
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  body.page-home {
    --pad-section: 24px;
    --section-pad: 64px;
    --section-lg: 88px;
  }

  body.page-home .hero {
    padding: 32px 0 32px !important;
    overflow: visible !important;
  }

  body.page-home .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 var(--pad-section);
  }

  body.page-home .hero-content {
    display: block !important;
    width: 100%;
    order: 1;
  }

  body.page-home .hero .form-card {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  body.page-home .hero-lead {
    gap: 20px;
    width: 100%;
  }

  body.page-home .nav {
    padding: 0 24px;
  }

  body.page-home .archetype-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.page-home .hero-h1 {
    font-size: clamp(34px, 8vw, 44px);
    max-width: 100%;
  }

  body.page-home .hero-sub {
    max-width: 100%;
  }

  body.page-home .hero-lead-headline {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  body.page-home .hero-lead-headline .hero-h1 {
    align-self: stretch;
    width: 100%;
  }

  body.page-home .hero-lead-headline picture {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body.page-home .hero-lead-headline .hero-student-image {
    width: 100%;
    height: auto !important;
    max-height: 220px !important;
    margin: 0;
  }

  body.page-home .teacher-select-section .ts-stat-callout {
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
  }

  body.page-home .teacher-select-section .ts-stat-num {
    font-size: 24px;
  }

  body.page-home .teacher-select-section .ts-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  body.page-home .teacher-select-section .ts-media-col {
    order: -1;
  }

  body.page-home .teacher-select-section .ts-photo {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 1024px) {
  body.page-home {
    --pad-section: 24px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  body.page-home .nav-cta {
    font-size: 12px;
    padding: 8px 14px;
    white-space: normal;
    max-width: 180px;
    line-height: 1.2;
    text-align: center;
  }

  /* Cancel legacy notebook-spine inset (homepage.css build omits some mobile footer rules) */
  body.page-home .trust-bar,
  body.page-home .features-section,
  body.page-home .archetype-section,
  body.page-home .teacher-select-section,
  body.page-home .teacher-select-section .ts-inner,
  body.page-home .trajectory-section,
  body.page-home .steps-section,
  body.page-home .curriculum-section,
  body.page-home .games-section,
  body.page-home .testimonials-section,
  body.page-home .final-cta,
  body.page-home .footer-full {
    padding-left: var(--pad-section) !important;
    padding-right: var(--pad-section) !important;
  }

  body.page-home .hero {
    padding: 32px 0 44px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  body.page-home .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    padding-left: var(--pad-section) !important;
    padding-right: var(--pad-section) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 24px !important;
  }

  body.page-home .hero-content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.page-home .hero-lead,
  body.page-home .hero-lead-headline {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.page-home .hero-lead-headline {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.page-home .hero-lead-headline picture {
    order: -1 !important;
  }

  body.page-home .hero-lead-headline .hero-h1 {
    order: 0 !important;
  }

  body.page-home .hero-lead-headline .hero-student-image {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 0 16px !important;
  }

  body.page-home .hero-h1,
  body.page-home .hero-sub,
  body.page-home #hero-sub {
    min-width: 0 !important;
  }

  body.page-home .form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.page-home .footer-full {
    padding: 32px var(--pad-section) 32px !important;
  }

  body.page-home .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  body.page-home .footer-brand-col,
  body.page-home .footer-col {
    min-width: 0;
    max-width: 100%;
  }

  body.page-home .footer-tagline {
    max-width: 100% !important;
  }

  body.page-home .footer-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-home .hero-h1,
  body.page-home .hero-sub,
  body.page-home #hero-sub,
  body.page-home .hero-lead .hero-sub {
    max-width: 100% !important;
  }

  body.page-home .hero-sub,
  body.page-home #hero-sub {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    line-clamp: unset !important;
  }
}

@media (max-width: 520px) {
  body.page-home .archetype-grid {
    grid-template-columns: 1fr;
  }
}

