/* ==========================================================================
   Public landing page. Builds on the tokens in admin.css so the brand colour
   set in Settings drives this page too.
   ========================================================================== */

body.landing {
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    overflow-x: hidden;
}

.lp-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.lp-container--narrow { max-width: 780px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.lp-header {
    position: sticky; top: 0; z-index: 50;
    background: transparent;
    transition: background .25s, box-shadow .25s, border-color .25s;
    border-bottom: 1px solid transparent;
}
.lp-header.is-stuck {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
    box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .45);
}

.lp-header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.lp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.lp-brand:hover { text-decoration: none; }
.lp-brand__mark {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #22d3ee));
    color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 15px; letter-spacing: .5px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent);
}
.lp-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.lp-brand__text strong { font-size: 15.5px; font-weight: 800; }
.lp-brand__text small { font-size: 11.5px; color: var(--text-muted); }

.lp-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.lp-nav a {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: var(--text-muted); text-decoration: none; transition: background .15s, color .15s;
}
.lp-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.lp-header__actions { display: flex; align-items: center; gap: 10px; }

.lp-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; width: auto; }
.lp-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.lp-hero { position: relative; padding: 84px 0 92px; overflow: hidden; }

.lp-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; }
.lp-blob--a {
    width: 620px; height: 620px; top: -280px; inset-inline-end: -180px;
    background: radial-gradient(circle at 35% 35%, var(--brand), transparent 70%);
}
.lp-blob--b {
    width: 480px; height: 480px; bottom: -260px; inset-inline-start: -140px;
    background: radial-gradient(circle at 65% 65%, #22d3ee, transparent 70%);
}
.lp-grid {
    position: absolute; inset: 0; opacity: .45;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}

.lp-hero__inner { position: relative; z-index: 1; text-align: center; }

.lp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 16px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.lp-badge__dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent);
}

.lp-hero__title {
    font-size: clamp(30px, 5.2vw, 52px);
    font-weight: 900; line-height: 1.25; letter-spacing: -.8px;
    margin: 22px auto 16px; max-width: 18ch;
}
.lp-hero__subtitle {
    font-size: clamp(15px, 1.6vw, 18px); color: var(--text-muted);
    line-height: 1.95; max-width: 58ch; margin: 0 auto;
}

.lp-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.lp-btn-lg { padding: 14px 30px; font-size: 15px; border-radius: 13px; }
.lp-btn-invert { background: #fff; color: var(--brand-strong); }
.lp-btn-invert:hover { background: #fff; color: var(--brand-strong); filter: brightness(.97); }

.lp-proof {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 46px;
}
.lp-proof > div {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 26px; min-width: 132px; box-shadow: var(--shadow-sm);
}
.lp-proof strong { display: block; font-size: 25px; font-weight: 800; color: var(--brand); }
.lp-proof span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.lp-section { padding: 76px 0; }
.lp-section--tinted { background: var(--bg); border-block: 1px solid var(--border); }

.lp-section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.lp-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px;
    color: var(--brand); text-transform: uppercase; margin-bottom: 10px;
}
.lp-section__head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.5px; }
.lp-section__head p { color: var(--text-muted); margin: 12px 0 0; line-height: 1.9; }

/* ── Features ───────────────────────────────────────────────────────────── */

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.lp-feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lp-feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .5);
}
.lp-feature__icon {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.lp-feature__icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.lp-feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.lp-feature p { color: var(--text-muted); font-size: 14px; line-height: 1.9; margin: 0; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.lp-product {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.lp-product__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px; flex-wrap: wrap; margin-bottom: 18px;
}
.lp-product__head h3 { font-size: 21px; }
.lp-product__head p { color: var(--text-muted); font-size: 14px; margin: 8px 0 0; max-width: 56ch; line-height: 1.85; }
.lp-product__price { text-align: start; white-space: nowrap; }
.lp-product__price strong { display: block; font-size: 27px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.lp-product__price small { font-size: 12px; color: var(--text-muted); }

.lp-product__meta { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0 0 20px; padding: 0; }
.lp-product__meta li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.lp-product__meta svg { width: 16px; height: 16px; color: var(--brand); }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.lp-plan {
    position: relative; border: 1px solid var(--border); border-radius: 14px;
    padding: 22px; background: var(--surface-2); display: flex; flex-direction: column;
}
.lp-plan--featured {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 12px 34px -22px color-mix(in srgb, var(--brand) 80%, transparent);
}
.lp-plan__tag {
    position: absolute; top: -11px; inset-inline-start: 20px;
    background: var(--brand); color: #fff; border-radius: 999px;
    padding: 3px 12px; font-size: 11px; font-weight: 800;
}
.lp-plan h4 { font-size: 15px; margin-bottom: 10px; }
.lp-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.lp-plan__price strong { font-size: 23px; font-weight: 800; }
.lp-plan__price span { font-size: 12.5px; color: var(--text-muted); }
.lp-plan ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.lp-plan li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 9px; line-height: 1.7; }
.lp-plan li svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; color: var(--ok); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq__item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 13px; padding: 16px 20px; transition: border-color .15s;
}
.lp-faq__item[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.lp-faq__item summary {
    cursor: pointer; font-weight: 700; font-size: 15px; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after {
    content: "+"; font-size: 19px; color: var(--brand); font-weight: 700; line-height: 1;
    transition: transform .2s;
}
.lp-faq__item[open] summary::after { transform: rotate(45deg); }
.lp-faq__item p { color: var(--text-muted); font-size: 14px; line-height: 1.95; margin: 12px 0 0; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */

.lp-cta {
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, #7c3aed));
    color: #fff; padding: 66px 0;
}
.lp-cta__inner { text-align: center; }
.lp-cta h2 { font-size: clamp(23px, 3.2vw, 32px); font-weight: 800; margin-bottom: 12px; }
.lp-cta p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin: 0 auto 26px; line-height: 1.9; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.lp-footer { background: var(--sidebar-bg); color: #94a3b8; padding: 54px 0 0; }
.lp-footer__inner {
    display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px;
}
.lp-footer .lp-brand__text strong { color: #fff; }
.lp-footer__brand p { font-size: 13.5px; line-height: 1.9; margin: 14px 0 0; max-width: 34ch; }

.lp-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; }
.lp-footer__cols h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; }
.lp-footer__cols a {
    display: block; color: #94a3b8; font-size: 13.5px;
    text-decoration: none; margin-bottom: 9px; transition: color .15s;
}
.lp-footer__cols a:hover { color: #fff; text-decoration: none; }

.lp-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 24px; display: flex; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; font-size: 12.5px;
}
.lp-footer__bar a { color: #94a3b8; text-decoration: none; }
.lp-footer__bar a:hover { color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .lp-burger { display: flex; }

    .lp-nav {
        position: absolute; top: 72px; inset-inline: 12px;
        flex-direction: column; gap: 2px; padding: 12px;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: 14px; box-shadow: var(--shadow-lg);
        display: none;
    }
    .lp-nav.is-open { display: flex; }
    .lp-nav a { padding: 11px 14px; }

    .lp-hero { padding: 56px 0 64px; }
    .lp-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
    .lp-container { padding: 0 16px; }
    .lp-proof > div { flex: 1 1 100px; min-width: 0; padding: 13px 14px; }
    .lp-proof strong { font-size: 20px; }
    .lp-product { padding: 20px; }
    .lp-product__price { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
