/* ─────────────────────────────────────────────────────────
   P2P Messenger — Premium Landing (vanilla, no framework)
   Identity: calm, trustworthy, precise. Not playful / toy-like.
   Tokens extend existing --color-* system; do not break chat.
   ───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --lp-max: 1120px;
  --lp-pad: 24px;
  --lp-nav-h: 64px;
  --lp-accent: #2563eb;
  --lp-accent-2: #0ea5e9;
  --lp-ink: #0f172a;
  --lp-muted: #64748b;
  --lp-faint: #94a3b8;
  --lp-border: #e2e8f0;
  --lp-surface: #ffffff;
  --lp-soft: #f8fafc;
  --lp-hero-grad: radial-gradient(900px 500px at 20% 0%, rgba(37,99,235,0.08), transparent 60%),
                  radial-gradient(700px 400px at 90% 10%, rgba(14,165,233,0.07), transparent 60%);
  --lp-shadow: 0 8px 24px rgba(15,23,42,0.06), 0 2px 8px rgba(15,23,42,0.04);
  --lp-shadow-lg: 0 20px 60px rgba(15,23,42,0.10), 0 8px 24px rgba(15,23,42,0.06);
}
[data-theme="dark"]{
  --lp-ink: #e6edf7;
  --lp-muted: #a9bad2;
  --lp-faint: #64748f;
  --lp-border: #24365c;
  --lp-surface: #111c33;
  --lp-soft: #0b1220;
  --lp-hero-grad: radial-gradient(900px 500px at 20% 0%, rgba(96,165,250,0.10), transparent 60%),
                  radial-gradient(700px 400px at 90% 10%, rgba(34,197,94,0.08), transparent 60%);
  --lp-shadow: 0 8px 24px rgba(0,0,0,0.35);
  --lp-shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── Shell: auth-container becomes scrollable landing page ── */
#auth-container{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--lp-soft);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#auth-container.hidden{ display:none !important; }
.lp-main{ width:100%; }

/* ── Nav ── */
.lp-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--lp-surface) 86%, transparent);
  border-bottom: 1px solid var(--lp-border);
  transition: box-shadow 180ms ease, background 180ms ease;
}
.lp-nav.is-scrolled{
  background: color-mix(in srgb, var(--lp-surface) 94%, transparent);
  box-shadow: 0 1px 0 var(--lp-border), 0 6px 20px rgba(15,23,42,0.04);
}
.lp-nav__inner{
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 var(--lp-pad);
  height: var(--lp-nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.lp-brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color: var(--lp-ink);
  font-weight: 700; letter-spacing: -0.02em; font-size: 15px;
}
.lp-brand__mark{
  width:32px; height:32px; border-radius:10px;
  display:grid; place-items:center;
  background: var(--lp-ink); color: white;
  box-shadow: var(--lp-shadow);
}
.lp-brand__mark svg{ width:18px; height:18px; }
.lp-nav__links{
  display:flex; align-items:center; gap:22px;
}
.lp-nav__links a{
  font-size:13.5px; font-weight:500; color: var(--lp-muted);
  text-decoration:none; letter-spacing:-0.01em;
  position:relative; padding:4px 0;
}
.lp-nav__links a:hover{ color: var(--lp-ink); }
.lp-nav__links a.is-active{ color: var(--lp-ink); }
.lp-nav__links a.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--lp-accent); border-radius:2px;
}
.lp-nav__actions{ display:flex; align-items:center; gap:10px; }
.lp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: inherit; font-weight:600; letter-spacing:-0.01em;
  border-radius:9999px; border:1px solid transparent; cursor:pointer;
  text-decoration:none; white-space:nowrap;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}
.lp-btn:active{ transform: translateY(1px) scale(0.99); }
.lp-btn:focus-visible{ outline:2px solid var(--lp-accent); outline-offset:2px; }
.lp-btn--ghost{
  height:36px; padding:0 14px; font-size:13.5px;
  background: transparent; color: var(--lp-muted); border-color: transparent;
}
.lp-btn--ghost:hover{ background: var(--color-surface-hover); color: var(--lp-ink); }
.lp-btn--primary{
  height:36px; padding:0 16px; font-size:13.5px;
  background: var(--lp-ink); color: white; border-color: var(--lp-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.lp-btn--primary:hover{ background:#1e293b; border-color:#1e293b; box-shadow:0 4px 16px rgba(15,23,42,0.18); }
[data-theme="dark"] .lp-btn--primary{ background:#f8fafc; color:#0f172a; border-color:#f8fafc; }
[data-theme="dark"] .lp-btn--primary:hover{ background:white; }
.lp-btn--secondary{
  height:44px; padding:0 18px; font-size:14px;
  background: var(--lp-surface); color: var(--lp-ink); border-color: var(--lp-border);
  box-shadow: var(--lp-shadow);
}
.lp-btn--secondary:hover{ border-color:#cbd5e1; background: white; }
[data-theme="dark"] .lp-btn--secondary{ background: #162447; border-color:#24365c; color: var(--lp-ink); }
.lp-btn--xl{ height:44px; padding:0 20px; font-size:14px; }
.lp-menu-btn{
  display:none; width:40px; height:40px; border-radius:10px;
  border:1px solid var(--lp-border); background: var(--lp-surface);
  align-items:center; justify-content:center; flex-direction:column; gap:4px; cursor:pointer;
}
.lp-menu-btn span{ display:block; width:16px; height:2px; background: var(--lp-ink); border-radius:2px; transition: transform 180ms ease, opacity 180ms ease; }
.lp-menu-btn[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.lp-menu-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.lp-menu-btn[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
.lp-mobile{
  display:flex; flex-direction:column; gap:4px;
  padding:12px var(--lp-pad) 16px; border-top:1px solid var(--lp-border);
  background: var(--lp-surface);
}
.lp-mobile a{
  padding:12px 12px; border-radius:10px; text-decoration:none;
  color: var(--lp-ink); font-weight:500; font-size:14px;
}
.lp-mobile a:hover{ background: var(--lp-soft); }

/* ── Hero ── */
.lp-hero{
  position:relative;
  overflow:clip;
  background: var(--lp-hero-grad), var(--lp-soft);
  border-bottom: 1px solid var(--lp-border);
  padding: 28px 0 0;
}
.lp-hero__inner{
  max-width: var(--lp-max);
  margin:0 auto;
  padding: 24px var(--lp-pad) 18px;
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items:start;
}
.lp-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--lp-muted);
  border:1px solid var(--lp-border); background: color-mix(in srgb, var(--lp-surface) 80%, transparent);
  padding:6px 10px; border-radius:9999px;
}
.lp-eyebrow .lp-dot{ width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,0.16); }
.lp-title{
  margin:14px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height:0.92; letter-spacing:-0.04em; font-weight:800;
  color: var(--lp-ink);
}
.lp-title .lp-accent{
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 55%, #06b6d4 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
[data-theme="dark"] .lp-title{ color: #f8fafc; }
.lp-lead{
  font-size: 17px; line-height:1.6; letter-spacing:-0.015em;
  color: var(--lp-muted); max-width: 560px;
}
.lp-ctas{ display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 16px; }
.lp-trustline{
  display:flex; flex-wrap:wrap; gap:14px;
  font-size:12.5px; font-weight:500; color: var(--lp-muted);
  border-top: 1px solid var(--lp-border); padding-top:14px; margin-top:6px;
}
.lp-trustline span{ display:inline-flex; align-items:center; gap:6px; }
.lp-trustline i{ font-style:normal; opacity:0.9; }

.lp-hero__cardwrap{ position:relative; }
.lp-hero__cardwrap .auth-card{
  margin:0; max-width:none; width:100%;
  border:1px solid var(--lp-border); box-shadow: var(--lp-shadow-lg);
  backdrop-filter: none;
  animation: lp-rise 620ms cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes lp-rise{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:none; } }
.lp-auth-note{
  text-align:center; font-size:12px; color: var(--lp-faint); margin-top:10px;
}

/* Hero without embedded form: centered copy, buttons only */
.lp-hero--solo .lp-hero__inner{
  grid-template-columns: 1fr;
  max-width: 780px;
  text-align: center;
  padding-top: 40px;
}
.lp-hero--solo .lp-lead{ margin-left:auto; margin-right:auto; }
.lp-hero--solo .lp-ctas{ justify-content:center; }
.lp-hero--solo .lp-trustline{ justify-content:center; }

/* Dedicated login / register page */
#auth-view{ min-height: 100vh; min-height: 100dvh; display:flex; flex-direction:column; }
#auth-view.hidden{ display:none !important; }
.lp-authview__top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width: var(--lp-max); width:100%; margin:0 auto;
  padding: 14px var(--lp-pad);
}
.lp-backlink{
  font-size:13.5px; font-weight:600; color: var(--lp-muted); text-decoration:none;
  padding:8px 12px; border-radius:9999px; border:1px solid var(--lp-border);
  background: var(--lp-surface); white-space:nowrap;
}
.lp-backlink:hover{ color: var(--lp-ink); border-color:#cbd5e1; }
.lp-brand--sm .lp-brand__mark{ width:28px; height:28px; border-radius:8px; }
.lp-brand--sm .lp-brand__word{ font-size:14px; }
.lp-authview__spacer{ width:120px; }
.lp-authview__body{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding: 12px var(--lp-pad) 40px;
}
.lp-authview__body .auth-card{
  width:100%; max-width:420px; margin:0;
  border:1px solid var(--lp-border); box-shadow: var(--lp-shadow-lg);
  animation: lp-rise 480ms cubic-bezier(0.16,1,0.3,1) both;
}

/* Window mock under hero */
.lp-window{
  max-width: var(--lp-max);
  margin: 8px auto 0;
  padding: 0 var(--lp-pad) 28px;
}
.lp-window__frame{
  background: var(--lp-surface);
  border:1px solid var(--lp-border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--lp-shadow-lg);
  animation: lp-rise 700ms 120ms cubic-bezier(0.16,1,0.3,1) both;
}
.lp-window__bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-bottom:1px solid var(--lp-border);
  background: linear-gradient(to bottom, var(--lp-surface), color-mix(in srgb, var(--lp-soft) 85%, var(--lp-surface)));
}
.lp-window__dots{ display:flex; gap:6px; }
.lp-window__dots i{ width:10px; height:10px; border-radius:50%; display:block; }
.lp-window__dots i:nth-child(1){ background:#ef4444; }
.lp-window__dots i:nth-child(2){ background:#f59e0b; }
.lp-window__dots i:nth-child(3){ background:#22c55e; }
.lp-window__bar b{ font-size:12px; font-weight:600; letter-spacing:-0.01em; color: var(--lp-muted); display:flex; align-items:center; gap:8px; }
.lp-window__bar b em{ font-style:normal; font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:#22c55e; background:rgba(34,197,94,0.12); border:1px solid rgba(34,197,94,0.22); padding:2px 7px; border-radius:9999px; }
.lp-window__body{
  display:grid; grid-template-columns: 240px 1fr; min-height: 360px;
}
.lp-window__side{
  border-right:1px solid var(--lp-border); background: var(--lp-soft);
  padding:10px; display:flex; flex-direction:column; gap:8px;
}
.lp-window__search{
  height:34px; border-radius:10px; border:1px solid var(--lp-border);
  background: var(--lp-surface); display:flex; align-items:center; gap:8px;
  padding:0 10px; color: var(--lp-faint); font-size:12.5px;
}
.lp-window__search svg{ width:14px; height:14px; }
.lp-conv{ display:flex; align-items:center; gap:10px; padding:8px 8px; border-radius:10px; cursor:default; }
.lp-conv.is-active{ background: var(--lp-surface); border:1px solid var(--lp-border); box-shadow: var(--lp-shadow); }
.lp-conv img{ width:32px; height:32px; border-radius:50%; object-fit:cover; background:#e2e8f0; }
.lp-avatar{ width:32px; height:32px; border-radius:50%; display:inline-grid; place-items:center; color:#fff; font-size:12px; font-weight:700; flex-shrink:0; letter-spacing:0.02em; }
.lp-avatar--sm{ width:28px; height:28px; font-size:11px; }
.lp-conv b{ font-size:12.5px; font-weight:600; letter-spacing:-0.01em; color: var(--lp-ink); display:block; }
.lp-conv span{ font-size:11.5px; color: var(--lp-muted); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:120px; }
.lp-conv i{ margin-left:auto; font-style:normal; font-size:10.5px; color: var(--lp-faint); }
.lp-conv .lp-badge{ background: var(--lp-ink); color: white; font-size:10px; font-weight:700; padding:2px 6px; border-radius:9999px; }

.lp-window__chat{ display:flex; flex-direction:column; background: var(--lp-surface); }
.lp-window__chathead{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 14px; border-bottom:1px solid var(--lp-border);
}
.lp-window__peer{ display:flex; align-items:center; gap:10px; }
.lp-window__peer img{ width:30px; height:30px; border-radius:50%; }
.lp-window__peer .lp-avatar{ width:30px; height:30px; font-size:11px; }
.lp-window__peer b{ font-size:13px; font-weight:600; }
.lp-window__peer span{ font-size:11px; color:#22c55e; display:flex; align-items:center; gap:6px; }
.lp-window__peer span::before{ content:""; width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,0.16); display:inline-block; }
.lp-window__actions{ display:flex; gap:6px; }
.lp-window__actions i{ width:32px; height:32px; border-radius:9999px; border:1px solid var(--lp-border); display:grid; place-items:center; color: var(--lp-muted); background: var(--lp-surface); }
.lp-window__actions i svg{ width:16px; height:16px; }

.lp-messages{ padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; background:
  radial-gradient(500px 200px at 70% 0%, rgba(37,99,235,0.06), transparent 60%),
  var(--lp-surface);
}
.lp-bubble{
  max-width: 66%; padding:10px 12px; border-radius:14px;
  font-size:13px; line-height:1.5; position:relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  animation: lp-msg 420ms ease both;
}
@keyframes lp-msg{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none;}}
.lp-bubble--other{ align-self:flex-start; background: var(--lp-soft); border:1px solid var(--lp-border); color: var(--lp-ink); border-bottom-left-radius:4px; }
.lp-bubble--own{ align-self:flex-end; background: var(--lp-ink); color: white; border-bottom-right-radius:4px; }
[data-theme="dark"] .lp-bubble--own{ background:#f8fafc; color:#0f172a; }
.lp-bubble small{ display:block; font-size:10.5px; opacity:0.7; margin-top:4px; }
.lp-typing{ align-self:flex-start; display:flex; gap:4px; align-items:center; padding:8px 12px; background: var(--lp-soft); border:1px solid var(--lp-border); border-radius:9999px; }
.lp-typing i{ width:6px; height:6px; border-radius:50%; background: var(--lp-faint); animation: lp-typing 1.2s infinite; }
.lp-typing i:nth-child(2){ animation-delay:0.16s; } .lp-typing i:nth-child(3){ animation-delay:0.32s; }
@keyframes lp-typing{ 0%, 60%, 100%{ transform: translateY(0); opacity:0.6;} 30%{ transform: translateY(-4px); opacity:1; } }
.lp-composer{
  display:flex; align-items:center; gap:8px; padding:10px 12px; border-top:1px solid var(--lp-border);
  background: var(--lp-surface);
}
.lp-composer span{ flex:1; height:36px; border-radius:9999px; border:1px solid var(--lp-border); background: var(--lp-soft); display:flex; align-items:center; padding:0 14px; color: var(--lp-faint); font-size:13px; }
.lp-composer i{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background: var(--lp-ink); color:white; }
[data-theme="dark"] .lp-composer i{ background:#f8fafc; color:#0f172a; }

/* ── Trust strip ── */
.lp-trust{
  background: var(--lp-surface); border-bottom:1px solid var(--lp-border);
  padding: 14px var(--lp-pad);
}
.lp-trust__inner{
  max-width: var(--lp-max); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.lp-trust__label{ font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color: var(--lp-faint); }
.lp-trust__caps{ display:flex; flex-wrap:wrap; gap:8px; }
.lp-cap{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12.5px; font-weight:500; letter-spacing:-0.01em; color: var(--lp-muted);
  border:1px solid var(--lp-border); background: var(--lp-soft);
  padding:7px 10px; border-radius:9999px;
}
.lp-cap i{ font-style:normal; font-size:13px; }

/* ── Sections common ── */
.lp-section{ padding: 56px var(--lp-pad); }
.lp-section__inner{ max-width: var(--lp-max); margin:0 auto; }
.lp-kicker{
  font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color: var(--lp-faint);
  display:flex; align-items:center; gap:8px; margin-bottom:10px;
}
.lp-kicker::before{ content:""; width:18px; height:2px; background: var(--lp-accent); border-radius:2px; }
.lp-h2{ font-size: clamp(26px, 3.4vw, 36px); line-height:0.98; letter-spacing:-0.03em; font-weight:800; color: var(--lp-ink); margin:0; }
.lp-h2 span{ color: var(--lp-muted); font-weight:600; }
.lp-sub{ font-size:15px; line-height:1.6; color: var(--lp-muted); max-width: 640px; margin:10px 0 0; }
.lp-divider{ height:1px; background: var(--lp-border); margin:18px 0 0; }

/* Feature grid */
.lp-features{ background: var(--lp-surface); border-bottom:1px solid var(--lp-border); }
.lp-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:22px;
}
.lp-card{
  background: var(--lp-surface); border:1px solid var(--lp-border);
  border-radius:16px; padding:18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  position:relative; overflow:hidden;
}
.lp-card::after{
  content:""; position:absolute; inset:0; border-radius:16px; pointer-events:none;
  background: radial-gradient(400px 200px at 20% 0%, rgba(37,99,235,0.06), transparent 60%);
  opacity:0; transition: opacity 160ms ease;
}
.lp-card:hover{ transform: translateY(-2px); box-shadow: var(--lp-shadow); border-color:#cbd5e1; }
.lp-card:hover::after{ opacity:1; }
.lp-card__icon{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background: var(--lp-soft); border:1px solid var(--lp-border); color: var(--lp-ink);
  margin-bottom:12px;
}
.lp-card__icon svg{ width:18px; height:18px; }
.lp-card b{ font-size:14px; font-weight:700; letter-spacing:-0.01em; color: var(--lp-ink); display:block; }
.lp-card p{ font-size:13px; line-height:1.6; color: var(--lp-muted); margin:6px 0 0; }
.lp-card em{ font-style:normal; font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color: var(--lp-accent); display:block; margin-top:10px; }

/* How it works */
.lp-how{ background: var(--lp-soft); border-bottom:1px solid var(--lp-border); }
.lp-steps{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; margin-top:22px;
  position:relative;
}
.lp-step{
  background: var(--lp-surface); border:1px solid var(--lp-border); border-radius:16px;
  padding:18px; position:relative; overflow:hidden;
}
.lp-step__num{
  font-family:'JetBrains Mono', ui-monospace, monospace;
  font-size:11px; font-weight:600; letter-spacing:0.08em; color: var(--lp-accent);
  border:1px solid color-mix(in srgb, var(--lp-accent) 18%, var(--lp-border));
  background: color-mix(in srgb, var(--lp-accent) 8%, var(--lp-surface));
  padding:4px 7px; border-radius:9999px; display:inline-block;
}
.lp-step b{ display:block; font-size:14px; font-weight:700; letter-spacing:-0.01em; margin:10px 0 6px; color: var(--lp-ink); }
.lp-step p{ font-size:13px; line-height:1.6; color: var(--lp-muted); margin:0; }
.lp-step__arrow{ position:absolute; top:22px; right:-10px; width:20px; height:20px; color: var(--lp-faint); display:grid; place-items:center; z-index:2; }

/* Security (dark) */
.lp-security{
  background: #0b1220; color:#e6edf7;
  border-bottom:1px solid #1e293b;
  position:relative; overflow:hidden;
}
.lp-security::before{
  content:""; position:absolute; inset:-1px;
  background:
    radial-gradient(700px 400px at 15% 10%, rgba(96,165,250,0.14), transparent 60%),
    radial-gradient(600px 400px at 85% 30%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(14,165,233,0.08), transparent 70%);
  pointer-events:none;
}
.lp-security .lp-section__inner{ position:relative; }
.lp-security .lp-kicker{ color:#60a5fa; }
.lp-security .lp-kicker::before{ background: #60a5fa; }
.lp-security .lp-h2{ color: white; }
.lp-security .lp-sub{ color:#a9bad2; }
.lp-sec-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:24px; margin-top:22px; align-items:start; }
.lp-sec-cards{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.lp-sec-card{
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10);
  border-radius:14px; padding:16px; backdrop-filter: blur(8px);
}
.lp-sec-card b{ color:white; font-size:13px; font-weight:700; display:block; }
.lp-sec-card p{ color:#a9bad2; font-size:12.5px; line-height:1.6; margin:6px 0 0; }
.lp-sec-note{
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  border-radius:14px; padding:16px;
}
.lp-sec-note h3{ font-size:13px; font-weight:700; color:white; margin:0 0 8px; display:flex; align-items:center; gap:8px; }
.lp-sec-note h3 i{ width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 6px rgba(34,197,94,0.14); display:inline-block; }
.lp-sec-note p{ font-size:12.5px; line-height:1.7; color:#cbd5e1; margin:0; }
.lp-sec-note code{ font-family:'JetBrains Mono', monospace; font-size:11px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.10); padding:2px 6px; border-radius:6px; color:#e2e8f0; }

/* Showcase */
.lp-showcase{ background: var(--lp-surface); border-bottom:1px solid var(--lp-border); }
.lp-showcase__grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:14px; margin-top:22px; }
.lp-show{
  border:1px solid var(--lp-border); border-radius:16px; overflow:hidden;
  background: var(--lp-surface); box-shadow: var(--lp-shadow);
}
.lp-show__head{ padding:12px 14px; border-bottom:1px solid var(--lp-border); display:flex; align-items:center; justify-content:space-between; }
.lp-show__head b{ font-size:13px; font-weight:700; letter-spacing:-0.01em; }
.lp-show__head span{ font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color: var(--lp-faint); }
.lp-show__body{ padding:14px; background: var(--lp-soft); }
.lp-mini-msg{ display:flex; gap:8px; align-items:flex-start; margin-bottom:10px; }
.lp-mini-msg img{ width:28px; height:28px; border-radius:50%; }
.lp-mini-msg .lp-avatar{ margin-top:1px; }
.lp-mini-bubble{ background: var(--lp-surface); border:1px solid var(--lp-border); border-radius:12px; padding:10px 12px; font-size:12.5px; line-height:1.5; max-width:280px; box-shadow:0 1px 2px rgba(0,0,0,0.04); }
.lp-mini-bubble--own{ background: var(--lp-ink); color:white; border-color: var(--lp-ink); }
[data-theme="dark"] .lp-mini-bubble--own{ background:#f8fafc; color:#0f172a; }
.lp-show__stats{ display:grid; grid-template-columns: repeat(3,1fr); gap:8px; margin-top:12px; }
.lp-stat{ background: var(--lp-surface); border:1px solid var(--lp-border); border-radius:12px; padding:10px; text-align:center; }
.lp-stat b{ font-size:16px; font-weight:800; letter-spacing:-0.03em; display:block; }
.lp-stat span{ font-size:11px; color: var(--lp-muted); }

/* Comparison */
.lp-compare{ background: var(--lp-soft); border-bottom:1px solid var(--lp-border); }
.lp-table{
  margin-top:18px; border:1px solid var(--lp-border); border-radius:16px; overflow:hidden;
  background: var(--lp-surface); box-shadow: var(--lp-shadow);
}
.lp-table__head{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:0; background: var(--lp-soft); border-bottom:1px solid var(--lp-border); }
.lp-table__head div{ padding:12px 14px; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color: var(--lp-faint); }
.lp-table__head div:first-child{ color: var(--lp-muted); }
.lp-table__row{ display:grid; grid-template-columns: 1fr 1fr 1fr; border-bottom:1px solid var(--lp-border); }
.lp-table__row:last-child{ border-bottom:none; }
.lp-table__row div{ padding:12px 14px; font-size:13px; line-height:1.5; }
.lp-table__row div:first-child{ color: var(--lp-muted); background: color-mix(in srgb, var(--lp-soft) 70%, var(--lp-surface)); font-weight:500; }
.lp-table__row div:nth-child(2){ color: var(--lp-faint); text-decoration: line-through; text-decoration-thickness:1px; }
.lp-table__row div:nth-child(3){ color: var(--lp-ink); font-weight:600; }
.lp-table__row div:nth-child(3)::before{ content:"✓ "; color:#22c55e; font-weight:800; }

/* Experience */
.lp-xp{ background: var(--lp-surface); border-bottom:1px solid var(--lp-border); }
.lp-xp__grid{ display:grid; grid-template-columns: 1fr 0.95fr; gap:24px; margin-top:18px; align-items:center; }
.lp-xp__bullets{ display:flex; flex-direction:column; gap:10px; }
.lp-bullet{ display:flex; gap:12px; align-items:flex-start; }
.lp-bullet i{ width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background: var(--lp-soft); border:1px solid var(--lp-border); color: var(--lp-ink); flex-shrink:0; }
.lp-bullet b{ font-size:13px; font-weight:700; display:block; color: var(--lp-ink); }
.lp-bullet span{ font-size:12.5px; line-height:1.6; color: var(--lp-muted); display:block; }
.lp-xp__visual{
  border:1px solid var(--lp-border); border-radius:16px; overflow:hidden; background: var(--lp-surface);
  box-shadow: var(--lp-shadow-lg);
}
.lp-xp__visual img{ display:block; width:100%; height:auto; }

/* FAQ */
.lp-faq{ background: var(--lp-soft); border-bottom:1px solid var(--lp-border); }
.lp-faq__list{ margin-top:18px; display:flex; flex-direction:column; gap:8px; }
.lp-faq__item{ background: var(--lp-surface); border:1px solid var(--lp-border); border-radius:14px; overflow:hidden; }
.lp-faq__q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; background:transparent; border:none; cursor:pointer; text-align:left;
  font-family:inherit; font-size:14px; font-weight:600; letter-spacing:-0.01em; color: var(--lp-ink);
}
.lp-faq__q i{ width:28px; height:28px; border-radius:9999px; border:1px solid var(--lp-border); display:grid; place-items:center; color: var(--lp-muted); flex-shrink:0; transition: transform 160ms ease, background 160ms ease; }
.lp-faq__item.is-open .lp-faq__q i{ transform: rotate(45deg); background: var(--lp-ink); color:white; border-color: var(--lp-ink); }
[data-theme="dark"] .lp-faq__item.is-open .lp-faq__q i{ background:#f8fafc; color:#0f172a; border-color:#f8fafc; }
.lp-faq__a{ padding:0 16px 14px; font-size:13px; line-height:1.7; color: var(--lp-muted); display:none; }
.lp-faq__item.is-open .lp-faq__a{ display:block; }
.lp-faq__a code{ font-family:'JetBrains Mono', monospace; font-size:11.5px; background: var(--lp-soft); border:1px solid var(--lp-border); padding:1px 6px; border-radius:6px; }

/* Final CTA */
.lp-cta{
  background: var(--lp-ink); color:white; position:relative; overflow:hidden;
}
[data-theme="dark"] .lp-cta{ background:#020617; border-top:1px solid #1e293b; border-bottom:1px solid #1e293b; }
.lp-cta::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(96,165,250,0.18), transparent 60%),
    radial-gradient(600px 400px at 90% 30%, rgba(34,197,94,0.12), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
  pointer-events:none;
}
.lp-cta__inner{
  max-width: var(--lp-max); margin:0 auto; padding: 48px var(--lp-pad);
  display:flex; align-items:center; justify-content:space-between; gap:18px; position:relative;
}
.lp-cta h2{ font-size: clamp(24px, 3vw, 34px); line-height:0.98; letter-spacing:-0.03em; font-weight:800; margin:0; }
.lp-cta p{ font-size:14px; line-height:1.6; color:#cbd5e1; margin:8px 0 0; max-width:540px; }
.lp-cta__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.lp-cta .lp-btn--primary{ background:white; color:#0f172a; border-color:white; }
.lp-cta .lp-btn--primary:hover{ background:#f8fafc; }
.lp-cta .lp-btn--ghost{ color:white; border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.lp-cta .lp-btn--ghost:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.24); }

/* Footer */
.lp-footer{ background: var(--lp-surface); border-top:1px solid var(--lp-border); }
.lp-footer__inner{ max-width: var(--lp-max); margin:0 auto; padding: 28px var(--lp-pad) 18px; }
.lp-footer__top{ display:grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr; gap:22px; }
.lp-footer__brand p{ font-size:13px; line-height:1.6; color: var(--lp-muted); margin:8px 0 0; max-width:360px; }
.lp-footer__col b{ font-size:11px; font-weight:700; letter-spacing:0.10em; text-transform:uppercase; color: var(--lp-faint); display:block; margin-bottom:10px; }
.lp-footer__col a{ display:block; font-size:13px; line-height:1.8; color: var(--lp-muted); text-decoration:none; }
.lp-footer__col a:hover{ color: var(--lp-ink); text-decoration:underline; text-underline-offset:3px; }
.lp-footer__bottom{
  margin-top:22px; padding-top:14px; border-top:1px solid var(--lp-border);
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  font-size:12px; color: var(--lp-faint);
}
.lp-footer__legal{ display:flex; gap:14px; flex-wrap:wrap; }
.lp-footer__legal a{ color: var(--lp-faint); text-decoration:none; }
.lp-footer__legal a:hover{ color: var(--lp-muted); text-decoration:underline; }

/* Focus visibility (a11y) */
.lp-nav__links a:focus-visible, .lp-mobile a:focus-visible, .lp-faq__q:focus-visible,
.lp-footer__col a:focus-visible, .lp-footer__legal a:focus-visible, .lp-brand:focus-visible,
.lp-menu-btn:focus-visible{ outline:2px solid var(--lp-accent); outline-offset:2px; border-radius:8px; }

/* Reveal */
.lp-reveal{ opacity:0; transform: translateY(10px); transition: opacity 520ms ease, transform 520ms cubic-bezier(0.16,1,0.3,1); }
.lp-reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .lp-reveal{ opacity:1; transform:none; transition:none; }
  .lp-bubble, .lp-card:hover, .lp-authview__body .auth-card{ animation:none !important; transform:none !important; }
}

/* Responsive */
@media (max-width: 1024px){
  .lp-hero__inner{ grid-template-columns: 1fr; }
  .lp-hero__cardwrap{ max-width: 520px; }
  .lp-authview__spacer{ display:none; }
  .lp-grid{ grid-template-columns: repeat(2, 1fr); }
  .lp-steps{ grid-template-columns: repeat(2, 1fr); }
  .lp-sec-grid{ grid-template-columns: 1fr; }
  .lp-showcase__grid{ grid-template-columns: 1fr; }
  .lp-xp__grid{ grid-template-columns: 1fr; }
  .lp-table__head, .lp-table__row{ grid-template-columns: 1.2fr 1fr 1fr; }
  .lp-footer__top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  :root{ --lp-pad: 16px; }
  .lp-nav__links{ display:none; }
  .lp-menu-btn{ display:inline-flex; }
  /* Login + Get started stay in the main nav on small screens (they are
     intentionally NOT duplicated inside the hamburger menu). */
  .lp-nav__actions{ gap:6px; }
  .lp-brand__word{ font-size:14px; }
  .lp-nav__actions .lp-btn--ghost{ height:36px; padding:0 10px; }
  .lp-nav__actions .lp-btn--primary{ height:36px; padding:0 12px; }
  .lp-hero{ padding-top:10px; }
  .lp-title{ font-size: 32px; }
  .lp-lead{ font-size:15px; }
  .lp-window__body{ grid-template-columns: 1fr; }
  .lp-window__side{ display:none; }
  .lp-grid{ grid-template-columns: 1fr; }
  .lp-steps{ grid-template-columns: 1fr; }
  .lp-sec-cards{ grid-template-columns: 1fr; }
  .lp-cta__inner{ flex-direction:column; align-items:flex-start; }
  .lp-footer__top{ grid-template-columns: 1fr; }
  .lp-section{ padding: 40px var(--lp-pad); }
  .lp-table__head div, .lp-table__row div{ padding:10px 10px; font-size:12px; }
  .lp-bubble{ max-width: 82%; }
  .lp-ctas .lp-btn--xl{ height:44px; }
}
@media (max-width: 380px){
  .lp-ctas{ flex-direction:column; }
  .lp-ctas .lp-btn{ width:100%; }
}

/* Keep existing auth form polish inside landing */
#auth-container .auth-card{ border-radius:18px; }
#auth-container .auth-card .logo{ width:40px; height:40px; }
#auth-container .form-group input{ border-radius:12px; }
#auth-container .btn{ border-radius:9999px; height:44px; font-weight:600; }
#auth-container .auth-switch a{ font-weight:600; }
