/* ── Public Landing Page ─────────────────────────────────────────
   Gradient-free, theme-aware (all colors via tokens), responsive.
   Scoped under .lp so it never collides with the app shell. */

.lp {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.lp-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space-6); }

/* ── Header ─────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-base) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.lp-header.scrolled { border-bottom-color: var(--border); }
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.lp-logo-mark {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--accent-violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-logo-text { font-weight: 800; font-size: var(--text-lg); color: var(--text-primary); letter-spacing: -0.01em; }
.lp-nav { display: flex; gap: var(--space-6); }
.lp-nav a { color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: color var(--transition); }
.lp-nav a:hover { color: var(--text-primary); }
.lp-header-actions { display: flex; align-items: center; gap: var(--space-3); }
.lp-theme-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.lp-theme-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* ── Hero ───────────────────────────────────────────────────── */
:root {
  --lp-grid-line: rgba(124, 58, 237, 0.22);
  --lp-grid-line-bold: rgba(159, 103, 255, 0.32);
}
[data-theme="light"] {
  --lp-grid-line: rgba(109, 40, 217, 0.13);
  --lp-grid-line-bold: rgba(109, 40, 217, 0.20);
}
.lp-hero { padding: var(--space-16) 0 var(--space-12); position: relative; overflow: hidden; }

/* Animated background grid — drifting violet lines with bold accents every 5th cell */
.lp-hero::before {
  content: '';
  position: absolute; inset: -80px 0 0;
  background-image:
    linear-gradient(to right,  var(--lp-grid-line-bold) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line-bold) 1px, transparent 1px),
    linear-gradient(to right,  var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 220px 220px, 220px 220px, 44px 44px, 44px 44px;
  animation: lp-grid-drift 14s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 90% 95% at 50% 35%, #000 0%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 95% at 50% 35%, #000 0%, transparent 85%);
  pointer-events: none;
}
/* Soft violet glow breathing behind the headline */
.lp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 30% 35%, var(--accent-violet-dim) 0%, transparent 70%);
  animation: lp-glow-pulse 7s ease-in-out infinite;
  pointer-events: none;
}
.lp-hero > * { position: relative; z-index: 1; }
@keyframes lp-grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 220px 220px, 220px 220px, 44px 44px, 44px 44px; }
}
@keyframes lp-glow-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* CTA band gets the same grid, calmer, so the page bookends match */
.lp-cta-band { position: relative; overflow: hidden; }
.lp-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--lp-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: lp-grid-drift-sm 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 0%, transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}
.lp-cta-band > * { position: relative; z-index: 1; }
@keyframes lp-grid-drift-sm {
  from { background-position: 0 0; }
  to   { background-position: 44px 44px; }
}
.lp-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12);
  align-items: center;
}
.lp-eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-violet-light);
  background: var(--accent-violet-dim); padding: 6px 12px; border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.lp-h1 {
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: var(--space-5);
}
.lp-lead { font-size: var(--text-lg); line-height: 1.6; color: var(--text-secondary); max-width: 34em; margin-bottom: var(--space-6); }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.lp-hero-trust { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; color: var(--text-muted); font-size: var(--text-sm); }
.lp-hero-trust svg { color: var(--accent-green); vertical-align: -2px; }
.lp-dot { color: var(--border-hover); margin: 0 4px; }

/* Product mock */
.lp-hero-visual { position: relative; }
.lp-mock {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.lp-mock-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.lp-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-hover); }
.lp-mock-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.lp-mock-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--bg-elevated); }
.lp-mock-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-violet); flex-shrink: 0; }
.lp-mock-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.lp-mock-line { height: 9px; border-radius: var(--radius-full); background: var(--text-secondary); opacity: 0.5; }
.lp-mock-line.dim { opacity: 0.25; }
.lp-mock-score { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 800; flex-shrink: 0; }
.lp-mock-score.s-hi  { background: rgba(16,185,129,0.16); color: var(--accent-green); }
.lp-mock-score.s-mid { background: rgba(245,158,11,0.16); color: var(--accent-orange); }
.lp-mock-score.s-lo  { background: rgba(148,163,184,0.16); color: var(--text-muted); }

/* Niche strip */
.lp-niches { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.lp-niches-label { font-size: var(--text-sm); color: var(--text-muted); margin-right: var(--space-2); }
.lp-niche-pill { font-size: var(--text-sm); color: var(--text-secondary); background: var(--bg-elevated); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--radius-full); }

/* ── Sections ───────────────────────────────────────────────── */
.lp-section { padding: var(--space-16) 0; }
.lp-section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-12); }
.lp-h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: var(--space-3); }
.lp-section-sub { font-size: var(--text-lg); color: var(--text-secondary); line-height: 1.6; }

/* Features */
.lp-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.lp-feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); transition: border-color var(--transition), transform var(--transition);
}
.lp-feature:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.lp-feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--accent-violet-dim); color: var(--accent-violet-light);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.lp-feature-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.lp-feature-desc { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); }

/* How it works */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.lp-step { text-align: center; padding: var(--space-4); }
.lp-step-num {
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--accent-violet); color: #fff; font-weight: 800; font-size: var(--text-lg);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
}
.lp-step-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.lp-step-desc { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); max-width: 26em; margin: 0 auto; }

/* Pricing */
.lp-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); align-items: stretch; }
.lp-price-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.lp-price-card:hover { transform: translateY(-3px); }
.lp-price-card.featured { border-color: var(--accent-violet); box-shadow: 0 0 0 1px var(--accent-violet); }
.lp-price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-violet); color: #fff; font-size: var(--text-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full); white-space: nowrap;
}
.lp-price-name { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.lp-price-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: var(--space-2); }
.lp-price-currency { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); }
.lp-price-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; }
.lp-price-per { font-size: var(--text-sm); color: var(--text-muted); }
.lp-price-tag { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-5); min-height: 2.6em; }
.lp-price-feats { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.lp-price-cta { margin-top: auto; }
.lp-price-feats li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); }
.lp-price-feats svg { color: var(--accent-green); flex-shrink: 0; margin-top: 2px; }

/* CTA band */
.lp-cta-band { padding: var(--space-16) 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.lp-cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.lp-cta-inner .lp-h2 { margin-bottom: var(--space-3); }
.lp-cta-inner .btn { margin-top: var(--space-6); }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); padding: var(--space-16) 0 var(--space-6); background: var(--bg-elevated); }
.lp-footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--space-16);
  margin-bottom: var(--space-12); align-items: start;
}
.lp-footer-tag { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-3); max-width: 26em; line-height: 1.65; }
.lp-footer-mail {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4);
  font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none;
  transition: color var(--transition);
}
.lp-footer-mail:hover { color: var(--accent-violet-light); }
.lp-footer-mail svg { color: var(--accent-violet-light); }
.lp-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.lp-footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.lp-footer-col-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-1); }
.lp-footer-col a { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.lp-footer-col a:hover { color: var(--text-primary); }
.lp-footer-bottom {
  padding-top: var(--space-6); border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.lp-footer-bottom-links { display: flex; gap: var(--space-5); }
.lp-footer-bottom-links a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.lp-footer-bottom-links a:hover { color: var(--text-primary); }

/* ── Scroll reveal ──────────────────────────────────────────── */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.lp-reveal.in { opacity: 1; transform: none; }
.lp-feature.lp-reveal { transition-delay: var(--d, 0ms); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .lp-hero-visual { order: -1; }
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-nav { display: none; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 560px) {
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-pricing-grid { grid-template-columns: 1fr; }
  .lp-hide-sm { display: none; }
  .lp-hero { padding: var(--space-10) 0; }
  .lp-section { padding: var(--space-12) 0; }
  .lp-footer-cols { grid-template-columns: 1fr 1fr; }
  .lp-footer-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero::before, .lp-hero::after, .lp-cta-band::before { animation: none; }
}
