/* =====================================================================
   Landing conversion pieces (funnel audit, Rounds 10/17/20):
   repeated CTA, annual-first pricing,
   cancel line + live upgrade count + mini-FAQ, "see how it works" walkthrough,
   sticky phone bar (G3), and the phone trims (pricing moved up, feature rows collapsed).
   Every grid uses minmax(0, 1fr) so nothing can push past a 390px screen.
   ===================================================================== */

/* ── Repeated CTA ─────────────────────────────────────────────────── */
.lp-cta-repeat {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 8px 20px 56px; text-align: center;
}
.lp-cta-repeat span { font-size: 13px; color: var(--text-secondary); }

/* ── Pricing: annual first ───────────────────────────────────────── */
.lp-save { color: var(--success); font-size: 12px; font-weight: 700; }
[data-theme="light"] .lp-save { color: #059669; }
.lp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.lp-price .lp-amount { font-size: inherit; font-weight: inherit; color: var(--text); letter-spacing: inherit; }
.lp-price .lp-amount + span { margin-left: -6px; }
.lp-was { font-size: 20px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.lp-was[hidden], [data-monthly-only][hidden], [data-annual-only][hidden] { display: none; }
.lp-billed { color: var(--text); font-weight: 600; }
.lp-smallprint { text-align: center; font-size: 12px; color: var(--text-muted); margin: 14px auto 0; }

/* Next to the upgrade buttons */
.lp-assure {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 40px; align-items: start;
    margin-top: 32px; padding: 24px 28px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(22, 22, 24, 0.5);
}
[data-theme="light"] .lp-assure { background: #fff; border-color: rgba(0, 0, 0, 0.07); }
.lp-assure-lines { display: grid; gap: 12px; }
.lp-assure-line { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.lp-assure-line strong { color: var(--text); }
.lp-upgrades { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.lp-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(37, 244, 168, 0.18);
}
.lp-faq { display: grid; gap: 8px; }
.lp-faq details { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; }
.lp-faq summary {
    cursor: pointer; list-style: none; padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--text);
    display: flex; justify-content: space-between; gap: 12px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--text-muted); font-weight: 700; }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 12px; }

.lp-credit-hl { border-color: rgba(96, 165, 250, 0.4); }

/* ── See how it works ─────────────────────────────────────────────── */
.lp-see-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px 64px; align-items: center;
    max-width: 960px; margin: 0 auto;
}
.lp-see-text .section-sub { margin-bottom: 24px; }
.lp-see-video {
    position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border); background: var(--surface); color: #fff; text-decoration: none;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.lp-see-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-see-play {
    position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
}
.lp-see-cta {
    position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap;
    background: var(--gradient-accent); padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
}
.lp-see-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    padding: 20px; border-style: dashed; color: var(--text-secondary); box-shadow: none;
}
.lp-see-placeholder span { font-weight: 700; color: var(--text); }
.lp-see-placeholder small { font-size: 12px; overflow-wrap: anywhere; }

/* ── G3: sticky bar (phones only) ─────────────────────────────────── */
.lp-sticky { display: none; }

@media (max-width: 900px) {
    .lp-assure { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .lp-see-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .lp-see-text .section-sub { margin-left: auto; margin-right: auto; }
    .lp-see-video { max-width: 260px; }
}

@media (max-width: 640px) {
    /* Pricing and the walkthrough come straight after the examples on a phone */
    .lp-flow { display: flex; flex-direction: column; }
    .lp-flow > * { width: 100%; }
    .lp-flow > #pricing { order: -2; }
    .lp-flow > #see-how { order: -1; }

    .lp-cta-repeat { padding-bottom: 8px; }
    .lp-cta-repeat .btn { width: 100%; max-width: 360px; justify-content: center; }

    /* Plan cards: tighter, so four plans aren't four screens */
    .pricing-grid { gap: 12px; margin-top: 24px; }
    .plan-card { padding: 24px 20px; }
    .plan-price { font-size: 36px; margin: 10px 0 2px; }
    .plan-desc { margin-bottom: 16px; }
    .plan-features { gap: 8px; margin-bottom: 20px; }
    .plan-features li { font-size: 13px; }

    /* Credit packs: one compact row each */
    .credits-section { margin-top: 40px; }
    .credits-header { margin-bottom: 16px; }
    .credit-card { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; }
    /* Price and Buy button share the row: centre both on the row's middle */
    .credit-card-top { margin: 0; gap: 12px; align-items: center; }
    .credit-count { font-size: 1.5rem; }
    .credit-price { font-size: 1.4rem; }
    .credit-note { display: none; }
    .credit-card .btn-credit { width: auto; padding: 10px 14px; white-space: nowrap; }

    /* Feature rows: headline and one line each; the screenshots are desktop-only */
    #features { padding-top: 40px; padding-bottom: 24px; }
    #features > div:first-child { margin-bottom: 8px !important; }
    .feat-row { padding: 20px 0; gap: 0; border-top: 1px solid var(--border-soft); }
    .feat-row .feat-shot, .feat-row .feat-bullets { display: none; }
    .feat-row .feat-text h3 { font-size: 22px; margin-bottom: 6px; }
    .feat-row .feat-text p { font-size: 15px; margin: 0; }

    /* How it works: the four steps as text; the animated demos are desktop-only (the walkthrough video shows it) */
    .workflow-stage { padding: 24px 0; gap: 0; }
    .workflow-stage .workflow-demo, .workflow-stage .replay-btn { display: none; }
    .workflow-text h3 { margin-bottom: 6px; }

    .enterprise-features { display: none; }

    /* Footer link columns side by side instead of one long list */
    .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
    .footer-inner > div:first-child { grid-column: 1 / -1; }

    .lp-see { padding-top: 24px; }
    .lp-see-inner { gap: 24px; }

    /* Sticky bar */
    /* Same pill as the top bar (.nav in landing.css): radius, 16px inset, glass, border and shadow */
    .lp-sticky {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
        height: 64px; padding: 8px 8px 8px 22px; border-radius: 999px;
        background: rgba(10, 10, 13, 0.7);
        backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
        transform: translateY(calc(100% + 32px)); transition: transform 0.25s ease; pointer-events: none;
    }
    .lp-sticky.is-on { transform: none; pointer-events: auto; }
    .lp-sticky span { font-size: 14px; font-weight: 600; color: var(--text); min-width: 0; }
    .lp-sticky .btn { flex-shrink: 0; height: 46px; padding: 0 22px; border-radius: 999px; }
    [data-theme="light"] .lp-sticky {
        background: rgba(255, 255, 255, 0.75); border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }
    .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-sticky { transition: none; }
}
