/* ============================================================
   Landing Page + Pricing — Pixel Peach Theme
   ============================================================ */

/* ── Section Spacing ──────────────────────────────────────── */
.landing-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.landing-section:first-child {
    padding-top: 40px;
}

.section-title {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--peach-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 60px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--peach), var(--banana));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1rem;
    padding: 16px 40px;
}

.hero-mockup {
    margin-top: 48px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-mockup-inner {
    padding: 20px;
    overflow: hidden;
}

.hero-mockup-inner .mockup-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255,138,101,0.1), rgba(255,224,130,0.08));
    border: 2px dashed var(--border-pixel);
    border-radius: var(--pixel-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

/* ── Before / After ───────────────────────────────────────── */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ba-card {
    padding: 16px;
    overflow: hidden;
}

.ba-card .ba-label {
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--banana);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Before / After Slider (landing) ─────────────────────── */
.ba-slider {
    user-select: none;
    -webkit-user-select: none;
}

.ba-slider-images {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--pixel-radius);
    overflow: hidden;
    cursor: ew-resize;
    border: 2px solid var(--border-pixel);
}

.ba-slider-images > .ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ba-slider-images > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-placeholder.before {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.ba-placeholder.after {
    background: linear-gradient(135deg, rgba(255,138,101,0.1), rgba(255,224,130,0.06));
}

.ba-slider-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-slider-clip .ba-placeholder,
.ba-slider-clip img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateX(-50%);
}

.ba-slider-handle-line {
    flex: 1;
    width: 3px;
    background: var(--peach);
}

.ba-slider-handle-circle {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background: var(--peach);
    border: 2px solid var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: ew-resize;
    box-shadow: var(--shadow-pixel);
}

.ba-slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px 0;
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
    border-color: var(--peach);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 0.6rem;
    margin-bottom: 8px;
    color: var(--peach-light);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--pixel-radius);
    background: var(--peach);
    color: var(--bg-base);
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    margin-bottom: 18px;
    box-shadow: 3px 3px 0 rgba(255, 112, 67, 0.4);
}

.step-card h3 {
    font-size: 0.6rem;
    margin-bottom: 8px;
    color: var(--banana);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-card:not(:last-child)::after {
    content: '>>>';
    position: absolute;
    top: 50px;
    right: -14px;
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--text-muted);
}

/* ── Referral Section ─────────────────────────────────────── */
.referral-section {
    text-align: center;
}

.referral-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 44px 36px;
}

.referral-card .referral-highlight {
    font-family: var(--font-pixel);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--peach), var(--banana));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.referral-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ── Final CTA ────────────────────────────────────────────── */
.final-cta {
    text-align: center;
    padding-bottom: 40px;
}

.final-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ── Pricing Page ─────────────────────────────────────────── */
.pricing-section {
    padding: 60px 0 100px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.pricing-grid-3 .api-card {
    grid-column: 1 / -1;
    max-width: 440px;
    justify-self: center;
}

.pricing-card {
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.pricing-card.recommended {
    border-color: var(--peach);
    background: rgba(255, 138, 101, 0.06);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--peach);
    color: var(--bg-base);
    font-family: var(--font-pixel);
    font-size: 0.45rem;
    padding: 5px 16px;
    border-radius: var(--pixel-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 2px 2px 0 rgba(255, 112, 67, 0.4);
}

.pricing-card h3 {
    font-size: 0.7rem;
    margin-bottom: 8px;
    color: var(--peach-light);
}

.pricing-price {
    margin-bottom: 24px;
}

.pricing-price .amount {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    color: var(--banana);
}

.pricing-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.pricing-features li {
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li .icon-check {
    color: var(--success);
    font-weight: 800;
}

.pricing-features li .icon-cross {
    color: var(--text-muted);
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-buttons form {
    display: contents;
}

/* ── PayPal Button ────────────────────────────────────────── */
.btn-paypal {
    background: rgba(255, 196, 57, 0.1) !important;
    border-color: rgba(255, 196, 57, 0.3) !important;
    color: #FFC439 !important;
}

.btn-paypal:hover {
    background: rgba(255, 196, 57, 0.2) !important;
    border-color: rgba(255, 196, 57, 0.5) !important;
}

/* ── Lifetime Card ────────────────────────────────────────── */
.lifetime-card {
    border-color: var(--banana);
    background: rgba(255, 224, 130, 0.06);
}

.lifetime-card .pricing-badge {
    background: var(--banana);
    color: var(--bg-base);
}

/* ── API Card ─────────────────────────────────────────────── */
.api-card {
    border-color: rgba(168, 230, 207, 0.3);
}

.api-card .discount-hint {
    color: var(--success) !important;
}

.api-calc {
    margin-top: auto;
}

.api-calc .form-control {
    margin-bottom: 14px;
}

.api-calc-result {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-pixel);
    border-radius: var(--pixel-radius);
    margin-bottom: 4px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.calc-row.discount-row {
    color: var(--success);
}

.calc-row.calc-total {
    border-top: 2px solid var(--border-pixel);
    margin-top: 6px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--banana);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
    max-width: 700px;
    margin: 80px auto 0;
}

.faq-item {
    border-bottom: 2px solid var(--border-pixel);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--peach);
}

.faq-question .faq-icon {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--peach);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 18px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid-3 {
        grid-template-columns: 1fr 1fr;
        max-width: 820px;
    }

    .pricing-grid-3 .api-card {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .landing-section {
        padding: 50px 0;
    }

    .ba-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .pricing-grid,
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .pricing-grid-3 .api-card {
        max-width: 100%;
    }

    .final-cta h2 {
        font-size: 1rem;
    }

    .referral-card .referral-highlight {
        font-size: 1.5rem;
    }

    .referral-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0 50px;
    }

    .hero h1 {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 12px 28px;
    }

    .pricing-card {
        padding: 24px 18px;
    }
}
