/* =========================================================
   SUA FORMAÇÃO - LANDING PAGE PREMIUM
   Paleta: #FFFFFF / #F8FAFC / #0F172A / #0284C7 / #22C55E
   ========================================================= */

/* ---------- RESET GLOBAL ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ---------- VARIÁVEIS ---------- */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-soft: #F1F5F9;
    --ink: #0F172A;
    --ink-soft: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --cyan: #0284C7;
    --cyan-dark: #0369A1;
    --cyan-light: #E0F2FE;
    --sky: #0EA5E9;
    --wa: #22C55E;
    --wa-dark: #16A34A;
    --danger: #DC2626;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);
    --ff-serif: 'Playfair Display', Georgia, serif;
    --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1200px;
}

body {
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--cyan-light);
    border-radius: 999px;
}

h1, h2, h3 {
    font-family: var(--ff-serif);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--sky) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--ff-serif);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    color: var(--ink);
}

.brand-text strong { font-weight: 700; }

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--cyan); }

.header-cta {
    padding: 10px 18px;
    background: var(--ink);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.header-cta:hover {
    background: var(--cyan);
    transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
    padding: 80px 0 96px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(14, 165, 233, 0.08), transparent 60%),
        radial-gradient(900px 400px at -10% 100%, rgba(2, 132, 199, 0.06), transparent 60%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 20px; }

.hero-copy h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    margin-bottom: 28px;
    max-width: 560px;
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-weight: 500;
}

.hero-benefits .check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cyan-light);
    color: var(--cyan);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---------- QUIZ CARD ---------- */
.quiz-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.quiz-header {
    margin-bottom: 24px;
}

.quiz-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.quiz-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.progress-wrap {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--cyan), var(--sky));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quiz-body {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.35s ease;
}

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

.quiz-step-title {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s;
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--cyan);
    background: var(--cyan-light);
    transform: translateX(2px);
}

.quiz-option.selected {
    border-color: var(--cyan);
    background: var(--cyan-light);
    color: var(--cyan-dark);
    box-shadow: inset 3px 0 0 var(--cyan);
}

.quiz-option .opt-marker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.quiz-option.selected .opt-marker {
    background: var(--cyan);
    color: #fff;
}

.quiz-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.quiz-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ---------- RESULTADO QUIZ ---------- */
.quiz-result {
    text-align: center;
    padding: 8px 0;
}

.result-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wa), var(--wa-dark));
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 2rem;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
    animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.result-brand {
    font-family: var(--ff-serif);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.result-title {
    font-family: var(--ff-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

.result-summary {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 18px;
    text-align: left;
    margin-bottom: 18px;
}

.result-summary .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}

.result-summary .row:last-child { border-bottom: none; }

.result-summary .label {
    color: var(--muted);
    font-weight: 500;
}

.result-summary .value {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.35);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-cyan {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.btn-cyan:hover {
    background: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.38);
}

.btn-block {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.05rem;
}

.btn-whatsapp {
    background: var(--wa);
    color: #fff !important;
    padding: 18px 32px;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp:hover {
    background: var(--wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
    padding: 40px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-number {
    display: block;
    font-family: var(--ff-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- PROGRAMAS GRID ---------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--cyan-light);
    color: var(--cyan);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.program-card h3 {
    margin-bottom: 10px;
}

.program-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.program-link:hover {
    gap: 10px;
}

/* ---------- FORMULÁRIO ---------- */
.form-wrap {
    display: flex;
    justify-content: center;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    max-width: 620px;
    width: 100%;
}

.form-head {
    text-align: center;
    margin-bottom: 32px;
}

.form-head h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--ink-soft);
    font-size: 1rem;
}

.direct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.field input,
.field select {
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------- DEPOIMENTOS ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.4s ease;
}

.testimonials-grid.fading { opacity: 0; }

.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-stars {
    color: var(--cyan);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--sky));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-info .name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.author-info .role {
    font-size: 0.82rem;
    color: var(--muted);
}

.testimonials-actions {
    text-align: center;
    margin-top: 40px;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
    background: linear-gradient(135deg, var(--ink) 0%, #1E293B 100%);
    color: #fff;
    text-align: center;
}

.cta-inner {
    max-width: 720px;
}

.cta-final h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    margin-bottom: 32px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--bg-alt);
    padding: 56px 0 32px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.footer-brand .brand-text {
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-legal p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-legal strong { color: var(--ink-soft); }

.footer-copy {
    font-size: 0.82rem;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

/* ---------- FAB WHATSAPP ---------- */
.fab-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
    z-index: 90;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: pulse 2.5s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 34px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4), 0 0 0 12px rgba(34, 197, 94, 0.15); }
}

/* =========================================================
   RESPONSIVO - MOBILE FIRST
   ========================================================= */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .container { padding: 0 20px; }

    .section { padding: 64px 0; }

    .header-nav { display: none; }

    .header-cta {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .hero { padding: 48px 0 64px; }

    .hero-copy { text-align: center; }

    .hero-copy h1 { font-size: 2rem; }

    .hero-lead { margin-left: auto; margin-right: auto; }

    .hero-benefits {
        align-items: center;
    }

    .hero-benefits li {
        font-size: 0.92rem;
    }

    .section-head {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-lead { font-size: 0.98rem; }

    .quiz-card { padding: 24px 20px; }

    .quiz-header h2 { font-size: 1.3rem; text-align: center; }
    .quiz-subtitle { text-align: center; }
    .progress-text { text-align: center; }

    .quiz-step-title { text-align: center; font-size: 1.08rem; }

    .quiz-footer {
        flex-direction: column-reverse;
    }

    .quiz-footer .btn { width: 100%; }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-number { font-size: 1.6rem; }

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

    .program-card {
        text-align: center;
        align-items: center;
    }

    .program-card p { text-align: center; }

    .form-card {
        padding: 32px 20px;
    }

    .form-head h2 { font-size: 1.55rem; }

    .field input,
    .field select,
    .quiz-input {
        width: 100%;
        padding: 16px;
    }

    .testimonial-card {
        text-align: center;
        align-items: center;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .cta-final h2 { font-size: 1.7rem; }

    .fab-whatsapp {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .hero-copy h1 { font-size: 1.75rem; }
    .quiz-card { padding: 20px 16px; }
    .form-card { padding: 28px 16px; }
}