/**
 * ==============================================================================
 * HEADER BLOCK: "Question Before Making It"
 * ==============================================================================
 * WHAT THIS FILE DOES:
 * Styles the compact, modern email newsletter intake section on the marketing website.
 * 
 * WHY THIS FILE EXISTS:
 * Eliminates excessive vertical whitespace from the old version (reduced padding
 * from 100px down to 48px), scales the container down to a focused 820px,
 * modernizes the typography and pill form input, and matches the new website
 * glassmorphic design system.
 * 
 * MAJOR RESPONSIBILITIES:
 * - Provides streamlined padding and responsive scaling.
 * - Styles the dark glassmorphic card container with subtle indigo/blue border glow.
 * - Styles the pill form bar with clean input, icon, and gradient submit button.
 * - Handles mobile responsiveness gracefully without overflow.
 * 
 * HOW IT FITS INTO THE OVERALL SYSTEM:
 * Loaded in `app/layout.tsx` as `/css/newsletter.css` and consumed by
 * `components/NewsletterForm.tsx`.
 * ==============================================================================
 */

/* =========================================================
   NEWSLETTER SECTION — COMPACT MODERN DESIGN
========================================================= */
.newsletter {
    font-family: var(--primary-font, 'Plus Jakarta Sans', sans-serif);
    padding: 48px 5% 56px;
    background: linear-gradient(180deg, #0b1329 0%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.newsletter-container {
    max-width: 820px;
    width: 100%;
    text-align: center;
    padding: 32px 36px 28px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.12);
    box-sizing: border-box;
}

/* Eyebrow Pill Badge */
.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.newsletter-eyebrow i {
    font-size: 0.8rem;
}

/* Compact Heading & Subtitle */
.newsletter-title,
.newsletter-container h2 {
    font-size: 1.85rem;
    color: #ffffff;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.newsletter-subtitle {
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0 auto 22px;
    max-width: 520px;
}

/* Legacy list fallback if present */
.newsletter-points {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    max-width: 500px;
}

.newsletter-points li {
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* Streamlined Form Pill */
.newsletter-form {
    background: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 5px 6px 5px 16px;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.newsletter-form:focus-within {
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.5);
}

.newsletter-form .icon {
    font-size: 1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 6px;
    font-size: 0.92rem;
    color: #0f172a;
    font-family: inherit;
    background: transparent;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.45);
}

/* Status / Feedback message */
.newsletter-msg {
    margin-top: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    min-height: 1.2em;
}

.newsletter-msg.success { color: #34d399; }
.newsletter-msg.error { color: #f87171; }

/* Privacy Note */
.last-points {
    margin-top: 14px;
}

.last-points p {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.last-points p i {
    font-size: 0.75rem;
    color: #10b981;
}

/* =========================================================
   NEWSLETTER SECTION — RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .newsletter {
        padding: 38px 4% 46px;
    }
    .newsletter-container {
        padding: 26px 20px 22px;
        border-radius: 16px;
    }
    .newsletter-title,
    .newsletter-container h2 {
        font-size: 1.55rem;
    }
    .newsletter-subtitle {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }
}

@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: 14px;
        padding: 10px;
        gap: 8px;
    }
    .newsletter-form .icon {
        display: none;
    }
    .newsletter-form input {
        width: 100%;
        text-align: center;
        padding: 8px 4px;
    }
    .newsletter-form button {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        padding: 11px;
    }
}

/**
 * ==============================================================================
 * FOOTER BLOCK: "Answer in the End"
 * ==============================================================================
 * MAIN WORKFLOW & EXECUTION STEPS:
 *   1. Sets tight 48px/56px section padding for compact vertical height.
 *   2. Styles the 820px glassmorphic card container with subtle borders and shadows.
 *   3. Styles the single-line pill input bar and gradient submit button.
 *   4. Collapses smoothly on mobile devices without layout distortion.
 * 
 * DEPENDENCIES:
 *   Loaded in `app/layout.tsx` via `/css/newsletter.css`.
 *   Used by `components/NewsletterForm.tsx`.
 * ==============================================================================
 */
