/* ==========================================================================
   Launch Valley Tutoring — marketing front (landing, our-tutors, review)
   Self-contained editorial design system. Light mode only.
   Ink, antique gold, and warm paper. Fonts: DM Serif Display + Fira Sans.
   This stylesheet is independent of styles.css (the portal/funnel system).
   ========================================================================== */

:root {
  --radius: 1.5rem;

  --background: oklch(0.965 0.018 89);
  --foreground: oklch(0.19 0.008 80);
  --card: oklch(0.99 0.012 91);
  --primary: oklch(0.69 0.12 79);
  --primary-foreground: oklch(0.16 0.006 80);
  --primary-soft: oklch(0.9 0.058 88);
  --primary-deep: oklch(0.16 0.006 80);
  --secondary: oklch(0.925 0.028 88);
  --secondary-foreground: oklch(0.19 0.008 80);
  --muted: oklch(0.935 0.018 88);
  --muted-foreground: oklch(0.48 0.016 79);
  --blush: oklch(0.89 0.04 72);
  --gold: oklch(0.72 0.13 79);
  --google-blue: oklch(0.62 0.19 254);
  --google-green: oklch(0.64 0.16 145);
  --google-yellow: oklch(0.79 0.17 86);
  --google-red: oklch(0.62 0.22 29);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.84 0.027 85);
  --input: oklch(0.84 0.027 85);
  --ring: oklch(0.69 0.12 79);
  --inverse: oklch(0.965 0.018 89);

  --shadow-soft: 0 18px 44px -24px oklch(0.16 0.006 80 / 0.24);
  --shadow-pill: 0 10px 26px -12px oklch(0.55 0.1 78 / 0.4);
  --shadow-editorial: 0 34px 80px -34px oklch(0.16 0.006 80 / 0.34);

  --font-display: "DM Serif Display", ui-serif, Georgia, serif;
  --font-sans: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--primary); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; }
.container-wide { width: 100%; max-width: 1360px; margin: 0 auto; }
.text-center { text-align: center; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

/* ---- Textures ------------------------------------------------------------ */
.paper-texture {
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 18% 22%, color-mix(in oklab, var(--foreground) 3%, transparent), transparent 24%),
    radial-gradient(ellipse at 78% 70%, color-mix(in oklab, var(--foreground) 2.5%, transparent), transparent 28%),
    repeating-radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--foreground) 3%, transparent) 0 0.55px, transparent 0.8px 3px);
  background-size: 340px 280px, 390px 320px, 8px 8px;
}

.ribbon-line {
  background-image:
    radial-gradient(ellipse at 20% 80%, transparent 57%, var(--primary-soft) 58%, transparent 60%),
    radial-gradient(ellipse at 78% 8%, transparent 61%, color-mix(in oklab, var(--primary) 22%, transparent) 62%, transparent 64%);
}

.footer-ribbon {
  background-image: radial-gradient(ellipse at 65% -20%, transparent 48%, var(--primary) 49%, transparent 51%);
}

.review-page-texture {
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 18% 18%, color-mix(in oklab, var(--primary-soft) 72%, transparent), transparent 42%),
    radial-gradient(ellipse at 86% 82%, color-mix(in oklab, var(--blush) 46%, transparent), transparent 38%),
    radial-gradient(circle at 20% 30%, color-mix(in oklab, var(--primary) 6%, transparent) 0 1px, transparent 1.5px);
  background-size: auto, auto, 20px 20px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-gold {
  position: relative;
  overflow: hidden;
  color: var(--primary-foreground);
  border-color: color-mix(in oklab, var(--primary) 70%, var(--foreground));
  background: linear-gradient(105deg, color-mix(in oklab, var(--primary) 82%, var(--background)), var(--primary), color-mix(in oklab, var(--primary) 74%, var(--foreground)));
  box-shadow: var(--shadow-pill);
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: 0;
  width: 26%;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--background) 62%, transparent), transparent);
  animation: ticket-shine 2.8s linear infinite;
  pointer-events: none;
}
.btn-gold:hover { background: var(--primary); }

@keyframes ticket-shine {
  from { transform: translateX(-220%) skewX(-22deg); }
  to { transform: translateX(620%) skewX(-22deg); }
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, var(--foreground)); }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--secondary); }

.btn-ink {
  background: var(--primary-deep);
  color: var(--inverse);
}
.btn-ink:hover { background: var(--primary); color: var(--primary-foreground); }

.btn-tall { height: 3.25rem; }
.btn-full { width: 100%; }
.btn-stack { flex-direction: column; gap: 0.1rem; }
.btn-stack .small-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.btn-stack .big-label { font-size: 0.875rem; }

/* ---- Google mark + stars ------------------------------------------------- */
.google-mark { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.stars { display: inline-flex; gap: 0.25rem; color: var(--gold); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ---- Header -------------------------------------------------------------- */
.lv-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.75rem 1rem 0;
}
.lv-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.lv-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--primary-deep);
  white-space: nowrap;
}
.lv-nav { display: none; align-items: center; gap: 1.5rem; }
.lv-nav a { font-size: 0.875rem; font-weight: 500; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.lv-nav a:hover { color: var(--primary); }
.lv-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn-icon {
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  border-radius: 999px;
}
.lv-menu-toggle { background: transparent; border: none; }
.lv-menu-toggle:hover { background: var(--secondary); }

/* header CTA + call label visibility (mobile-first) */
.header-cta { display: none; }
.call-label { display: none; }

.lv-mobile-nav {
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--background);
  box-shadow: var(--shadow-editorial);
}
.lv-mobile-nav[hidden] { display: none; }
.lv-mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.lv-mobile-nav a:hover { background: var(--secondary); }

@media (min-width: 640px) {
  .call-label { display: flex; flex-direction: column; gap: 0.1rem; text-align: center; }
  .btn-call-full { height: 3.25rem; width: auto; padding: 0 1.25rem; }
}
@media (min-width: 1024px) {
  .lv-header { padding-top: 1.25rem; padding-left: 1.75rem; padding-right: 1.75rem; }
  .lv-nav { display: flex; }
  .lv-menu-toggle { display: none; }
  .header-cta { display: inline-flex; padding: 0 1.5rem; font-size: 0.8rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 1rem 4rem;
}
.hero-ribbon {
  position: absolute;
  inset: 6rem 0 auto 0;
  height: 20rem;
  opacity: 0.35;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.25rem;
}
.hero-copy { position: relative; text-align: center; }
.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.hero-rating .rating-text { font-size: 0.875rem; font-weight: 600; color: var(--primary-deep); }
.hero h1 {
  margin: 1.5rem auto 0;
  max-width: 44rem;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.95;
  color: var(--primary-deep);
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 39rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-photo {
  margin: 2.25rem auto 0;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 5rem 2rem 5rem 2rem;
  box-shadow: var(--shadow-editorial);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-desktop { display: none; }

@media (min-width: 640px) {
  .hero { padding: 8rem 1.75rem 5rem; }
  .hero-sub { font-size: 1.25rem; }
  .hero-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
  .hero { min-height: 700px; padding-top: 7rem; padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr); gap: 3rem; }
  .hero-copy { text-align: left; }
  .hero-rating { justify-content: flex-start; }
  .hero h1 { margin-left: 0; max-width: 44rem; font-size: clamp(4.5rem, 5.5vw, 5.25rem); }
  .hero-sub { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo-mobile { display: none; }
  .hero-photo-desktop {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 590px;
    aspect-ratio: 5 / 4;
    border-radius: 5rem 2rem 5rem 2rem;
  }
}

/* ---- Trial section ------------------------------------------------------- */
.trial {
  scroll-margin-top: 6rem;
  background: color-mix(in oklab, var(--secondary) 55%, var(--background));
  padding: 5rem 1rem;
}
.trial-head { display: none; text-align: center; }
.trial-head h2 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--primary-deep);
}
.trial-grid { display: grid; }
.trial-photo { display: none; }

.trial-form {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  border: 1px solid color-mix(in oklab, var(--primary) 15%, transparent);
  border-radius: 2rem;
  background: color-mix(in oklab, var(--card) 95%, transparent);
  box-shadow: var(--shadow-editorial);
  padding: 1.25rem;
  text-align: left;
}
.trial-form h2 { font-size: 1.875rem; color: var(--primary-deep); }
.trial-form .form-eyebrow { display: none; }
.trial-form .form-sub { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.trial-fields { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; }
.input {
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0 1.25rem;
  font: inherit;
  color: var(--foreground);
  width: 100%;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent); }
.field-error { font-size: 0.75rem; color: var(--destructive); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.chip-row { margin-top: 0.5rem; display: grid; gap: 0.5rem; }
.chip-row-3 { grid-template-columns: repeat(3, 1fr); }
.chip-row-4 { grid-template-columns: repeat(2, 1fr); }
.chip {
  min-height: 2.75rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip[aria-pressed="true"] {
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: var(--inverse);
}
.trial-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  border: 1px solid color-mix(in oklab, var(--primary) 15%, transparent);
  border-radius: 2rem;
  background: color-mix(in oklab, var(--card) 95%, transparent);
  box-shadow: var(--shadow-editorial);
  padding: 2rem;
}
.trial-success svg { width: 3rem; height: 3rem; color: var(--primary); }
.trial-success h2 { margin-top: 1rem; font-size: 1.875rem; color: var(--primary-deep); }
.trial-success p { margin-top: 0.75rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.trial-video-mask { border-radius: 46% 54% 35% 65% / 23% 34% 66% 77%; }

@media (min-width: 640px) {
  .trial { padding: 5rem 1.75rem; }
  .trial-form { padding: 1.75rem; }
  .trial-form .form-eyebrow {
    display: block;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--primary);
  }
  .chip-row-4 { grid-template-columns: repeat(4, 1fr); }
  .chip { font-size: 0.875rem; }
}
@media (min-width: 1024px) {
  .trial { padding: 6rem 1.75rem; }
  .trial-head { display: block; }
  .trial-grid {
    margin-top: 2.5rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.78fr);
    align-items: center;
    gap: 4rem;
  }
  .trial-photo {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: var(--shadow-editorial);
  }
  .trial-photo img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---- Reviews ------------------------------------------------------------- */
.reviews {
  overflow: hidden;
  border-top: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  background: color-mix(in oklab, var(--secondary) 55%, var(--background));
  padding: 4.5rem 0;
}
.reviews-head { padding: 0 1rem; text-align: center; }
.reviews-head .google-rating {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary-deep);
}
.reviews-head h2 { margin-top: 0.75rem; font-size: clamp(2.25rem, 5vw, 3rem); color: var(--primary-deep); }

.marquee-viewport { margin-top: 2.5rem; overflow: hidden; }
.review-marquee {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0 0.5rem;
  animation: marquee-scroll-reviews 32s linear infinite;
}
.review-marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll-reviews { to { transform: translateX(calc(-50% - 0.5rem)); } }

.review-card {
  position: relative;
  width: min(84vw, 390px);
  flex-shrink: 0;
  border: 1px solid color-mix(in oklab, var(--primary) 10%, transparent);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.review-card blockquote { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.review-foot { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-deep);
}
.review-foot .name { font-weight: 600; color: var(--primary-deep); }
.review-foot .role { font-size: 0.75rem; color: var(--muted-foreground); }
.review-card .google-mark { position: absolute; bottom: 1.5rem; right: 1.5rem; }
.reviews-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; padding: 0 1rem; }

/* ---- Tutors (Coaches) ---------------------------------------------------- */
.tutors { overflow: hidden; padding: 5rem 0; }
.tutors-head { max-width: 42rem; margin: 0 auto; padding: 0 1rem; text-align: center; }
.tutors-head h2 { margin-top: 1rem; font-size: clamp(2.25rem, 6vw, 3.75rem); color: var(--primary-deep); }
.tutors-head p:not(.eyebrow) { margin-top: 1.25rem; font-size: 1.125rem; color: color-mix(in oklab, var(--foreground) 70%, transparent); }

.tutor-marquee {
  margin-top: 3rem;
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding: 0 0.75rem;
  animation: marquee-scroll-tutors 48s linear infinite;
}
.tutor-marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll-tutors { to { transform: translateX(calc(-50% - 0.75rem)); } }

.tutor-card {
  width: min(78vw, 310px);
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.tutor-card .photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tutor-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tutor-card .photo-fallback {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: var(--secondary);
}
.tutor-card .photo-fallback span {
  display: flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
}
.tutor-card .photo-fallback svg { width: 2.25rem; height: 2.25rem; }
.tutor-card .body { padding: 1.5rem; }
.tutor-card .body h3 { font-size: 1.875rem; font-style: italic; color: var(--primary-deep); }
.tutor-card .body .role { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.tutor-card .body .bio { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 65%, transparent); }
.tutors-cta { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 0 1rem; }

@media (min-width: 640px) {
  .tutors { padding: 7rem 0; }
  .tutors-cta { flex-direction: row; }
}

/* ---- Location ------------------------------------------------------------ */
.location { scroll-margin-top: 6rem; padding: 5rem 1rem; }
.location-card {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary) 15%, transparent);
  border-radius: 2.5rem;
  background: var(--card);
  box-shadow: var(--shadow-editorial);
}
.location-map { position: relative; height: 340px; width: 100%; background: var(--secondary); }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-map .map-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; }
.location-map .map-placeholder svg { width: 2.5rem; height: 2.5rem; color: color-mix(in oklab, var(--primary) 55%, transparent); }
.location-body { display: flex; flex-direction: column; justify-content: center; padding: 2rem; text-align: center; }
.location-body > svg { width: 1.75rem; height: 1.75rem; margin: 0 auto; color: var(--primary); }
.location-body h2 { margin-top: 0.75rem; font-size: clamp(2.25rem, 5vw, 3rem); color: var(--primary-deep); }
.location-body .addr { margin: 1.25rem auto 0; max-width: 28rem; font-size: 1rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.location-actions { margin-top: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }

@media (min-width: 640px) {
  .location { padding: 6rem 1.75rem; }
  .location-body { padding: 3rem; }
  .location-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
  .location-card { grid-template-columns: 1.08fr 0.92fr; }
  .location-map { height: 100%; min-height: 430px; }
  .location-body { text-align: left; }
  .location-body > svg { margin-left: 0; }
  .location-body .addr { margin-left: 0; }
  .location-actions { justify-content: flex-start; }
}

/* ---- Footer -------------------------------------------------------------- */
.lv-footer {
  position: relative;
  overflow: hidden;
  background: var(--primary-deep);
  color: var(--inverse);
  padding: 4rem 1rem 2rem;
}
.lv-footer .footer-ribbon { position: absolute; inset: 0 0 auto 0; height: 18rem; opacity: 0.25; }
.lv-footer-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.lv-footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid color-mix(in oklab, var(--inverse) 15%, transparent);
}
.lv-footer-brand .big {
  max-width: 55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  color: var(--primary);
}
.lv-footer-brand .tagline { margin-top: 1.25rem; font-size: 1rem; color: color-mix(in oklab, var(--inverse) 55%, transparent); }
.lv-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; font-size: 0.875rem; color: color-mix(in oklab, var(--inverse) 70%, transparent); }
.lv-footer-contact a:hover { color: var(--primary); }
.lv-footer-contact .line { display: inline-flex; align-items: flex-start; gap: 0.5rem; }
.lv-footer-contact .line svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.lv-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--inverse) 50%, transparent);
}
.lv-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.lv-footer-links a:hover { color: var(--primary); }

@media (min-width: 640px) {
  .lv-footer { padding: 5rem 1.75rem 2.5rem; }
  .lv-footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .lv-footer { padding-top: 6rem; }
  .lv-footer-top { grid-template-columns: 1fr auto; align-items: end; }
  .lv-footer-contact { align-items: flex-end; text-align: right; }
}

/* ---- Review (rating) page ------------------------------------------------ */
.review-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.review-box { width: 100%; max-width: 42rem; text-align: center; }
.review-box .brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-deep); }
.review-box h1 { margin-top: 2.5rem; font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1.05; color: var(--primary-deep); }
.review-box .lead { margin: 1.25rem auto 0; max-width: 32rem; font-size: 1.125rem; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.rating-stars { margin-top: 2.25rem; display: flex; justify-content: center; gap: 0.5rem; }
.rating-star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem;
  border: none; background: transparent; cursor: pointer; border-radius: 999px;
  color: color-mix(in oklab, var(--primary) 25%, transparent);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.rating-star:hover { transform: scale(1.1); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.rating-star svg { width: 2.25rem; height: 2.25rem; }
.rating-star.on { color: var(--gold); }
.rating-star.on svg { fill: var(--gold); }
.review-powered { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground); }
.review-feedback {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  border: 1px solid color-mix(in oklab, var(--primary) 12%, transparent);
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  text-align: left;
}
.review-feedback[hidden] { display: none; }
.review-feedback h2 { font-size: 1.875rem; color: var(--primary-deep); }
.review-feedback p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 65%, transparent); }
.review-feedback label { margin-top: 1.5rem; display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary-deep); }
.review-feedback textarea {
  margin-top: 0.5rem;
  width: 100%;
  resize: none;
  border-radius: 1rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--foreground);
  outline: none;
}
.review-feedback textarea:focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent); }
@media (min-width: 640px) {
  .rating-star { width: 4rem; height: 4rem; }
  .rating-star svg { width: 2.75rem; height: 2.75rem; }
}

/* ---- Our Tutors page ----------------------------------------------------- */
.page-hero { padding: 8rem 1rem 4rem; text-align: center; }
.page-hero .inner { max-width: 48rem; margin: 0 auto; }
.page-hero h1 { margin-top: 1.25rem; font-size: clamp(3rem, 8vw, 4.5rem); color: var(--primary-deep); }
.page-hero p:not(.eyebrow) { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.tutor-grid {
  display: grid;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1rem;
}
.tutor-grid article {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.tutor-grid .photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.tutor-grid .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tutor-grid .photo-fallback {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: var(--primary-soft);
}
.tutor-grid .photo-fallback span {
  display: flex; align-items: center; justify-content: center;
  width: 6rem; height: 6rem; border-radius: 999px;
  background: var(--card); color: var(--primary);
}
.tutor-grid .photo-fallback svg { width: 2.75rem; height: 2.75rem; }
.tutor-grid .body { padding: 1.5rem; }
.tutor-grid .body .role { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); }
.tutor-grid .body h2 { margin-top: 0.5rem; font-size: 2.25rem; font-style: italic; color: var(--primary-deep); }
.tutor-grid .body .bio { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.tutors-band { background: var(--secondary); padding: 4rem 1rem; text-align: center; }
.tutors-band h2 { font-size: clamp(2.25rem, 5vw, 3rem); color: var(--primary-deep); }
@media (min-width: 640px) {
  .tutor-grid { grid-template-columns: repeat(2, 1fr); padding: 6rem 1.75rem; }
  .page-hero { padding: 10rem 1.75rem 5rem; }
}
@media (min-width: 1024px) {
  .tutor-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-timeline: view();
  animation-range: entry 5% cover 26%;
}
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
@supports not (animation-timeline: view()) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 639px) and (max-height: 720px) {
  .trial-form { padding: 0.75rem; }
  .trial-fields { margin-top: 1rem; gap: 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .review-marquee, .tutor-marquee { animation: none; }
  .btn-gold::after { display: none; }
}

/* ==========================================================================
   Match-live overrides (2026-10-14): line-heights, type scale and spacing
   tuned to match the live Lovable/Tailwind build one-to-one.
   ========================================================================== */
[hidden] { display: none !important; }

/* Buttons: Tailwind text-sm font-medium, leading 1.25rem */
.btn { font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; }
.btn-stack .big-label { line-height: 1.25rem; font-weight: 500; }
.btn-stack .small-label { line-height: 1.25; }
.eyebrow, .form-eyebrow { line-height: 1rem; }

/* Header: 3-column grid so the nav sits dead centre */
.lv-nav a { line-height: 1.25rem; }
.lv-header-actions { justify-content: flex-end; }
.call-label { line-height: 1.25; }
.call-label .small-label { font-size: 0.625rem; line-height: 1.25; }
.call-label .big-label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
@media (min-width: 640px) {
  .lv-header { padding-left: 1.75rem; padding-right: 1.75rem; padding-top: 1.25rem; }
  .lv-header-inner { padding: 0.75rem 1.5rem; }
}
@media (min-width: 1024px) {
  .lv-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
  .header-cta { font-size: 0.75rem; line-height: 1rem; }
}

/* Hero */
.hero-rating .rating-text { line-height: 1.25rem; }
.hero-sub { line-height: 1.625; }
@media (min-width: 640px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
  .hero-copy { padding-top: 2rem; padding-bottom: 2rem; }
}
@media (min-width: 1280px) { .hero h1 { font-size: 5.25rem; } }

/* Section headings: Tailwind type scale (text-3xl 2.25rem lh, 4xl 2.5rem, 5xl+ lh 1) */
.trial-head h2, .reviews-head h2, .tutors-head h2, .location-body h2, .tutors-band h2 { font-size: 2.25rem; line-height: 2.5rem; }
.trial-form h2, .trial-success h2, .review-feedback h2, .tutor-card .body h3 { font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 640px) {
  .trial-head h2, .reviews-head h2, .location-body h2, .tutors-band h2 { font-size: 3rem; line-height: 1; }
  .tutors-head h2 { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) { .trial-head h2 { font-size: 3.75rem; line-height: 1; } }

/* Trial form */
.trial-form .form-sub { line-height: 1.25rem; }
.field label { line-height: 1; }
.field legend { line-height: 1.25rem; padding: 0; }
.chip { font-weight: 500; line-height: 1rem; color: var(--foreground); white-space: nowrap; }
.chip[aria-pressed="true"] { color: var(--inverse); }
@media (min-width: 640px) { .chip { line-height: 1.25rem; } }

/* Reviews */
.reviews-head { padding: 0 1rem; }
.reviews-head .google-rating { line-height: 1.25rem; }
.review-foot .role { line-height: 1rem; }
.review-card blockquote { line-height: 1.625; }
.reviews-cta .btn-secondary { padding: 0 1.5rem; }
@media (min-width: 640px) { .reviews-head { padding: 0 1.75rem; } }

/* Tutors */
.tutors-head p:not(.eyebrow) { line-height: 1.75rem; }
.tutor-card .body .role { line-height: 1.25rem; }
.tutor-card .body .bio { line-height: 1.625; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .tutors-head { padding: 0 1.75rem; } }

/* Location */
.location-body .addr { line-height: 1.625; max-width: 28rem; }
.location-actions .btn-secondary { height: 3rem; padding: 0 1.5rem; }
.location-actions .btn-gold { padding: 0 1.75rem; }

/* Footer */
.lv-footer-brand .big { max-width: 64rem; }
.lv-footer-contact { line-height: 1.25rem; }
.lv-footer-bottom { line-height: 1rem; }
.lv-footer-contact .btn-gold { padding: 0 1.75rem; margin-top: 0.5rem; }
@media (min-width: 640px) {
  .lv-footer-brand .big { font-size: 3.75rem; }
  .lv-footer-brand .tagline { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .lv-footer-brand .big { font-size: 4.5rem; }
  .lv-footer-contact .line { max-width: 20rem; text-align: right; }
}
@media (max-width: 639px) { .lv-footer-brand .big { font-size: 2.25rem; } .lv-footer-brand .tagline { font-size: 0.875rem; } }
@media (max-width: 639px) {
  .field label, .field legend { text-align: center; width: 100%; }
  .chip { font-size: 0.75rem; }
}
.btn-stack { display: flex; }
@media (min-width: 640px) {
  .form-head { text-align: left; }
  .trial-form h2 { margin-top: 0.5rem; }
}

/* Our Tutors page */
.page-hero { padding: 8rem 1rem 4rem; }
.page-hero .inner { max-width: 48rem; }
.page-hero h1 { font-size: 3rem; line-height: 1; }
.page-hero p:not(.eyebrow) { max-width: 42rem; line-height: 1.625; }
.tutor-grid .body .role { line-height: 1rem; }
.tutor-grid .body h2 { line-height: 2.5rem; }
.tutor-grid .body .bio { line-height: 1.625; }
.tutor-grid .body { padding: 1.5rem; }
.tutors-band { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
  .page-hero { padding: 10rem 1.75rem 5rem; }
  .page-hero h1 { font-size: 4.5rem; }
  .tutor-grid .body { padding: 1.75rem; }
  .tutors-band { padding-left: 1.75rem; padding-right: 1.75rem; }
}

/* Review page */
.review-box .brand { line-height: 2rem; }
.review-box h1 { font-size: 3rem; line-height: 1.25; }
.review-box .lead { line-height: 1.75rem; }
.review-powered { line-height: 1rem; }
@media (min-width: 640px) { .review-box h1 { font-size: 4.5rem; } }
@media (min-width: 640px) { .tutor-grid { max-width: calc(1240px + 3.5rem); } }
.lv-footer-brand .tagline{line-height:1.25rem}@media (min-width:640px){.lv-footer-brand .tagline{line-height:1.5rem}}

/* Legal pages (privacy, terms): live Lovable layout, our own policy text */
.legal-hero { background: linear-gradient(to bottom, oklch(0.969 0.016 293.756), var(--background)); padding: 5rem 1.25rem 2.5rem; }
.legal-hero-inner { max-width: 48rem; margin: 0 auto; text-align: center; }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--primary); }
.legal-back:hover { text-decoration: underline; }
.legal-hero h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 500; letter-spacing: -0.025em; color: var(--foreground); }
.legal-date { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.legal-body { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem 6rem; font-size: 1rem; line-height: 1.625; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.legal-body > * + * { margin-top: 0.75rem; }
.legal-body h2 { margin-top: 2.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--foreground); }
.legal-body a { color: var(--primary); }
.legal-body ul { padding-left: 1.25rem; }
@media (min-width: 640px) { .legal-hero h1 { font-size: 3rem; line-height: 1; } }
