/* ===========================================
   FREEBIE LANDING PAGE STYLES
   4 Sections: Hero, What's Inside, Preview, Form
   =========================================== */

/* Page Layout */
.landing-page {
    position: relative;
    min-height: 100vh;
}

/* Logo Header */
.landing-header {
    padding: 24px 20px;
    text-align: center;
}

.landing-logo {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    color: var(--charcoal);
}

/* ==================== SECTION 1: HERO ==================== */
.hero-section {
    padding: var(--section-padding);
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo-symbol {
    display: block;
    width: 440px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 40px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.hero-subtext {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--heather);
    margin-bottom: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: var(--spacing-body);
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(89, 83, 84, 0.75);
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    background-color: var(--mauve);
    color: var(--warm-white);
    border: 2px solid var(--mauve);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-cta:hover {
    background-color: transparent;
    color: var(--mauve);
    opacity: 1;
}

.hero-visual {
    margin-top: 60px;
    max-width: 500px;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==================== SECTION 2: WHAT'S INSIDE ==================== */
.whats-inside-section {
    padding: var(--section-padding);
    background-color: var(--dust);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    color: var(--charcoal);
}

.intro-text {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
    letter-spacing: var(--spacing-body);
    color: rgba(89, 83, 84, 0.85);
}

.features-list {
    max-width: 600px;
    margin: 0 auto;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-left: 8px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--mauve);
    stroke-width: 2.5;
    fill: none;
}

/* Bullet-point variant (replaces checkmarks) */
.features-list--bullets .feature-item {
    align-items: baseline;
}

.feature-bullet {
    flex-shrink: 0;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mauve);
    margin-top: 9px;
    margin-right: 4px;
}

.feature-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    letter-spacing: var(--spacing-body);
    color: var(--charcoal);
}

.features-footer {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(89, 83, 84, 0.7);
}

/* ==================== SECTION 3: PREVIEW ==================== */
.preview-section {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.preview-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

.preview-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--mushroom);
    box-shadow: 0 4px 20px rgba(89, 83, 84, 0.12);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, var(--primrose) 0%, var(--mushroom) 100%);
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.placeholder-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    color: rgba(89, 83, 84, 0.5);
}

/* ==================== SECTION 4: FORM + EXPLORE ==================== */
.form-section {
    padding: var(--section-padding);
    background-color: var(--dust);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.form-subtext {
    font-size: 1.1rem;
    color: rgba(89, 83, 84, 0.75);
    margin-bottom: 12px;
}

.form-tagline {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--mauve);
    margin-bottom: 40px;
}

.email-form {
    margin-bottom: 48px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    margin-bottom: 8px;
    color: rgba(89, 83, 84, 0.8);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(89, 83, 84, 0.25);
    background-color: var(--warm-white);
    color: var(--charcoal);
    transition: border-color 0.25s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--mauve);
}

.form-input.error {
    border-color: #c44536;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.95rem;
    color: rgba(89, 83, 84, 0.8);
    line-height: 1.5;
}

.checkbox-label a {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    background-color: var(--mauve);
    color: var(--warm-white);
    border: 2px solid var(--mauve);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover:not(:disabled) {
    background-color: transparent;
    color: var(--mauve);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-reassurance {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(89, 83, 84, 0.65);
    margin-top: 16px;
}

/* Modal Popup (success confirmation) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(34, 28, 28, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: var(--warm-white, #fdfaf6);
    padding: 56px 48px 48px;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: modal-rise 0.35s ease-out;
}

@keyframes modal-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: rgba(89, 83, 84, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--mauve);
}

.modal-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.modal-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(89, 83, 84, 0.85);
    margin-bottom: 16px;
}

.modal-text:last-child {
    margin-bottom: 0;
}

.modal-link {
    color: var(--mauve);
    text-decoration: underline;
}

/* Explore More Section */
.explore-more {
    padding: 80px 20px 60px;
    background-color: var(--cream);
}

.explore-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    color: var(--charcoal);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.explore-grid--four {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1280px;
}

.explore-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-4px);
}

.explore-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--primrose) 0%, var(--mushroom) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.explore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.explore-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    margin-bottom: 12px;
    color: var(--charcoal);
}

.explore-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(89, 83, 84, 0.75);
    margin-bottom: 16px;
}

.explore-cta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--spacing-subheading);
    color: var(--mauve);
    border-bottom: 1px solid var(--mauve);
    padding-bottom: 2px;
    display: inline-block;
}

/* Footer */
.landing-footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--cream);
    border-top: 1px solid rgba(89, 83, 84, 0.1);
}

.landing-footer p {
    font-size: 0.9rem;
    color: rgba(89, 83, 84, 0.6);
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subtext {
        font-size: 1.2rem;
    }

    .hero-logo-symbol {
        width: 320px;
        max-width: 85%;
        margin-bottom: 28px;
    }

    .section-heading {
        font-size: 2rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
    }

    .preview-grid--two {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 16px;
    }

    .explore-grid,
    .explore-grid--four {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .hero-cta,
    .form-submit {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .modal-dialog {
        padding: 48px 24px 32px;
    }

    .modal-heading {
        font-size: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   LENIS SMOOTH SCROLL + ANIMATION SCAFFOLD
   =========================================== */

#freebie-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    z-index: 0;
}

.landing-header,
.hero-section,
.whats-inside-section,
.preview-section,
.form-section,
.explore-more,
.landing-footer {
    position: relative;
    z-index: 2;
}

/* Avoid FOUC flash before GSAP runs */
.hero-headline,
.hero-subtext,
.hero-tagline,
.hero-cta,
.hero-logo-symbol,
.landing-header {
    will-change: transform, opacity;
}

.hero-logo-symbol {
    transform-origin: 50% 50%;
}

/* Lenis required styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}
