:root {
    --ink: #0f172a;
    --ink-soft: #64748b;
    --paper: #f8fafc;
    --surface: #ffffff;
    --brand: #0016dd;
    --brand-dark: #000bb3;
    --brand-tint: #e3f2fd;
    --brand-light: #01a4ff;
    --accent: #ffde00;
    --accent-light: #fffde6;
    --line: #e2e8f0;
    --radius: 16px;
    --radius-sm: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.04);
    --font-body: "Inter", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand span {
    color: var(--brand-light);
}

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

.header-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--brand);
    color: var(--surface);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
}

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

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

.btn-ghost {
    background: none;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background-color: var(--brand-tint);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 64px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, var(--brand-tint) 0%, rgba(248, 250, 252, 0) 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 10;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--surface);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand);
    border-radius: 50%;
}

.heading {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 16px;
}

.sub-heading {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto 32px;
}

.badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--brand-dark);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--brand);
}

/* How It Works */
.how-it-works-section {
    padding: 48px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 36px;
}

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

.step-card {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.step-num {
    background-color: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 20px;
    font-weight: 800;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 12px;
}

.step-card-desc {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* Wizard / Finder Section */
.finder-section {
    padding: 16px 0 64px;
}

.wizard-container {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 640px;
    margin: 0 auto;
    padding: 36px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.view-panel {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.view-panel.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

/* Progress bar */
.progress-wrap {
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.progress-track {
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--brand);
    border-radius: 99px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question view */
.question-title {
    font-size: clamp(19px, 3vw, 22px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.question-hint {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.option-button {
    width: 100%;
    background-color: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.option-button:hover {
    border-color: var(--brand);
    background-color: var(--paper);
}

.option-button.selected {
    border-color: var(--brand);
    background-color: var(--brand-tint);
}

.option-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.option-button.selected .option-check {
    border-color: var(--brand);
    background-color: var(--brand);
}

.option-button.selected .option-check::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--surface);
    border-radius: 50%;
}

/* Multi-select checkmark */
.option-button.multi .option-check {
    border-radius: 4px;
}

.option-button.multi.selected .option-check::after {
    content: "✓";
    font-size: 12px;
    color: var(--surface);
    font-weight: bold;
    background: none;
}

.option-text-wrap {
    display: flex;
    flex-direction: column;
}

.option-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.option-desc {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* Form Dropdown */
.dropdown-wrap {
    margin-bottom: 28px;
}

.select-input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background-color: var(--surface);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.select-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 107, 107, 0.15);
}

/* Textarea input */
.textarea-wrap {
    margin-bottom: 28px;
}

.textarea-input {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    resize: none;
}

.textarea-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 107, 107, 0.15);
}

/* Navigation inside Quiz */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--line);
    padding-top: 20px;
    margin-top: auto;
}

.btn-back {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
}

.btn-back:hover {
    color: var(--ink);
}

.btn-back:disabled {
    opacity: 0;
    cursor: default;
}

/* Loading Panel */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    padding: 40px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--brand-tint);
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-desc {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* Teaser / Email Gate Card */
.teaser-card {
    text-align: center;
}

.lock-icon-wrap {
    width: 56px;
    height: 56px;
    background-color: var(--brand-tint);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.teaser-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.teaser-sub {
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 28px;
}

.input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-row input[type="email"],
.input-row input[type="tel"] {
    flex-grow: 1;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}

.input-row input[type="email"]:focus,
.input-row input[type="tel"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 107, 107, 0.15);
}

.input-row .submit-btn {
    padding: 16px 24px;
    font-size: 15px;
    white-space: nowrap;
}

/* Custom form-group styling for email gate */
.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--surface);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 22, 221, 0.15);
}

.form-group input.has-error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.gate-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

/* Quiz form input styles */
.quiz-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 500px) {
    .quiz-form-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.quiz-field-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quiz-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.quiz-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background-color: var(--surface);
    transition: all 0.2s;
}

.quiz-form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 22, 221, 0.15);
}

.error-msg {
    color: #dc2626;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    margin-top: 6px;
    display: none;
}

.input-row input.has-error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.consent-row {
    margin: 20px 0 24px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    background-color: var(--surface);
    transition: all 0.2s;
}

.checkbox-label:hover input ~ .custom-checkbox {
    border-color: var(--brand);
}

.checkbox-label input:checked ~ .custom-checkbox {
    background-color: var(--brand);
    border-color: var(--brand);
}

.checkbox-label input:checked ~ .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-note {
    font-size: 11.5px;
    color: var(--ink-soft);
}

/* Results / Success Screen */
.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    background-color: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.results-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.results-sub {
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto;
}

.results-sub strong {
    color: var(--ink);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.result-card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--brand);
}

.result-badge {
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
    display: inline-block;
}

.result-info {
    flex-grow: 1;
}

.result-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.result-card .btn-primary {
    white-space: nowrap;
    padding: 12px 24px;
}

.results-actions {
    display: flex;
    justify-content: center;
    border-top: 1px dashed var(--line);
    padding-top: 24px;
}

/* Footer styling */
.site-footer {
    background-color: #0c1a1a;
    color: #94a3b8;
    font-size: 13px;
    padding: 64px 0;
    margin-top: 48px;
}

.footer-brand {
    color: var(--surface);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-disclosure {
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: justify;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--surface);
    text-decoration: underline;
}

.footer-copy {
    color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 840px) {
    .header-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-section {
        padding: 48px 0 32px;
    }
    
    .wizard-container {
        padding: 24px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-row .submit-btn {
        width: 100%;
    }
    
    .result-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .result-card .btn-primary {
        text-align: center;
        width: 100%;
    }
}
