/* design-04 warm editorial — single page interactions */

/* Font fallbacks if CDN blocked */
body {
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
}
.font-\[\'Fraunces\'\], .font-fraunces {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Lazy-loaded images: reserve space, fade in */
img[loading="lazy"] {
  content-visibility: auto;
}
img.lazy-loaded {
  animation: imgFadeIn 0.4s ease;
}
@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, #b45309, #d97706, #ea580c);
  transition: width 0.1s linear;
}

.section-nav a {
  position: relative;
  transition: color 0.25s ease;
}
.section-nav a.active {
  color: #92400e;
  font-weight: 700;
}
.section-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b45309;
  border-radius: 2px;
}

.flow-bleed {
  position: relative;
}
.flow-bleed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(60px, 10vw, 120px);
  background: linear-gradient(to bottom, transparent, var(--bleed-to, #fff));
  pointer-events: none;
}

/* Top wave — optional cream-to-cream transition (legacy) */
.quote-about-band {
  position: relative;
}
.section-wave-top {
  display: block;
  width: 100%;
  height: clamp(3rem, 6vw, 5rem);
  line-height: 0;
  background: #FFFBF5;
}

.course-tab {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.course-tab.active {
  background: #b45309;
  color: #fff;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.3);
  transform: translateY(-2px);
}

/* ─── Hierarchical course navigator ─── */
.course-navigator {
  position: relative;
  min-height: 16rem;
}

.course-back-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.course-back-btn.visible { display: inline-flex; }
.course-back-btn:hover { background: #fffbeb; }

.course-level {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.course-level.active { display: grid; }

.course-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  min-height: 9rem;
  padding: 1.75rem;
  text-align: left;
  background: #fff;
  border: 2px solid #fde68a;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-picker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(180, 83, 9, 0.2);
  border-color: #fbbf24;
}
.course-picker-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
}
.course-picker-card p {
  font-size: 0.8125rem;
  color: #78716c;
  line-height: 1.5;
}
.course-picker-card .course-picker-arrow {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-enroll-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-height: 9rem;
  padding: 1.75rem;
  background: #fff;
  border: 2px solid #fde68a;
  border-radius: 1.5rem;
  animation: panelIn 0.4s ease;
}
.course-enroll-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
}
.course-enroll-card .enroll-btn {
  margin-top: auto;
  display: inline-flex;
  padding: 0.65rem 1.5rem;
  background: #b45309;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.course-enroll-card .enroll-btn:hover { background: #92400e; }

.program-course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 14rem;
  padding: 2rem;
  border-radius: 1.5rem;
  color: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.program-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.25);
}
.program-course-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.program-course-card p {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.55;
}
.program-course-card a {
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.program-course-card a:hover { background: rgba(255, 255, 255, 0.32); }
.program-card-matric { background: linear-gradient(145deg, #b45309, #92400e); }
.program-card-inter { background: linear-gradient(145deg, #047857, #065f46); }
.program-card-mdcat { background: linear-gradient(145deg, #7c3aed, #5b21b6); }

.course-panel {
  display: none;
  animation: panelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.course-panel.active { display: grid; }

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

.feature-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover,
.feature-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(180, 83, 9, 0.2);
  border-color: #fde68a;
}

.pricing-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pricing-card:hover {
  transform: scale(1.02);
}

.savings-pop {
  animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.faq-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}
.faq-item.hidden-faq { display: none; }

#scroll-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-compact #main-header {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 24px -8px rgba(28, 25, 23, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .course-panel { animation: none; }
}

/* ─── Site logo ─── */
.site-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}
.site-logo-sm {
  height: 2rem;
  width: auto;
  object-fit: contain;
}
.site-logo-lg {
  height: 3.25rem;
  width: auto;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .site-logo { height: 2.75rem; }
}

/* ─── Pill testimonial wall (static, warm theme) ─── */
.reviews-heading-line {
  width: 3rem;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, #d97706, transparent);
}

.pill-wall {
  margin-top: 0.5rem;
  max-width: 68rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.pill-wall-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.22);
  box-shadow:
    0 4px 24px rgba(120, 53, 15, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.pill-band-warm {
  position: relative;
  padding: 1.15rem 1rem 1.35rem;
  background:
    radial-gradient(ellipse 90% 80% at 10% 0%, rgba(253, 230, 138, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(0, 0, 0, 0.12), transparent 50%),
    linear-gradient(145deg, #7c2d12 0%, #92400e 42%, #b45309 100%);
}
.pill-band-warm::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 14' preserveAspectRatio='none'%3E%3Cpath fill='%23fffbeb' d='M0,14 L0,6 Q360,14 720,4 T1440,8 L1440,14 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.pill-band-light {
  padding: 1.1rem 1rem 1.15rem;
  background: linear-gradient(180deg, #fffbeb 0%, #FFFBF5 100%);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.pill-row-stagger { padding-left: clamp(0.75rem, 4vw, 2.5rem); }

.pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pill-text {
  padding: 0.45rem 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Warm band — cream & gold pills on dark amber */
.pill-band-warm .pill-text {
  background: rgba(255, 251, 245, 0.96);
  color: #78350f;
  border: 1px solid rgba(253, 230, 138, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.pill-band-warm .pill-text-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #7c2d12;
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Light band — white & outlined pills on cream */
.pill-band-light .pill-text {
  background: #ffffff;
  color: #92400e;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 6px rgba(180, 83, 9, 0.08);
}
.pill-band-light .pill-text-outline {
  background: transparent;
  color: #b45309;
  border: 1.5px solid rgba(217, 119, 6, 0.45);
  box-shadow: none;
}

.pill-band-warm .pill-text:hover,
.pill-band-light .pill-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.16);
}

/* Accent dots instead of empty deco pills */
.pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  flex-shrink: 0;
  align-self: center;
}
.pill-dot-gold   { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25); }
.pill-dot-cream  { background: #fef3c7; box-shadow: 0 0 0 3px rgba(254, 243, 199, 0.35); }
.pill-dot-amber  { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }

@media (min-width: 768px) {
  .pill-text { font-size: 0.8125rem; padding: 0.5rem 1.125rem; }
  .pill-band-warm { padding: 1.25rem 1.25rem 1.5rem; }
  .pill-band-light { padding: 1.2rem 1.25rem 1.25rem; }
}

@media (max-width: 640px) {
  .pill-row-stagger { padding-left: 0; }
  .pill-text { font-size: 0.6875rem; padding: 0.4rem 0.875rem; }
  .pill-dot { width: 0.35rem; height: 0.35rem; }
}

/* ─── Global flags marquee ─── */
.flags-marquee-strip {
  max-width: 68rem;
  margin: 1rem auto 0;
  padding: 0.875rem 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
}

.flags-marquee {
  mask-image: none;
  -webkit-mask-image: none;
}

.flags-marquee-track {
  gap: 0;
  animation-duration: 55s;
}

.flag-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 5.75rem;
  padding: 0 1.25rem;
  text-align: center;
}

.flag-item img {
  width: 3.25rem;
  height: 2.15rem;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.flag-item span {
  font-size: 0.6875rem;
  line-height: 1.2;
  font-weight: 500;
  color: #1c1917;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .flags-marquee-track { animation: none; }
  .flags-marquee .marquee-track { flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ─── Light footer (logo visibility) ─── */
.site-footer {
  background: #fffbeb;
  color: #44403c;
  border-top: 1px solid #fde68a;
  position: relative;
}
.site-footer > .max-w-7xl {
  position: relative;
  z-index: 1;
}
.site-footer h4 {
  color: #1c1917;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: #92400e; transition: color 0.2s ease; }
.site-footer a:hover { color: #b45309; }
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #fde68a;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.site-footer .footer-social a img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.site-footer .footer-social a:hover {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.12);
}

/* Contact section — same social icon buttons */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #fde68a;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-social a img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.footer-social a:hover {
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.12);
}

.wa-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  background: #25d366;
  border-radius: 9999px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
.wa-float img { width: 2rem; height: 2rem; }

.nav-btn-outline {
  padding: 0.5rem 1.125rem;
  border: 2px solid #b45309;
  color: #92400e;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-btn-outline:hover { background: #fffbeb; }
.nav-btn-solid {
  padding: 0.5rem 1.125rem;
  background: #b45309;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-btn-solid:hover { background: #92400e; }

/* ─── Section background patterns (waves & rays) ─── */
.section-pattern {
  position: relative;
  isolation: isolate;
}
.section-pattern > * {
  position: relative;
  z-index: 1;
}
.section-pattern::before,
.section-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Shared SVG textures */
.section-pattern {
  --sp-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M0 60 Q60 45 120 60 T240 60' fill='none' stroke='%23d97706' stroke-width='0.7' opacity='0.14'/%3E%3Cpath d='M0 90 Q60 75 120 90 T240 90' fill='none' stroke='%23b45309' stroke-width='0.7' opacity='0.1'/%3E%3Cpath d='M0 30 Q60 15 120 30 T240 30' fill='none' stroke='%23f59e0b' stroke-width='0.7' opacity='0.1'/%3E%3C/svg%3E");
  --sp-rays: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg stroke='%23d97706' stroke-width='0.6' opacity='0.09'%3E%3Cline x1='200' y1='200' x2='400' y2='0'/%3E%3Cline x1='200' y1='200' x2='400' y2='80'/%3E%3Cline x1='200' y1='200' x2='400' y2='160'/%3E%3Cline x1='200' y1='200' x2='400' y2='240'/%3E%3Cline x1='200' y1='200' x2='400' y2='320'/%3E%3Cline x1='200' y1='200' x2='400' y2='400'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero — sunburst rays + soft wave field */
.sp-hero::before {
  background:
    radial-gradient(ellipse 90% 70% at 92% 8%, rgba(251, 191, 36, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 88%, rgba(217, 119, 6, 0.09), transparent 52%);
}
.sp-hero::after {
  background-image: var(--sp-waves);
  background-size: 280px 140px;
  background-repeat: repeat;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 85%, transparent 100%);
}

/* White sections — alternating ray origins */
.sp-white-a::before {
  background:
    conic-gradient(from 225deg at 0% 0%, rgba(217, 119, 6, 0.07) 0deg, transparent 55deg),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(251, 191, 36, 0.05), transparent 55%);
}
.sp-white-a::after {
  background-image: var(--sp-rays);
  background-size: 420px 420px;
  background-position: -5% -10%;
  background-repeat: no-repeat;
  opacity: 0.55;
}

.sp-white-b::before {
  background:
    conic-gradient(from 45deg at 100% 20%, rgba(180, 83, 9, 0.06) 0deg, transparent 50deg),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(245, 158, 11, 0.06), transparent 50%);
}
.sp-white-b::after {
  background-image: var(--sp-waves);
  background-size: 260px 130px;
  background-position: center bottom;
  background-repeat: repeat-x;
  opacity: 0.35;
  mask-image: linear-gradient(to top, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, black, transparent 70%);
}

.sp-white-c::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(253, 230, 138, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 90%, rgba(217, 119, 6, 0.05), transparent 50%);
}
.sp-white-c::after {
  background-image: var(--sp-rays);
  background-size: 380px 380px;
  background-position: 105% 105%;
  background-repeat: no-repeat;
  opacity: 0.4;
  transform: rotate(180deg);
}

/* Cream sections — wave + arc variations */
.sp-cream-a::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 119, 6, 0.08), transparent 55%),
    radial-gradient(ellipse 35% 25% at 15% 85%, rgba(251, 191, 36, 0.06), transparent 50%);
}
.sp-cream-a::after {
  background-image: var(--sp-waves);
  background-size: 300px 150px;
  background-repeat: repeat;
  opacity: 0.3;
}

.sp-cream-b::before {
  background:
    conic-gradient(from 180deg at 100% 50%, rgba(180, 83, 9, 0.05) 0deg, transparent 45deg),
    radial-gradient(ellipse 60% 45% at 0% 30%, rgba(251, 191, 36, 0.07), transparent 55%);
}
.sp-cream-b::after {
  background-image: var(--sp-rays);
  background-size: 400px 400px;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  opacity: 0.45;
}

.sp-cream-c::before {
  background:
    radial-gradient(ellipse 65% 45% at 20% 10%, rgba(245, 158, 11, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(180, 83, 9, 0.06), transparent 50%);
}
.sp-cream-c::after {
  background-image: var(--sp-waves);
  background-size: 240px 120px;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.28;
  transform: scaleY(-1);
}

.sp-cream-d::before {
  background:
    radial-gradient(ellipse 55% 40% at 50% 50%, rgba(217, 119, 6, 0.04), transparent 65%);
}
.sp-cream-d::after {
  background-image: var(--sp-waves);
  background-size: 220px 110px;
  background-repeat: repeat;
  opacity: 0.22;
}

.sp-cream-e::before {
  background:
    conic-gradient(from 270deg at 0% 50%, rgba(217, 119, 6, 0.06) 0deg, transparent 40deg),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(251, 191, 36, 0.07), transparent 50%);
}
.sp-cream-e::after {
  background-image: var(--sp-rays);
  background-size: 360px 360px;
  background-position: -15% 100%;
  background-repeat: no-repeat;
  opacity: 0.38;
}

/* Trial CTA — light rays on dark amber */
.sp-trial::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(253, 230, 138, 0.15), transparent 50%);
}
.sp-trial::after {
  background-image: var(--sp-rays);
  background-size: 500px 500px;
  background-position: center -20%;
  background-repeat: no-repeat;
  opacity: 0.2;
  filter: brightness(2);
}

/* Footer — gentle wave fade */
.sp-footer::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(217, 119, 6, 0.06), transparent 55%);
}
.sp-footer::after {
  background-image: var(--sp-waves);
  background-size: 200px 100px;
  background-position: center top;
  background-repeat: repeat-x;
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  .section-pattern::before,
  .section-pattern::after { opacity: 0.15; }
}

/* ─── Mobile & touch-friendly layout ─── */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
body {
  overflow-x: clip;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 1279px) {
  #main-header > .max-w-7xl {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .header-compact #main-header > .max-w-7xl {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 767px) {
  main > section.py-20,
  .quote-about-band {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  main > section.py-10 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Typography */
  #hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
  }
  #hero p.text-lg {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }
  #hero .lg\:col-span-7.py-12 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  main h2.font-\[\'Fraunces\'\] {
    font-size: 1.65rem !important;
    line-height: 1.2;
  }
  #trial h2 { font-size: 1.75rem !important; }
  .quote-about-band blockquote {
    font-size: 1.2rem !important;
    line-height: 1.45;
  }

  /* Stats & cards */
  #programs .flex-col.lg\:flex-row { gap: 1.5rem; }
  #programs .grid.grid-cols-2 > div { padding: 1rem; }
  #programs .stat-number { font-size: 1.65rem !important; }
  .program-course-card {
    min-height: auto;
    padding: 1.35rem;
  }
  .program-course-card h3 { font-size: 1.2rem; }

  /* Course navigator */
  .course-level { grid-template-columns: 1fr; }
  .course-picker-card,
  .course-enroll-card {
    min-height: auto;
    padding: 1.25rem;
  }

  /* Pricing */
  .pricing-card .lg\:col-span-2 { padding: 1.35rem !important; }
  .pricing-card h3 { font-size: 1.25rem !important; }

  /* Features */
  #features .grid.lg\:grid-cols-2 { gap: 1.75rem; }

  /* Testimonial pills */
  .pill-text {
    white-space: normal;
    text-align: center;
    max-width: 17rem;
    line-height: 1.35;
  }
  .pill-wall-card { border-radius: 1rem; }
  .pill-band-warm,
  .pill-band-light { padding: 0.85rem 0.65rem; }

  /* Flags */
  .flag-item { width: 4.5rem; padding: 0 0.65rem; }
  .flag-item img { width: 2.5rem; height: 1.65rem; }
  .flag-item span { font-size: 0.5625rem; }

  /* FAQ */
  #faqs .faq-item { padding: 1rem !important; }
  #faqs .faq-item summary { font-size: 0.9rem; }

  /* Contact & enroll */
  #contact-form { padding: 1.25rem !important; }
  #enroll .flex-col.md\:flex-row { text-align: center; }
  #enroll .flex-col.md\:flex-row .md\:text-left { text-align: center; }

  /* Footer */
  .site-footer { padding-bottom: env(safe-area-inset-bottom, 0); }
  .site-footer > .max-w-7xl { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .site-footer .grid.md\:grid-cols-3 { gap: 2rem; text-align: center; }
  .site-footer .footer-social { justify-content: center; }

  /* Floating actions — safe areas, no overlap */
  .wa-float {
    width: 3.25rem;
    height: 3.25rem;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }
  .wa-float img { width: 1.65rem; height: 1.65rem; }
  #scroll-top {
    width: 2.65rem;
    height: 2.65rem;
    left: max(0.85rem, env(safe-area-inset-left, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    font-size: 1rem;
  }

  /* Lighter patterns on small screens */
  .section-pattern::before,
  .section-pattern::after { opacity: 0.65; }
  .sp-hero::after,
  .sp-white-a::after,
  .sp-cream-b::after { opacity: 0.25; }
}

@media (max-width: 639px) {
  .site-logo { height: 2rem; }
  #mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
  }
  #mobile-menu nav a[href^="https://wa.me"] {
    margin-top: 0.35rem;
    padding: 0.65rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    justify-content: center;
    font-weight: 600;
  }

  .nav-btn-outline,
  .nav-btn-solid {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
  }

  #hero .ill-pod { padding: 0.75rem; }
  #hero .absolute.w-64,
  #hero .absolute.w-32 { display: none; }

  .pill-row { gap: 0.4rem; }
  .pill-row-stagger { padding-left: 0; }

  #careers .p-12 { padding: 1.5rem !important; }
}

@media (max-width: 380px) {
  .pill-text { max-width: 14rem; font-size: 0.625rem; }
  #programs .grid.grid-cols-2 { gap: 0.5rem; }
}

/* ─── Subpages & multi-step forms ─── */
.sp-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.sp-container-narrow { max-width: 48rem; }
.sp-container-medium { max-width: 56rem; }

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading .eyebrow {
  font-style: italic;
  color: #b45309;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}
.section-heading h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #1c1917;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-heading p {
  color: #57534e;
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.65;
}
.section-heading-line {
  width: 4rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, #d97706, transparent);
}

.subpage-hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
}
@media (min-width: 1024px) {
  .subpage-hero-split { grid-template-columns: 1.05fr 0.95fr; padding: 4rem 0 3rem; }
}
.subpage-hero-copy .eyebrow {
  font-style: italic;
  color: #b45309;
  margin-bottom: 0.75rem;
}
.subpage-hero-copy h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.08;
  color: #1c1917;
  margin-bottom: 1rem;
}
.subpage-hero-copy p {
  color: #57534e;
  line-height: 1.75;
  font-size: 1.02rem;
}
.subpage-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.subpage-hero-visual .ill-pod {
  background: linear-gradient(145deg, #fffbeb 0%, #fff 55%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(180, 83, 9, 0.12);
  max-width: 26rem;
}
.subpage-hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 5% auto auto;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
  border-radius: 9999px;
  filter: blur(8px);
  z-index: 0;
}
.subpage-hero-visual .ill-pod { position: relative; z-index: 1; }

.page-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #1c1917;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: #57534e;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.content-section { padding: 4rem 0; }
.content-section-alt { background: #fff; }
.content-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1.25rem;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 30px rgba(180, 83, 9, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(180, 83, 9, 0.1);
  border-color: #fbbf24;
}
.content-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  color: #78350f;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}
.content-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: #1c1917;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.content-card p { color: #57534e; line-height: 1.7; font-size: 0.9375rem; }
.content-grid-2, .content-grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .content-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .content-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.step-list { counter-reset: step; display: grid; gap: 1rem; }
.step-list li {
  list-style: none;
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 3.5rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.05);
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #d97706, #b45309);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list li strong { color: #1c1917; display: block; margin-bottom: 0.25rem; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
}
.tutoring-promo,
.cta-band {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(180, 83, 9, 0.08);
}
.tutoring-promo h2,
.cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  color: #1c1917;
  margin-bottom: 0.75rem;
}
.tutoring-promo p,
.cta-band p { color: #57534e; line-height: 1.7; }

/* Form pages */
.form-page { padding-bottom: 4rem; }
.form-page-hero {
  background: linear-gradient(135deg, #7c2d12 0%, #92400e 42%, #b45309 100%);
  color: #fff;
  padding: 2.75rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}
.form-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(255,255,255,0.12), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(253,230,138,0.15), transparent 50%);
  pointer-events: none;
}
.form-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.form-page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.form-page-hero p { color: #fde68a; font-size: 0.9375rem; line-height: 1.6; }
.form-page-body {
  max-width: 48rem;
  margin: -1.75rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.form-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.form-step-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid #fde68a;
  color: #a8a29e;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
  appearance: none;
}
.form-step-pill.is-active {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}
.form-step-pill.is-done {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #92400e;
}
.form-step-pill.is-clickable {
  cursor: pointer;
}
.form-step-pill.is-clickable:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}
.form-step-pill.is-future,
.form-step-pill:disabled {
  cursor: default;
  opacity: 0.72;
}
.form-step-pill:disabled.is-active {
  opacity: 1;
}
.form-shell {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(120, 53, 15, 0.12);
}
@media (min-width: 640px) { .form-shell { padding: 2rem 2.25rem; } }
.form-progress-wrap { margin-bottom: 1.75rem; }
.form-progress-track {
  height: 0.55rem;
  background: #fef3c7;
  border-radius: 9999px;
  overflow: hidden;
}
.form-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #b45309, #ea580c);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-progress-label {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: #92400e;
  font-weight: 600;
  text-align: center;
}
.form-step { animation: formStepIn 0.35s ease; }
@keyframes formStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-step h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  color: #1c1917;
  margin-bottom: 0.35rem;
}
.form-step > p {
  color: #78716c;
  font-size: 0.875rem;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}
.form-field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-field > label:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: #44403c;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e7d5a8;
  border-radius: 0.85rem;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: #292524;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2392400e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.form-field input.field-invalid,
.form-field select.field-invalid,
.form-field textarea.field-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.form-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.check-grid { display: grid; gap: 0.55rem; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #f3e4b8;
  border-radius: 0.85rem;
  background: #fffdf7;
  font-size: 0.8125rem;
  color: #44403c;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.check-option:has(input.field-invalid) {
  border-color: #dc2626;
  background: #fef2f2;
}
.check-option:has(input:checked) {
  border-color: #d97706;
  background: linear-gradient(145deg, #fffbeb, #fff7ed);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}
.check-option input {
  margin-top: 0.2rem;
  accent-color: #b45309;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.form-declaration {
  margin-top: 1.75rem;
  padding: 1.25rem 1.15rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 1rem;
}
.form-declaration h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  color: #1c1917;
  margin-bottom: 0.35rem;
}
.form-declaration > p {
  color: #57534e;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}
.check-option-declaration {
  background: #fff;
  border-width: 2px;
}
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-row label,
.radio-card {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid #f3e4b8;
  border-radius: 9999px;
  background: #fffdf7;
  font-size: 0.875rem;
  color: #44403c;
  cursor: pointer;
  transition: all 0.2s ease;
}
.radio-row label:has(input:checked),
.radio-card:has(input:checked) {
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
}
.radio-row input { accent-color: #b45309; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #fde68a;
}
.form-actions[hidden] { display: none !important; }
.form-actions.is-first-step { justify-content: flex-end; }
.form-actions.is-first-step [data-action="back"],
.form-actions.is-first-step [data-action="submit"] { display: none !important; }
.form-actions.is-mid-step [data-action="submit"] { display: none !important; }
.form-actions.is-last-step [data-action="next"] { display: none !important; }
.form-btn[hidden] { display: none !important; }
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.form-btn-primary {
  background: linear-gradient(145deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.28);
}
.form-btn-primary:hover {
  background: linear-gradient(145deg, #b45309, #92400e);
  transform: translateY(-1px);
}
.form-btn-secondary {
  background: #fff;
  color: #92400e;
  border-color: #fde68a;
}
.form-btn-secondary:hover { background: #fffbeb; }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; pointer-events: none; }
.form-status {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}
.form-status-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.form-status-success { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; font-weight: 600; }
.form-success-panel { text-align: center; padding: 2.5rem 1rem; }
.form-success-panel h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.65rem;
  color: #1c1917;
  margin-bottom: 0.75rem;
}
.form-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #d1fae5, #6ee7b7);
  color: #047857;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Programs enrollment modal ─── */
body.enrollment-modal-open { overflow: hidden; }
.enrollment-modal[hidden] { display: none !important; }
.enrollment-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.enrollment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
}
.enrollment-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(180, 83, 9, 0.22);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .enrollment-modal-dialog { padding: 2rem; }
}

/* ─── Form submission review modal ─── */
body.form-review-open { overflow: hidden; }
.form-review-modal[hidden] { display: none !important; }
.form-review-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.form-review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
}
.form-review-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(180, 83, 9, 0.22);
  animation: formReviewIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes formReviewIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.form-review-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: #92400e;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.12);
}
.form-review-close:hover { background: #fffbeb; }
.form-review-header {
  padding: 1.75rem 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #fde68a;
}
.form-review-eyebrow {
  font-style: italic;
  color: #b45309;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.form-review-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.65rem;
  color: #1c1917;
  margin-bottom: 0.5rem;
}
.form-review-lead {
  color: #57534e;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 auto;
}
.form-review-body {
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.form-review-section {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.05);
}
.form-review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #fef3c7;
}
.form-review-section-head h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: #92400e;
}
.form-review-edit-step {
  border: none;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid #fde68a;
  transition: background 0.2s ease;
}
.form-review-edit-step:hover { background: #fef3c7; }
.form-review-grid { display: grid; gap: 0.65rem; }
.form-review-row {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: start;
}
.form-review-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #a8a29e;
}
.form-review-row dd {
  font-size: 0.9375rem;
  color: #1c1917;
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}
.form-review-empty {
  text-align: center;
  color: #78716c;
  padding: 1rem 0;
}
.form-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid #fde68a;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 0 1.5rem 1.5rem;
}
@media (max-width: 640px) {
  .form-review-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .form-review-actions { flex-direction: column-reverse; }
  .form-review-actions .form-btn { width: 100%; }
}

.legal-doc h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: #1c1917;
  margin: 1.75rem 0 0.5rem;
}
.legal-doc p, .legal-doc li { color: #57534e; line-height: 1.75; font-size: 0.9375rem; }
.legal-doc ol { padding-left: 1.25rem; display: grid; gap: 0.75rem; }
.subpage-nav a.is-current { color: #92400e; font-weight: 700; }
.subpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid #fde68a;
  background: #fff;
  transition: background 0.2s ease;
}
.subpage-back-link:hover { background: #fffbeb; }

@media (max-width: 639px) {
  .content-section { padding: 2.75rem 0; }
  .form-page-hero { padding: 2rem 0 2.75rem; }
  .form-shell { padding: 1.25rem; }
  .form-step-pill { font-size: 0.625rem; padding: 0.3rem 0.55rem; }
  .check-grid { grid-template-columns: 1fr; }
}
