/* ==============================================
   Aiwake GEO Check — Huisstijl (aligned met aiwake.nl)
   Fonts: Sora (headings + body)
   Accent: #C05621
   ============================================== */

:root {
    /* Aiwake huisstijl kleuren */
    --orange: #C05621;
    --orange-hover: #E07A5F;
    --orange-light: rgba(192, 86, 33, 0.1);
    --orange-glow: rgba(192, 86, 33, 0.25);

    /* Lichte achtergrond variant (contrastrijk t.o.v. aiwake.nl) */
    --dark: #030303;
    --dark-secondary: #0a0a0a;
    --gray: #171717;
    --gray-light: #6b7280;
    --gray-lighter: #9ca3af;
    --white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-section: #f5f5f5;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.08);

    /* Status kleuren */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --container-max: 1200px;

    /* Fonts — match aiwake.nl exact */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Sora', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }

p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.container, main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header — lichte variant van aiwake.nl nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 36px;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--orange);
}

/* Hero */
.hero {
    padding: 120px 0 60px; /* extra top padding voor fixed header */
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
}

.accent {
    color: var(--orange);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Hero USP Banner */
.hero-usp {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto 32px;
    padding: 16px 20px;
    background: rgba(192, 86, 33, 0.06);
    border: 1px solid rgba(192, 86, 33, 0.15);
    border-radius: 12px;
    text-align: left;
}

.hero-usp__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 86, 33, 0.1);
    border-radius: 8px;
    margin-top: 1px;
}

.hero-usp p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.hero-usp strong {
    color: var(--orange);
}

/* Scan Form */
.scan-form {
    max-width: 560px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    outline: none;
    transition: border-color 0.3s;
    background: var(--white);
    color: var(--text-primary);
}

.input-group input:focus {
    border-color: var(--orange);
}

.input-group button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.input-group button:hover {
    background: var(--orange-hover);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.input-group button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* GEO Intro */
.geo-intro {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.geo-intro h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.geo-intro__content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-section);
}

.features h2 {
    text-align: center;
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(192, 86, 33, 0.08), rgba(192, 86, 33, 0.04));
    border: 1px solid rgba(192, 86, 33, 0.12);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Results */
.results {
    padding: 80px 0;
    text-align: center;
}

.results h2 {
    margin-bottom: 40px;
}

/* Score Ring */
.score-section {
    margin-bottom: 48px;
}

.score-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--bg-section);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: var(--orange);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease, stroke 0.5s;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-max {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40%);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.score-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.score-url {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Findings */
.findings {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: left;
}

.finding {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.finding-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
}

.finding-icon.good { background: var(--success); }
.finding-icon.warn { background: var(--warning); }
.finding-icon.bad { background: var(--danger); }

.finding-text h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.finding-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CTA */
.cta-section {
    background: var(--bg-section);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}

.cta-section h3 {
    margin-bottom: 8px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
    border-radius: var(--radius-pill);
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.cta-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Email */
.email-section {
    max-width: 480px;
    margin: 0 auto;
}

.email-section h3 {
    margin-bottom: 16px;
}

.email-form .input-group {
    box-shadow: var(--shadow-sm);
}

.opt-in {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    text-align: left;
    cursor: pointer;
}

.opt-in input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand, #D44B37);
    cursor: pointer;
}

.opt-in-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

.opt-in-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    line-height: 1.45;
}

.email-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.email-feedback.success { color: var(--success); }
.email-feedback.error { color: var(--danger); }

.privacy-note {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

/* FAQ */
.faq {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.faq h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item__question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: var(--orange);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 1.5rem;
}

.faq-item.open .faq-item__answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item__answer p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.faq-item__answer a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.faq-item__answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer p {
    font-size: 0.8rem;
    color: var(--gray-lighter);
}

.footer a {
    color: var(--orange);
    text-decoration: none;
}

/* Error */
.error-message {
    background: #ffeaea;
    color: var(--danger);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.85rem;
    display: none;
}

/* Limietmelding (429) */
.limit-message {
    background: var(--orange-light);
    border-left: 3px solid var(--orange);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    display: none;
}

.limit-message p {
    margin: 0 0 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-row {
        gap: 24px;
    }

    .input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .input-group input {
        border-right: 2px solid var(--border);
        border-bottom: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .input-group button {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .hero {
        padding: 100px 0 40px;
    }

    .faq-item__question {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
}
