/* ══════════════════════════════════════════════════════
   LANDING PAGE — Premium Redesign (unchanged from original)
   ══════════════════════════════════════════════════════ */
#landing-screen {
  max-width: 100%;
  padding: 0;
  position: relative;
}
/* The notebook grid background is now global (see base.css body::before),
   applied site-wide except on the test screen. */
#landing-screen.active { display: block; }

/* ── Shared tokens ──────────────────────────────────── */
:root {
  --lp-canvas: #F4F5F7;
  --lp-white: #FFFFFF;
  --lp-text: #111827;
  --lp-text-muted: #6B7280;
  --lp-text-faint: #9CA3AF;
  --lp-accent: #4361ee;
  --lp-accent-hover: #3a56d4;
  --lp-border: #E5E7EB;
  --lp-max-w: 960px;
  --lp-section-py: 96px;
  /* Notebook grid tokens (--paper, --grid-line, --grid-size) now live in
     base.css :root so they're available app-wide (and on the blog). */
}

/* ── Nav ────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Translucent frosted paper so the grid reads softly through the nav. */
  background: rgba(252, 252, 251, 0.72);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}
.lp-nav-inner {
  /* full-width 3-column grid: logo flush left, links centered, lang right */
  position: relative;
  max-width: none;
  margin: 0;
  padding: 14px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.lp-nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.3px;
  justify-self: start;
}
.lp-nav-mid {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
}
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.lp-nav-link {
  background: none;
  border: 1px solid var(--lp-border);
  color: var(--lp-text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.lp-nav-link:hover { background: var(--lp-white); border-color: #ccc; }

/* Mobile hamburger button — hidden on desktop, shown on small screens. */
.lp-nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 9px;
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: border-color 0.15s, background 0.15s;
}
.lp-nav-burger:hover { border-color: #ccc; }
.lp-nav-burger span {
  display: block;
  height: 2px;
  background: var(--lp-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.lp-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Override lang-toggle inside landing nav.
   margin-right reserves space for the fixed Clerk UserButton (right: 32px, ~40px wide). */
#landing-screen .lp-nav .lang-toggle { margin-bottom: 0; margin-right: 52px; }

/* ── Hero ───────────────────────────────────────────── */
.lp-hero {
  background: var(--lp-canvas);
  padding: 80px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-hero-content { max-width: 520px; }
.lp-hero-h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lp-text);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.lp-hero-tagline {
  font-size: 17px;
  font-weight: 500;
  color: var(--lp-text-muted);
  margin-bottom: 20px;
  display: none; /* deprecated — replaced by value section */
}
.lp-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--lp-text-muted);
  margin-bottom: 20px;
  max-width: 460px;
}

/* Value section */
.lp-hero-value {
  margin-bottom: 20px;
  max-width: 460px;
}
.lp-hero-value p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-text);
  margin: 0 0 4px;
  font-weight: 500;
}

/* Competitive contrast */
.lp-hero-contrast {
  margin-bottom: 24px;
  max-width: 460px;
}
.lp-hero-contrast p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-text-faint);
  margin: 0 0 2px;
}

/* CTA subtext */
.lp-cta-subtext {
  margin-top: 10px;
  font-size: 13px;
  color: var(--lp-text-faint);
}

/* Mockup label */
.lp-mockup-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-align: center;
}

/* Typewriter */
.lp-hero-typewriter {
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-accent);
  height: 24px;
  margin-bottom: 28px;
}
.lp-tw-cursor {
  display: inline-block;
  animation: lp-blink 0.75s step-end infinite;
  color: var(--lp-accent);
  margin-left: 1px;
}
@keyframes lp-blink { 50% { opacity: 0; } }

/* CTA button */
.lp-cta-btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(67,97,238,0.2);
}
.lp-cta-btn:hover { background: var(--lp-accent-hover); box-shadow: 0 4px 12px rgba(67,97,238,0.25); }
.lp-cta-btn:active { transform: scale(0.98); }

.lp-cta-btn--outline {
  background: var(--lp-white);
  color: var(--lp-text);
  border: 1.5px solid var(--lp-border);
  box-shadow: none;
}
.lp-cta-btn--outline:hover { background: #f9fafb; border-color: #ccc; box-shadow: none; }

.lp-hero-proof {
  margin-top: 20px;
  font-size: 13px;
  color: var(--lp-text-faint);
  line-height: 1.5;
  max-width: 400px;
}

/* ── Social proof line ──────────────────────────────── */
.lp-social-proof {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 450;
  color: #6B7280;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lp-social-proof.lp-sp-visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-social-proof::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  animation: lp-sp-pulse 2.5s ease-in-out infinite;
}
@keyframes lp-sp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}
.lp-social-proof strong {
  font-weight: 600;
  color: #374151;
}
/* Counter span: stabilise width as digits animate up so neighbouring inline
   text doesn't reflow.  tabular-nums keeps each digit a uniform width; the
   inline-block + min-width + right-align lets the "+" stay anchored at the
   right edge while digits fill in from the left. */
/* Number in the live activity ribbon */
#lp-social-count { font-variant-numeric: tabular-nums; }

/* Rolling "odometer" for the questions counter (built by landing.js) */
.odo {
  display: inline-block;
  vertical-align: -0.28em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.odo-d {
  display: inline-block;
  position: relative;
  width: 1ch;
  height: 1em;
  line-height: 1em;
  overflow: hidden;
  vertical-align: top;
}
.odo-d-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.odo-d-strip span { display: block; height: 1em; line-height: 1em; text-align: center; }
.odo-sep { display: inline-block; }

/* ── Hero trust proof: stacked customer avatars + 87% recommend ── */
.lp-hero .lp-trust-card {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  animation: lpFadeUp 600ms var(--ease-out) 740ms forwards;
}
.lp-trust-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  max-width: 270px;
  margin: 6px auto 16px;
  text-align: left;
}
.lp-trust-avatars { display: flex; align-items: center; flex-shrink: 0; }
.lp-trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--lp-white);
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.20);
  background: var(--lp-border);
  margin-left: -10px;
}
.lp-trust-avatar:first-child { margin-left: 0; }
.lp-trust-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lp-trust-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
}
.lp-trust-more span {
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1;
  transform: translateY(-2px);
}
.lp-trust-rotator {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lp-trust-stat {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.lp-trust-rotator.is-live .lp-trust-stat {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transition: opacity 550ms ease,
              transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 550ms ease;
}
.lp-trust-rotator.is-live .lp-trust-stat.is-current { opacity: 1; transform: translateY(0);    filter: blur(0); }
.lp-trust-rotator.is-live .lp-trust-stat.is-next    { opacity: 0; transform: translateY(9px);  filter: blur(1.5px); }
.lp-trust-rotator.is-live .lp-trust-stat.is-prev    { opacity: 0; transform: translateY(-9px); filter: blur(1.5px); }
.lp-trust-stat strong { font-weight: 700; color: var(--lp-text); }
.lp-trust-pct {
  font-weight: 800;
  font-size: 15px;
  color: var(--lp-accent);
}
.lp-trust-stars { display: flex; gap: 2px; margin-top: 1px; }
.lp-star { width: 15px; height: 15px; fill: #00b67a; flex-shrink: 0; }

/* Pull the proof into the lower-left gutter (level with the divider) on wide screens */
@media (min-width: 1280px) {
  .lp-hero .lp-trust-card {
    position: absolute;
    left: -12px;
    bottom: -42px;
    top: auto;
    width: 225px;
    max-width: 225px;
    margin: 0;
    transform: translateX(-100%);
    animation-name: lpFadeCard;
  }
}
@keyframes lpFadeCard { from { opacity: 0; } to { opacity: 1; } }

/* ── Result stat: +19 points (uses the standard section rhythm) ── */
.lp-result-stat { text-align: center; }
.lp-result-figure {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 14px;
}
.lp-result-num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lp-accent);
  line-height: 1;
}
.lp-result-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--lp-accent);
}
.lp-result-max {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text-faint);
  letter-spacing: 0.01em;
}
.lp-result-tagline {
  margin: 0 auto;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--lp-text-muted);
}
.lp-result-tagline strong { color: var(--lp-text); font-weight: 700; }
@media (max-width: 600px) {
  .lp-result-num { font-size: 52px; }
  .lp-trust-stat { font-size: 13px; }
}

/* Hero mockup */
.lp-hero-mockup { position: relative; }
.lp-mockup-window {
  background: var(--lp-white);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid var(--lp-border);
}
.lp-mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid var(--lp-border);
}
.lp-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}
.lp-mockup-body { padding: 16px 20px 20px; }
.lp-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.lp-mockup-title { font-size: 12px; font-weight: 600; color: var(--lp-text); }
.lp-mockup-timer {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 10px;
  border-radius: 6px;
  background: #16213e;
  color: #fff;
}
.lp-mockup-progress {
  height: 3px;
  background: #f0f0f0;
  border-radius: 2px;
  margin-bottom: 14px;
}
.lp-mockup-fill {
  width: 32%;
  height: 100%;
  background: var(--lp-accent);
  border-radius: 2px;
}
.lp-mockup-q { margin-bottom: 12px; }
.lp-mockup-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-bottom: 6px;
}
.lp-mockup-stem {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-text);
  line-height: 1.5;
}
.lp-mockup-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lp-mockup-opt {
  font-size: 12px;
  padding: 8px 12px;
  border: 1.5px solid #eee;
  border-radius: 7px;
  color: var(--lp-text-muted);
  background: #fafafa;
}
.lp-mockup-sel {
  border-color: var(--lp-accent);
  background: #eef2ff;
  color: var(--lp-text);
  font-weight: 600;
}

/* ── Hero Widget (Live Mini-Test) ───────────────────── */

/* Hero focus animation: text slides left, mockup slides to center */
.lp-hero-content {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.lp-hero-mockup {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.lp-hero--focused .lp-hero-content {
  transform: translateX(max(-250px, calc(530px - 50vw)));
}
.lp-hero--focused .lp-hero-mockup {
  transform: translateX(max(-290px, calc(492px - 50vw)));
}

/* Mockup pulse/glow on CTA click */
@keyframes hwMockupPulse {
  0%   { box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 0 0 0 rgba(67,97,238,0.5); }
  70%  { box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 0 0 14px rgba(67,97,238,0); }
  100% { box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 0 0 0 rgba(67,97,238,0); }
}
.lp-mockup-window.hw-pulse {
  animation: hwMockupPulse 0.8s ease-out;
}

/* Smooth progress fill */
.lp-mockup-fill {
  transition: width 0.3s ease;
}

#hw-stage {
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

/* Loading spinner */
.hw-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.hw-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--lp-accent);
  border-radius: 50%;
  animation: hw-spin 0.7s linear infinite;
}
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* Question */
.hw-question { padding: 4px 0; }
.hw-stem {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-text);
  margin: 8px 0 10px;
  white-space: pre-line;
}
.hw-stem-figural { white-space: normal; }

/* Figural scaling inside widget */
#hw-stage .figure-sequence { gap: 6px; padding: 8px 0; }
#hw-stage .figure-cell { width: 70px; height: 70px; }
#hw-stage .figure-reference-area { padding: 4px 0; margin-bottom: 8px; }
#hw-stage .figure-reference-area .figure-cell { width: 100px; height: 100px; }
#hw-stage .figure-analogy-stem { gap: 4px; padding: 8px 0; }
#hw-stage .figure-analogy-sep { font-size: 12px; }
#hw-stage .figure-instruction { font-size: 12px; margin-top: 4px; }

/* Options */
.hw-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hw-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1.5px solid var(--lp-border);
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.hw-opt:hover {
  border-color: #b0c4ee;
  background: #f0f4ff;
}
.hw-opt-selected {
  border-color: var(--lp-accent) !important;
  background: #eef2ff !important;
}
.hw-opt-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8e8e8;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.hw-opt-selected .hw-opt-label {
  background: var(--lp-accent);
  color: #fff;
}
.hw-opt-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Figural options */
.hw-opts-figural {
  grid-template-columns: repeat(4, 1fr);
}
.hw-opts-figural .hw-opt {
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
}
.hw-opts-figural .hw-opt-label { margin-bottom: 4px; }
.hw-opt-figural { white-space: normal; display: flex; justify-content: center; }
.hw-opt-figural svg { width: 60px; height: 60px; }
.hw-opts-odd .hw-opt-figural svg { width: 70px; height: 70px; }

/* Value comparison options */
.hw-opts-vc .hw-opt { justify-content: center; }
.hw-opts-vc .hw-opt-text { white-space: normal; text-align: center; }

/* Slide transitions */
.hw-slide-out-left  { animation: hwSlideOutLeft  200ms ease-in forwards; }
.hw-slide-in-right  { animation: hwSlideInRight  250ms ease-out forwards; }
.hw-slide-out-right { animation: hwSlideOutRight 200ms ease-in forwards; }
.hw-slide-in-left   { animation: hwSlideInLeft   250ms ease-out forwards; }

@keyframes hwSlideOutLeft  { to   { opacity: 0; transform: translateX(-30px); } }
@keyframes hwSlideInRight  { from { opacity: 0; transform: translateX(30px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes hwSlideOutRight { to   { opacity: 0; transform: translateX(30px); } }
@keyframes hwSlideInLeft   { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* Nav — sits outside the mockup window, blends with page background */
.hw-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 0;
}
.hw-nav-arrow {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--lp-text-faint);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.hw-nav-arrow:hover:not(.disabled) {
  color: var(--lp-accent);
  background: rgba(67, 97, 238, 0.08);
}
.hw-nav-arrow.disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.hw-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s;
}
.hw-dot-active { background: var(--lp-accent); }
.hw-dot-answered:not(.hw-dot-active) { background: #a3b8f0; }

/* Completion card */
.hw-complete {
  text-align: center;
  padding: 20px 10px;
}
.hw-complete-score {
  font-size: 36px;
  font-weight: 700;
  color: var(--lp-text);
}
.hw-complete-label {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 12px;
}
.hw-complete-upsell {
  font-size: 12px;
  color: var(--lp-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.hw-complete-cta {
  padding: 10px 24px;
  font-size: 13px;
}

/* Error state */
.hw-error {
  text-align: center;
  padding: 40px 10px;
  color: var(--lp-text-muted);
  font-size: 13px;
}

/* ── Section system ─────────────────────────────────── */
.lp-section {
  padding: var(--lp-section-py) 32px;
}
/* Both section types stay transparent so the notebook paper + grid show
   through continuously; inner cards/tables keep their own backgrounds. */
.lp-section--white { background: transparent; }
.lp-section--neutral { background: transparent; }
.lp-container {
  max-width: var(--lp-max-w);
  margin: 0 auto;
}
.lp-section-h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--lp-text);
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.lp-section-sub {
  font-size: 16px;
  color: var(--lp-text-muted);
  line-height: 1.65;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}

/* ── Scroll reveal ──────────────────────────────────── */
.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lp-reveal.lp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Comparison ─────────────────────────────────────── */
.lp-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}
.lp-compare-divider {
  width: 1px;
  background: var(--lp-border);
  align-self: stretch;
}
.lp-compare-heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.lp-compare-them .lp-compare-heading { color: var(--lp-text-faint); }
.lp-compare-us .lp-compare-heading { color: var(--lp-text); }
.lp-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-compare-them .lp-compare-list li {
  font-size: 14px;
  color: var(--lp-text-faint);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.lp-compare-them .lp-compare-list li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: #d1d5db;
}
.lp-compare-us .lp-compare-list li {
  font-size: 14px;
  color: var(--lp-text);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
  font-weight: 500;
}
.lp-compare-us .lp-compare-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

/* ── Stats ──────────────────────────────────────────── */
.lp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  margin-bottom: 40px;
}
.lp-stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.lp-stat-caption {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}
.lp-competition-cta {
  text-align: center;
  margin: 40px 0 36px;
}
.lp-competition-line {
  font-size: 20px;
  color: var(--lp-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.lp-competition-line--bold {
  font-size: 24px;
  font-weight: 700;
  color: var(--lp-text-primary);
}
.lp-stat-sources {
  max-width: 640px;
  margin: 0 auto;
}
.lp-thin-divider {
  height: 1px;
  background: var(--lp-border);
  margin-bottom: 16px;
}
.lp-stat-sources p {
  font-size: 11px;
  color: var(--lp-text-faint);
  line-height: 1.5;
  text-align: center;
}

/* ── Demo chart ────────────────────────────────────── */
.lp-demo-chart-wrap {
  max-width: 700px;
  margin: 32px auto 0;
}
@media (max-width: 767px) {
  .lp-demo-chart-wrap { max-width: 100%; }
}

/* ── Demo chart scroll-linked animation ───────────── */
.lp-demo-chart-wrap--animating .chart-dot {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lp-demo-chart-wrap--animating .chart-dot.lp-dot-visible {
  opacity: 1;
}
.lp-demo-chart-wrap--animating svg line,
.lp-demo-chart-wrap--animating svg text,
.lp-demo-chart-wrap--animating svg rect:not(:first-of-type),
.lp-demo-chart-wrap--animating .avg-bubble {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lp-demo-chart-wrap--animating.lp-chart-bg-visible svg line,
.lp-demo-chart-wrap--animating.lp-chart-bg-visible svg text,
.lp-demo-chart-wrap--animating.lp-chart-bg-visible svg rect:not(:first-of-type),
.lp-demo-chart-wrap--animating.lp-chart-bg-visible .avg-bubble {
  opacity: 1;
}
.lp-demo-chart-wrap--animating .band-legend-row {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lp-demo-chart-wrap--animating.lp-chart-bg-visible .band-legend-row {
  opacity: 1;
}

/* ── Features grid ──────────────────────────────────── */
.lp-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  max-width: 720px;
  margin: 0 auto;
}
.lp-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.lp-feature:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.lp-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF2FF;
  color: var(--lp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-feature h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 4px;
}
.lp-feature p {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.55;
}

/* ── Domains row ────────────────────────────────────── */
.lp-domains-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.lp-domain {
  padding: 24px 16px;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.lp-domain:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.lp-domain:hover .lp-domain-icon {
  transform: scale(1.1);
}
.lp-domain h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 4px;
}
.lp-domain p {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.5;
}
.lp-domain-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 12px;
  letter-spacing: -0.5px;
  transition: transform 0.25s ease;
}
.lp-domain-numerical { background: #dbeafe; color: #1d4ed8; }
.lp-domain-verbal { background: #fce7f3; color: #be185d; }
.lp-domain-figural { background: #d1fae5; color: #065f46; }

/* ── Pricing ────────────────────────────────────────── */
.lp-pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 560px;
  margin: 0 auto 24px;
}
.lp-pricing-card {
  border: 1.5px solid var(--lp-border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  background: var(--lp-white);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s,
              box-shadow 0.3s,
              background 0.25s;
}
.lp-pricing-card:hover {
  transform: scale(1.035);
  border-color: rgba(67, 97, 238, 0.35);
  box-shadow: 0 12px 36px rgba(67, 97, 238, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  background: linear-gradient(165deg, #fff 60%, #f0f3ff 100%);
}
.lp-pricing-card--recommended {
  border-color: var(--lp-accent);
  box-shadow: 0 4px 20px rgba(67,97,238,0.1);
}
.lp-pricing-card--recommended:hover {
  border-color: var(--lp-accent);
  box-shadow: 0 14px 40px rgba(67, 97, 238, 0.18), 0 2px 8px rgba(0,0,0,0.06);
  background: linear-gradient(165deg, #fff 50%, #edf0ff 100%);
}
.lp-pricing-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-pricing-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 8px;
}
.lp-pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 4px;
}
.lp-pricing-detail {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 24px;
}
.lp-pricing-card .lp-cta-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
}
.lp-guarantee {
  text-align: center;
  font-size: 13px;
  color: var(--lp-text-faint);
  margin-top: 8px;
}

/* ── FAQ ────────────────────────────────────────────── */
.lp-faq {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--lp-border);
  padding: 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--lp-accent); }
.faq-chevron {
  font-size: 12px;
  color: var(--lp-text-faint);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
  line-height: 1.65;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  opacity: 1;
  padding: 0 0 20px;
}

/* ── Footer ─────────────────────────────────────────── */
.lp-footer {
  padding: 32px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--lp-text-faint);
  background: transparent;            /* sits on the notebook paper */
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}

/* ── Language hint callout ──────────────────────────── */
.lang-hint {
  position: fixed;
  top: 58px;
  z-index: 55;
  pointer-events: none;
}

.lang-hint-arrow {
  width: 70px;
  height: 35px;
  display: block;
  transform: scaleX(-1);
}

/* Draw-on animation for the curve */
.lang-hint-curve {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}
.lang-hint.visible .lang-hint-curve {
  animation: langHintDraw 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Draw-on animation for the arrowhead barbs */
.lang-hint-barb {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.lang-hint.visible .lang-hint-barb {
  animation: langHintDraw 0.25s ease forwards 0.9s;
}

@keyframes langHintDraw { to { stroke-dashoffset: 0; } }

.lang-hint-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  margin-left: -135px;
}
.lang-hint.visible .lang-hint-text {
  animation: langHintFadeIn 0.5s ease forwards 0.5s;
}
@keyframes langHintFadeIn { to { opacity: 1; } }
.lang-hint-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
}
.lang-hint-sub {
  font-size: 12px;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

/* Language picker pulse */
@keyframes langPickerPulse {
  0%   { box-shadow: 0 0 0 0 rgba(67,97,238,0.4); }
  70%  { box-shadow: 0 0 0 6px rgba(67,97,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,97,238,0); }
}
.lang-toggle.lang-hint-pulse {
  animation: langPickerPulse 0.8s ease-out 3;
  border-radius: 8px;
}

/* ── Landing responsive ─────────────────────────────── */
@media (max-width: 768px) {
  :root { --lp-section-py: 64px; }
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    text-align: center;
  }
  .lp-hero-content { max-width: 100%; }
  .lp-hero-sub, .lp-hero-proof, .lp-hero-value, .lp-hero-contrast { max-width: 100%; margin-left: auto; margin-right: auto; }
  .lp-hero-h1 { font-size: 30px; }
  /* Hide the entire live-demo section on mobile.  When the widget was unhidden,
     mobile users hit a white-screen ~1-3s after load — root cause not yet
     identified, so re-hiding the whole section for safety until we can debug
     from a real device.  Still renders on desktop. */
  .lp-live-demo-section { display: none; }
  .lp-hero-mockup { display: none; }
  .lp-mockup-label { display: none; }
  .lang-hint { display: none; }
  .lp-hero--focused .lp-hero-content { transform: none; }
  .lp-hero--focused .lp-hero-mockup { transform: none; }
  .lp-section { padding: var(--lp-section-py) 24px; }
  .lp-compare {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lp-compare-divider { width: 100%; height: 1px; }
  .lp-stats-row { grid-template-columns: 1fr; gap: 24px; }
  .lp-stat-number { font-size: 32px; }
  .lp-features-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-domains-row { grid-template-columns: 1fr; gap: 24px; }
  .lp-pricing-row { grid-template-columns: 1fr; max-width: 320px; }
  .lp-section-h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .lp-nav-inner { padding: 12px 16px; }
  .lp-hero { padding: 36px 16px 32px; }
  .lp-hero-h1 { font-size: 26px; }
  .lp-section { padding: 48px 16px; }
}

/* ══════════════════════════════════════════════════════
   v2 — Centered hero + 9-card fan + redesigned sections
   (Mirrors the Wonderlic Ready redesign, adapted for PI's
   9 question types across 3 domains: Numerical, Verbal,
   Figural. Card fan is wider/tighter than the 5-card
   original; pillars and dividers reused as-is.)
   ══════════════════════════════════════════════════════ */

:root {
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.5, 1.65, 0.55, 1);

  /* 9 distinct jewel-tone palettes, one per card. Same aesthetic as
     Wonderlic's 5 (deep saturated, white-text-readable), arranged in
     a cool→warm gradient left to right across the fan. */
  --c1-bg-1: #1e3a8a;  --c1-bg-2: #1e40af;   /* Number Series — deep blue */
  --c2-bg-1: #0c4a6e;  --c2-bg-2: #075985;   /* Word Problems — deep azure */
  --c3-bg-1: #115e59;  --c3-bg-2: #14716c;   /* Value Comparison — deep teal */
  --c4-bg-1: #064e3b;  --c4-bg-2: #065f46;   /* Verbal Analogies — deep emerald */
  --c5-bg-1: #4c1d95;  --c5-bg-2: #5b21b6;   /* Antonyms — deep purple (center) */
  --c6-bg-1: #581c87;  --c6-bg-2: #6b21a8;   /* Logical Conclusions — deep violet */
  --c7-bg-1: #831843;  --c7-bg-2: #9d174d;   /* Figure Series — deep magenta */
  --c8-bg-1: #7f1d1d;  --c8-bg-2: #991b1b;   /* Odd One Out — deep crimson */
  --c9-bg-1: #92400e;  --c9-bg-2: #b45309;   /* Shape Analogies — deep amber */
}

/* ── Hero v2 — full-viewport, centered ─────────────── */
.lp-hero {
  display: block;                  /* override the old grid */
  position: relative;
  padding: 130px 24px 80px;        /* top: clear the lang-hint popup at top:58px + ~70px hint height */
  max-width: none;                 /* override the old 1100px cap */
  margin: 0;
  overflow: visible;               /* show the full cards, no clipping */
  background: transparent;         /* reveal the paper + grid behind */
  text-align: center;
}
.lp-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Headline: per-line mask reveal */
.lp-hero-h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--lp-text);
  text-align: center;
}
.lp-hero-h1 .lp-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0 0.06em;
}
.lp-hero-h1 .lp-line-inner {
  display: block;
  transform: translateY(105%);
  will-change: transform;
  animation: lpLineUp 750ms var(--ease-out) forwards;
}
.lp-hero-h1 .lp-line:nth-child(1) .lp-line-inner { animation-delay: 120ms; }
.lp-hero-h1 .lp-line:nth-child(2) .lp-line-inner { animation-delay: 240ms; }
.lp-hero-h1 .lp-line:nth-child(3) .lp-line-inner { animation-delay: 360ms; }
.lp-line-accent { color: var(--lp-accent); }
@keyframes lpLineUp { to { transform: translateY(0); } }

/* Sub / CTA / social: synced fade-up */
.lp-hero .lp-hero-sub,
.lp-hero .lp-hero-actions,
.lp-hero .lp-social-proof {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  animation: lpFadeUp 600ms var(--ease-out) forwards;
}
.lp-hero .lp-hero-sub      { animation-delay: 520ms; font-size: 17px; line-height: 1.55; color: var(--lp-text-muted); margin: 0 auto 28px; max-width: 540px; }
.lp-hero .lp-hero-actions  { animation-delay: 660ms; margin: 0 0 14px; }
.lp-hero .lp-social-proof  { animation-delay: 800ms; font-size: 13px; color: var(--lp-text-faint); margin: 0; }

/* Micro-USP line under social proof */
.lp-hero-microline {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
  animation: lpFadeUp 600ms var(--ease-out) 920ms forwards;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--lp-text-faint);
  margin: 8px 0 0;
}
@keyframes lpFadeUp { to { opacity: 1; transform: translateY(0); } }

/* Vertical divider line + dot + label (drawn while cards arrive) */
.lp-hero-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 38px;
}
.lp-divider-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, #cbd5e1 25%, #cbd5e1 100%);
  transform-origin: top center;
  transform: scaleY(0);
  animation: lpDrawLine 1100ms var(--ease-out) 950ms forwards;
}
@keyframes lpDrawLine { to { transform: scaleY(1); } }
.lp-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  margin-top: 4px;
  transform: scale(0);
  animation: lpPopIn 280ms var(--ease-spring) 2000ms forwards;
}
@keyframes lpPopIn { to { transform: scale(1); } }
.lp-divider-label {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
  opacity: 0;
  transform: translateY(8px);
  animation: lpFadeUp 360ms var(--ease-out) 2150ms forwards;
}

/* ── Card fan (9 cards) ────────────────────────────── */
.lp-card-fan {
  position: relative;
  margin: 80px auto 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1400px;
  z-index: 5;
}

.lp-card {
  --i: 0;
  --i-abs: 0;
  --tilt: 3.5deg;          /* gentler than 5° so cards at ±4 stay readable */
  --drop: 9px;             /* gentler than 12px so end cards don't sit too low */

  position: relative;
  width: 195px;            /* slightly narrower than the 5-card original */
  height: 285px;
  border-radius: 18px;
  padding: 22px 20px 20px;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22), 0 4px 8px rgba(15, 23, 42, 0.10);
  margin: 0 -50px;          /* much tighter overlap so 9 cards fit ~960px wide */
  transform-origin: 50% 90%;
  will-change: transform, filter, opacity;
  opacity: 0;

  transform:
    translateY(calc(var(--i-abs) * var(--drop)))
    rotate(calc(var(--i) * var(--tilt)));

  transition:
    transform 380ms var(--ease-out),
    filter 280ms ease,
    opacity 280ms ease,
    box-shadow 280ms ease;

  animation: lpCardIn 1500ms var(--ease-spring) forwards;
  animation-delay: calc(1200ms + var(--stagger, 0ms));
}
@keyframes lpCardIn {
  0% {
    opacity: 0;
    transform:
      translateX(calc(75vw + var(--i-abs) * 50px))
      translateY(calc(var(--i-abs) * var(--drop)))
      rotate(calc(var(--i) * var(--tilt) + 14deg));
  }
  60% {
    opacity: 1;
    transform:
      translateX(calc(var(--i) * -8px))
      translateY(calc(var(--i-abs) * var(--drop) - 6px))
      rotate(calc(var(--i) * var(--tilt) - 1.2deg));
  }
  100% {
    opacity: 1;
    transform:
      translateY(calc(var(--i-abs) * var(--drop)))
      rotate(calc(var(--i) * var(--tilt)));
  }
}

/* hover: lift + scale, KEEP the per-card tilt; siblings blur */
.lp-card:hover {
  transform:
    translateY(calc(var(--i-abs) * var(--drop) - 44px))
    rotate(calc(var(--i) * var(--tilt)))
    scale(1.08);
  z-index: 50;
  cursor: pointer;
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.32);
}
.lp-card-fan:has(.lp-card:hover) .lp-card:not(:hover) {
  filter: blur(4px);
  opacity: 0.55;
}

/* per-card backgrounds: one distinct color per card */
.lp-card--c1 { background: linear-gradient(160deg, var(--c1-bg-1) 0%, var(--c1-bg-2) 100%); }
.lp-card--c2 { background: linear-gradient(160deg, var(--c2-bg-1) 0%, var(--c2-bg-2) 100%); }
.lp-card--c3 { background: linear-gradient(160deg, var(--c3-bg-1) 0%, var(--c3-bg-2) 100%); }
.lp-card--c4 { background: linear-gradient(160deg, var(--c4-bg-1) 0%, var(--c4-bg-2) 100%); }
.lp-card--c5 { background: linear-gradient(160deg, var(--c5-bg-1) 0%, var(--c5-bg-2) 100%); }
.lp-card--c6 { background: linear-gradient(160deg, var(--c6-bg-1) 0%, var(--c6-bg-2) 100%); }
.lp-card--c7 { background: linear-gradient(160deg, var(--c7-bg-1) 0%, var(--c7-bg-2) 100%); }
.lp-card--c8 { background: linear-gradient(160deg, var(--c8-bg-1) 0%, var(--c8-bg-2) 100%); }
.lp-card--c9 { background: linear-gradient(160deg, var(--c9-bg-1) 0%, var(--c9-bg-2) 100%); }

.lp-card-title { font-size: 19px; font-weight: 700; line-height: 1.18; }
.lp-card-body  { font-size: 12px; opacity: 0.85; line-height: 1.55; }

/* center-out z-stacking so middle card sits on top, edges underneath */
.lp-card { z-index: calc(20 - var(--i-abs)); }

/* ── VS comparison table (rows of label/them/us cells) ── */
.lp-vs {
  max-width: 880px;
  margin: 48px auto 0;
  background: var(--lp-white);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.lp-vs-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) 1.5fr 1.5fr;
}
.lp-vs-row + .lp-vs-row {
  border-top: 1px solid var(--lp-border);
}
.lp-vs-cell {
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.lp-vs-cell--label {
  font-weight: 600;
  color: var(--lp-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lp-vs-cell--them {
  color: var(--lp-text-faint);
  background: #fafbfc;
  border-left: 1px solid var(--lp-border);
}
.lp-vs-cell--us {
  color: var(--lp-text);
  font-weight: 500;
  background: rgba(67, 97, 238, 0.04);
  border-left: 1px solid var(--lp-border);
}
/* Header row: column titles, no body content */
.lp-vs-row--head .lp-vs-cell {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 22px;
}
.lp-vs-row--head .lp-vs-cell--label { background: transparent; }
.lp-vs-row--head .lp-vs-cell--them  { color: var(--lp-text-faint); }
.lp-vs-row--head .lp-vs-cell--us    { color: var(--lp-accent); background: rgba(67, 97, 238, 0.08); }
/* Subtle marker before each value to reinforce the row-level compare */
.lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--them::before,
.lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--us::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}
.lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--them::before {
  background: #e2e8f0;
}
.lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--us::before {
  background: var(--lp-accent);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}
@media (max-width: 720px) {
  .lp-vs-row { grid-template-columns: 1fr 1fr; }
  .lp-vs-cell--label {
    grid-column: 1 / -1;
    background: #f1f5f9;
    border-bottom: 1px solid var(--lp-border);
  }
  .lp-vs-row--head .lp-vs-cell--label { display: none; }
}
@media (max-width: 480px) {
  /* Mobile USP-card layout. At this width, a literal table doesn't read — the
     reader needs to scan "what do I get" not align columns. So each row becomes
     a card that LEADS with PI Prep's answer (large, bold, brand check) and
     shows the competitor's answer underneath as a muted counterpoint with a
     gray cross. The criterion label sits on top as a small eyebrow. The column-
     titles header row is hidden — cards are self-labeled, and the surrounding
     section heading already establishes "PI Prep vs the rest." */
  .lp-vs {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
  }
  .lp-vs-row--head { display: none; }
  .lp-vs-row {
    display: flex;
    flex-direction: column;
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    padding: 16px 18px 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  }
  /* Each card already has its own border — kill the desktop sibling-border rule */
  .lp-vs-row + .lp-vs-row { border-top: none; }
  .lp-vs-cell {
    padding: 0;
    border-left: none;
    display: flex;
    align-items: flex-start;
  }
  /* 1. Criterion eyebrow */
  .lp-vs-cell--label {
    order: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lp-text-muted);
    background: transparent;
    margin-bottom: 10px;
    border-bottom: none;
  }
  /* 2. PI Prep answer — prominent */
  .lp-vs-cell--us {
    order: 2;
    color: var(--lp-text);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    background: transparent;
    border-left: none;
    margin-bottom: 11px;
  }
  /* 3. Competitor answer — muted counterpoint, separated by a thin divider */
  .lp-vs-cell--them {
    order: 3;
    color: var(--lp-text-muted);
    font-size: 13px;
    line-height: 1.45;
    background: transparent;
    border-left: none;
    padding-top: 10px;
    border-top: 1px solid var(--lp-border);
  }
  /* Replace the round dot markers with iconographic check / cross */
  .lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--us::before {
    content: '✓';
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: var(--lp-accent);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    margin: 1px 10px 0 0;
    flex-shrink: 0;
  }
  .lp-vs-row:not(.lp-vs-row--head) .lp-vs-cell--them::before {
    content: '✕';
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin: 2px 10px 0 0;
    flex-shrink: 0;
  }
}

/* ── Eyebrow label above section H2 ──────────────── */
.lp-eyebrow {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lp-accent);
  margin: 0 auto 12px;
}

/* ── Engine pillars (3 columns: stat number + title + body) ─ */
.lp-engine-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  max-width: 980px;
  margin: 64px auto 0;
}
.lp-engine-pillar {
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.lp-engine-pillar:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--lp-border) 18%, var(--lp-border) 82%, transparent);
}
.lp-engine-pillar-num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
  white-space: nowrap;
  background: linear-gradient(160deg, var(--lp-text) 0%, var(--lp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-engine-pillar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.lp-engine-pillar-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-text-muted);
  margin: 0;
}

/* ── Section-top divider (mirrors hero divider, scroll-driven) ─ */
.lp-section-with-divider .lp-container { position: relative; }
.lp-section-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -52px auto 36px;
  --scroll-progress: 0;
  --p-line: clamp(0, calc(var(--scroll-progress) / 0.50), 1);
  --p-dot:  clamp(0, calc((var(--scroll-progress) - 0.40) / 0.30), 1);
  --p-lbl:  clamp(0, calc((var(--scroll-progress) - 0.55) / 0.30), 1);
}
.lp-section-divider .lp-divider-line {
  display: block;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #94a3b8 18%, #94a3b8 100%);
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(var(--p-line));
  animation: none;
  transition: none;
}
.lp-section-divider .lp-divider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-accent);
  margin-top: 4px;
  box-shadow: 0 0 0 calc(var(--p-dot) * 6px) rgba(67, 97, 238, 0.12);
  transform: scale(var(--p-dot));
  animation: none;
  transition: none;
}
.lp-section-divider .lp-divider-label {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-text-muted);
  opacity: var(--p-lbl);
  transform: translateY(calc((1 - var(--p-lbl)) * 10px));
  animation: none;
  transition: none;
}

/* ── Live demo section: re-position the mockup ───── */
.lp-section .lp-hero-mockup {
  max-width: 480px;
  margin: 36px auto 0;
}

/* ── Section padding for the new layout ──────────── */
.lp-section { padding: 88px 24px; }

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-h1 .lp-line-inner,
  .lp-hero .lp-hero-sub,
  .lp-hero .lp-hero-actions,
  .lp-hero .lp-social-proof,
  .lp-divider-label { animation: none !important; transform: none !important; opacity: 1 !important; }
  .lp-divider-line { animation: none !important; transform: scaleY(1) !important; }
  .lp-divider-dot { animation: none !important; transform: scale(1) !important; }
  .lp-card { animation: none !important; opacity: 1 !important; }
}

/* ── Responsive: scale down the card fan, then drop it ── */
@media (max-width: 1100px) {
  .lp-card { width: 180px; height: 260px; margin: 0 -55px; padding: 18px 16px; }
  .lp-card-title { font-size: 17px; }
  .lp-card-body  { font-size: 11.5px; }
}
@media (max-width: 900px) {
  .lp-card-fan { transform: scale(0.78); transform-origin: top center; margin-bottom: -40px; }
  .lp-engine-pillars { grid-template-columns: 1fr; gap: 40px; }
  .lp-engine-pillar:not(:first-child)::before { display: none; }
  .lp-engine-pillar-num { font-size: 44px; }
}
@media (max-width: 600px) {
  .lp-hero { min-height: auto; padding: 48px 16px 32px; }
  .lp-hero-h1 { font-size: 26px; }
  .lp-hero-divider { display: none; }
  .lp-card-fan { display: none; }
  .lp-section { padding: 56px 16px; }

  /* Mobile nav: collapse middle links into a hamburger drawer.
     Grid drops the third 1fr column so lang-toggle + burger stay on-screen. */
  .lp-nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .lp-nav-mid {
    display: none;
  }
  .lp-nav-mid.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(244,245,247,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 12px 16px 16px;
  }
  .lp-nav-mid.open .lp-nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    background: var(--lp-white);
  }
  .lp-nav-burger {
    display: flex;
  }
  /* Burger sits before lang-toggle in source order, so spacing is handled by .lp-nav-right's gap.
     Keep lang-toggle's 52px right margin so the fixed Clerk UserButton (when signed in) doesn't overlap. */
}
