/* =========================================================
   Landing page — /lp/commercants
   Standalone styles, no dependency on the main site CSS.
   Scope: every rule under .lp-page so we never leak globally.
   ========================================================= */

.lp-page {
    --lp-primary: #2563eb;
    --lp-primary-dark: #1d4ed8;
    --lp-accent: #10b981;
    --lp-accent-dark: #059669;
    --lp-text: #111827;
    --lp-muted: #6b7280;
    --lp-bg: #ffffff;
    --lp-bg-soft: #f9fafb;
    --lp-border: #e5e7eb;
    --lp-radius: 12px;
    --lp-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --lp-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --lp-shadow-lg: 0 16px 40px rgba(0,0,0,.12);

    margin: 0;
    color: var(--lp-text);
    background: var(--lp-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.lp-page * { box-sizing: border-box; }
.lp-page img { max-width: 100%; height: auto; display: block; }
.lp-page a { color: inherit; text-decoration: none; }

.lp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Minimal header ===== */
.lp-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--lp-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-logo img { height: 40px; width: auto; }

/* ===== Buttons ===== */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.75rem;
    border-radius: var(--lp-radius);
    font-weight: 700;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    max-width: 100%;
    word-break: keep-all;
}
.lp-btn-primary {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.lp-btn-primary:hover {
    background: var(--lp-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16,185,129,.45);
}
.lp-btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.125rem;
}

/* ===== Section base ===== */
.lp-section {
    padding: 5rem 0;
}
.lp-section-soft { background: var(--lp-bg-soft); }
.lp-section-dark {
    background: linear-gradient(135deg, var(--lp-primary) 0%, #1e40af 100%);
    color: #fff;
}
.lp-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 .75rem 0;
    letter-spacing: -.02em;
}
.lp-section-subtitle {
    text-align: center;
    color: var(--lp-muted);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: 0 auto 3rem auto;
}

/* ===== Hero ===== */
.lp-hero {
    padding: 4rem 0 5rem 0;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
}
.lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.lp-hero-eyebrow {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--lp-primary);
    font-weight: 600;
    font-size: .8125rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
}
.lp-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0 0 1.25rem 0;
    font-weight: 800;
}
.lp-hero p.lp-hero-sub {
    font-size: 1.1875rem;
    color: var(--lp-muted);
    margin: 0 0 2rem 0;
    line-height: 1.55;
}
.lp-hero-reassure {
    margin-top: 1rem;
    font-size: .9375rem;
    color: var(--lp-muted);
}
.lp-hero-reassure i { color: var(--lp-accent); margin-right: .35rem; }
.lp-hero-visual {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    aspect-ratio: 4/3;
    box-shadow: var(--lp-shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 4rem;
}

/* ===== Pain points (Section 2) ===== */
.lp-pains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}
.lp-pain {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--lp-shadow-sm);
}
.lp-pain-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.lp-pain p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ===== Solution (Section 3) ===== */
.lp-solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.lp-solution {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--lp-radius);
    background: #fff;
    border: 1px solid var(--lp-border);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lp-solution:hover {
    transform: translateY(-3px);
    box-shadow: var(--lp-shadow-md);
}
.lp-solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--lp-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}
.lp-solution h3 { font-size: 1.1875rem; margin: 0 0 .5rem 0; }
.lp-solution p { color: var(--lp-muted); margin: 0; font-size: .9375rem; }

/* ===== Steps (Section 4) ===== */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto 2.5rem auto;
}
.lp-step { text-align: center; position: relative; }
.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--lp-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.lp-step h3 { font-size: 1.125rem; margin: 0 0 .5rem 0; }
.lp-step p { color: var(--lp-muted); margin: 0; font-size: .9375rem; }
.lp-center { text-align: center; }

/* ===== Testimonials (Section 5) ===== */
.lp-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.lp-testimonial {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.75rem;
    box-shadow: var(--lp-shadow-sm);
}
.lp-testimonial-quote {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    color: var(--lp-text);
}
.lp-testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.lp-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}
.lp-testimonial-name { font-weight: 700; font-size: .9375rem; }
.lp-testimonial-meta { color: var(--lp-muted); font-size: .8125rem; }
.lp-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    padding: .5rem 1.125rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--lp-text);
}

/* ===== Pricing teaser (Section 6) ===== */
.lp-pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--lp-shadow-md);
}
.lp-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: .5rem 0;
}
.lp-price-period { color: var(--lp-muted); font-size: .9375rem; font-weight: 500; }
.lp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}
.lp-pricing-features li {
    padding: .5rem 0;
    color: var(--lp-text);
}
.lp-pricing-features li i {
    color: var(--lp-accent);
    margin-right: .5rem;
}

/* ===== FAQ accordion (Section 7) ===== */
.lp-faq {
    max-width: 760px;
    margin: 0 auto;
}
.lp-faq-item {
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
}
.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--lp-muted);
    transition: transform .2s;
}
.lp-faq-item[open] summary::after { transform: rotate(45deg); }
.lp-faq-item .lp-faq-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--lp-muted);
    line-height: 1.6;
}

/* ===== Final CTA (Section 8) ===== */
.lp-final-cta { text-align: center; }
.lp-final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #fff;
}
.lp-final-cta p {
    color: rgba(255,255,255,.85);
    margin: 0 0 2rem 0;
    font-size: 1.125rem;
}
.lp-final-cta .lp-btn-primary {
    background: #fff;
    color: var(--lp-primary);
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.lp-final-cta .lp-btn-primary:hover {
    background: #f9fafb;
}
.lp-final-cta-note {
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    margin-top: 1rem;
}

/* ===== Minimal footer ===== */
.lp-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: .875rem;
    text-align: center;
}
.lp-footer a {
    color: var(--lp-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin: 0 .5rem;
}
.lp-footer a:hover { color: var(--lp-text); }

/* ===== Sticky mobile CTA ===== */
.lp-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--lp-border);
    padding: .75rem 1rem;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.lp-sticky-cta .lp-btn { width: 100%; }

/* ===== Scroll fade-in (progressive enhancement) =====
   Without JS, sections render visible by default — required because the site CSP
   blocks any inline <script>. The .lp-js class is added by lp-commercants.js on
   load; only then do we apply the hidden initial state. */
html.lp-js .lp-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
html.lp-js .lp-fade-in.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .lp-hero-visual { aspect-ratio: 16/9; }
    .lp-solutions, .lp-steps, .lp-testimonials { grid-template-columns: 1fr; }
    .lp-pains { grid-template-columns: 1fr; }
    .lp-section { padding: 3.5rem 0; }
    .lp-hero { padding: 2.5rem 0 3.5rem 0; }
}

@media (max-width: 600px) {
    .lp-page { font-size: 16px; }
    .lp-section-title { font-size: 1.6rem; }
    .lp-hero h1 { font-size: 1.9rem; }
    .lp-hero p.lp-hero-sub { font-size: 1rem; }
    .lp-pricing-card { padding: 2rem 1.25rem; }
    .lp-sticky-cta { display: block; }
    .lp-final-cta { padding-bottom: 5rem; }
    body { padding-bottom: 70px; }

    /* Full-width CTAs on mobile so long labels never overflow */
    .lp-hero .lp-btn,
    .lp-final-cta .lp-btn,
    .lp-section .lp-center .lp-btn {
        width: 100%;
        display: flex;
    }
    .lp-btn-lg {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .lp-header .lp-btn {
        padding: .55rem .9rem;
        font-size: .8125rem;
    }
}

/* Very small screens (iPhone SE etc.) */
@media (max-width: 380px) {
    .lp-btn { font-size: .9375rem; padding: .85rem 1rem; }
    .lp-btn-lg { font-size: .9375rem; padding: .95rem 1rem; }
    .lp-header .lp-btn { padding: .5rem .75rem; font-size: .75rem; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html.lp-js .lp-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .lp-btn { transition: none; }
}
