/* =========================================
   LANDING PAGE CSS (Startup / SAAS Look)
   ========================================= */

body.landing-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #111827;
    line-height: 1.6;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography & Reset */
.landing-body h1,
.landing-body h2,
.landing-body h3,
.landing-body h4,
.landing-body h5 {
    margin: 0 0 1rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
}

.landing-body p {
    margin: 0 0 1rem;
}

/* Layout Utilities */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 100px 0;
}

.bg-light {
    background-color: #f3f4f6;
}

.bg-dark {
    background-color: #111827;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #f9fafb;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.39);
}

.btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.w-100 {
    width: 100%;
    box-sizing: border-box;
}

/* 1) Sticky Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 76px;
}

.logo-mobile {
    display: none;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.desktop-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

/* Base Mobile Nav Styles (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #111827;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.mobile-nav-drawer {
    display: none;
    /* Hide entirely on desktop */
}

.login-link:hover {
    color: #111827;
}

/* 2) Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
    background-image: url("../images/bg.webp");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(248, 250, 252, 0.95) 0%,
            rgba(248, 250, 252, 0.85) 35%,
            rgba(248, 250, 252, 0.0) 65%);
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.35), transparent 70%);
    top: 10%;
    right: 15%;
    filter: blur(80px);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.2rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: #111827;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-trust {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-trust span {
    font-weight: 500;
    color: #374151;
}

.hero-visual {
    position: relative;
}

.hero-section .btn-primary {
    background: #0066ff;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.45);
}

.hero-section .btn-primary:hover {
    background: #0052cc;
}

.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-section .btn-secondary:hover {
    background: #fff;
}

/* 3) Micro Proof */
.proof-section {
    background: #fff;
    padding: 24px 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.proof-text {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 4) Features Section */
.section-title {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.f-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.f-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.f-desc {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.f-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 5) How it works */
.steps-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 10px #dbeafe;
}

.step-col h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-col p {
    color: #4b5563;
    font-size: 0.95rem;
}

/* 6) Templates Grid */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tpl-card {
    background: #fff;
    border-radius: 16px;
    padding-bottom: 24px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.tpl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 231, 235, 0.8);
    z-index: 50;
}

.tpl-img-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    overflow: visible;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.tpl-mock {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    object-position: top center !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border-radius: 4px;
    image-rendering: high-quality;
    transform-origin: top center;
    position: relative;
    z-index: 2;
}

.tpl-card:hover .tpl-mock {
    transform: scale(1.55) translateY(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.tpl-card h5 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.tpl-card span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 7) Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.t-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.t-box p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* 8) Pricing */
.pricing-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}

.active-price {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 2px solid #2563eb;
    transform: scale(1.02);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price-val {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.price-val span {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.price-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: #4b5563;
}

.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* 9) FAQ */
.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-item h5 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: #4b5563;
    margin: 0;
}

/* 10) Final CTA */
.cta-box {
    background: #2563eb;
    padding: 60px 40px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

.cta-box h2 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: 32px;
}

.cta-box .btn-primary {
    background: #fff;
    color: #2563eb;
    box-shadow: none;
}

.cta-box .btn-primary:hover {
    background: #f0fdf4;
}

/* 11) Footer */
.landing-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 76px;
    margin-bottom: 20px;
}

.f-col h4 {
    color: #f9fafb;
    margin-bottom: 20px;
}

.f-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.f-col a:hover {
    color: #fff;
}

.made-in {
    display: block;
    margin-top: 20px;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 70px;
        /* Below the sticky header */
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        /* Below the header */
    }

    .mobile-nav-drawer.open {
        transform: translateY(0);
    }

    .mobile-nav-inner {
        padding: 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1f2937;
        text-decoration: none;
        padding-bottom: 10px;
        border-bottom: 1px solid #f3f4f6;
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-grid,
    .steps-wrap,
    .trust-grid,
    .pricing-wrap {
        grid-template-columns: 1fr;
    }

    /* Mobile Carousel for Templates */
    .template-gallery {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
        gap: 20px;
        /* Edge to edge scrolling */
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        /* Hide scrollbar */
        scrollbar-width: none;
    }

    .template-gallery::-webkit-scrollbar {
        display: none;
    }

    .template-gallery .tpl-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
        /* Disable hover lift on mobile */
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    }

    .template-gallery .tpl-mock {
        /* Disable desktop magnifier on mobile swipe */
        transform: none !important;
        pointer-events: none;
        /* Prevents image dragging from breaking the swipe */
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Fix header on mobile */
    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
        height: 44px;
        /* Dramatically scale down the square logo */
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-actions .login-link {
        font-size: 0.9rem;
    }

    .header-actions .btn-primary {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        /* Prevent button text from wrapping */
    }

    .hide-mobile {
        display: none;
    }
}

/* Hide the Cookie Revoke button globally */
.cc-revoke {
    display: none !important;
}