/* Helvey Test Prep LLC | Warm Editorial Academic Design System */

:root {
  --bg-page: #FAF7FD;
  --bg-lavender: #F4ECFA;
  --bg-lilac: #DEC8EE;
  --bg-lilac-soft: #CDB2E2;
  --bg-mint: #F3FAF6;
  --bg-surface: #FFFFFF;

  --plum: #6E5084;
  --plum-dark: #4B335E;
  --plum-ink: #382647;
  --plum-muted: #644F75;
  --teal: #1F5E5B;
  --teal-hover: #174946;
  --mint-ink: #F7FCF9;

  --line-soft: rgba(110, 80, 132, 0.16);
  --line-strong: rgba(110, 80, 132, 0.34);
  --line-teal: rgba(31, 94, 91, 0.35);

  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Bitter', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--plum-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--plum);
  color: var(--mint-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(100% - 44px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 44px, 820px);
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--teal);
}

h1 {
  font-size: clamp(2.15rem, 4.7vw, 3.85rem);
  line-height: 1.07;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 1.13;
}

h3 {
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  line-height: 1.26;
}

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

.kicker {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.66;
  color: var(--plum-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1.5px solid rgba(31, 94, 91, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
  border-color: var(--teal);
}

.text-link--light {
  color: var(--mint-ink);
  border-bottom-color: rgba(247, 252, 249, 0.55);
}

.text-link--light:hover {
  border-bottom-color: var(--mint-ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--plum);
  color: var(--mint-ink);
}

.btn--primary:hover {
  background: var(--plum-dark);
}

.btn--lilac {
  background: var(--bg-lilac-soft);
  color: var(--plum-dark);
}

.btn--lilac:hover {
  background: #DFCBF0;
}

.btn--teal {
  background: var(--teal);
  color: var(--mint-ink);
}

.btn--teal:hover {
  background: var(--teal-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--mint-ink);
}

.btn--sm {
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

/* Header (clean wordmark, no box logo) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 253, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header--mint {
  background: rgba(243, 250, 246, 0.94);
}

.site-header--over-hero {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(43, 27, 58, 0.45) 0%, rgba(43, 27, 58, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header--over-hero.is-scrolled {
  background: rgba(250, 247, 253, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  width: min(100% - 44px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.1vw, 1.52rem);
  letter-spacing: -0.02em;
  color: var(--plum);
  transition: color 0.2s var(--ease);
}

.site-header--over-hero:not(.is-scrolled) .brand {
  color: var(--mint-ink);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--plum-ink);
  padding: 5px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.nav-link[aria-current="page"] {
  font-weight: 600;
}

.site-header--over-hero:not(.is-scrolled) .nav-link {
  color: rgba(247, 252, 249, 0.94);
}

.site-header--over-hero:not(.is-scrolled) .nav-link:hover,
.site-header--over-hero:not(.is-scrolled) .nav-link[aria-current="page"] {
  border-bottom-color: var(--bg-lilac-soft);
  color: var(--mint-ink);
}

.site-header--over-hero:not(.is-scrolled) .header-phone-btn {
  background: var(--bg-lilac-soft);
  color: var(--plum-dark);
}

.site-header--over-hero:not(.is-scrolled) .header-phone-btn:hover {
  background: #DFCBF0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--plum-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header--over-hero:not(.is-scrolled) .menu-toggle {
  border-color: rgba(247, 252, 249, 0.42);
  color: var(--mint-ink);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 20px 26px;
  z-index: 99;
  display: flex;
  flex-direction: column;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer a.mobile-nav-link {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--plum-dark);
}

.mobile-drawer a.mobile-nav-link[aria-current="page"] {
  color: var(--teal);
}

.mobile-drawer-actions {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

/* Editorial Home Hero */
.hero {
  position: relative;
  min-height: clamp(580px, 82vh, 740px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 68px;
  background: var(--plum-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 24%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(43, 27, 58, 0.84) 0%, rgba(74, 48, 95, 0.56) 52%, rgba(74, 48, 95, 0.18) 100%),
    linear-gradient(180deg, rgba(43, 27, 58, 0.25) 0%, rgba(43, 27, 58, 0.08) 45%, rgba(43, 27, 58, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 670px;
  color: var(--mint-ink);
}

.hero-title {
  color: var(--mint-ink);
  font-size: clamp(2.15rem, 5vw, 4.05rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  color: rgba(247, 252, 249, 0.92);
  max-width: 560px;
  margin-bottom: 26px;
}

.hero-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 252, 249, 0.24);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(247, 252, 249, 0.85);
}

/* Sections */
.section {
  padding: clamp(52px, 7.5vw, 94px) 0;
}

.section--lavender {
  background: var(--bg-lavender);
}

.section--white {
  background: var(--bg-surface);
}

.section--mint {
  background: var(--bg-mint);
}

.section--lilac {
  background: var(--bg-lilac);
}

.section--divider {
  border-bottom: 1.5px solid var(--line-teal);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(28px, 4.5vw, 48px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header p {
  margin-top: 12px;
}

/* Editorial Testimonials (quote-first warm ivory panels, zero avatar badges) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FDFBFF;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 30px 26px 26px;
}

.review-label {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--plum);
  margin-bottom: 14px;
}

.review-quote {
  font-size: 15.6px;
  line-height: 1.72;
  color: var(--plum-ink);
}

.review-author {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--plum-muted);
}

.review-author strong {
  display: block;
  color: var(--plum-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.review-author span {
  color: var(--teal);
  font-weight: 600;
}

.carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--plum);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.carousel-btn:hover {
  background: var(--plum);
  color: var(--mint-ink);
  border-color: var(--plum);
}

.carousel-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--teal);
  width: 22px;
  border-radius: 999px;
}

/* Editorial Split Grids */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-lavender);
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-circle-wrap {
  width: min(100%, 460px);
  margin-inline: auto;
}

.photo-circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.85);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.callout-quote {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.4;
  color: var(--plum);
  margin: 20px 0 22px;
}

.clean-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  border-top: 1px solid var(--line-soft);
}

.clean-points li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--plum-ink);
}

.clean-points strong {
  color: var(--teal);
  font-family: var(--font-ui);
  font-weight: 700;
}

.snapshot-panel {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.snapshot-panel h3 {
  color: var(--plum-dark);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.snapshot-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line-soft);
}

.snapshot-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--plum-ink);
}

.snapshot-rows strong {
  color: var(--plum-dark);
  font-weight: 700;
}

.snapshot-rows span {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}

.snapshot-note {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--plum-muted);
  margin-bottom: 16px;
}

/* Subjects Editorial List */
.subject-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 28px;
  border-top: 1px solid var(--line-soft);
}

.subject-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16.5px;
  color: var(--plum-ink);
}

.subject-list strong {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--plum-dark);
  font-size: 1.08rem;
}

.subject-list span {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--plum-muted);
  text-align: right;
}

/* Packages Grid (clean gallery feel, no loud SaaS tags over photos) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.package-card--featured {
  border-color: var(--plum);
}

.package-media {
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: var(--bg-lavender);
}

.package-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.package-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.package-note {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  min-height: 18px;
  margin-bottom: 6px;
}

.package-body h3 {
  color: var(--teal);
  font-size: 1.38rem;
  margin-bottom: 8px;
}

.package-desc {
  font-size: 15px;
  color: var(--plum-muted);
  margin-bottom: 18px;
}

.package-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--teal);
}

.package-rate {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--plum-muted);
}

.package-body .btn {
  margin-top: auto;
  width: 100%;
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 17px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.marquee--plum {
  background: var(--plum);
  border-color: transparent;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  color: var(--teal);
  white-space: nowrap;
}

.marquee--plum .marquee-item {
  color: var(--mint-ink);
}

.marquee-sep {
  width: 6px;
  height: 6px;
  background: var(--plum);
  transform: rotate(45deg);
  flex: none;
  opacity: 0.55;
}

.marquee--plum .marquee-sep {
  background: var(--bg-lilac-soft);
  opacity: 0.85;
}

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

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

/* ACT vs SAT Curved Hero */
.page-hero {
  position: relative;
  min-height: clamp(360px, 50vh, 490px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 0 104px;
  background: var(--plum-dark);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 76%;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50, 31, 68, 0.7) 0%, rgba(74, 48, 95, 0.56) 55%, rgba(50, 31, 68, 0.78) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--mint-ink);
  max-width: 740px;
  margin-inline: auto;
}

.page-hero-content h1 {
  color: var(--mint-ink);
  font-size: clamp(2.5rem, 6.8vw, 5rem);
  margin-bottom: 12px;
}

.page-hero-content p {
  color: rgba(247, 252, 249, 0.92);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  max-width: 590px;
  margin-inline: auto;
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(36px, 5.5vw, 72px);
  z-index: 3;
  display: block;
}

/* Overview & Comparison Table */
.overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.overview-intro {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.44rem);
  line-height: 1.4;
  color: var(--teal);
}

.overview-col {
  padding-top: 18px;
  border-top: 2px solid var(--line-soft);
}

.overview-col h2 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 10px;
}

.overview-col p {
  font-size: 15.5px;
  color: var(--plum-ink);
}

.compare-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--plum);
  color: var(--mint-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table thead th:first-child {
  background: var(--plum-dark);
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--teal);
  width: 22%;
  background: rgba(244, 236, 250, 0.42);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.wide-photo-banner {
  width: 100%;
  height: clamp(240px, 40vw, 500px);
  overflow: hidden;
  background: var(--plum-dark);
}

.wide-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Interactive Fit Finder (clean editorial hairline panel) */
.fit-finder {
  border-top: 2px solid var(--line-teal);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(28px, 4vw, 44px) 0;
}

.fit-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 36px;
  margin-top: 26px;
}

.fit-q-label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--plum-dark);
  margin-bottom: 10px;
  display: block;
}

.fit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fit-chip {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--plum-ink);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.fit-chip:hover {
  border-color: var(--plum);
}

.fit-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--mint-ink);
}

.fit-result {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-mint);
  border: 1px solid var(--line-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.fit-result-text h3 {
  color: var(--teal);
  margin-bottom: 4px;
}

.fit-result-text p {
  font-size: 15px;
  color: var(--plum-ink);
  max-width: 580px;
}

/* Tutors Gallery (clean editorial columns, no heavy box shadow cards) */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.tutor-item {
  display: flex;
  flex-direction: column;
}

.tutor-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-lavender);
  margin-bottom: 18px;
}

.tutor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutor-photo--sarah img { object-position: 18% 58%; }
.tutor-photo--hally img { object-position: 50% 20%; }
.tutor-photo--courtney img { object-position: 50% 25%; }

.tutor-item h2 {
  font-size: 1.48rem;
  color: var(--plum-dark);
  margin-bottom: 6px;
}

.tutor-creds {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.45;
  margin-bottom: 12px;
}

.tutor-item p {
  font-size: 15.5px;
  color: var(--plum-ink);
}

/* Editorial Local Coverage + Minimal Hairline FAQ */
.local-strip {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px 48px;
  align-items: baseline;
}

.faq-list {
  border-top: 1px solid var(--line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  color: var(--plum-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  transition: transform 0.2s var(--ease);
  flex: none;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 22px 0;
  font-size: 15.5px;
  color: var(--plum-ink);
  line-height: 1.68;
}

/* Pull Quote */
.pull-quote-box {
  max-width: 780px;
  margin: 26px auto;
  padding: 22px 26px;
  border-left: 3.5px solid var(--teal);
  background: var(--bg-lavender);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  font-style: italic;
  font-weight: 600;
  color: var(--plum-dark);
  text-align: left;
}

/* Consultation CTA Band (unified entry into consultation sheet/modal) */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.cta-band-copy {
  max-width: 580px;
}

.cta-band-copy h2 {
  color: var(--plum-dark);
  margin-bottom: 12px;
}

.cta-band-copy p {
  color: var(--plum-ink);
  font-size: 16.5px;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta-band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--plum-dark);
}

.cta-band-links a {
  border-bottom: 1.5px solid rgba(75, 51, 94, 0.35);
  padding-bottom: 2px;
}

.cta-band-links a:hover {
  border-bottom-color: var(--plum-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--plum-dark);
  margin-bottom: 6px;
}

.field label span {
  font-weight: 400;
  opacity: 0.78;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(75, 51, 94, 0.34);
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--plum-ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  border-radius: 20px;
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--teal);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
}

.form-status[hidden] { display: none; }

.form-status--ok {
  background: var(--bg-mint);
  color: var(--teal);
  border: 1px solid var(--line-teal);
}

.form-status--err {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* iOS-safe background scroll lock when consultation sheet is open */
html.is-sheet-open,
body.is-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.is-sheet-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Consultation Modal (desktop) / Bottom Sheet (mobile) */
.consult-dialog {
  width: min(100% - 32px, 500px);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--bg-page);
  color: var(--plum-ink);
  box-shadow: 0 24px 64px rgba(38, 22, 52, 0.28);
  overflow: hidden;
  overscroll-behavior: contain;
}

.consult-dialog::backdrop {
  background: rgba(38, 22, 52, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  touch-action: none;
}

.consult-dialog[open] {
  animation: sheet-in 0.22s var(--ease);
}

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

.consult-handle {
  display: none;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  margin: 10px auto 0;
}

.consult-inner {
  padding: 24px 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-height: 90dvh;
  outline: none;
}

.consult-close:focus:not(:focus-visible) {
  outline: none;
}

.consult-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.consult-top h2 {
  font-size: 1.55rem;
  color: var(--teal);
  line-height: 1.15;
}

.consult-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--bg-surface);
  color: var(--plum-dark);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.consult-close:hover {
  background: var(--bg-lavender);
}

.consult-sub {
  font-size: 14.5px;
  color: var(--plum-muted);
  margin-bottom: 16px;
}

.consult-topic {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-mint);
  border: 1px solid var(--line-teal);
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.consult-topic[hidden] {
  display: none;
}

.consult-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.consult-quick .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

.consult-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-muted);
}

.consult-or::before,
.consult-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.consult-dialog .field {
  margin-bottom: 12px;
}

.consult-dialog .field input,
.consult-dialog .field textarea {
  padding: 11px 16px;
  background: var(--bg-surface);
}

.consult-dialog .field textarea {
  min-height: 84px;
}

.consult-dialog .btn--submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .consult-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
  }
  .consult-handle {
    display: block;
  }
  .consult-inner {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    max-height: 90dvh;
  }
  .consult-top {
    margin-bottom: 8px;
  }
  .consult-sub {
    margin-bottom: 12px;
    font-size: 14px;
  }
  .consult-quick {
    margin-bottom: 12px;
  }
  .consult-or {
    margin-bottom: 10px;
  }
  .consult-dialog .field {
    margin-bottom: 10px;
  }
  .consult-dialog .field input {
    padding: 10px 14px;
  }
  .consult-dialog .field textarea {
    min-height: 66px;
    padding: 10px 14px;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-lavender);
  border-top: 1px solid var(--line-soft);
  padding: 60px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(110px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-brand h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  color: var(--teal);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 15px;
  color: var(--plum-muted);
  max-width: 300px;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--plum);
  margin-bottom: 8px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--plum-ink);
  margin-bottom: 6px;
  word-break: break-word;
}

.footer-col a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--plum-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a:hover {
  color: var(--teal);
}

/* Responsive */
@media (max-width: 1024px) {
  .packages-grid,
  .tutors-grid,
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-intro {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .split,
  .contact-grid,
  .local-strip,
  .fit-questions {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-media {
    order: 0;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid[data-carousel] .review-item {
    display: none;
  }
  .reviews-grid[data-carousel] .review-item.is-active {
    display: flex;
  }
  .carousel-controls {
    display: flex;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 56px;
  }
  body {
    font-size: 16px;
  }
  .container,
  .container--narrow,
  .header-inner {
    width: calc(100% - 32px);
  }
  /* Mobile header stays crisp & solid over stacked photo hero (no dark stripe) */
  .site-header--over-hero {
    position: sticky;
    background: rgba(250, 247, 253, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line-soft);
  }
  .site-header--over-hero:not(.is-scrolled) .brand {
    color: var(--plum);
  }
  .site-header--over-hero:not(.is-scrolled) .menu-toggle {
    border-color: var(--line-strong);
    color: var(--plum-dark);
  }
  /* Mobile Hero: compact above-the-fold framing so CTAs stay clear of iOS Safari bottom bar */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: var(--plum-dark);
  }
  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: 215px;
    object-fit: cover;
    object-position: 56% 24%;
  }
  .hero-scrim {
    display: none;
  }
  .hero > .container {
    padding: 20px 0 24px;
  }
  .hero-title {
    font-size: 1.72rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .hero .actions-row {
    gap: 10px 16px;
  }
  .hero .btn {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 14px;
  }
  .hero-meta {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 12px;
  }
  /* Keep ACT vs. SAT curved hero crisp with sticky mobile header */
  .page-hero {
    min-height: 290px;
    padding: 44px 0 76px;
  }
  .packages-grid,
  .tutors-grid,
  .overview-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .subject-list li {
    flex-direction: column;
    gap: 3px;
  }
  .subject-list span {
    text-align: left;
  }
  .photo-frame {
    aspect-ratio: 4 / 3;
    max-height: 290px;
  }
  .photo-frame img {
    object-position: 50% 24%;
  }
  .photo-circle-wrap {
    width: min(100%, 260px);
  }
  .compare-table thead { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .compare-table tbody th {
    padding: 0 0 6px;
    background: transparent;
    border: none;
    font-size: 15.5px;
  }
  .compare-table td {
    padding: 5px 0;
    border: none;
    font-size: 14.5px;
  }
  .compare-table td::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    color: var(--plum);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
