/* Vital — landing v2. Modern, responsive, fluid type. Warm cream + deep forest, matching the iOS app. */

:root {
  /* Palette — sampled from the actual app screenshots */
  --bg: #F6F1E7;
  --bg-2: #F0EADC;
  --bg-3: #ECE5D2;
  --surface: #FFFFFF;
  --surface-soft: #FBF7EE;
  --ink: #161B19;
  --ink-2: #3F4845;
  --ink-3: #5C6661;
  --muted: #7A847F;
  --rule: rgba(22,27,25,0.10);
  --rule-soft: rgba(22,27,25,0.06);
  --primary: #1F4F4A;
  --primary-2: #14524F;
  --primary-ink: #0E2F2C;
  --primary-soft: #D7E5E1;
  --primary-tint: #E6EFEC;
  --accent: #8FCCC1;

  /* Category tints — match app screenshots exactly */
  --cat-critical-bg: #F8DDD7;
  --cat-critical-fg: #9A463E;
  --cat-wound-bg: #F8DCC2;
  --cat-wound-fg: #8E5A2C;
  --cat-mental-bg: #DDE1ED;
  --cat-mental-fg: #404A6E;

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 940px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Fluid type */
  --fs-display: clamp(40px, 5.6vw, 68px);
  --fs-h2: clamp(30px, 4vw, 52px);
  --fs-h3: clamp(26px, 3.2vw, 42px);
  --fs-h4: clamp(18px, 1.6vw, 22px);
  --fs-lead: clamp(17px, 1.5vw, 21px);
  --fs-body: clamp(15px, 1.05vw, 16.5px);
  --fs-small: clamp(13px, 0.95vw, 14.5px);
  --fs-mono: clamp(10.5px, 0.8vw, 11.5px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui,
    'Helvetica Neue', Arial, 'PingFang HK', 'PingFang TC', 'Noto Sans CJK TC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ── Lenis (inertial scroll) ─────────────────────────────────────── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.mono { font-family: 'JetBrains Mono', SFMono-Regular, ui-monospace, monospace; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }

/* Lang-specific subtle adjustments */
html[lang="zh"] body { font-family: 'PingFang HK', 'PingFang TC', 'Noto Sans CJK TC', 'Geist', system-ui, sans-serif; }
html[lang="zh"] .mono { font-family: 'JetBrains Mono', 'PingFang HK', monospace; }

/* ── Scroll fade-in ──────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.in-view {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ─── HEADER ────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 0.5px solid transparent;
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.lp-header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding 0.3s var(--ease-out);
}
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 18px; letter-spacing: -0.012em;
}
.lp-dot {
  width: 26px; height: 26px;
  background: url('vital-icon.png') center / contain no-repeat;
  flex: none;
  /* subtle scale-in micro-animation on hover */
  transition: transform 0.4s var(--ease-out);
}
.lp-brand:hover .lp-dot { transform: rotate(360deg) scale(1.06); }

.lp-brand-sub {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease-out);
}
.lp-brand:hover .lp-brand-sub { color: var(--ink-2); }
@media (max-width: 720px) {
  .lp-brand-sub { font-size: 0.78em; }
}
@media (max-width: 420px) {
  .lp-brand-sub { display: none; }
}

.lp-nav-desktop {
  display: flex; align-items: center;
  gap: clamp(2px, 0.6vw, 6px);
  font-size: 14px;
}
.lp-nav-desktop > a {
  color: var(--ink-2); text-decoration: none;
  position: relative;
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 500;
  transition: color 0.2s var(--ease-out), background 0.25s var(--ease-out);
}
.lp-nav-desktop > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  border-radius: 1px;
}
.lp-nav-desktop > a:hover {
  color: var(--ink);
  background: color-mix(in oklch, var(--primary) 7%, transparent);
}
.lp-nav-desktop > a:hover::after { transform: scaleX(1); }
.lp-nav-desktop > a.active {
  color: var(--primary);
  background: var(--primary-tint);
}
.lp-nav-desktop > a.active::after { transform: scaleX(1); }
.lp-sep { width: 1px; height: 18px; background: var(--rule); margin: 0 6px; }

.lp-lang {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(22,27,25,0.05);
  border-radius: 100px;
  padding: 3px;
  font-size: 12px;
  letter-spacing: 0.02em;
  position: relative;
}
.lp-lang button {
  padding: 5px 13px; border-radius: 100px;
  color: var(--muted); cursor: pointer;
  transition: color 0.28s var(--ease-out);
  font-weight: 500;
  position: relative;
  z-index: 1;
  background: transparent;
}
.lp-lang button.active { color: var(--ink); }
.lp-lang::before {
  content: '';
  position: absolute;
  top: 3px; bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--surface);
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(22,27,25,0.08);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.lp-lang[data-active="zh"]::before { transform: translateX(100%); }

.lp-cta-sm {
  background: var(--ink); color: #FFFFFF;
  padding: 5px 6px 5px 18px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 0.22s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.28s var(--ease-out);
  box-shadow: 0 2px 6px -2px rgba(22,27,25,0.32), inset 0 0 0 0.5px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lp-cta-sm:hover { background: #0A0F0D; box-shadow: 0 8px 22px -6px rgba(22,27,25,0.42); }
.lp-cta-sm:active { transform: scale(0.97); }
.lp-cta-sm .cta-arrow {
  width: 26px; height: 26px;
  background: var(--accent);
  color: var(--primary-ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex: none;
  transition: transform 0.45s var(--ease-out), background 0.25s var(--ease-out);
}
.lp-cta-sm:hover .cta-arrow { transform: rotate(45deg); background: #B0DCD2; }
.lp-cta-sm .glyph-only { display: none; }

/* Mobile menu button */
.lp-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 9px;
  align-items: center; justify-content: center;
  background: rgba(22,27,25,0.05);
}
.lp-burger span {
  width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  position: relative; transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.lp-burger span::before, .lp-burger span::after {
  content: ''; position: absolute; left: 0;
  width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.lp-burger span::before { top: -5px; }
.lp-burger span::after { top: 5px; }
.lp-burger.open span { background: transparent; }
.lp-burger.open span::before { transform: translateY(5px) rotate(45deg); }
.lp-burger.open span::after { transform: translateY(-5px) rotate(-45deg); }

.lp-mobile-sheet {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: color-mix(in oklch, var(--bg) 97%, white);
  z-index: 55;
  padding: 88px var(--gutter) 40px;
  display: flex; flex-direction: column;
  gap: 18px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
  overflow-y: auto;
}
/* When the menu is open, lock page scroll AND keep the header pinned at top.
   `overflow: hidden` on body would break position: sticky, so we use
   touch-action and a fixed-position fallback instead. */
html.menu-open { overflow: hidden; touch-action: none; }
html.menu-open body { overflow: hidden; touch-action: none; }
html.menu-open .lp-header { position: fixed; left: 0; right: 0; top: 0; z-index: 60; }
.lp-mobile-sheet.open { transform: translateY(0); pointer-events: auto; }
.lp-mobile-sheet a {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--rule);
}
.lp-mobile-sheet .footer-row {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* ─── CONTAINERS ───────────────────────────────────────────────────── */
.lp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.lp-wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.lp-section { padding: clamp(72px, 10vw, 140px) 0; }
.lp-section.tight { padding: clamp(56px, 7vw, 100px) 0; }
.lp-section.muted-bg { background: var(--bg-2); }

.lp-eyebrow {
  font-size: var(--fs-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.lp-eyebrow::before {
  content: ''; width: 0px; height: 1px;
  background: currentColor; opacity: 0.6;
  transition: width 0.7s var(--ease-out) 0.1s;
}
.lp-eyebrow.in-view::before,
.fade-in.in-view .lp-eyebrow::before,
.in-view > .lp-eyebrow::before { width: 28px; }
/* In normal flow, if eyebrow is .fade-in itself */
.fade-in.lp-eyebrow.in-view::before { width: 28px; }
@media (prefers-reduced-motion: reduce) {
  .lp-eyebrow::before { width: 28px; transition: none; }
}

.lp-h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0 0 22px;
  max-width: 820px;
  color: var(--ink);
  text-wrap: balance;
}
.lp-h2 em { font-style: normal; color: var(--primary); }

.lp-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 0 24px;
  text-wrap: pretty;
}

/* ─── HERO ─────────────────────────────────────────────────────────── */
.lp-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.lp-hero-eyebrow {
  font-size: var(--fs-mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.lp-hero-eyebrow::before {
  content: ''; width: 0px; height: 1px;
  background: currentColor; opacity: 0.6;
  transition: width 0.8s var(--ease-out) 0.15s;
}
.lp-hero-eyebrow.in-view::before,
.fade-in.lp-hero-eyebrow.in-view::before { width: 28px; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero-eyebrow::before { width: 28px; transition: none; }
}
.lp-hero h1 {
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -0.036em;
  font-weight: 500;
  margin: 0 0 26px;
  color: var(--ink);
  text-wrap: balance;
}
.lp-hero h1 em {
  font-style: normal;
  color: var(--primary);
  display: inline-block;
}

/* Word-by-word reveal on hero headline */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: baseline; }
.word-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
  will-change: transform;
}
.word-reveal.ready .word {
  transform: translateY(0);
  opacity: 1;
}
.word-reveal .space { display: inline-block; width: 0.25em; }
@media (prefers-reduced-motion: reduce) {
  .word-reveal .word { transform: none; opacity: 1; transition: none; }
}
.lp-hero p.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.lp-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.12s, background 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: scale(0.985); }
.btn > * { position: relative; z-index: 1; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 4px 12px -4px rgba(22,27,25,0.32);
}
.btn-primary:hover { opacity: 0.92; box-shadow: 0 6px 18px -4px rgba(22,27,25,0.36); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 0.5px solid var(--rule);
}
.btn-secondary:hover { background: var(--primary-tint); border-color: var(--primary-soft); }
.btn .glyph { font-size: 16px; line-height: 1; opacity: 0.85; }

.lp-cta-meta {
  font-size: var(--fs-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.lp-cta-meta b { color: var(--ink); font-weight: 500; }

/* Hero phone arrangement — asymmetric, layered, with parallax */
.lp-hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 60vh, 720px);
  perspective: 1400px;
  --px: 0;
  --py: 0;
}
.lp-hero-phones::before {
  content: '';
  position: absolute;
  inset: 8% -8% 8% -8%;
  background: radial-gradient(ellipse at 60% 50%, rgba(31,79,74,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: blob-drift 14s ease-in-out infinite;
}
.hero-phone {
  position: relative;
  background: #161B19;
  border-radius: 44px;
  padding: 6px;
  box-shadow:
    0 38px 64px -28px rgba(22,27,25,0.34),
    0 14px 28px -10px rgba(22,27,25,0.18),
    inset 0 0 0 0.5px rgba(255,255,255,0.07);
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
  transform-style: preserve-3d;
}
.hero-phone img {
  width: 100%; border-radius: 38px;
  display: block;
  background: #F6F1E7; /* match the app's cream screen color while loading */
  aspect-ratio: 1320 / 2868;
}
.hero-phone.primary {
  width: clamp(240px, 24vw, 320px);
  z-index: 2;
  transform:
    translate3d(calc(var(--px) * 14px), calc(var(--py) * 14px), 0)
    rotateX(calc(var(--py) * -3deg))
    rotateY(calc(var(--px) * 4deg));
  animation: float-y 9s ease-in-out infinite;
}
.hero-phone.secondary {
  position: absolute;
  width: clamp(200px, 19vw, 260px);
  opacity: 0.96;
  z-index: 1;
  right: -8%;
  bottom: 6%;
  transform:
    rotate(4deg)
    translate3d(calc(var(--px) * 22px), calc(var(--py) * 18px), 0);
  animation: float-y-alt 11s ease-in-out infinite;
}
.hero-phone.tertiary {
  position: absolute;
  width: clamp(180px, 16vw, 220px);
  opacity: 0.88;
  z-index: 1;
  left: -10%;
  top: 8%;
  transform:
    rotate(-5deg)
    translate3d(calc(var(--px) * 28px), calc(var(--py) * 22px), 0);
  animation: float-y-alt2 13s ease-in-out infinite;
}
.hero-phone.primary:hover {
  box-shadow:
    0 50px 72px -28px rgba(22,27,25,0.40),
    0 20px 32px -10px rgba(22,27,25,0.22),
    inset 0 0 0 0.5px rgba(255,255,255,0.10);
}

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes float-y-alt {
  0%, 100% { translate: 0 -4px; }
  50% { translate: 0 8px; }
}
@keyframes float-y-alt2 {
  0%, 100% { translate: 0 6px; }
  50% { translate: 0 -8px; }
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-2%, 1%) scale(1.05); }
  66% { transform: translate(2%, -1%) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-phone, .lp-hero-phones::before { animation: none !important; }
  .hero-phone.primary, .hero-phone.secondary, .hero-phone.tertiary {
    transform: none;
  }
  .hero-phone.secondary { transform: rotate(4deg); }
  .hero-phone.tertiary { transform: rotate(-5deg); }
}

/* ─── MARQUEE TRUST STRIP ────────────────────────────────────────── */
.lp-marquee {
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  padding: 18px 0;
  background: var(--surface-soft);
  overflow: hidden;
  position: relative;
}
.lp-marquee::before, .lp-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.lp-marquee::before { left: 0; background: linear-gradient(to right, var(--surface-soft), transparent); }
.lp-marquee::after  { right: 0; background: linear-gradient(to left,  var(--surface-soft), transparent); }
.lp-marquee-track {
  display: flex; gap: 56px; align-items: center;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp-marquee-track > span {
  font-size: var(--fs-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.lp-marquee-track > span b { color: var(--ink); font-weight: 500; }
.lp-marquee-track .pip {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track { animation-duration: 0s; animation-play-state: paused; }
}

/* ─── PROBLEM section ──────────────────────────────────────────────── */
.lp-problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.frag-stack {
  position: relative;
  min-height: 380px;
  display: flex; justify-content: center; align-items: center;
}
.frag {
  position: absolute;
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  width: clamp(220px, 22vw, 320px);
  box-shadow: 0 12px 24px -12px rgba(22,27,25,0.14);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.4s var(--ease-out);
}
.frag-stack:hover .frag.f1 { transform: translate(-120px, -130px) rotate(-6deg); }
.frag-stack:hover .frag.f2 { transform: translate(90px, -70px) rotate(4deg); }
.frag-stack:hover .frag.f3 { transform: translate(-70px, 60px) rotate(-3deg); }
.frag-stack:hover .frag.f4 { transform: translate(130px, 140px) rotate(5deg); }
.frag .src {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.frag .title { color: var(--ink); font-size: 14px; }
.frag .miss { color: var(--cat-critical-fg); font-size: 12px; margin-top: 2px; }
.frag.f1 { transform: translate(-110px, -120px) rotate(-5deg); }
.frag.f2 { transform: translate(80px, -60px) rotate(3deg); }
.frag.f3 { transform: translate(-60px, 50px) rotate(-2deg); }
.frag.f4 { transform: translate(120px, 130px) rotate(4deg); }

/* ─── FEATURE TABS ────────────────────────────────────────────────── */
.lp-feattabs {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: stretch;
  margin-top: 40px;
}
.lp-feattabs-left {
  display: flex; flex-direction: column;
  gap: 10px;
  justify-content: stretch;
}
.lp-feattabs-left > .lp-tab { flex: 1 1 auto; }
.lp-tab {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px;
  border: 0.5px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
}
.lp-tab::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}
.lp-tab.active::before { transform: scaleY(1); }
.lp-tab:hover { background: var(--surface-soft); transform: translateX(2px); }
.lp-tab.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: 0 6px 20px -10px rgba(31,79,74,0.28);
  transform: translateX(0);
}
.lp-tab-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-tab-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.lp-tab.active .lp-tab-num { color: var(--primary); }
.lp-tab h4 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600; letter-spacing: -0.014em;
  margin: 0;
}
.lp-tab p {
  margin: 4px 0 0;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease-out), margin 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}
.lp-tab.active p {
  max-height: 200px;
  margin-top: 8px;
  opacity: 1;
}
.lp-tab-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease-out), margin 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  opacity: 0;
}
.lp-tab.active .lp-tab-bullets { max-height: 200px; margin-top: 14px; opacity: 1; }
.lp-tab-bullets li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2);
}
.lp-tab-bullets li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary); margin-top: 8px; flex: none;
}
.lp-feattabs-right {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 0;
}
.lp-feattabs-right::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(ellipse at center, rgba(31,79,74,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.lp-feat-phone {
  width: clamp(220px, 22vw, 290px);
  background: #161B19; border-radius: 44px; padding: 6px;
  box-shadow:
    0 38px 64px -28px rgba(22,27,25,0.32),
    0 14px 28px -10px rgba(22,27,25,0.16),
    inset 0 0 0 0.5px rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  animation: float-y 10s ease-in-out infinite;
}
.lp-feat-phone .lp-feat-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  background: #F6F1E7; /* show cream while the screenshot is loading, not the dark bezel */
}
.lp-feat-phone img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
  opacity: 0;
  transform: scale(1.04) translateY(8px);
}
.lp-feat-phone img.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .lp-feat-phone { animation: none; }
  .lp-feat-phone img { transition: opacity 0.2s; transform: none; }
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────── */
.lp-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 56px;
}
.lp-step {
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 30px) clamp(28px, 3.4vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: background 0.2s var(--ease-out);
}
.lp-step:hover { background: var(--surface-soft); }
.lp-step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.lp-step-num .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lp-step h4 {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 600; margin: 0;
  letter-spacing: -0.012em;
}
.lp-step p {
  margin: 0; font-size: 14.5px;
  line-height: 1.55; color: var(--ink-2);
}

/* ─── COMMUNITY / TRUST section ───────────────────────────────────── */
.lp-trust-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.lp-course-card {
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow:
    0 36px 60px -32px rgba(22,27,25,0.22),
    0 4px 10px -3px rgba(22,27,25,0.06);
}
.lp-course-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.lp-cat-chip {
  font-size: 12.5px; font-weight: 500;
  padding: 4px 11px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
}
.lp-cat-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.lp-cat-chip.crit { background: var(--cat-critical-bg); color: var(--cat-critical-fg); }
.lp-cat-chip.wound { background: var(--cat-wound-bg); color: var(--cat-wound-fg); }
.lp-cat-chip.mental { background: var(--cat-mental-bg); color: var(--cat-mental-fg); }
.lp-points {
  font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  line-height: 1; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.lp-points .u { font-size: 13px; font-weight: 400; color: var(--muted); }

.lp-course-card h4 {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.014em;
  font-weight: 600;
  text-wrap: balance;
}
.lp-course-card .sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 22px;
}
.lp-trust-row {
  border-top: 0.5px solid var(--rule);
  padding-top: 18px;
}
.lp-trust-label {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lp-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-badge {
  font-size: 12px;
  padding: 5px 11px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500;
  background: rgba(255,255,255,0.6);
}
.lp-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.lp-badge.official { color: #1B5266; background: rgba(27,82,102,0.08); }
.lp-badge.verified { color: #2E6B3F; background: rgba(46,107,63,0.09); }
.lp-badge.community { color: #8B5A1E; background: rgba(139,90,30,0.09); }
.lp-badge.restricted { color: #6A4F5C; background: rgba(106,79,92,0.10); }

.lp-legend {
  margin-top: 18px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.5);
  border: 0.5px dashed var(--rule);
  border-radius: 14px;
}
.lp-legend .legend-title {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lp-legend .legend-row { display: flex; gap: 8px; flex-wrap: wrap; }

.lp-contrib {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 28px;
}
.lp-contrib-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 12px;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.lp-contrib-item:hover { transform: translateY(-2px); background: var(--surface-soft); }
.lp-contrib-item .ic {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.lp-contrib-item .nm { font-size: 14.5px; font-weight: 500; }

/* ─── WHY NOW ─────────────────────────────────────────────────────── */
.lp-whynow-grid {
  display: grid; grid-template-columns: 0.7fr 1fr;
  gap: clamp(36px, 5vw, 80px); align-items: start;
}
.lp-whynow-grid h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: none; }
.lp-whynow-body {
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.7; color: var(--ink-2);
}
.lp-whynow-body p { margin: 0 0 18px; }
.lp-whynow-body p:last-child { margin-bottom: 0; }
.lp-whynow-body em {
  background: var(--primary-tint);
  font-style: normal;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--primary);
  font-weight: 500;
}

/* ─── FAQ accordion ──────────────────────────────────────────────── */
.lp-faq-list { margin-top: 36px; }
.lp-faq-item {
  border-bottom: 0.5px solid var(--rule);
}
.lp-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 4px;
  width: 100%; cursor: pointer;
  text-align: left;
  transition: padding 0.2s var(--ease-out);
}
.lp-faq-q:hover { padding-left: 12px; }
.lp-faq-q .q { font-size: clamp(16px, 1.4vw, 18.5px); font-weight: 500; letter-spacing: -0.01em; }
.lp-faq-q .arrow {
  font-size: 18px; color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.2s;
  flex-shrink: 0;
}
.lp-faq-item.open .lp-faq-q .arrow { transform: rotate(45deg); color: var(--primary); }
.lp-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out);
}
.lp-faq-item.open .lp-faq-a { max-height: 280px; }
.lp-faq-a-inner {
  padding: 0 4px 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 720px;
}

/* ─── FINAL CTA ──────────────────────────────────────────────────── */
.lp-final-wrap { padding: 0 var(--gutter); }
.lp-final {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(56px, 9vw, 110px) clamp(28px, 6vw, 80px);
  margin: clamp(48px, 6vw, 80px) auto;
  max-width: var(--maxw);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle at center, rgba(143,204,193,0.14) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: final-blob 16s ease-in-out infinite;
}
.lp-final::after {
  content: '';
  position: absolute;
  top: 20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(143,204,193,0.10) 0%, transparent 60%);
  pointer-events: none;
  animation: final-blob-2 20s ease-in-out infinite;
}
@keyframes final-blob {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.1); }
}
@keyframes final-blob-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-6%, 4%) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-final::before, .lp-final::after { animation: none; }
}
.lp-final > * { position: relative; }
.lp-final .lp-eyebrow { color: var(--accent); }
.lp-final .lp-eyebrow::before { background: var(--accent); }
.lp-final h2 {
  color: var(--bg);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 820px; margin: 0 auto 22px;
  font-weight: 500;
  text-wrap: balance;
}
.lp-final h2 em { color: var(--accent); font-style: normal; }
.lp-final p {
  color: rgba(246,241,231,0.72);
  font-size: clamp(15px, 1.3vw, 17.5px);
  max-width: 560px; margin: 0 auto 36px;
}
.lp-final .lp-hero-ctas { justify-content: center; }
.lp-final .btn-primary { background: var(--bg); color: var(--ink); box-shadow: none; }
.lp-final .btn-primary:hover { background: #fff; }
.lp-final .btn-secondary {
  background: transparent; color: var(--bg);
  border: 0.5px solid rgba(246,241,231,0.30);
}
.lp-final .btn-secondary:hover { background: rgba(246,241,231,0.06); }
.lp-final .lp-cta-meta { color: rgba(246,241,231,0.5); margin-top: 18px; }
.lp-final .lp-cta-meta b { color: var(--bg); }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.lp-footer {
  border-top: 0.5px solid var(--rule);
  padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 56px);
}
.lp-footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.lp-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.lp-footer-brand .blurb {
  font-size: 13.5px; color: var(--muted);
  max-width: 300px; line-height: 1.55;
}
.lp-footer-col h5 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 500;
}
.lp-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-footer-col a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  transition: color 0.15s;
}
.lp-footer-col a:hover { color: var(--primary); }
.lp-footer-bottom {
  max-width: var(--maxw); margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 0.5px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

/* Tablet down */
@media (max-width: 960px) {
  .lp-nav-desktop > a, .lp-nav-desktop .lp-sep { display: none; }
  .lp-burger { display: inline-flex; }

  .lp-hero-grid, .lp-problem-grid, .lp-trust-grid, .lp-whynow-grid, .lp-feattabs {
    grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px);
  }
  .lp-hero-phones { min-height: clamp(380px, 70vw, 540px); }
  .hero-phone.primary { width: clamp(200px, 42vw, 260px); }
  .hero-phone.secondary { width: clamp(150px, 32vw, 200px); right: -4%; bottom: 8%; }
  .hero-phone.tertiary { width: clamp(130px, 28vw, 170px); left: -4%; top: 4%; }
  .lp-feattabs-right { order: -1; min-height: clamp(420px, 80vw, 540px); }
  .lp-feattabs-left { gap: 10px; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-contrib { grid-template-columns: 1fr; }
  .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .frag-stack { min-height: 340px; }
  .frag { width: clamp(200px, 40vw, 260px); font-size: 12px; padding: 11px 14px; }
  .frag.f1 { transform: translate(-32%, -50%) rotate(-5deg); }
  .frag.f2 { transform: translate(28%, -22%) rotate(3deg); }
  .frag.f3 { transform: translate(-22%, 18%) rotate(-2deg); }
  .frag.f4 { transform: translate(34%, 46%) rotate(4deg); }
  .frag-stack:hover .frag { transform: inherit; }
}

/* Phone */
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --fs-display: clamp(34px, 9vw, 48px);
    --fs-h2: clamp(26px, 7vw, 34px);
  }
  .lp-header-inner { padding: 12px var(--gutter); }
  .lp-cta-sm { padding: 10px 14px; font-size: 13.5px; min-height: 36px; }
  .lp-cta-sm .glyph-only { display: none; }

  .lp-section { padding: 64px 0; }
  .lp-section.tight { padding: 48px 0; }

  .lp-steps { grid-template-columns: 1fr; }
  .lp-step { min-height: 0; padding: 22px 22px 26px; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .lp-final { padding: 56px 22px; border-radius: 18px; margin: 32px var(--gutter); max-width: none; }
  .lp-final-wrap { padding: 0; }
  .lp-marquee-track { gap: 32px; animation-duration: 26s; }
  .lp-marquee-track > span { font-size: 10.5px; }

  .lp-hero { padding: 32px 0 56px; }
  .lp-hero-eyebrow { margin-bottom: 16px; }
  .lp-hero h1 { margin-bottom: 20px; line-height: 1.04; }
  .lp-hero p.lead { margin-bottom: 28px; }
  .lp-hero-phones { min-height: clamp(280px, 72vw, 380px); margin-top: 12px; }
  .hero-phone.primary { width: clamp(170px, 44vw, 220px); z-index: 3; }
  .hero-phone.secondary {
    display: block;
    width: clamp(120px, 30vw, 160px);
    right: -4%; bottom: 4%;
  }
  .hero-phone.tertiary {
    display: block;
    width: clamp(110px, 26vw, 150px);
    left: -4%; top: 4%;
  }

  .btn { width: 100%; padding: 16px 22px; min-height: 52px; font-size: 16px; }
  .btn.btn-secondary { background: transparent; border-color: var(--rule); }
  .lp-hero-ctas { width: 100%; gap: 10px; }
  .lp-final .lp-hero-ctas { width: auto; }
  .lp-final .btn { width: 100%; max-width: 360px; }

  .lp-eyebrow, .lp-hero-eyebrow { letter-spacing: 0.16em; }

  /* Mobile feature tabs — show all bullets compactly */
  .lp-feattabs { margin-top: 36px; }
  .lp-feattabs-left { gap: 8px; }
  .lp-tab { padding: 18px 20px; }
  .lp-tab h4 { font-size: 18px; }

  .lp-faq-q { padding: 20px 4px; }
  .lp-trust-grid, .lp-problem-grid { gap: 36px; }
  .lp-contrib { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-contrib-item .nm { font-size: 13.5px; }

  .lp-course-card { padding: 22px 20px; }
  .lp-course-card h4 { font-size: 19px; }

  .frag-stack { min-height: 300px; }
  .frag { width: clamp(180px, 46vw, 240px); font-size: 11.5px; padding: 10px 13px; }

  .lp-footer { padding: 36px 0 32px; }
  .lp-footer-bottom { font-size: 10.5px; }
}

/* ─── MOBILE STICKY BOTTOM CTA ────────────────────────────────────── */
.lp-mobile-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 40;
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow:
    0 18px 36px -12px rgba(22,27,25,0.32),
    0 4px 12px -4px rgba(22,27,25,0.20);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
  min-height: 56px;
}
.lp-mobile-cta.show {
  transform: translateY(0);
  opacity: 1;
}
.lp-mobile-cta .lm-pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(246,241,231,0.10);
  color: rgba(246,241,231,0.6);
}
.lp-mobile-cta .lm-glyph { font-size: 16px; opacity: 0.8; }
@media (max-width: 600px) {
  .lp-mobile-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* ─── MOBILE MENU SHEET — staggered item entrance ─────────────────── */
.lp-mobile-sheet a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.lp-mobile-sheet.open a {
  opacity: 1;
  transform: translateY(0);
}
.lp-mobile-sheet.open a:nth-child(1) { transition-delay: 0.10s; }
.lp-mobile-sheet.open a:nth-child(2) { transition-delay: 0.16s; }
.lp-mobile-sheet.open a:nth-child(3) { transition-delay: 0.22s; }
.lp-mobile-sheet.open a:nth-child(4) { transition-delay: 0.28s; }
.lp-mobile-sheet.open .footer-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out) 0.34s, transform 0.4s var(--ease-out) 0.34s;
}
.lp-mobile-sheet.open .footer-row { opacity: 1; transform: translateY(0); }

/* ─── EXTRA SLIDE-IN VARIANTS ─────────────────────────────────────── */
.fade-in.from-left { transform: translateX(-22px); }
.fade-in.from-right { transform: translateX(22px); }
.fade-in.from-left.in-view,
.fade-in.from-right.in-view { transform: translateX(0); }
.fade-in.scale-in { transform: scale(0.94); }
.fade-in.scale-in.in-view { transform: scale(1); }

/* ─── HOVER LIFT for cards ────────────────────────────────────────── */
.lp-step, .lp-contrib-item, .lp-tab {
  transition-property: background, border-color, transform, box-shadow;
}
.lp-course-card {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.lp-course-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 44px 70px -32px rgba(22,27,25,0.26),
    0 8px 16px -4px rgba(22,27,25,0.08);
}

/* ─── HEADER SCROLL-COMPRESSION ───────────────────────────────────── */
.lp-header.scrolled .lp-header-inner { padding-top: 10px; padding-bottom: 10px; }
.lp-header.scrolled {
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 6px 20px -10px rgba(22,27,25,0.10);
}

/* ─── MARQUEE pause on hover ──────────────────────────────────────── */
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }

/* ─── FOCUS STATES for buttons ────────────────────────────────────── */
.lp-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.lp-faq-q:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }

/* ─── MOBILE MENU SHEET — keep CTA text white ─────────────────────── */
/* The generic `.lp-mobile-sheet a { color: var(--ink) }` rule above wins
   over `.lp-cta-sm { color: #FFF }` due to higher specificity. Re-assert
   white for the CTA inside the menu, and stop the border-bottom + big
   font-size from bleeding through. */
.lp-mobile-sheet a.lp-cta-sm,
.lp-mobile-sheet a.lp-cta-sm > span {
  color: #FFFFFF;
}
.lp-mobile-sheet a.lp-cta-sm {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 0;
  padding: 5px 6px 5px 18px;
}
.lp-mobile-sheet a.lp-cta-sm .cta-arrow {
  color: var(--primary-ink);
}

/* ─── LEGAL SECTIONS (Privacy + Support, embedded) ────────────────── */
.lp-legal { scroll-margin-top: 80px; }
/* Dedicated /privacy and /support pages get extra top breathing room so the
   title clears the sticky header and reads as the page's hero. */
.lp-legal-page { padding-top: clamp(56px, 8vw, 110px); }
.lp-legal-head { margin-bottom: 48px; max-width: 760px; }
.lp-legal-effective {
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -10px 0 26px;
}
.lp-legal-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.lp-legal-block {
  border-top: 0.5px solid var(--rule);
  padding-top: 28px;
}
.lp-legal-block:first-child { border-top: 0; padding-top: 0; }
.lp-legal-block > h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.016em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.lp-legal-block p,
.lp-legal-block li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lp-legal-block p { margin: 0 0 14px; }
.lp-legal-block ul,
.lp-legal-block ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.lp-legal-block li { margin-bottom: 8px; }
.lp-legal-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  transition: color 0.18s var(--ease-out);
}
.lp-legal-block a:hover { color: var(--primary-ink); }

.lp-legal-sub {
  margin: 22px 0 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 12px;
}
.lp-legal-sub > h4 {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.lp-legal-sub p:last-child,
.lp-legal-sub ol:last-child,
.lp-legal-sub ul:last-child { margin-bottom: 0; }

/* Table */
.lp-legal-table-wrap {
  overflow-x: auto;
  margin: 4px 0 16px;
  border: 0.5px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.lp-legal-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 560px;
}
.lp-legal-table th,
.lp-legal-table td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 0.5px solid var(--rule);
}
.lp-legal-table tr:last-child td { border-bottom: 0; }
.lp-legal-table th {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lp-legal-table td { color: var(--ink-2); }

@media (max-width: 600px) {
  .lp-legal-head { margin-bottom: 32px; }
  .lp-legal-block > h3 { font-size: 19px; }
  .lp-legal-block p,
  .lp-legal-block li { font-size: 15px; }
  .lp-legal-sub { padding: 16px 18px; }
}
