/* ========================================
   Naturalis Landing - Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header
   ======================================== */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    transition: padding 0.5s ease;
}

.header.header-compact {
    padding: 1rem;
}

.logo {
    object-fit: contain;
    height: 3rem;
    transition: all 0.5s ease;
}

.logo.logo-small {
    height: 1.25rem;
    opacity: 0.6;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex-grow: 1;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ========================================
   Steps - Common
   ======================================== */
.step {
    width: 100%;
    animation: fadeIn 0.25s ease-out;
}

.step-hidden {
    display: none !important;
}

.step-active {
    display: flex;
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Step 0: Welcome
   ======================================== */
.step-welcome {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    flex-grow: 1;
    padding-bottom: 2.5rem;
    margin-top: 0.625rem;
}

.welcome-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
    color: #000;
}

.text-bold {
    font-weight: 800;
}

.welcome-info {
    margin-bottom: 60px;
}

.info-line {
    color: #1f2937;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.icon-check-small {
    width: 1rem;
    height: 1rem;
}

.info-sub {
    color: #1f2937;
    font-size: 0.875rem;
}

.welcome-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary {
    width: 100%;
    max-width: 400px;
    background-color: #1a44c2;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.speed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.speed-badge-green {
    display: inline-flex;
    background-color: #f0fdf4;
    color: #15803d;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.icon-bolt {
    width: 0.875rem;
    height: 0.875rem;
}

/* ========================================
   Question Steps
   ======================================== */
.step-question {
    flex-direction: column;
    max-width: 36rem;
    margin: 0 auto;
    margin-top: 1.5rem;
    flex-grow: 1;
    animation: slideIn 0.25s ease-out;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #dbeafe;
    height: 0.375rem;
    margin-bottom: 2rem;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    background-color: #1a44c2;
    height: 100%;
    transition: width 0.5s ease-out;
}

/* Question Title */
.question-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    color: #000;
    line-height: 1.4;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
}

.options-long {
    padding-bottom: 2.5rem;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #1a44c2;
    border-radius: 0.5rem;
    padding: 0.875rem;
    transition: all 0.2s;
    text-align: left;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.option-btn:hover {
    background-color: rgba(219, 234, 254, 0.5);
}

.option-btn.selected {
    background-color: #eff6ff;
    border-color: #1a44c2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.option-letter {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a44c2;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a44c2;
}

.option-text {
    font-size: 1rem;
    font-weight: 500;
    color: #1a44c2;
}

/* ========================================
   Form Step
   ======================================== */
.step-form {
    flex-direction: column;
    max-width: 36rem;
    margin: 0 auto;
    margin-top: 0.5rem;
    flex-grow: 1;
    animation: slideIn 0.25s ease-out;
}

.form-wrapper {
    padding: 0 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    line-height: 1.4;
}

.form-subtitle {
    color: #374151;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.lead-form {
    max-width: 24rem;
    margin: 1.5rem auto 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000;
}

.required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #1a44c2;
}

/* Privacy disclaimer */
.privacy-disclaimer {
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.6;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.privacy-link {
    text-decoration: underline;
    color: inherit;
}

.btn-submit {
    width: 100%;
    background-color: #8ba4f9;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-top: 0.5rem;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: #1a44c2;
}

/* Form error */
.form-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   Success Step
   ======================================== */
.step-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 2.5rem;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-check-big {
    width: 2rem;
    height: 2rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.success-text {
    font-size: 1rem;
    color: #4b5563;
    max-width: 28rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    font-size: 0.625rem;
    color: #9ca3af;
}

.footer p {
    margin-bottom: 0.125rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.footer-link {
    color: #9ca3af;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #4b5563;
}

.footer-disclaimer {
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
    .header {
        padding: 3rem 1rem;
    }

    .header.header-compact {
        padding: 1.5rem 1rem;
    }

    .logo.logo-small {
        height: 1.75rem;
    }

    .welcome-title {
        font-size: 1.375rem;
        max-width: 480px;
    }

    .step-welcome {
        margin-top: 2rem;
    }

    .welcome-info {
        margin-bottom: 70px;
    }

    .question-title {
        font-size: 1.375rem;
    }

    .step-form {
        margin-top: 1.5rem;
    }

    .form-title {
        font-size: 1.375rem;
    }

    .footer {
        font-size: 0.6875rem;
    }
}
