/* Public landing. Builds on takedowns.css (same tokens, buttons, demo, example cards). */
body.lp {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lp::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1;
  background: radial-gradient(55% 60% at 75% 10%, rgba(139, 92, 246, .30), transparent 70%),
              radial-gradient(40% 45% at 10% 5%, rgba(109, 61, 242, .16), transparent 70%);
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 0; }

.lp-nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 18px clamp(18px, 4vw, 40px); }
.lp-links { display: flex; gap: 22px; margin-left: auto; }
.lp-links a { color: #C9C6DD; text-decoration: none; font-weight: 500; font-size: 15px; }
.lp-links a:hover { color: var(--text); }
.lp-signin { width: auto !important; padding: 0 20px; }
.lp-nav .side-brand span { display: inline !important; }

.lp-hero { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 70px) clamp(18px, 4vw, 40px) 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: #1A1730; border: 1px solid #2E2850; color: #CFC6F5; font-size: 13.5px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 0 0 rgba(167, 139, 250, .6); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 9px rgba(167, 139, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); } }
.lp-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 800; line-height: .95; letter-spacing: -0.035em; }
.lp-lede { color: #C3C0D8; font-size: clamp(16px, 1.6vw, 18.5px); max-width: 540px; margin: 20px 0 0; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 14px; border: 1px solid #34304F; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .2s, background .2s; }
.ghost-btn:hover { border-color: #4A4470; background: rgba(255,255,255,.05); }
.lp-fine { margin: 18px 0 0; font-size: 13px; color: #8E8AA8; max-width: 480px; }
.lp-fine b { color: #C9C6DD; }

/* floating stack of leaks */
.stack { position: relative; height: 430px; perspective: 1200px; }
.leak { position: absolute; width: min(330px, 78%); border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); animation: lp-float 7s ease-in-out infinite; }
.leak.l1 { right: 4%; top: 0; transform: rotate(4deg); z-index: 1; }
.leak.l2 { left: 0; top: 120px; transform: rotate(-5deg); z-index: 2; animation-delay: -2.3s; }
.leak.l3 { right: 10%; top: 230px; transform: rotate(2deg); z-index: 3; animation-delay: -4.6s; }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.leak-img { aspect-ratio: 16/9; background-size: cover; background-position: center; filter: blur(9px) saturate(1.1); transform: scale(1.15); }
.leak-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--panel); font-size: 13px; }
.leak-host { color: #C9C6DD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-loop { position: relative; flex: none; width: 104px; height: 26px; }
.pf-loop span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 700; opacity: 0; animation: lp-st 9s infinite; }
.pf-loop span:nth-child(1) { background: #24223A; color: var(--muted); }
.pf-loop span:nth-child(2) { background: var(--blue-bg); color: var(--blue); animation-name: lp-st2; }
.pf-loop span:nth-child(3) { background: var(--ok-bg); color: var(--ok); animation-name: lp-st3; }
.pf-loop.d1 span { animation-delay: -3s; }
.pf-loop.d2 span { animation-delay: -6s; }
@keyframes lp-st { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes lp-st2 { 0%, 31% { opacity: 0; } 35%, 63% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes lp-st3 { 0%, 64% { opacity: 0; transform: scale(.7); } 69% { opacity: 1; transform: scale(1.1); } 73%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.lp-sec { max-width: 1180px; margin: 0 auto; padding: 46px clamp(18px, 4vw, 40px) 0; }
.lp-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.lp-sec.how, .lp-sec.examples { margin-top: 0; }
.lp-small { font-size: 13px; color: #8E8AA8; margin: 12px 0 0; }
.lp-small a, .lp-auth a { color: var(--violet-2); }

/* sign in */
.lp-auth .card { max-width: 560px; margin: 0 auto; padding: clamp(20px, 4vw, 32px); }
.lp-auth h2 { margin-bottom: 4px; }
.lp-auth .field { margin-top: 16px; }
.auth-buttons { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.auth-buttons .btn-primary { flex: 1; min-width: 150px; }
.signin-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #2A2148; color: #E4DAFF; font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.plans-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: transform .25s var(--ease), border-color .25s; }
.plan:hover { transform: translateY(-3px); border-color: #3D3368; }
.plan.featured { border-color: #5B3FCF; background: linear-gradient(170deg, #1E1638, var(--panel) 60%); }
.plan-name { margin: 0; color: var(--violet-2); font-weight: 700; font-size: 14px; }
.plan-price { margin: 6px 0 12px; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.1rem; font-weight: 800; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); font-family: "Public Sans", sans-serif; }
.plan-price-was { font-size: 1.3rem; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.plan-badge { margin: 0 0 14px; font-size: 13px; color: var(--violet-2); font-weight: 600; }
.plan ul { margin: 0; padding-left: 18px; color: #C3C0D8; font-size: 14.5px; }
.plan li { margin: 4px 0; }

/* quick help */
.help-widget { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.help-bubble { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #9B6BFF, #7C4DF5); color: #fff; font: 800 20px/1 "Bricolage Grotesque", sans-serif; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .8); }
.help-panel { position: absolute; right: 0; bottom: 64px; width: min(340px, calc(100vw - 36px)); background: var(--panel); border: 1px solid #2E2A48; border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.help-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.help-questions { display: grid; gap: 8px; }
.help-questions button, .help-answer button { text-align: left; background: #0F0E1A; border: 1px solid #2D2A44; color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.help-questions button:hover { border-color: var(--violet); }
.help-answer { font-size: 14px; color: #D6D3EA; display: grid; gap: 10px; }

.lp-foot { padding: 50px 18px 34px; }

@media (max-width: 920px) {
  .lp-links { display: none; }
  .lp-signin { margin-left: auto; }
  .lp-hero { grid-template-columns: 1fr; gap: 10px; }
  .stack { height: 360px; max-width: 460px; width: 100%; margin: 10px auto 0; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lp-ctas .btn-primary, .lp-ctas .ghost-btn { flex: 1; padding: 0 14px; white-space: nowrap; }
  .stack { height: 300px; margin-top: 24px; }
  .leak { width: 66%; border-radius: 14px; }
  .leak.l1 { right: 0; top: 0; }
  .leak.l2 { left: 0; top: 72px; }
  .leak.l3 { right: 4%; top: 150px; }
  .leak-bar { padding: 9px 11px; font-size: 12px; }
  .pf-loop { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .leak, .live-dot { animation: none !important; }
  .pf-loop span { animation: none !important; }
  .pf-loop span:nth-child(3) { opacity: 1; }
}
