/* ── Variáveis ─────────────────────────────────────────────────────────────── */
:root {
    --escuro: #0D1B2A;
    --azul:   #1E88E5;
    --verde:  #00B894;
    --fundo:  #F2F4F7;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--escuro);
    background: var(--fundo);
}

a { text-decoration: none; color: inherit; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2rem;
    background: rgba(13, 27, 42, .92);
    backdrop-filter: blur(8px);
}

.home-nav .nav-logo {
    height: 70px;
    width: auto;
}

.nav-entrar {
    padding: .5rem 1.25rem;
    background: var(--azul);
    color: #fff;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .2s;
}

.nav-entrar:hover { opacity: .85; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-inner { max-width: 700px; }

.hero-logo {
    height: 115px;
    width: auto;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: .85rem 2rem;
    background: var(--azul);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity .2s, transform .15s;
}

.btn-hero:hover { opacity: .88; transform: translateY(-1px); }

.btn-hero-outline {
    padding: .85rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .15s;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .07);
    transform: translateY(-1px);
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
    background: #fff;
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--escuro);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--fundo);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
    box-shadow: 0 8px 28px rgba(13, 27, 42, .1);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--escuro);
    margin-bottom: .6rem;
}

.feature-card p {
    font-size: .88rem;
    color: #5a6a7a;
    line-height: 1.6;
}

/* ── Como funciona ─────────────────────────────────────────────────────────── */
.como {
    background: var(--fundo);
    padding: 5rem 2rem;
}

.passos-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
}

.passo {
    flex: 1 1 180px;
    max-width: 220px;
    text-align: center;
}

.passo-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--azul);
    line-height: 1;
    margin-bottom: .75rem;
    opacity: .9;
}

.passo p {
    font-size: .9rem;
    color: #4a5a6a;
    line-height: 1.6;
}

/* ── CTA Final ─────────────────────────────────────────────────────────────── */
.cta-final {
    background: var(--escuro);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-final h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
}

.cta-final p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: .9rem 2.25rem;
    background: var(--verde);
    color: #fff;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: opacity .2s, transform .15s;
}

.btn-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── Calculadora ───────────────────────────────────────────────────────────── */
.calculadora-secao {
    padding: 5rem 2rem;
    background: #08111c;
    color: #fff;
    text-align: center;
}

.calculadora-secao .section-title { color: #fff; }

.section-sub {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    margin-top: .5rem;
    margin-bottom: 2.5rem;
}

.calc-slider-wrap {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.calc-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
}

.calc-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,.4);
}

.calc-slider-qtd {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.calc-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: rgba(255,255,255,.3);
    margin-top: .4rem;
}

/* Cards lado a lado */
.calc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.calc-card {
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.calc-card-credito {
    background: rgba(30,136,229,.12);
    border: 1px solid rgba(30,136,229,.35);
}

.calc-card-assinatura {
    background: rgba(0,184,148,.12);
    border: 1px solid rgba(0,184,148,.35);
}

.calc-card-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
    display: inline-block;
    width: fit-content;
}

.calc-card-credito   .calc-card-badge { background: rgba(30,136,229,.25); color: #60b4ff; }
.calc-card-assinatura .calc-card-badge { background: rgba(0,184,148,.25);  color: #2ee8c0; }

.calc-card-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: .25rem 0 0;
}

.calc-card-preco {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin: .25rem 0 0;
}

.calc-card-credito   .calc-card-preco { color: #1E88E5; }
.calc-card-assinatura .calc-card-preco { color: #00B894; }

.calc-card-unit {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    min-height: 1.2em;
}

.calc-card-lista {
    list-style: none;
    margin: .75rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.calc-card-lista li {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    padding-left: 1.1rem;
    position: relative;
}

.calc-card-lista li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: .75rem;
}

.calc-card-credito   .calc-card-lista li::before { color: #1E88E5; }
.calc-card-assinatura .calc-card-lista li::before { color: #00B894; }

.btn-calc {
    display: block;
    text-align: center;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    margin-top: .5rem;
    transition: opacity .2s;
}

.btn-calc:hover { opacity: .85; }

.calc-btn-credito   { background: #1E88E5; color: #fff; }
.calc-btn-assinatura { background: #00B894; color: #fff; }

@media (max-width: 600px) {
    .calc-cards { grid-template-columns: 1fr; }
    .calc-slider-wrap { text-align: center; }
    .calc-slider-label { flex-direction: column; gap: .25rem; align-items: center; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.home-footer {
    background: #08111c;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .home-nav { padding: .75rem 1rem; }

    .hero { padding: 5rem 1rem 3rem; }

    .hero h1 { font-size: 1.85rem; }

    .btn-hero,
    .btn-hero-outline { width: 100%; text-align: center; }

    .features { padding: 3.5rem 1rem; }

    .como { padding: 3.5rem 1rem; }

    .passos-grid { flex-direction: column; align-items: center; }

    .passo { max-width: 100%; }

    .cta-final { padding: 3.5rem 1rem; }
}
