
/* ── ROOT VARIABLES ───────────────────────────────────────── */
:root {
    --brand: #1A1B2E;
    --accent: #5B6AF0;
    --accent-light: #E8EAFF;
    --success: #12B76A;
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-faint: #9CA3AF;
    --border: rgba(0,0,0,0.08);
    --surface: #F9FAFB;
    --white: #fff;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
}

/* ── BASE ─────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 600;
}

h1 { line-height: 1.2; }
h2 { line-height: 1.3; }
h3 { line-height: 1.4; }
p  { line-height: 1.6; }

/* ── HEADER ───────────────────────────────────────────────── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.sticky-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    max-width: 1160px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    flex-shrink: 0;
    transition: color 0.15s;
}

.brand:hover { color: var(--accent); }

.logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
    transition: color 0.15s;
}

.nav-links li a:hover { color: var(--text-main); }

.outline-button {
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    padding: 6px 14px !important;
    border-radius: 7px !important;
    transition: border-color 0.15s, color 0.15s !important;
}

.outline-button:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.cta-button {
    background: var(--accent) !important;
    color: #ffffff !important;
    padding: 7px 16px !important;
    border-radius: 7px !important;
    font-weight: 500 !important;
    transition: background 0.15s !important;
}

.cta-button:hover {
    background: #4756d4 !important;
    color: #ffffff !important;
}

/* ── HEADER MOBILE ────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid var(--border);
        padding: 8px 0 12px;
        gap: 0;
        position: static;
        height: auto;
        box-shadow: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 0;
        color: var(--text-muted);
    }

    .nav-links li a:hover {
        background: rgba(0,0,0,0.03);
        color: var(--text-main);
    }

    .outline-button {
        margin: 4px 12px !important;
        border-radius: 7px !important;
        display: inline-block !important;
    }

    .cta-button {
        margin: 4px 12px !important;
        border-radius: 7px !important;
        display: inline-block !important;
        text-align: center !important;
    }
}

/* ── LOGIN MODAL ──────────────────────────────────────────── */
dialog {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0;
}

dialog::backdrop {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

dialog article { margin: 0; }
dialog header { margin-bottom: 1rem; }

dialog header button {
    background: transparent;
    border: none;
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
    padding: 1rem 0 4rem 0;
    margin-top: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    .sticky-header {
    margin-bottom: 0;
}


.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 2rem auto;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-large {
    background: var(--accent);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}

.cta-large:hover {
    background: #4756d4;
    color: #ffffff;
}

.trust-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #555;
}

/* ── VALUE PROP ───────────────────────────────────────────── */
.value-prop-section {
    padding: 4rem 0;
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.before-card {
    border: 1px solid #FECACA;
    background: #FFF5F5;
    border-radius: 12px;
    padding: 1.5rem;
}

.after-card {
    border: 1px solid #BBF7D0;
    background: #F0FDF6;
    border-radius: 12px;
    padding: 1.5rem;
}

.before-card h3 { color: #991B1B; margin-top: 0; }
.after-card h3  { color: #065F46; margin-top: 0; }

/* ── SAMPLE REPORT ────────────────────────────────────────── */
.sample-section {
    padding: 4rem 0;
    background: var(--surface);
}

.sample-report-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.sample-result {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.sample-chart { margin: 2rem 0; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-it-works-section {
    padding: 4rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 auto 1rem auto;
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-section {
    padding: 4rem 0;
    background: var(--brand);
    color: white;
}

.testimonials-section h2 { color: white; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    padding: 2rem;
    border-radius: 12px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong { color: #A5B4FC; }
.testimonial-author span  { font-size: 0.9rem; color: rgba(255,255,255,0.4); }

/* ── FINAL CTA ────────────────────────────────────────────── */
.final-cta-section {
    padding: 4rem 0;
    background: white;
}

/* ── RESULTS ──────────────────────────────────────────────── */
.results-card {
    margin-top: 2rem;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.decision {
    background: var(--brand);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.decision h3 {
    margin: 0;
    color: white;
}

.charts {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.chart-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.chart-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.chart-container h4 {
    margin-top: 0;
    color: var(--text-main);
}

#results {
    display: none;
    margin-top: 3rem;
    animation: fadeIn 0.6s;
}

#results .charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.back-to-upload {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.back-to-upload:hover { text-decoration: underline; }

/* ── INFO DROPDOWNS ───────────────────────────────────────── */
.info-card details { margin-bottom: 0; }

.info-card details summary {
    cursor: pointer;
    padding: 0.75rem 0;
    color: var(--accent);
    font-size: 1.05rem;
    transition: color 0.2s;
}

.info-card details summary:hover { color: #4756d4; }

.info-card details[open] summary {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.info-card hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}

.info-card ol > li,
.info-card ul > li { margin-bottom: 1rem; }

.info-card ol > li:last-child,
.info-card ul > li:last-child { margin-bottom: 0; }

/* ── INFO POPOUT ──────────────────────────────────────────── */
.info-popout {
    position: relative;
    display: inline-block;
}

.info-popout summary {
    cursor: pointer;
    padding: 0.5rem;
    background: var(--accent-light);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    list-style: none;
    user-select: none;
}

.info-popout summary::-webkit-details-marker { display: none; }
.info-popout summary:hover { background: #D4D8FD; }
.info-popout[open] summary { background: var(--accent); color: white; }

.info-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 300px;
    max-width: 400px;
}

.info-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-content p:last-child { margin-bottom: 0; }
.info-content ul { font-size: 0.9rem; }
.info-content ul li { margin-bottom: 0.25rem; }

/* ── UPLOAD GRID ──────────────────────────────────────────── */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.upload-grid .info-card {
    position: sticky;
    top: 80px;
}

/* ── RESULTS CONTAINER ────────────────────────────────────── */
.results-container {
    margin-top: 3rem;
    animation: fadeIn 0.5s;
}

/* ── PRICING ──────────────────────────────────────────────── */
.page-header {
    text-align: center;
    padding: 2rem 0;
}

.page-header .subtitle {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    max-width: 520px;
    margin: 2rem auto;
    border-radius: 16px;
    padding-top: 1rem;
}

.pricing-card.featured {
    border: 2px solid var(--brand);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 999px;
}

.pricing-content {
    text-align: center;
    padding: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.features {
    text-align: left;
    margin: 2rem 0;
    line-height: 1.6;
}

.features li { margin-bottom: 0.5rem; }

.checkout-form input {
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.checkout-form button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.checkout-form button:hover { background: #4756d4; }

.trust { margin-top: 1rem; opacity: 0.7; }

.terms {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.6;
}

.page-footer {
    text-align: center;
    margin-top: 3rem;
}

.warning {
    color: #F59E0B;
    margin-top: 1rem;
    text-align: center;
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 968px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .upload-grid .info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title    { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .trust-badges {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .comparison-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    #results .charts {
        grid-template-columns: 1fr;
    }

    .info-content {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        max-width: none;
    }
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    margin-top: 0;
    padding-top: 0;
}