/* =============================================================
   Landing Page Styles
   Extracted from index.html inline <style> for browser caching.
   ============================================================= */

/* ── Mobile Top Bar (visible only on mobile where header is hidden) ── */
.lp-mobile-topbar {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .lp-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .lp-mobile-topbar-logo img {
    height: 32px;
    width: auto;
    display: block;
  }

  .lp-mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .lp-mobile-topbar-link {
    color: var(--clr-primary, #12b3b3);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
  }

  .lp-mobile-topbar-btn {
    display: inline-block;
    background: var(--clr-primary, #12b3b3);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(18, 179, 179, 0.25);
  }
}

/* ── Landing Page Overrides ─────────────────────────────── */
.landing-header .main-logo-hero {
  max-height: 65px;
  transform: none;
  position: relative;
  z-index: 2;
}

.landing-main {
  max-width: 100%;
  padding: 0;
  gap: 0;
  overflow-x: hidden;
}

.lp-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-horizontal-padding);
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.lp-reveal.lp-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

.lp-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-stagger.lp-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.lp-stagger.lp-visible > *:nth-child(1) { transition-delay: 0.05s; }
.lp-stagger.lp-visible > *:nth-child(2) { transition-delay: 0.1s; }
.lp-stagger.lp-visible > *:nth-child(3) { transition-delay: 0.15s; }
.lp-stagger.lp-visible > *:nth-child(4) { transition-delay: 0.2s; }
.lp-stagger.lp-visible > *:nth-child(5) { transition-delay: 0.25s; }
.lp-stagger.lp-visible > *:nth-child(6) { transition-delay: 0.3s; }
.lp-stagger.lp-visible > *:nth-child(7) { transition-delay: 0.35s; }

/* ── Section Headings ──────────────────────────────────── */
.lp-section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}

.lp-section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary-teal), var(--clr-accent-hotpink));
  margin: 0.75rem auto 0;
  border-radius: 3px;
}

.lp-section-sub {
  text-align: center;
  color: var(--clr-text-dim);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Hero ───────────────────────────────────────────────── */
.lp-hero {
  background: linear-gradient(160deg, #f4fbfb 0%, #eaf6f6 35%, #f9fcfc 70%, #fefefe 100%);
  padding: 4.5rem var(--page-horizontal-padding) 3rem;
}

.lp-hero-layout {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.lp-hero-content { text-align: center; }

.lp-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 1rem;
}

.lp-hero .lp-hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--clr-text-dim);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.lp-hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
  justify-content: center;
}

.lp-hero-buttons .btn {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--border-radius-base);
}

.lp-hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero pain-point checklist */
.lp-hero-pain-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 520px;
}
.lp-hero-pain-points li {
  font-size: 1.05rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lp-hero-pain-points i {
  color: var(--clr-success-green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Hero CTA note */
.lp-hero-cta-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--clr-text-dim);
}

/* Large button variant — scoped to landing page to avoid !important */
.landing-main .btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Steps section CTA */
.lp-steps-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Chat mockup — matches actual app styling */
.lp-hero-preview {
  max-width: 440px;
  margin: 0 auto;
  background: var(--clr-bg-light);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(18, 179, 179, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.25rem;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.lp-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #eef1f4;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-dim);
}

.lp-preview-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clr-success-green); flex-shrink: 0;
}

.lp-chat-messages {
  display: flex; flex-direction: column; gap: 10px;
  height: 260px;
  overflow-y: auto;
}

/* Message row: avatar + bubble */
.lp-chat-row {
  display: flex; align-items: flex-end; gap: 8px;
}

.lp-chat-row--student {
  flex-direction: row-reverse;
}

/* Avatars */
.lp-chat-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #fff;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lp-chat-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}

/* Animation */
#lp-chat .lp-chat-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#lp-chat .lp-chat-row.lp-chat-visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Fade-out transition for conversation cycling */
#lp-chat .lp-chat-row[style*="opacity: 0"] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Bubble base */
.lp-chat-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 82%;
}

/* Student bubble — purple gradient (matches app) */
.lp-chat-student {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  margin-left: auto;
}

/* Tutor bubble — light bg with border (matches app) */
.lp-chat-tutor {
  background: #f5f5f5;
  color: var(--clr-text);
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Typing indicator */
.lp-typing {
  display: none; align-items: center; gap: 5px;
  padding: 10px 15px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 18px; border-bottom-left-radius: 4px;
  max-width: 56px; margin-left: 38px;
}

.lp-typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clr-primary-teal);
  animation: lp-bounce 1.4s infinite ease-in-out;
}

.lp-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.lp-typing-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes lp-bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

/* Trust bar */
.lp-trust-bar {
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: rgba(18, 179, 179, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(18, 179, 179, 0.08);
  max-width: 1100px; margin: 2.5rem auto 0;
}

.lp-trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--clr-text-dim);
  letter-spacing: 0.01em;
}

.lp-trust-item i { color: var(--clr-primary-teal); font-size: 0.95rem; opacity: 0.85; }

/* Hero side-by-side on desktop */
@media (min-width: 769px) {
  .lp-hero-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
  }
  .lp-hero-content { text-align: left; }
  .lp-hero .lp-hero-sub { margin-left: 0; margin-right: 0; }
  .lp-hero-buttons { justify-content: flex-start; }
  .lp-hero-links { justify-content: flex-start; }
  .lp-hero-preview { margin: 0; max-width: 100%; }
  .lp-hero-pain-points { margin-left: 0; margin-right: 0; }
  .lp-hero-cta-note { text-align: left; }
}

/* ── Section alternating backgrounds for visual rhythm ─── */
.lp-section-alt {
  background: var(--clr-bg-subtle, #F8FAFB);
}

/* ── Features — Bento Grid ─────────────────────────────── */
.lp-features {
  padding: 4rem var(--page-horizontal-padding);
  background: var(--clr-bg-light);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Top 2 cards: wide, horizontal layout */
.lp-feature-card:nth-child(-n+2) {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.lp-feature-card:nth-child(-n+2) .lp-feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.lp-feature-card {
  background: var(--clr-bg-light);
  border: 1px solid #e8ecf0;
  border-radius: var(--border-radius-base);
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(18, 179, 179, 0.25);
}

.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(18, 179, 179, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.lp-feature-icon i { font-size: 1.25rem; color: var(--clr-primary-teal); }

/* Alternating icon colors */
.lp-feature-card:nth-child(2) .lp-feature-icon { background: rgba(255, 59, 127, 0.06); }
.lp-feature-card:nth-child(2) .lp-feature-icon i { color: var(--clr-accent-hotpink); }
.lp-feature-card:nth-child(4) .lp-feature-icon { background: rgba(255, 194, 75, 0.1); }
.lp-feature-card:nth-child(4) .lp-feature-icon i { color: #E5A520; }
.lp-feature-card:nth-child(6) .lp-feature-icon { background: rgba(22, 200, 109, 0.08); }
.lp-feature-card:nth-child(6) .lp-feature-icon i { color: var(--clr-success-green); }

.lp-feature-card h3 {
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--clr-text);
}

.lp-feature-card p {
  font-size: 0.92rem; color: var(--clr-text-dim);
  line-height: 1.55; margin-bottom: 0;
}

/* ── Role Selector (replaces 3 audience sections) ──────── */
.lp-roles {
  padding: 4rem var(--page-horizontal-padding);
  background: #f7fbfb;
}

.lp-role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.lp-role-tab {
  background: var(--clr-bg-light);
  border: 2px solid #e8ecf0;
  border-radius: 12px;
  padding: 1.35rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
}

.lp-role-tab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-teal);
}

.lp-role-tab--active {
  border-color: var(--clr-primary-teal);
  background: rgba(18, 179, 179, 0.03);
  box-shadow: 0 4px 16px rgba(18, 179, 179, 0.15);
}

.lp-role-tab--active:hover {
  transform: none;
}

.lp-role-tab-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(18, 179, 179, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.65rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.lp-role-tab-icon i {
  font-size: 1.25rem;
  color: var(--clr-primary-teal);
  transition: color 0.25s ease;
}

.lp-role-tab--active .lp-role-tab-icon {
  background: var(--clr-primary-teal);
}

.lp-role-tab--active .lp-role-tab-icon i {
  color: white;
}

.lp-role-tab-label {
  font-weight: 600; font-size: 0.92rem; color: var(--clr-text);
}

/* Role panels */
.lp-role-panel {
  display: none;
  animation: lp-panel-in 0.35s ease;
}

.lp-role-panel--active {
  display: block;
}

@keyframes lp-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared audience grid used inside panels */
.lp-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-audience-content h2 {
  font-size: 1.65rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 0.75rem;
  color: var(--clr-text);
}

.lp-audience-content > p {
  font-size: 1rem; color: var(--clr-text-dim);
  line-height: 1.65; margin-bottom: 1.25rem;
}

.lp-benefit-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.65rem;
}

.lp-benefit-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.95rem; color: var(--clr-text); line-height: 1.5;
}

.lp-benefit-list li i {
  color: var(--clr-primary-teal); font-size: 0.85rem;
  margin-top: 0.25rem; flex-shrink: 0;
}

/* Stat cards (student panel) */
.lp-audience-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lp-stat-card {
  background: var(--clr-bg-light);
  border: 1px solid #e8ecf0;
  border-radius: var(--border-radius-base);
  padding: 1.25rem; text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lp-stat-card i {
  font-size: 1.5rem; color: var(--clr-primary-teal); margin-bottom: 0.5rem;
}

.lp-stat-card .lp-stat-label {
  font-size: 0.82rem; font-weight: 500;
  color: var(--clr-text-dim); line-height: 1.4;
}

/* Info cards (parent & teacher panels) — 2×2 grid */
.lp-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lp-info-card {
  background: var(--clr-bg-light);
  border: 1px solid #e8ecf0;
  border-radius: var(--border-radius-base);
  padding: 1.25rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 179, 179, 0.2);
}

.lp-info-card i {
  font-size: 1.35rem; color: var(--clr-primary-teal); flex-shrink: 0;
}

.lp-info-card strong {
  display: block; font-size: 0.92rem; font-weight: 600;
  color: var(--clr-text);
}

.lp-info-card span {
  font-size: 0.82rem; color: var(--clr-text-dim); line-height: 1.45;
}

/* ── Comparison ────────────────────────────────────────── */
.lp-compare {
  padding: 4rem var(--page-horizontal-padding);
  background: var(--clr-bg-light);
}

.lp-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.lp-compare-card {
  background: var(--clr-bg-light);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.lp-compare-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.35rem; color: var(--clr-text);
}

.lp-compare-price {
  font-size: 1.35rem; font-weight: 700;
  color: var(--clr-text); margin-bottom: 1.5rem;
}

.lp-compare-price span {
  font-size: 0.85rem; font-weight: 400; color: var(--clr-text-dim);
}

.lp-compare-card ul {
  list-style: none; padding: 0; margin: 0;
  text-align: left; display: grid; gap: 0.7rem;
}

.lp-compare-card li {
  font-size: 0.88rem; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 0.6rem;
}

.lp-compare-card li i {
  flex-shrink: 0; margin-top: 0.15rem; font-size: 0.82rem;
}

.lp-compare-yes i { color: var(--clr-primary-teal); }
.lp-compare-yes { color: var(--clr-text); }
.lp-compare-no i { color: var(--clr-text-dim); opacity: 0.5; }
.lp-compare-no { color: var(--clr-text-dim); }

.lp-compare-card--highlight {
  border: 2px solid var(--clr-primary-teal);
  box-shadow: 0 8px 30px rgba(18, 179, 179, 0.12);
  padding-top: 2.75rem;
}

.lp-compare-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary-teal); color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Testimonials ───────────────────────────────────────── */
.lp-testimonials {
  padding: 4rem var(--page-horizontal-padding);
  background: #f7fbfb;
}

.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-testimonial {
  background: var(--clr-bg-light);
  border-radius: var(--border-radius-base);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lp-testimonial:nth-child(2) { border-top-color: var(--clr-primary-teal); }
.lp-testimonial:nth-child(3) { border-top-color: var(--clr-accent-hotpink); }
.lp-testimonial:nth-child(4) { border-top-color: var(--clr-warning-gold); }

.lp-testimonial-quote {
  font-size: 0.95rem; color: var(--clr-text);
  line-height: 1.6; margin-bottom: 1.25rem;
  flex-grow: 1; font-style: italic;
}

.lp-testimonial-quote::before {
  content: "\201C"; font-size: 1.5rem;
  color: var(--clr-primary-teal); font-style: normal;
  line-height: 0; vertical-align: -0.25em; margin-right: 0.1em;
}

.lp-testimonial-author {
  font-size: 0.88rem; font-weight: 600; color: var(--clr-text);
}

.lp-testimonial-role {
  font-size: 0.8rem; color: var(--clr-text-dim); margin-top: 0.1rem;
}

.lp-testimonial--featured {
  grid-column: 1 / -1;
  max-width: 780px; justify-self: center;
  border-left: 3px solid var(--clr-primary-teal);
  border-top: none;
  padding: 1.75rem 2rem;
}

.lp-testimonial--featured .lp-testimonial-quote {
  font-size: 1.02rem;
}

/* ── Social Proof Photo Banner ────────────────────────── */
.lp-photo-banner {
  padding: 2.5rem var(--page-horizontal-padding) 0;
  background: var(--clr-bg-light);
}

.lp-photo-banner-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-height: 380px;
}

.lp-photo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-photo-banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  padding: 2.5rem 2rem 1.5rem;
}

.lp-photo-banner-text {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 768px) {
  .lp-photo-banner { padding: 1.5rem var(--page-horizontal-padding) 0; }
  .lp-photo-banner-wrap { max-height: 240px; border-radius: 12px; }
  .lp-photo-banner-text { font-size: 1.05rem; }
  .lp-photo-banner-overlay { padding: 2rem 1.25rem 1rem; }
}

@media (max-width: 375px) {
  .lp-photo-banner-wrap { max-height: 200px; }
  .lp-photo-banner-text { font-size: 0.95rem; }
}

/* ── Mission ────────────────────────────────────────────── */
.lp-mission {
  padding: 4rem var(--page-horizontal-padding);
  background: var(--clr-bg-dark); color: var(--clr-bg-light);
}

.lp-mission-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}

.lp-mission-photo {
  border-radius: 14px;
  overflow: hidden;
  max-height: 340px;
}

.lp-mission-photo img {
  width: 100%; height: 100%;
  max-height: 340px;
  object-fit: cover; display: block;
  border-radius: 14px;
}

.lp-mission-content {
  text-align: left;
}

.lp-mission h2 {
  font-size: 1.85rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--clr-bg-light);
  margin-bottom: 1.25rem;
}

.lp-mission p {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255, 255, 255, 0.8); margin-bottom: 1rem;
}

.lp-mission p:last-child { margin-bottom: 0; }

.lp-mission-accent { color: var(--clr-primary-teal); font-weight: 600; }

.lp-mission-founder {
  font-size: 0.92rem; font-weight: 500; font-style: italic;
  color: rgba(255, 255, 255, 0.55); margin-top: 0.5rem;
}

/* ── Spotlight (photo + text side-by-side) ──────────── */
.lp-spotlight {
  padding: 4rem var(--page-horizontal-padding);
  background: var(--clr-bg-light);
}

.lp-spotlight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lp-spotlight--reverse .lp-spotlight-layout {
  direction: rtl;
}

.lp-spotlight--reverse .lp-spotlight-content {
  direction: ltr;
}

.lp-spotlight--reverse .lp-spotlight-photo {
  direction: ltr;
}

.lp-spotlight-photo {
  border-radius: 14px;
  overflow: hidden;
  max-height: 420px;
}

.lp-spotlight-photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.lp-spotlight-content h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.lp-spotlight-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--clr-text-dim);
  margin-bottom: 1rem;
}

.lp-spotlight-content p:last-child {
  margin-bottom: 0;
}

.lp-spotlight-accent {
  color: var(--clr-primary-teal);
  font-weight: 600;
}

/* ── Mid-page CTA links ───────────────────────────────── */
.lp-mid-cta {
  text-align: center;
  margin-top: 2rem;
}

.lp-mid-cta-link {
  display: inline-block;
  font-size: 0.95rem; font-weight: 600;
  color: var(--clr-primary-teal);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.lp-mid-cta-link:hover {
  color: #0E9494;
  text-decoration: underline;
}

/* ── How It Works ───────────────────────────────────────── */
.lp-steps {
  padding: 4rem var(--page-horizontal-padding);
  background: var(--clr-bg-light);
}

.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.lp-step { text-align: center; position: relative; }

.lp-step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-teal), #0E9494);
  color: var(--clr-bg-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 0.85rem;
  box-shadow: 0 4px 12px rgba(18, 179, 179, 0.25);
}

.lp-step h3 {
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--clr-text);
}

.lp-step p {
  font-size: 0.9rem; color: var(--clr-text-dim);
  line-height: 1.55; margin-bottom: 0;
}

@media (min-width: 769px) {
  .lp-step:not(:last-child)::after {
    content: ''; position: absolute;
    top: 24px; left: calc(50% + 32px);
    width: calc(100% - 64px); height: 2px;
    background: linear-gradient(90deg, var(--clr-primary-teal), rgba(18, 179, 179, 0.15));
  }
}

/* ── FAQ ────────────────────────────────────────────────── */
.lp-faq {
  padding: 4rem var(--page-horizontal-padding);
  background: #f7fbfb;
}

.lp-faq-list { max-width: 700px; margin: 0 auto; }

.lp-faq-item { border-bottom: 1px solid #e8ecf0; }

.lp-faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.25rem 0;
  font-size: 1rem; font-weight: 600; color: var(--clr-text);
  background: none; border: none; cursor: pointer;
  text-align: left; box-shadow: none; border-radius: 0;
  line-height: 1.4; transition: color 0.2s ease;
}

.lp-faq-question:hover { transform: none; box-shadow: none; color: var(--clr-primary-teal); }

.lp-faq-question i {
  font-size: 0.8rem; color: var(--clr-text-dim);
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem;
}

.lp-faq-item.lp-faq-open .lp-faq-question i { transform: rotate(180deg); }

.lp-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}

.lp-faq-item.lp-faq-open .lp-faq-answer { max-height: 300px; }

.lp-faq-answer p {
  font-size: 0.95rem; color: var(--clr-text-dim);
  line-height: 1.65; padding-bottom: 1.25rem; margin-bottom: 0;
}

/* ── Parent Weekly Digest Preview ──────────────────────── */
.lp-digest-preview {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 40px -22px rgba(18, 179, 179, 0.35), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.lp-digest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(18, 179, 179, 0.08), rgba(232, 52, 122, 0.06));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lp-digest-from { display: flex; align-items: center; gap: 0.7rem; }

.lp-digest-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-teal, #12b3b3), #0e8b9e);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}

.lp-digest-from-name { font-weight: 600; font-size: 0.92rem; color: var(--clr-text); }
.lp-digest-from-meta { font-size: 0.74rem; color: var(--clr-text-dim); margin-top: 1px; }

.lp-digest-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary-teal, #12b3b3);
  background: rgba(18, 179, 179, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.lp-digest-body { padding: 1rem 1.1rem 1.15rem; }

.lp-digest-subject {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.lp-digest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  background: var(--clr-bg-subtle, #f8fafb);
  border-radius: 10px;
}

.lp-digest-stat { display: flex; flex-direction: column; align-items: center; }
.lp-digest-stat-num {
  font-size: 1.5rem; font-weight: 700;
  color: var(--clr-primary-teal, #12b3b3);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.lp-digest-stat-label {
  font-size: 0.72rem; font-weight: 500;
  color: var(--clr-text-dim);
  margin-top: 0.25rem; text-align: center;
}

.lp-digest-row {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.88rem; color: var(--clr-text);
  line-height: 1.5; padding: 0.55rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.lp-digest-row:first-of-type { border-top: none; padding-top: 0.25rem; }

.lp-digest-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: 6px;
  flex-shrink: 0; line-height: 1;
}
.lp-digest-tag i { font-size: 0.7rem; }
.lp-digest-tag--win   { color: #047857; background: rgba(16, 185, 129, 0.12); }
.lp-digest-tag--watch { color: #b45309; background: rgba(245, 158, 11, 0.14); }
.lp-digest-tag--try   { color: #6d28d9; background: rgba(139, 92, 246, 0.14); }

@media (max-width: 600px) {
  .lp-digest-preview { margin-top: 1.1rem; }
  .lp-digest-subject { font-size: 0.95rem; }
  .lp-digest-stat-num { font-size: 1.3rem; }
  .lp-digest-row { font-size: 0.82rem; }
}

/* ── Counter Billboard ─────────────────────────────────── */
.lp-counter-band {
  padding: 2.25rem var(--page-horizontal-padding);
  background: linear-gradient(135deg, var(--clr-primary-teal, #12b3b3) 0%, #0e8b9e 55%, var(--clr-accent-hotpink, #e8347a) 130%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-counter-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
              radial-gradient(circle at 85% 100%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.lp-counter-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.lp-counter-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.lp-counter-number {
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.lp-counter-sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .lp-counter-band { padding: 1.65rem var(--page-horizontal-padding); }
  .lp-counter-label { font-size: 0.7rem; letter-spacing: 0.15em; }
  .lp-counter-sub { font-size: 0.85rem; }
}

/* ── Final CTA ──────────────────────────────────────────── */
.lp-final-cta {
  padding: 4rem var(--page-horizontal-padding);
  background: linear-gradient(160deg, #f0fafa 0%, #e8f5f5 50%, #f8fbfb 100%);
  text-align: center;
}

.lp-final-cta h2 {
  font-size: 2rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--clr-text);
  margin-bottom: 0.75rem;
}

.lp-final-cta p {
  font-size: 1.05rem; color: var(--clr-text-dim);
  margin-bottom: 1.75rem; max-width: 500px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}

.lp-final-cta .btn { padding: 0.85rem 2.25rem; font-size: 1.05rem; }

.lp-final-cta .lp-cta-note {
  font-size: 0.82rem; color: var(--clr-text-dim);
  margin-top: 0.75rem; margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem var(--page-horizontal-padding) 1.5rem;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.lp-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lp-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.lp-footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.lp-footer-col a:hover {
  color: var(--clr-primary-teal);
}

.lp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

@media (max-width: 768px) {
  .lp-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── Sticky CTA Bar ────────────────────────────────────── */
.lp-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(18, 179, 179, 0.15);
  padding: 0.7rem var(--page-horizontal-padding);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-sticky-cta.lp-sticky-visible { transform: translateY(0); }

.lp-sticky-cta p { font-size: 0.92rem; font-weight: 500; color: var(--clr-text); margin: 0; }

.lp-sticky-cta .btn { padding: 0.55rem 1.35rem; font-size: 0.88rem; }

/* ── Global Mobile Polish ──────────────────────────────── */
.lp-role-tab,
.lp-feature-card,
.lp-stat-card,
.lp-info-card,
.lp-compare-card,
.lp-testimonial,
.lp-faq-question,
.lp-step,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Tablet (769–1024px) ───────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-feature-card:nth-child(-n+2) { grid-column: span 1; display: block; }
  .lp-feature-card:nth-child(-n+2) .lp-feature-icon { margin-bottom: 1rem; }
  .lp-compare-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  /* -- Hero -- */
  .lp-hero { padding: 2.5rem var(--page-horizontal-padding) 1.75rem; }
  .lp-hero h1 { font-size: 1.85rem; line-height: 1.2; }
  .lp-hero .lp-hero-sub { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.5rem; }
  .lp-hero-layout { margin-bottom: 1.75rem; }
  .lp-hero-content { text-align: center; }
  .lp-hero-buttons { justify-content: center; flex-direction: column; align-items: center; }
  .lp-hero-buttons .btn { width: 100%; max-width: 320px; padding: 0.9rem 1.5rem; font-size: 1rem; }
  .lp-hero-links { width: 100%; flex-direction: column; align-items: center; }
  .lp-hero-links .btn { width: 100%; max-width: 320px; }
  .lp-hero-preview { max-width: 100%; margin-top: 1.5rem; }
  .lp-hero-pain-points { align-items: center; }
  .lp-hero-pain-points li { font-size: 0.95rem; text-align: left; }
  .lp-hero-cta-note { text-align: center; }
  .lp-chat-messages { height: 200px; }

  /* -- Trust bar: horizontal scroll on mobile -- */
  .lp-trust-bar {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 1.25rem; padding: 1.5rem 0 0.75rem; justify-content: flex-start;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .lp-trust-bar::-webkit-scrollbar { display: none; }
  .lp-trust-item { flex-shrink: 0; font-size: 0.82rem; white-space: nowrap; }

  /* -- Section spacing -- */
  .lp-section-heading { font-size: 1.5rem; }
  .lp-section-sub { font-size: 0.95rem; margin-bottom: 1.75rem; }

  .lp-features, .lp-roles, .lp-compare,
  .lp-testimonials, .lp-steps, .lp-faq,
  .lp-final-cta, .lp-mission {
    padding: 2.25rem var(--page-horizontal-padding);
  }

  /* -- Features: all cards horizontal icon-left layout -- */
  .lp-features-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .lp-feature-card { padding: 1.25rem; }
  .lp-feature-card:nth-child(-n+2) { grid-column: span 1; }
  .lp-feature-card:nth-child(-n+2) .lp-feature-icon { margin-bottom: 0; }
  .lp-feature-card:nth-child(n+3) { display: flex; align-items: flex-start; gap: 1rem; }
  .lp-feature-card:nth-child(n+3) .lp-feature-icon { flex-shrink: 0; margin-bottom: 0; }
  .lp-feature-card h3 { font-size: 0.98rem; }
  .lp-feature-card p { font-size: 0.88rem; }

  /* -- Role selector tabs -- */
  .lp-role-tabs { max-width: 100%; gap: 0.65rem; margin-bottom: 1.75rem; }
  .lp-role-tab { padding: 0.85rem 0.4rem; border-radius: 10px; }
  .lp-role-tab:hover { transform: none; }
  .lp-role-tab-icon { width: 40px; height: 40px; margin-bottom: 0.45rem; }
  .lp-role-tab-icon i { font-size: 1rem; }
  .lp-role-tab-label { font-size: 0.78rem; font-weight: 600; }

  /* -- Audience panels -- */
  .lp-audience-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .lp-audience-content h2 { font-size: 1.35rem; text-align: center; }
  .lp-audience-content > p { font-size: 0.92rem; text-align: center; }
  .lp-benefit-list { gap: 0.55rem; }
  .lp-benefit-list li { font-size: 0.9rem; }

  /* Stat cards */
  .lp-audience-visual { gap: 0.6rem; }
  .lp-stat-card { padding: 1rem; }
  .lp-stat-card i { font-size: 1.25rem; }
  .lp-stat-card .lp-stat-label { font-size: 0.78rem; }

  /* Info cards: compact horizontal rows */
  .lp-info-cards { grid-template-columns: 1fr; gap: 0.6rem; }
  .lp-info-card {
    flex-direction: row; text-align: left; align-items: center;
    padding: 1rem; gap: 0.75rem;
  }
  .lp-info-card i { font-size: 1.15rem; flex-shrink: 0; }
  .lp-info-card strong { font-size: 0.88rem; }
  .lp-info-card span { font-size: 0.8rem; }

  /* -- Comparison: swipeable horizontal scroll, edge-to-edge -- */
  .lp-compare-grid {
    grid-template-columns: repeat(3, 80vw);
    max-width: none; gap: 0.75rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 var(--page-horizontal-padding) 0.5rem;
    margin: 0 calc(-1 * var(--page-horizontal-padding));
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .lp-compare-grid::-webkit-scrollbar { display: none; }
  .lp-compare-card { scroll-snap-align: center; min-width: 0; }
  .lp-compare-card--highlight { order: -1; }

  /* -- Testimonials: swipeable horizontal scroll, edge-to-edge -- */
  .lp-testimonials-grid {
    grid-template-columns: repeat(4, 80vw);
    gap: 0.75rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 var(--page-horizontal-padding) 0.5rem;
    margin: 0 calc(-1 * var(--page-horizontal-padding));
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .lp-testimonials-grid::-webkit-scrollbar { display: none; }
  .lp-testimonial { scroll-snap-align: start; min-width: 0; }
  .lp-testimonial--featured {
    grid-column: auto; max-width: none;
    border-left: none; border-top: 3px solid var(--clr-primary-teal);
    padding: 1.5rem;
  }
  .lp-testimonial--featured .lp-testimonial-quote { font-size: 0.95rem; }

  /* -- Steps: horizontal layout -- */
  .lp-steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .lp-step { display: flex; align-items: flex-start; gap: 1rem; text-align: left; }
  .lp-step-number { margin: 0; flex-shrink: 0; width: 40px; height: 40px; font-size: 0.95rem; }
  .lp-step h3 { font-size: 0.98rem; }
  .lp-step p { font-size: 0.88rem; }

  /* -- Mission -- */
  .lp-mission-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .lp-mission-photo { max-height: 260px; }
  .lp-mission-photo img { max-height: 260px; }
  .lp-mission-content { text-align: center; }
  .lp-mission h2 { font-size: 1.45rem; }
  .lp-mission p { font-size: 0.92rem; }

  /* -- Spotlight -- */
  .lp-spotlight { padding: 2.5rem var(--page-horizontal-padding); }
  .lp-spotlight-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .lp-spotlight--reverse .lp-spotlight-layout { direction: ltr; }
  .lp-spotlight-photo { max-height: 340px; }
  .lp-spotlight-photo img { max-height: 340px; }
  .lp-spotlight-content { text-align: center; }
  .lp-spotlight-content h2 { font-size: 1.45rem; }
  .lp-spotlight-content p { font-size: 0.92rem; }

  /* -- FAQ: bigger touch targets -- */
  .lp-faq-question { padding: 1.1rem 0; min-height: 48px; font-size: 0.95rem; }

  /* -- Final CTA -- */
  .lp-final-cta h2 { font-size: 1.45rem; }
  .lp-final-cta p { font-size: 0.95rem; }
  .lp-final-cta .btn { width: 100%; max-width: 320px; }

  /* -- Sticky CTA: full-width button, safe-area aware -- */
  .lp-sticky-cta {
    flex-direction: column; gap: 0;
    padding: 0.6rem var(--page-horizontal-padding);
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
  .lp-sticky-cta p { display: none; }
  .lp-sticky-cta .btn {
    width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem;
    border-radius: 10px;
  }

  /* -- Disable hover effects on touch -- */
  .lp-feature-card:hover,
  .lp-stat-card:hover,
  .lp-info-card:hover,
  .lp-testimonial:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* ── Small phones (≤375px) ─────────────────────────────── */
@media (max-width: 375px) {
  .lp-hero h1 { font-size: 1.6rem; }
  .lp-hero .lp-hero-sub { font-size: 0.9rem; }
  .lp-section-heading { font-size: 1.35rem; }

  .lp-role-tab { padding: 0.7rem 0.25rem; }
  .lp-role-tab-icon { width: 36px; height: 36px; }
  .lp-role-tab-icon i { font-size: 0.9rem; }
  .lp-role-tab-label { font-size: 0.72rem; }

  .lp-audience-content h2 { font-size: 1.25rem; }

  .lp-compare-grid { grid-template-columns: repeat(3, 90vw); }
  .lp-testimonials-grid { grid-template-columns: repeat(4, 88vw); }

  .lp-chat-bubble { font-size: 0.78rem; padding: 8px 12px; }
  .lp-chat-avatar { width: 24px; height: 24px; }
  .lp-typing { margin-left: 32px; }

  .lp-feature-card { padding: 1rem; }
  .lp-feature-icon { width: 40px; height: 40px; }
  .lp-feature-icon i { font-size: 1.1rem; }
}

/* ── Chat Preview Section (below fold) ────────────── */
.lp-chat-preview-section {
  padding: 4rem var(--page-horizontal-padding);
}

/* ═══════════════════════════════════════════════════════
   TRIAL CHAT: Tutor Cards, Celebration, Chat UI, Gate
   ═══════════════════════════════════════════════════════ */

/* ── Tutor Selection Cards ─────────────────────────── */
.lp-hero-pick-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.lp-hero-pick-inner .lp-hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.lp-hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-primary-teal, #12B3B3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lp-hero-pick-inner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--clr-text);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.lp-tutor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 2.5rem auto 0;
}

.lp-tutor-card {
  background: var(--clr-bg-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 2rem 1.25rem 1.25rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  font-family: inherit;
  font-size: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lp-tutor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(18, 179, 179, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(18, 179, 179, 0.3);
}

.lp-tutor-card:active {
  transform: translateY(-3px);
  transition-duration: 0.1s;
}

.lp-tutor-card-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #f0f2f5;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lp-tutor-card:hover .lp-tutor-card-img {
  border-color: rgba(18, 179, 179, 0.4);
  box-shadow: 0 4px 16px rgba(18, 179, 179, 0.15);
}

.lp-tutor-card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.lp-tutor-card-catch {
  font-size: 0.8rem;
  color: var(--clr-primary-teal);
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-style: italic;
  line-height: 1.35;
}

.lp-tutor-card-spec {
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  margin: 0;
  line-height: 1.5;
}

.lp-tutor-card-hear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--clr-accent-hotpink);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 59, 127, 0.05);
  transition: background 0.2s, transform 0.2s;
}

.lp-tutor-card-hear:hover {
  background: rgba(255, 59, 127, 0.12);
  transform: scale(1.04);
}

/* ── Celebration Overlay ────────────────────────────── */
.lp-celebration-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  animation: celebrationFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lp-celebration-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: celebrationSpinFlyFold 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center center;
}

.lp-celebration-video-wrap {
  width: 340px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(18, 179, 179, 0.6), 0 0 80px rgba(255, 59, 127, 0.4), 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid #12B3B3;
  background: white;
  animation: celebrationGlow 2s ease-in-out infinite;
}

.lp-celebration-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.lp-celebration-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, #12B3B3 0%, #FF3B7F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: celebrationTitlePulse 1.5s ease-in-out infinite;
}

.lp-celebration-subtitle {
  font-size: 1.3rem;
  margin: 6px 0 0;
  color: #fff;
  opacity: 0.95;
  font-weight: 600;
}

.lp-celebration-overlay.fade-out {
  animation: celebrationFadeOutAnim 0.4s forwards;
}

@keyframes celebrationFadeOutAnim {
  to { opacity: 0; }
}

/* ── Trial Chat UI ─────────────────────────────────── */
.lp-trial-chat {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

.lp-trial-chat-inner {
  background: var(--clr-bg-light);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(18, 179, 179, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp-trial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef1f4;
  background: #fafcfc;
}

.lp-trial-back {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--clr-text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.lp-trial-back:hover {
  background: rgba(0,0,0,0.06);
}

.lp-trial-tutor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.lp-trial-tutor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--clr-primary-teal);
}

.lp-trial-tutor-info span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-text);
}

.lp-trial-signup-btn {
  font-size: 0.8rem !important;
  padding: 6px 14px !important;
}

.lp-trial-messages {
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reuse existing chat bubble styles */
.lp-trial-messages .lp-chat-row {
  display: flex; align-items: flex-end; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lp-trial-messages .lp-chat-row.lp-chat-visible {
  opacity: 1; transform: translateY(0);
}
.lp-trial-messages .lp-chat-row--student { flex-direction: row-reverse; }

.lp-trial-typing {
  display: none; align-items: center; gap: 5px;
  padding: 10px 15px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 18px; border-bottom-left-radius: 4px;
  max-width: 56px; margin: 0 1rem 0.5rem;
}

/* ── Suggested Prompts ──────────────────────────────── */
.lp-trial-suggestions {
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid #eef1f4;
}

.lp-trial-suggestions-label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.lp-trial-prompt-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lp-trial-prompt {
  background: rgba(18, 179, 179, 0.06);
  border: 1px solid rgba(18, 179, 179, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--clr-primary-teal);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lp-trial-prompt:hover {
  background: rgba(18, 179, 179, 0.14);
  border-color: var(--clr-primary-teal);
}

/* ── Input Area ────────────────────────────────────── */
.lp-trial-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eef1f4;
}

.lp-trial-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.lp-trial-input:focus {
  border-color: var(--clr-primary-teal);
}

.lp-trial-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--clr-primary-teal, #12b3b3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.lp-trial-send:hover { background: #0fa0a0; }
.lp-trial-send:active { transform: scale(0.95); }
.lp-trial-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Math Symbol Keyboard ────────────────────────────── */
.lp-trial-math-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--clr-text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: 'KaTeX_Math', 'Times New Roman', serif;
  font-style: italic;
}
.lp-trial-math-toggle:hover { border-color: var(--clr-primary-teal); color: var(--clr-primary-teal); }
.lp-trial-math-toggle.active { background: var(--clr-primary-teal); color: #fff; border-color: var(--clr-primary-teal); }

.lp-trial-math-bar {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 1rem;
  border-top: 1px solid #eef1f4;
  background: #fafbfc;
}
.lp-trial-math-bar.visible { display: flex; }

.lp-trial-math-btn {
  min-width: 36px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0 8px;
  transition: all 0.15s;
  font-family: 'KaTeX_Math', 'Times New Roman', serif;
  color: var(--clr-text);
}
.lp-trial-math-btn:hover { border-color: var(--clr-primary-teal); background: rgba(18, 179, 179, 0.06); }

/* ── TTS Play Button ─────────────────────────────────── */
.lp-trial-tts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 179, 179, 0.1);
  color: var(--clr-primary-teal);
  font-size: 0.7rem;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lp-trial-tts-btn:hover { background: rgba(18, 179, 179, 0.2); }
.lp-trial-tts-btn.playing { background: var(--clr-primary-teal); color: #fff; }
.lp-trial-tts-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── KaTeX rendering for trial chat bubbles ─────── */

/* Hide MathML (screen-reader only) */
.lp-chat-bubble .katex-mathml {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Inline math — sized to match surrounding text */
.lp-chat-bubble .katex {
  font-size: 1.05em;
}

/* Display math — centered block with subtle background */
.lp-chat-bubble .katex-display {
  margin: 0.6em 0;
  padding: 8px 12px;
  background: rgba(18, 179, 179, 0.04);
  border-radius: 8px;
  border-left: 3px solid rgba(18, 179, 179, 0.25);
  overflow-x: auto;
  overflow-y: hidden;
}

/* Prevent display math overflow on small screens */
.lp-chat-bubble .katex-display > .katex {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Markdown typography inside tutor bubbles */
.lp-chat-tutor p { margin: 0 0 0.4em; }
.lp-chat-tutor p:last-of-type { margin-bottom: 0; }
.lp-chat-tutor strong { font-weight: 600; }
.lp-chat-tutor ul, .lp-chat-tutor ol { margin: 0.3em 0; padding-left: 1.4em; }
.lp-chat-tutor li { margin-bottom: 0.15em; }
.lp-chat-tutor code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}
.lp-chat-tutor blockquote {
  margin: 0.4em 0;
  padding-left: 0.8em;
  border-left: 3px solid rgba(18, 179, 179, 0.3);
  color: var(--clr-text-dim);
}

/* ── Soft Gate ──────────────────────────────────────── */
.lp-trial-gate {
  padding: 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #f0fafa 0%, #fff 100%);
  border-top: 1px solid #eef1f4;
}

.lp-trial-gate-inner {
  max-width: 400px;
  margin: 0 auto;
}

.lp-trial-gate-msg {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.lp-trial-gate-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  white-space: normal;
  line-height: 1.4;
}

.lp-trial-gate-note {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

/* ── Trial Chat Mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .lp-tutor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .lp-hero-pick-inner h1 { font-size: 1.7rem; }
  .lp-tutor-card-img { width: 72px; height: 72px; }
  .lp-tutor-card { padding: 1rem 0.75rem 0.75rem; }
  .lp-celebration-video-wrap { width: 260px; height: 260px; }
  .lp-celebration-title { font-size: 2.5rem; }
  .lp-trial-chat { padding: 0; }
  .lp-trial-chat-inner { border-radius: 0; border-left: 0; border-right: 0; }
  .lp-trial-prompt-btns { flex-direction: column; }
  .lp-trial-prompt { text-align: left; }

  /* Gate CTA - ensure button text never clips */
  .lp-trial-gate { padding: 1.25rem 1rem; }
  .lp-trial-gate-inner { max-width: 100%; padding: 0 0.5rem; }
  .lp-trial-gate-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  .lp-trial-gate-msg { font-size: 0.95rem; }
}

@media (max-width: 375px) {
  .lp-hero-pick-inner h1 { font-size: 1.4rem; }
  .lp-tutor-card-img { width: 56px; height: 56px; }
  .lp-tutor-card-catch { font-size: 0.72rem; }
  .lp-tutor-card-spec { display: none; }

  .lp-mobile-topbar-actions { gap: 8px; }
  .lp-mobile-topbar-link { font-size: 0.8rem; }
  .lp-mobile-topbar-btn { font-size: 0.8rem; padding: 6px 12px; }

  .lp-trial-gate-btn { font-size: 0.88rem; padding: 0.7rem 0.75rem; }
}

/* ── Dark mode overrides for trial chat UI ───────── */
[data-theme="dark"] .lp-tutor-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .lp-tutor-card:hover {
  border-color: rgba(18, 179, 179, 0.35);
  box-shadow: 0 12px 40px rgba(18, 179, 179, 0.12), 0 4px 12px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .lp-tutor-card-img {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .lp-trust-bar {
  background: rgba(18, 179, 179, 0.04);
  border-color: rgba(18, 179, 179, 0.1);
}
[data-theme="dark"] .lp-tutor-card:hover {
  box-shadow: 0 12px 32px rgba(18, 179, 179, 0.25);
}
[data-theme="dark"] .lp-trial-chat-inner {
  border-color: #334155;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
[data-theme="dark"] .lp-trial-header {
  background: #1e293b;
  border-bottom-color: #334155;
}
[data-theme="dark"] .lp-trial-back:hover {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .lp-trial-typing {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .lp-trial-suggestions {
  border-top-color: #334155;
}
[data-theme="dark"] .lp-trial-prompt {
  background: rgba(18, 179, 179, 0.1);
  border-color: rgba(18, 179, 179, 0.25);
}
[data-theme="dark"] .lp-trial-prompt:hover {
  background: rgba(18, 179, 179, 0.2);
}
[data-theme="dark"] .lp-trial-input-area {
  border-top-color: #334155;
}
[data-theme="dark"] .lp-trial-input {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .lp-trial-input:focus {
  border-color: var(--clr-primary-teal);
}
[data-theme="dark"] .lp-trial-gate {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-top-color: #334155;
}
[data-theme="dark"] .lp-celebration-overlay {
  background: rgba(15, 23, 42, 0.95);
}
