/* ListPulse — public styles
 * Dark medical-dashboard palette. Pulse/EKG motif carries from the brand mark.
 */
:root {
  --lp-bg:        #0a0b10;
  --lp-surface:   #13151c;
  --lp-surface-2: #1a1d27;
  --lp-line:      rgba(255,255,255,0.08);
  --lp-line-2:    rgba(255,255,255,0.14);
  --lp-text:      #e9ecf1;
  --lp-text-mute: #8a92a6;
  --lp-accent:    #3ddc97;  /* pulse green */
  --lp-accent-2:  #6ff0b6;
  --lp-warn:      #f4c06b;
  --lp-bad:       #ff6478;
  --lp-gold:      #d4af7a;
  --lp-radius:    12px;
  --lp-shadow:    0 10px 40px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body.lp-body {
  background: radial-gradient(1200px 600px at 50% -100px, rgba(61,220,151,0.12), transparent 70%), var(--lp-bg);
  color: var(--lp-text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--lp-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--lp-line);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,11,16,0.85);
}
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--lp-text);
}
.lp-brand__mark { color: var(--lp-accent); display: inline-flex; }
.lp-brand--sm { font-size: 15px; }
.lp-nav__links { display: flex; align-items: center; gap: 22px; }
.lp-nav__links a { color: var(--lp-text-mute); font-size: 14px; font-weight: 500; }
.lp-nav__links a:hover { color: var(--lp-text); text-decoration: none; }
.lp-nav__links a.is-active { color: var(--lp-text); }

/* BUTTONS */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px; border-radius: 8px;
  border: 1px solid var(--lp-line-2); background: transparent;
  color: var(--lp-text); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .15s ease; text-decoration: none;
}
.lp-btn:hover { border-color: var(--lp-text-mute); background: var(--lp-surface-2); }
.lp-btn--primary {
  background: linear-gradient(180deg, var(--lp-accent-2), var(--lp-accent));
  color: #062318; border-color: transparent;
}
.lp-btn--primary:hover { filter: brightness(1.05); color: #062318; text-decoration: none; }
.lp-btn--ghost { background: transparent; color: var(--lp-text-mute); }
.lp-btn--danger { color: var(--lp-bad); border-color: rgba(255,100,120,0.3); }
.lp-btn--sm { padding: 8px 14px; font-size: 13px; }
.lp-btn--lg { padding: 15px 28px; font-size: 16px; }
.lp-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* MAIN + CONTAINER */
.lp-main { flex: 1; }
.lp-container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.lp-container--narrow { max-width: 820px; }

/* HERO */
.lp-hero { padding: 72px 28px 64px; text-align: center; position: relative; }
.lp-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(61,220,151,0.08);
  border: 1px solid rgba(61,220,151,0.25);
  color: var(--lp-accent); font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.lp-hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.025em;
  margin: 0 auto 18px; max-width: 900px; line-height: 1.08;
  text-wrap: balance;
}
.lp-hero h1 em { color: var(--lp-accent); font-style: normal; }
.lp-hero__sub {
  font-size: 18px; color: var(--lp-text-mute); max-width: 640px;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.lp-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.lp-hero__small { color: var(--lp-text-mute); font-size: 13px; }
.lp-hero__small strong { color: var(--lp-text); }

/* CARDS + SECTIONS */
.lp-section { padding: 64px 0; }
.lp-section__head { text-align: center; margin-bottom: 48px; }
.lp-section__eyebrow {
  color: var(--lp-accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.lp-section h2 {
  font-size: clamp(26px, 3.5vw, 38px); margin: 10px auto 12px; max-width: 820px;
  font-weight: 700; letter-spacing: -0.02em;
  text-wrap: balance;                     /* prevents lone-word orphans */
}
.lp-section__lead { color: var(--lp-text-mute); max-width: 640px; margin: 0 auto; font-size: 17px; text-wrap: pretty; }

.lp-card {
  background: var(--lp-surface); border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); padding: 24px;
}
.lp-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.lp-card p { margin: 0; color: var(--lp-text-mute); font-size: 15px; }

.lp-grid { display: grid; gap: 18px; }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* Fixed 3-column pricing tier that snaps to 1-column on mobile.
 * No auto-fit — we want the three cards side-by-side even when one is
 * featured and slightly taller. */
.lp-grid--pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .lp-grid--pricing { grid-template-columns: 1fr; } }

/* SCORE DIAL */
.lp-score { text-align: center; padding: 32px; }
.lp-score__number { font-size: 96px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.lp-score__grade  { font-size: 24px; font-weight: 700; margin-top: 6px; }
.lp-score--ok     .lp-score__number, .lp-score--ok    .lp-score__grade { color: var(--lp-accent); }
.lp-score--warn   .lp-score__number, .lp-score--warn  .lp-score__grade { color: var(--lp-warn); }
.lp-score--bad    .lp-score__number, .lp-score--bad   .lp-score__grade { color: var(--lp-bad); }
.lp-score__label  { color: var(--lp-text-mute); margin-top: 10px; font-size: 14px; }

/* PULSE ANIMATION */
@keyframes lp-ekg { 0% { stroke-dashoffset: 1000; } 100% { stroke-dashoffset: 0; } }
.lp-ekg {
  width: 100%; max-width: 420px; height: 60px; display: block; margin: 12px auto;
  color: var(--lp-accent);
}
.lp-ekg polyline {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: lp-ekg 2.2s ease-out forwards;
}

/* FORMS */
.lp-form { display: grid; gap: 14px; }
.lp-field label {
  display: block; font-size: 13px; color: var(--lp-text-mute);
  margin-bottom: 6px; font-weight: 600;
}
.lp-field input[type=text], .lp-field input[type=email], .lp-field input[type=password] {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--lp-line-2); background: var(--lp-surface);
  color: var(--lp-text); font-size: 15px; font-family: inherit;
}
.lp-field input:focus { outline: none; border-color: var(--lp-accent); }
.lp-field__hint { font-size: 12px; color: var(--lp-text-mute); margin-top: 6px; }

/* DROPZONE */
.lp-drop {
  border: 2px dashed var(--lp-line-2); border-radius: 14px;
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all .15s ease; background: var(--lp-surface);
}
.lp-drop:hover, .lp-drop.is-hover { border-color: var(--lp-accent); background: rgba(61,220,151,0.04); }
.lp-drop__icon { font-size: 40px; margin-bottom: 10px; color: var(--lp-accent); }
.lp-drop__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.lp-drop__hint { color: var(--lp-text-mute); font-size: 14px; }
.lp-drop input[type=file] { display: none; }

/* STAT TILES */
.lp-stat {
  background: var(--lp-surface); border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); padding: 18px;
}
.lp-stat__num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.lp-stat__label { font-size: 13px; color: var(--lp-text-mute); margin-top: 4px; }
.lp-stat__sub { font-size: 12px; color: var(--lp-text-mute); margin-top: 6px; }
.lp-stat--ok   .lp-stat__num { color: var(--lp-accent); }
.lp-stat--warn .lp-stat__num { color: var(--lp-warn); }
.lp-stat--bad  .lp-stat__num { color: var(--lp-bad); }

/* TABLE */
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-table th, .lp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--lp-line); }
.lp-table th { color: var(--lp-text-mute); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.lp-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.06); color: var(--lp-text-mute); border: 1px solid var(--lp-line);
  margin-right: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.lp-badge--bad  { color: var(--lp-bad);    border-color: rgba(255,100,120,0.3);  background: rgba(255,100,120,0.08); }
.lp-badge--warn { color: var(--lp-warn);   border-color: rgba(244,192,107,0.3);  background: rgba(244,192,107,0.08); }
.lp-badge--ok   { color: var(--lp-accent); border-color: rgba(61,220,151,0.3);   background: rgba(61,220,151,0.08); }

/* PRICING */
.lp-price {
  background: var(--lp-surface); border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius); padding: 28px; position: relative;
}
.lp-price--featured { border-color: var(--lp-accent); box-shadow: 0 0 0 1px var(--lp-accent), var(--lp-shadow); }
.lp-price__tag {
  position: absolute; top: -12px; right: 20px;
  background: var(--lp-accent); color: #062318;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.lp-price__name { font-size: 14px; color: var(--lp-text-mute); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.lp-price__amt { font-size: 44px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.lp-price__amt small { font-size: 16px; color: var(--lp-text-mute); font-weight: 500; }
.lp-price__year { font-size: 13px; color: var(--lp-text-mute); margin-bottom: 18px; }
.lp-price__feats { list-style: none; padding: 0; margin: 18px 0; }
.lp-price__feats li { padding: 6px 0; font-size: 14px; color: var(--lp-text-mute); }
.lp-price__feats li::before { content: '✓ '; color: var(--lp-accent); font-weight: 700; }

/* PAYWALL */
.lp-paywall {
  background: linear-gradient(180deg, var(--lp-surface), var(--lp-surface-2));
  border: 1px solid var(--lp-accent); border-radius: 16px;
  padding: 32px; text-align: center; position: relative; overflow: hidden;
}
.lp-paywall::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(61,220,151,0.18), transparent);
  pointer-events: none;
}
.lp-paywall h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.lp-paywall p  { color: var(--lp-text-mute); margin: 0 0 18px; }

/* FOOTER */
.lp-footer { border-top: 1px solid var(--lp-line); margin-top: 64px; padding: 40px 28px 28px; color: var(--lp-text-mute); font-size: 14px; }
.lp-footer__grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.lp-footer h4 { color: var(--lp-text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.lp-footer a { display: block; color: var(--lp-text-mute); padding: 3px 0; font-size: 14px; }
.lp-footer__tag { margin-top: 10px; font-size: 13px; color: var(--lp-text-mute); max-width: 320px; }
.lp-footer__legal { max-width: 1120px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--lp-line); font-size: 12px; }

@media (max-width: 720px) {
  .lp-nav { padding: 14px 18px; }
  .lp-nav__links a:not(.lp-btn) { display: none; }
  .lp-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* MESSAGES */
.lp-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.lp-msg--ok  { background: rgba(61,220,151,0.1); color: var(--lp-accent); border: 1px solid rgba(61,220,151,0.3); }
.lp-msg--bad { background: rgba(255,100,120,0.1); color: var(--lp-bad); border: 1px solid rgba(255,100,120,0.3); }

/* ============================================================
 * ANIMATION LIBRARY
 * Mind-blowing-but-tasteful motion for the landing + upload flow.
 * ============================================================ */

/* --- Hero animated background ---
 * NOTE: We intentionally do NOT animate background-position on the
 * multi-radial gradient — that recalculates the entire gradient on
 * every paint frame and was the single biggest perf hit. Static
 * gradient looks essentially identical and costs zero per-frame work.
 */
@keyframes lp-float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}
/* Pulse ring uses scale (compositor-only) instead of box-shadow (paint-bound).
 * Applied via a ::after pseudo-element on .lp-btn--pulse below. */
@keyframes lp-pulse-ring-out {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0;   }
}
@keyframes lp-pulse-ring {
  0%   { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.5);  opacity: 0; }
}
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lp-pop-in {
  0%   { opacity: 0; transform: scale(0.4) rotate(-10deg); }
  60%  { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes lp-ekg-draw {
  0%   { stroke-dashoffset: 1200; }
  100% { stroke-dashoffset: 0; }
}
@keyframes lp-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes lp-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lp-confetti-fall {
  0%   { transform: translateY(-20vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes lp-spin-slow {
  to { transform: rotate(360deg); }
}

/* --- Hero --- */
.lp-hero--epic {
  position: relative;
  overflow: hidden;
  padding: 96px 28px 88px;
}
.lp-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 460px at 22% 8%,  rgba(61,220,151,0.18), transparent 65%),
    radial-gradient(800px 500px at 82% 12%, rgba(108,99,255,0.14), transparent 65%),
    radial-gradient(900px 600px at 50% 100%, rgba(61,220,151,0.10), transparent 70%),
    var(--lp-bg);
  pointer-events: none;
}
.lp-hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}
.lp-hero__ekgs {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.lp-hero__ekgs svg {
  position: absolute; left: -10%; width: 130%; height: auto; opacity: 0.18;
}
.lp-hero__ekgs polyline { fill: none; stroke: var(--lp-accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.lp-hero__ekg-1 { top: 14%; animation: lp-float-y 9s ease-in-out infinite; }
.lp-hero__ekg-2 { top: 42%; animation: lp-float-y 11s ease-in-out infinite reverse; opacity: 0.12 !important; }
.lp-hero__ekg-3 { top: 72%; animation: lp-float-y 13s ease-in-out infinite; opacity: 0.10 !important; }

.lp-hero--epic > .lp-container { position: relative; z-index: 1; }

.lp-hero__live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(11,12,18,0.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px; color: var(--lp-text-mute);
  margin-bottom: 24px;
}
.lp-hero__live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent);
  position: relative;
}
.lp-hero__live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--lp-accent); animation: lp-pulse-ring 1.6s ease-out infinite;
}
.lp-hero__live strong { color: var(--lp-text); font-variant-numeric: tabular-nums; }

.lp-hero h1.lp-hero__title {
  font-size: clamp(36px, 6.2vw, 72px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.02; margin: 8px auto 22px; max-width: 980px;
  background: linear-gradient(180deg, #fff 0%, #c5d3df 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-hero h1.lp-hero__title em {
  font-style: normal; color: transparent;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2), var(--lp-accent));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: lp-shimmer 4s linear infinite;
}

/* Pulse on the primary CTA — uses a stacked ::after that scales (compositor only).
 * No box-shadow animation = no per-frame paint, no per-frame layout.
 */
.lp-btn--pulse { position: relative; isolation: isolate; }
.lp-btn--pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--lp-accent); opacity: 0.5;
  animation: lp-pulse-ring-out 2.4s ease-out infinite;
}

/* --- Scroll-reveal --- */
.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.lp-reveal.is-in { opacity: 1; transform: translateY(0); }
.lp-reveal[data-delay="1"] { transition-delay: .08s; }
.lp-reveal[data-delay="2"] { transition-delay: .16s; }
.lp-reveal[data-delay="3"] { transition-delay: .24s; }
.lp-reveal[data-delay="4"] { transition-delay: .32s; }
.lp-reveal[data-delay="5"] { transition-delay: .40s; }

/* --- Big stats counter band --- */
.lp-bigstats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; padding: 28px 0; max-width: 1040px; margin: 0 auto;
}
.lp-bigstat {
  text-align: center; padding: 20px 16px;
  border-left: 1px solid var(--lp-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.lp-bigstat:first-child { border-left: none; }
.lp-bigstat__num {
  font-size: clamp(36px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(180deg, var(--lp-accent-2), var(--lp-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;   /* never break mid-number */
}
.lp-bigstat__num--sm { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; }
.lp-bigstat__label {
  font-size: 12px; color: var(--lp-text-mute); letter-spacing: 0.08em;
  text-transform: uppercase; max-width: 180px; line-height: 1.4;
}
@media (max-width: 520px) {
  .lp-bigstat { border-left: none; border-top: 1px solid var(--lp-line); }
  .lp-bigstat:first-child { border-top: none; }
}

/* --- Feature cards: 3D tilt + glow on hover --- */
.lp-card--tilt {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d; will-change: transform;
}
.lp-card--tilt:hover {
  border-color: rgba(61,220,151,0.4);
  box-shadow: 0 20px 60px -20px rgba(61,220,151,0.35), 0 0 0 1px rgba(61,220,151,0.18) inset;
}
.lp-card__icon {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(61,220,151,0.12); color: var(--lp-accent);
  margin-bottom: 14px; font-size: 22px;
  transition: transform .3s ease;
}
.lp-card--tilt:hover .lp-card__icon { transform: rotate(-8deg) scale(1.1); }

/* --- Pricing card hover --- */
.lp-price { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lp-price:hover { transform: translateY(-4px); border-color: rgba(61,220,151,0.45); box-shadow: 0 24px 60px -20px rgba(61,220,151,0.25); }
/* Featured pricing card: static glow ring instead of an animated one.
 * Visually distinctive but zero per-frame cost. */
.lp-price--featured { box-shadow: 0 0 0 1px var(--lp-accent), 0 24px 60px -20px rgba(61,220,151,0.35); }

/* ============================================================
 * UPLOAD GAMIFICATION
 * ============================================================ */

.lp-steps { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 36px; flex-wrap: wrap; }
.lp-step { display: flex; align-items: center; gap: 10px; opacity: 0.45; transition: opacity .3s ease; }
.lp-step.is-active { opacity: 1; }
.lp-step.is-done   { opacity: 1; }
.lp-step__num {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--lp-surface); border: 1px solid var(--lp-line);
}
.lp-step.is-active .lp-step__num { background: var(--lp-accent); color: #062318; border-color: var(--lp-accent); position: relative; }
.lp-step.is-active .lp-step__num::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: var(--lp-accent); opacity: 0.4; z-index: -1;
  animation: lp-pulse-ring-out 1.8s ease-out infinite;
}
.lp-step.is-done   .lp-step__num { background: rgba(61,220,151,0.2); color: var(--lp-accent); border-color: var(--lp-accent); }
.lp-step__label { font-size: 14px; font-weight: 600; }
.lp-step__sep   { width: 28px; height: 1px; background: var(--lp-line); }

.lp-drop--reactive { position: relative; }
.lp-drop--reactive::before {
  content: ''; position: absolute; inset: -2px; border-radius: 14px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, var(--lp-accent) 60deg, transparent 120deg);
  opacity: 0; transition: opacity .3s ease;
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px;
}
.lp-drop--reactive.is-hover::before { opacity: 1; animation: lp-spin-slow 3s linear infinite; }
.lp-drop__filemeta {
  display: none; padding: 10px 14px; margin-top: 14px;
  background: rgba(61,220,151,0.06); border: 1px solid rgba(61,220,151,0.25); border-radius: 10px;
  color: var(--lp-accent); font-size: 14px; align-items: center; gap: 10px;
}
.lp-drop__filemeta.is-on { display: flex; animation: lp-fade-up .35s ease both; }

/* --- Processing overlay --- */
.lp-proc {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: radial-gradient(900px 600px at 50% 35%, rgba(61,220,151,0.15), transparent 70%), rgba(8,9,14,0.96);
  backdrop-filter: blur(6px);
  animation: lp-fade-in .35s ease both;
}
.lp-proc.is-on { display: flex; }
.lp-proc__panel {
  width: min(560px, 92vw); padding: 36px 32px;
  background: linear-gradient(180deg, var(--lp-surface), var(--lp-surface-2));
  border: 1px solid rgba(61,220,151,0.25); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  text-align: center;
}
.lp-proc__head { margin-bottom: 18px; }
.lp-proc__title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.lp-proc__sub   { color: var(--lp-text-mute); font-size: 14px; margin: 0; }

.lp-proc__ekg {
  width: 100%; height: 56px; margin: 12px 0 8px;
  color: var(--lp-accent);
}
.lp-proc__ekg polyline {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: lp-ekg-draw 4.8s linear forwards;
}

.lp-proc__bar {
  height: 8px; background: var(--lp-bg); border-radius: 4px; overflow: hidden;
  margin: 6px 0 16px;
}
.lp-proc__bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2));
  transition: width .4s ease;
}
.lp-proc__counter {
  font-size: 13px; color: var(--lp-text-mute); font-variant-numeric: tabular-nums; margin-bottom: 18px;
}
.lp-proc__counter strong { color: var(--lp-text); }

.lp-checks { text-align: left; display: grid; gap: 8px; margin-bottom: 20px; }
.lp-check {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--lp-bg); border: 1px solid var(--lp-line);
  font-size: 14px; opacity: 0.5; transition: opacity .3s ease;
}
.lp-check.is-on { opacity: 1; animation: lp-fade-up .35s ease both; }
.lp-check.is-done { border-color: rgba(61,220,151,0.4); }
.lp-check__icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lp-line); display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--lp-text); font-size: 12px;
  transition: background .3s ease;
}
.lp-check.is-done .lp-check__icon { background: var(--lp-accent); color: #062318; }

.lp-fact {
  margin-top: 8px; padding: 10px 14px; border-radius: 8px;
  background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.2);
  font-size: 13px; color: var(--lp-text-mute); min-height: 38px;
}
.lp-fact b { color: var(--lp-text); }

.lp-achievements {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.lp-achievement {
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; color: var(--lp-text);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: lp-slide-in-right .35s ease both, lp-fade-in 4s linear forwards;
}
.lp-achievement__emoji { font-size: 18px; }

/* ============================================================
 * REPORT SCORE REVEAL OVERLAY
 * ============================================================ */
.lp-reveal-screen {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: radial-gradient(800px 600px at 50% 35%, rgba(61,220,151,0.18), transparent 70%), rgba(6,7,12,0.97);
  backdrop-filter: blur(4px);
}
.lp-reveal-screen.is-on { display: flex; animation: lp-fade-in .4s ease both; }
.lp-reveal-screen__inner { text-align: center; max-width: 520px; padding: 36px; }
.lp-reveal__pre { color: var(--lp-text-mute); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; opacity: 0; animation: lp-fade-up .6s .2s ease both; }
.lp-reveal__num { font-size: clamp(96px, 16vw, 200px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; opacity: 0; animation: lp-pop-in .8s .8s ease both; }
.lp-reveal__num.is-ok   { color: var(--lp-accent); text-shadow: 0 0 60px rgba(61,220,151,0.5); }
.lp-reveal__num.is-warn { color: var(--lp-warn);   text-shadow: 0 0 60px rgba(244,192,107,0.5); }
.lp-reveal__num.is-bad  { color: var(--lp-bad);    text-shadow: 0 0 60px rgba(255,100,120,0.5); }
.lp-reveal__num small { font-size: 0.32em; color: var(--lp-text-mute); font-weight: 500; }
.lp-reveal__grade { font-size: 28px; font-weight: 700; margin: 6px 0 18px; opacity: 0; animation: lp-pop-in .6s 1.4s ease both; }
.lp-reveal__diag { color: var(--lp-text-mute); font-size: 16px; margin: 6px 0 24px; max-width: 420px; opacity: 0; animation: lp-fade-up .6s 1.9s ease both; }
.lp-reveal__cta { opacity: 0; animation: lp-fade-up .6s 2.4s ease both; }

/* --- Confetti --- */
.lp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 105; overflow: hidden; }
.lp-confetti span {
  position: absolute; top: 0; width: 9px; height: 9px; border-radius: 2px;
  animation: lp-confetti-fall 3s linear forwards;
}

/* ============================================================
 * PERFORMANCE
 * - prefers-reduced-motion: kills every infinite animation
 * - content-visibility: lets the browser skip rendering off-screen
 *   sections until they're scrolled near, saving CPU + memory
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .lp-hero__ekgs svg,
  .lp-btn--pulse::after,
  .lp-step.is-active .lp-step__num::after,
  .lp-hero__live-dot::after { animation: none !important; }
}

/* Off-screen sections are skipped during render until they're near the viewport.
 * The contain-intrinsic-size keeps the page's scroll height stable. */
.lp-section { content-visibility: auto; contain-intrinsic-size: 1px 800px; }
.lp-hero    { content-visibility: visible; }   /* keep hero always rendered */

/* Stop running expensive 3D tilts on touch devices (cursor isn't where the
 * effect was designed for) and on small viewports. */
@media (hover: none), (max-width: 720px) {
  .lp-card--tilt:hover { transform: none !important; }
}

/* ============================================================
 * MOBILE OPTIMIZATION
 * Progressive enhancement from the base styles. Targets phones +
 * small tablets. Uses modern features guarded by feature queries
 * so the base styles remain correct on older browsers.
 * ============================================================ */

/* Prevent iOS from auto-enlarging form inputs on focus */
@supports (-webkit-touch-callout: none) {
  .lp-field input[type=text],
  .lp-field input[type=email],
  .lp-field input[type=password] { font-size: 16px; }
}

/* Tables: always allow horizontal scroll rather than overflowing the viewport */
.lp-card { overflow-x: auto; }
.lp-table { min-width: 520px; }    /* keeps columns readable, scrolls horizontally when needed */

/* Tablet and below */
@media (max-width: 900px) {
  .lp-section { padding: 48px 0; }
  .lp-section__head { margin-bottom: 32px; }
  .lp-hero, .lp-hero--epic { padding: 56px 20px 48px; }
  .lp-container { padding: 0 20px; }

  /* Sticky nav shrinks so it doesn't eat too much vertical space */
  .lp-nav { padding: 12px 18px; }
  .lp-brand__text { font-size: 16px; }
}

/* Phones */
@media (max-width: 720px) {
  .lp-hero__title,
  .lp-hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; }
  .lp-hero__sub { font-size: 16px; }
  .lp-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .lp-hero__cta .lp-btn { width: 100%; justify-content: center; }

  /* Upload step indicator stacks nicely instead of wrapping mid-label */
  .lp-steps { flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 28px; }
  .lp-step__sep { display: none; }

  /* Score dial stays proportional */
  .lp-score__number { font-size: 72px; }
  .lp-score__grade  { font-size: 20px; }

  /* Paywall + cards: trim inner padding */
  .lp-paywall { padding: 22px 18px; }
  .lp-price   { padding: 22px; }
  .lp-card    { padding: 20px; }

  /* Pricing "Most popular" tag doesn't fall off the edge on tight widths */
  .lp-price__tag { right: 12px; }

  /* Processing modal panel shrinks padding */
  .lp-proc__panel { padding: 24px 20px; }

  /* 3D tilt wrecks layout on phones — disable entirely */
  .lp-card--tilt { transform: none !important; }

  /* Footer already stacks at 720px; tighten legal line */
  .lp-footer { padding: 32px 20px 20px; }
  .lp-footer__legal { font-size: 11px; }

  /* Dashboard tables become horizontal scrollers rather than overflowing */
  .lp-card > table { min-width: 600px; }
}

/* Small phones */
@media (max-width: 420px) {
  .lp-hero__title, .lp-hero h1 { font-size: 28px; }
  .lp-section h2 { font-size: 22px; }
  .lp-score__number { font-size: 60px; }
  .lp-bigstat__num { font-size: 30px; }
  .lp-bigstat__num--sm { font-size: 22px; }
}
