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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
}

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-group { display: flex; gap: 10px; margin-top: 12px; }

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

/* Hero */
.hero { text-align: center; padding: 80px 0 40px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-light); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }
.hero-cards .card h2 { margin-bottom: 12px; color: var(--primary); }
.hero-cards .card ul { margin: 16px 0; padding-left: 20px; }
.hero-cards .card li { margin-bottom: 6px; color: var(--text-light); }
.hero-cards .card .btn { margin-top: 16px; }

/* How it works */
.how-it-works { padding: 60px 0; text-align: center; }
.how-it-works h2 { font-size: 2rem; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.step-card { text-align: center; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--text-light); max-width: 280px; margin: 0 auto; }

/* Features section */
.features-section { padding: 20px 0 60px; }
.feature-card h2 { margin-bottom: 16px; color: var(--primary); }
.feature-card ul { list-style: none; margin-bottom: 24px; }
.feature-card li { padding: 8px 0; color: var(--text-light); }
.feature-card li::before { content: "\2713  "; color: var(--success); font-weight: 700; }

/* Stats */
.stats-section { padding: 48px 0; background: var(--primary); border-radius: 16px; margin: 20px 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* CTA section */
.cta-section { text-align: center; padding: 60px 0 80px; }
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: var(--text-light); margin-bottom: 28px; font-size: 1.1rem; }

/* Auth */
.auth-container {
    max-width: 480px;
    margin: 40px auto;
}
.auth-container.wide { max-width: 640px; }
.auth-container h1 { margin-bottom: 24px; }
.auth-link { display: block; text-align: center; margin-top: 20px; color: var(--text-light); }
.auth-link a { color: var(--primary); }

/* Choice cards */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.choice-card {
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.choice-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.choice-card h2 { color: var(--primary); margin-bottom: 8px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group small { display: block; color: var(--text-light); margin-top: 4px; font-size: 0.8rem; }
.field-errors p { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }

/* Messages / Alerts */
.messages { margin: 20px 0; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 10px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Dashboard */
.dashboard { padding: 40px 0; }
.dashboard h1 { margin-bottom: 24px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dashboard-grid .card h2 { margin-bottom: 12px; color: var(--primary); font-size: 1.2rem; }
.dashboard-grid .card p { margin-bottom: 6px; }
.dashboard-grid .card .btn { margin-top: 12px; }

/* Resume detail */
.resume-detail { max-width: 700px; margin: 40px auto; }
.resume-header { text-align: center; margin-bottom: 32px; }
.resume-header h1 { font-size: 2rem; margin-bottom: 4px; }
.resume-header h2 { font-size: 1.2rem; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.contact-info { color: var(--text-light); }
.resume-section { margin-bottom: 24px; }
.resume-section h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.resume-actions { display: flex; gap: 12px; margin-top: 32px; justify-content: center; }

/* Search */
.search-page { padding: 40px 0; }
.search-page h1 { margin-bottom: 20px; }
.search-form { margin-bottom: 24px; }
.search-fields { display: flex; gap: 12px; }
.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}
.search-input:focus { outline: none; border-color: var(--primary); }
.results-count { margin-bottom: 16px; color: var(--text-light); }

/* Resume cards */
.resume-list { display: flex; flex-direction: column; gap: 16px; }
.resume-card-header { margin-bottom: 8px; }
.resume-card-header h2 { font-size: 1.2rem; margin-bottom: 2px; }
.resume-title { color: var(--primary); font-weight: 500; }
.resume-location { color: var(--text-light); font-size: 0.9rem; margin-bottom: 6px; }
.resume-excerpt { margin-bottom: 6px; }
.resume-skills { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; }
.resume-card-actions { display: flex; gap: 10px; }

/* Job cards */
.job-card-header { margin-bottom: 8px; }
.job-card-header h2 { font-size: 1.2rem; margin-bottom: 2px; }
.job-company { color: var(--primary); font-weight: 500; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.job-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}
.job-excerpt { margin-bottom: 8px; color: var(--text-light); }

.empty-state { text-align: center; padding: 40px; color: var(--text-light); }

/* Pagination */
.pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}
.page-info { color: var(--text-light); font-size: 0.9rem; }

/* Plans */
.plans-page { text-align: center; padding: 40px 0; }
.plans-page h1 { margin-bottom: 12px; }
.plans-subtitle { color: var(--text-light); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 32px;
}
.plan-card { position: relative; }
.plan-card .plan-header { margin-bottom: 20px; }
.plan-card .plan-header h2 { margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.price-currency { font-size: 1.2rem; font-weight: 600; }
.price-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.price-period { font-size: 1rem; color: var(--text-light); }
.price-monthly { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.price-original { margin-bottom: 4px; }
.price-original span {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
}
.plan-description { text-align: left; margin-bottom: 16px; color: var(--text-light); font-size: 0.9rem; }
.plan-features { list-style: none; text-align: left; margin-bottom: 24px; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-features li::before { content: "\2713  "; color: var(--success); font-weight: 700; }
.plan-status { margin-top: 16px; }
.plan-promo { border-color: var(--warning); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.promo-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--warning);
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.promo-expires { font-size: 0.8rem; color: var(--warning); margin-bottom: 12px; }
.text-muted { color: var(--text-light); }

/* Legal pages */
.legal-page { max-width: 700px; margin: 40px auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin-top: 28px; margin-bottom: 12px; font-size: 1.3rem; }
.legal-page p { margin-bottom: 12px; color: var(--text-light); }

/* Gerador de Currículos */
.gerador-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.gerador-steps .step {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}
.gerador-steps .step.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.gerador-steps .step.done {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.gerador-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: #92400e;
}
.gerador-notice ul { margin-top: 8px; }
.gerador-notice li { margin-bottom: 4px; }
.preview-section { margin-bottom: 20px; }
.preview-section h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.preview-section p { color: var(--text-light); line-height: 1.6; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.before-box, .after-box {
    border-radius: var(--radius);
    padding: 12px;
    font-size: 0.9rem;
}
.before-box { background: #fef2f2; border: 1px solid #fecaca; }
.after-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ba-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--danger);
    margin-bottom: 6px;
}
.ba-label-good { color: var(--success); }
.locked-section h3 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.locked-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: none;
}
@media (max-width: 640px) {
    .before-after { grid-template-columns: 1fr; }
}

/* Consent box (antes do pagamento) */
.consent-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.consent-box ul { margin: 10px 0 14px; padding-left: 20px; }
.consent-box li { margin-bottom: 8px; line-height: 1.5; }
.consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
}
.consent-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
}
.consent-check a { color: var(--primary); }

/* PIX payment */
.pix-card { text-align: center; margin: 24px 0; padding: 32px 24px; }
.pix-title { font-size: 1.5rem; margin-bottom: 8px; }
.pix-subtitle { color: var(--text-light); margin-bottom: 24px; }
.pix-qr { margin-bottom: 8px; }
.pix-qr img { max-width: 240px; width: 100%; border-radius: var(--radius); }
.pix-copy-section { margin-top: 24px; }
.pix-copy-label { font-weight: 600; display: block; margin-bottom: 8px; }
.pix-code-row { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.pix-code-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: monospace;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}
.pix-code-input:focus { outline: none; border-color: var(--primary); }
.btn-copied { background: var(--success) !important; }
.pix-status { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.pix-waiting-text { font-weight: 600; margin-top: 12px; font-size: 1.05rem; }
.pix-waiting-hint { color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }
.pix-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: pix-spin 0.8s linear infinite;
}
@keyframes pix-spin { to { transform: rotate(360deg); } }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Footer */
.footer {
    margin-top: auto;
    padding: 32px 0 20px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.footer-brand strong { color: var(--text); font-size: 1.1rem; }
.footer-brand p { margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-light); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { text-align: center; padding-top: 16px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .nav-links.nav-open { display: flex; }
    .nav-links .btn { text-align: center; }

    .hero { padding: 48px 0 32px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 300px; }

    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .stats-section { padding: 32px 20px; }

    .choice-cards { grid-template-columns: 1fr; }
    .search-fields { flex-direction: column; }
    .dashboard-grid { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; gap: 16px; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
}
