/* Car Insurance Decoder — Landing Page Styles */
/* Brand: Policy Navy #0D2B45 · Clarity Green #2ECC71 · DM Sans + Source Sans 3 */

:root {
    /* Brand palette */
    --navy: #0D2B45;
    --navy-dark: #091f33;
    --green: #2ECC71;
    --green-glow: rgba(46, 204, 113, 0.15);
    --amber: #F39C12;
    --red: #E74C3C;
    --teal: #1ABC9C;
    --slate: #5D6D7E;
    --warm-gray: #95A5A6;
    --cloud-white: #F8F9FA;
    /* Utility grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

/* ─── Header ─── */
.header {
    padding: 16px 0;
    border-bottom: 2px solid var(--green);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Stacked wordmark */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.logo-top {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--slate);
}

.logo-main {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

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

.nav a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--navy);
}

/* ─── Hero ─── */
.hero {
    padding: 80px 0 60px;
    background: var(--cloud-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dot-grid texture (brand spec: navy at 7% opacity on cloud white) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 43, 69, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--green-glow);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    margin-bottom: 60px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form.inline {
    max-width: 520px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.btn-primary {
    padding: 14px 28px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--navy-dark);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    padding: 12px 24px;
    background: #fff;
    color: var(--slate);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: not-allowed;
    width: 100%;
}

.form-note {
    font-size: 0.875rem;
    color: var(--slate);
    margin-top: 12px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--slate);
}

/* ─── Problem Section ─── */
.problem {
    padding: 100px 0;
    background: #fff;
}

.problem h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.problem-card {
    padding: 40px 32px;
    background: var(--cloud-white);
    border-radius: var(--radius-xl);
    text-align: center;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--slate);
    font-size: 0.9375rem;
}

/* ─── Solution Section ─── */
.solution {
    padding: 100px 0;
    background: var(--cloud-white);
}

.solution h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--slate);
    font-size: 1.0625rem;
}

/* ─── Report Preview ─── */
.report-preview {
    padding: 100px 0;
    background: #fff;
}

.report-preview h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

.report-mockup {
    max-width: 700px;
    margin: 0 auto;
    background: var(--cloud-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--navy);
    color: #fff;
}

.report-type {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

.report-date {
    font-size: 0.875rem;
    opacity: 0.65;
}

.report-sections {
    padding: 28px;
}

.report-section {
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.report-section:last-child {
    margin-bottom: 0;
}

.report-section.green {
    background: rgba(46, 204, 113, 0.08);
    border-left: 4px solid var(--green);
}

.report-section.red {
    background: rgba(231, 76, 60, 0.08);
    border-left: 4px solid var(--red);
}

.report-section.yellow {
    background: rgba(243, 156, 18, 0.08);
    border-left: 4px solid var(--amber);
}

.report-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.report-section ul {
    list-style: none;
    padding: 0;
}

.report-section li {
    padding: 6px 0;
    color: var(--slate);
    font-size: 0.9375rem;
}

/* ─── Pricing ─── */
.pricing {
    padding: 100px 0;
    background: var(--cloud-white);
}

.pricing h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--navy);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.price {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.features li {
    padding: 10px 0;
    color: var(--slate);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
}

.features li:last-child {
    border-bottom: none;
}

.pricing-guarantee {
    text-align: center;
    color: var(--slate);
    font-size: 0.9375rem;
}

/* ─── FAQ ─── */
.faq {
    padding: 100px 0;
    background: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--slate);
    font-size: 1rem;
}

/* ─── Final CTA ─── */
.final-cta {
    padding: 100px 0;
    background: var(--navy);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dot-grid on dark bg */
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.final-cta > .container > p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.final-cta .email-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.final-cta .email-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.final-cta .email-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Green CTA button on dark — navy text for contrast */
.final-cta .btn-primary {
    background: var(--green);
    color: var(--navy);
}

.final-cta .btn-primary:hover {
    background: #27ae60;
    color: var(--navy);
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.875rem;
    opacity: 0.55;
}

/* ─── Footer ─── */
.footer {
    padding: 60px 0 30px;
    background: var(--navy);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand .logo {
    margin-bottom: 8px;
}

.footer-brand .logo-top {
    color: rgba(255, 255, 255, 0.45);
}

.footer-brand .logo-main {
    color: var(--green);
}

.footer-brand p {
    opacity: 0.5;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green);
}

.copyright {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.4;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Accents & Components ─── */

/* Hero accent word */
.hero-accent {
    color: var(--green);
}

/* Hero scenario quote box */
.hero-scenario {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 20px 28px;
    background: rgba(243, 156, 18, 0.08);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    text-align: left;
}

.scenario-text {
    color: var(--gray-800);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Section subtitle — sits below h2, pulled up by negative margin */
.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 640px;
    margin: -40px auto 60px;
}

/* ─── Social Proof Bar ─── */
.social-proof-bar {
    padding: 48px 0;
    background: var(--navy);
    color: #fff;
}

.proof-label {
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
    font-style: italic;
}

.proof-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.proof-quote {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    border-left: 3px solid var(--green);
}

/* ─── Community Proof ─── */
.community-proof {
    padding: 100px 0;
    background: var(--cloud-white);
}

.community-proof h2 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 60px;
}

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

.proof-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.proof-stat {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}

.proof-channel {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.proof-card p {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
}

.proof-summary {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-700);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

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

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .hero-stats {
        gap: 32px;
    }

    .nav {
        display: none;
    }

    .problem h2,
    .solution h2,
    .report-preview h2,
    .community-proof h2,
    .pricing h2,
    .faq h2,
    .final-cta h2 {
        font-size: 1.75rem;
    }

    .step {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .proof-quotes {
        grid-template-columns: 1fr;
    }

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

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

    .section-subtitle {
        margin-top: -20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .problem-card,
    .pricing-card {
        padding: 28px 20px;
    }
}
