:root {
    --teal:        #0fb1a9;
    --teal-dark:   #0a9188;
    --teal-deeper: #077a74;
    --teal-glow:   rgba(15,177,169,0.22);
    --teal-soft:   rgba(15,177,169,0.09);
    --bg:          #eef2f5;
    --surface:     #ffffff;
    --surface2:    #f4f8f8;
    --text:        #111c2d;
    --text-mid:    #3d5166;
    --muted:       #7a90a8;
    --border:      rgba(15,177,169,0.15);
    --border-mild: rgba(0,0,0,0.08);
    --erro:        #e11d48;
    --radius:      24px;
    --radius-sm:   14px;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

h1, h2, h3, .btn, label, .passos { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; }

/* ─── HERO ─── */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #065b57 0%, var(--teal-dark) 40%, var(--teal) 70%, #17ebe1 100%);
    background-size: 200% 200%;
    animation: gradienteHero 10s ease infinite;
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 7.5rem;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(15,177,169,0.3) 0%, transparent 50%);
    filter: blur(30px);
    pointer-events: none;
}
@keyframes gradienteHero {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-conteudo { position: relative; z-index: 1; }
.hero-icone {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.hero-icone svg { width: 32px; height: 32px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.hero p { margin-top: .4rem; font-size: 1.02rem; opacity: .9; }
.hero-onda { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-onda svg { display: block; width: 100%; height: 40px; }

/* ─── CARTÃO ─── */
.cartao {
    position: relative;
    z-index: 2;
    width: calc(100% - 2rem);
    max-width: 460px;
    margin-top: -5.5rem;
    background: var(--surface);
    border: 1px solid var(--border-mild);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(17,28,45,0.10);
    padding: 2rem 1.8rem 1.8rem;
    animation: entrar .6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes entrar {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.logo { display: block; height: 42px; margin: 0 auto 1.6rem; }

/* ─── PASSOS ─── */
.passos {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    list-style: none;
    margin-bottom: 1.6rem;
    font-size: .8rem; font-weight: 700;
    color: var(--muted);
}
.passos li { display: flex; align-items: center; gap: .45rem; }
.passos li span {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1.5px solid var(--border-mild);
    font-size: .75rem;
}
.passos li.atual { color: var(--teal-dark); }
.passos li.atual span { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 12px var(--teal-glow); }
.passos li.feito { color: var(--teal-dark); }
.passos li.feito span { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.passos .divisor { width: 36px; height: 2px; background: var(--border-mild); border-radius: 99px; }

/* ─── TEXTOS ─── */
.titulo-etapa { font-size: 1.25rem; font-weight: 800; text-align: center; }
.subtitulo { text-align: center; color: var(--muted); font-size: .92rem; margin: .25rem 0 1.3rem; }

/* ─── CAMPOS ─── */
label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-mid); margin: 1rem 0 .4rem; }

.campo {
    width: 100%;
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface2);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo::placeholder { color: #a9b8c8; }
.campo:hover { border-color: var(--border); }
.campo:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.campo.invalido { border-color: var(--erro); background: #fff5f7; }

.campo-voucher {
    text-align: center;
    font-family: 'Plus Jakarta Sans', Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    padding: 1rem;
}

.erro { display: block; color: var(--erro); font-size: .8rem; margin-top: .4rem; }
.alerta { background: #fff1f3; color: var(--erro); border: 1px solid #fecdd6; padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1rem; }

/* ─── LGPD ─── */
.lgpd {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    line-height: 1.55;
    color: var(--text-mid);
}
.lgpd h3 { font-size: .85rem; font-weight: 700; color: var(--teal-deeper); margin-bottom: .35rem; }
.lgpd a { color: var(--teal-dark); font-weight: 600; }

.aceite {
    position: relative;
    display: flex; align-items: flex-start; gap: .65rem;
    margin: .9rem 0 0;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: .88rem; font-weight: 600; color: var(--text);
    cursor: pointer;
}
.aceite input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.caixa-check {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 7px;
    border: 2px solid #b9c7d6;
    background: #fff;
    transition: background .15s, border-color .15s;
    position: relative;
}
.aceite input:checked + .caixa-check { background: var(--teal); border-color: var(--teal); }
.aceite input:checked + .caixa-check::after {
    content: '';
    position: absolute; left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.aceite input:focus-visible + .caixa-check { box-shadow: 0 0 0 4px var(--teal-soft); }

/* ─── BOTÕES ─── */
.btn {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: .95rem 1.4rem;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(15,177,169,0.28);
    transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s;
}
.btn::after {
    content: '';
    position: absolute; top: 0; left: -150%;
    width: 120%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(15,177,169,0.4); }
.btn:hover::after { left: 150%; transition: left .6s ease; }
.btn:active { transform: translateY(0); }

.voltar { text-align: center; margin-top: .9rem; }
.link { background: none; border: 0; font-family: inherit; font-size: .88rem; color: var(--muted); cursor: pointer; }
.link:hover { color: var(--teal-dark); }

/* ─── ESTADOS (sucesso / aviso) ─── */
.estado { text-align: center; padding: .4rem 0 .6rem; }
.estado h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.estado p { color: var(--text-mid); line-height: 1.55; }
.estado-icone {
    width: 68px; height: 68px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.estado-icone svg { width: 34px; height: 34px; }
.estado-icone.ok { background: var(--teal-soft); color: var(--teal-dark); box-shadow: 0 0 0 8px rgba(15,177,169,0.05); }
.estado-icone.aviso { background: rgba(234,179,8,0.12); color: #a16207; }

.carregando { width: 160px; height: 4px; margin: 1.2rem auto 0; border-radius: 99px; background: var(--teal-soft); overflow: hidden; }
.carregando span { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), #0fd5cb); animation: carregar 1s ease-in-out infinite; }
@keyframes carregar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ─── RODAPÉ ─── */
.rodape { margin: 1.8rem 0 2rem; padding: 0 1rem; text-align: center; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.rodape strong { color: var(--teal); }
.rodape a { color: var(--muted); }
.rodape a:hover { color: var(--teal-dark); }

/* ─── POLÍTICA ─── */
.cartao.politica { max-width: 760px; line-height: 1.65; font-size: .95rem; color: var(--text-mid); }
.cartao.politica h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: .3rem; }
.cartao.politica h2 { font-size: 1rem; font-weight: 700; color: var(--teal-deeper); margin: 1.4rem 0 .4rem; }
.cartao.politica ul { padding-left: 1.2rem; }
.cartao.politica a { color: var(--teal-dark); }
.versao { text-align: center; color: var(--muted); font-size: .8rem; }

@media (max-width: 420px) {
    .cartao { padding: 1.6rem 1.2rem 1.4rem; }
    .campo-voucher { font-size: 1.35rem; letter-spacing: .18em; }
}
