/* =====================================================================
   LEILÃO ONLINE — style.css
   ---------------------------------------------------------------------
   Organização:
   01. Variáveis (identidade visual — TROCAR CORES AQUI)
   02. Reset / base
   03. Utilitários e ícones
   04. Botões
   05. Header + menu mobile
   06. Hero + prova social + CTA
   07. Status do leilão
   08. Seções (como funciona, confiança, FAQ)
   09. Footer
   10. CTA fixo mobile
   11. Fluxo de credenciamento (topbar, progresso, cards, etapas)
   12. Credencial digital
   13. Modais e toast
   14. Animações
   15. Responsividade
   16. Acessibilidade / reduced motion
===================================================================== */

/* ============ 01. VARIÁVEIS ============ */
:root {
    /* Cores da marca — ajuste aqui para trocar a identidade visual */
    --navy: #0B1F3A;
    --navy-soft: #132C4F;
    --brand-primary: var(--navy);   /* azul institucional: header + rodapé (mesma cor) */
    --blue: #174A7E;
    --blue-hover: #103A64;
    --red-live: #E53935;
    --green: #178B55;
    --green-live: #16A34A;
    --green-soft: #E8F5EE;

    --background: #F6F8FB;
    --white: #FFFFFF;

    --text-primary: #17202A;
    --text-secondary: #667085;
    --text-on-dark: #E8EDF5;

    --border: #E2E6EA;
    --soft-background: #F9FAFB;

    --danger: #D92D20;
    --danger-soft: #FEF0EF;

    /* Tipografia */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Forma e sombra — padrão "painel": cantos discretos, borda > sombra */
    --radius: 8px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 1px 3px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 6px 18px rgba(11, 31, 58, 0.10);

    /* Movimento */
    --t-fast: 150ms ease;
    --t-med: 250ms ease;

    /* Layout */
    --container: 1120px;
    --gutter: 16px;
}

/* ============ 02. RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

/* Garantia global: o atributo hidden SEMPRE vence qualquer display
   definido por classe (causa do bug do overlay escuro na sala). */
[hidden] { display: none !important; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, dt, ul, ol, address {
    margin: 0;
    padding: 0;
}

ul, ol { list-style: none; }
address { font-style: normal; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

a { color: var(--blue); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container-narrow { max-width: 760px; }

/* ============ 03. UTILITÁRIOS / ÍCONES ============ */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 200;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 8px; }

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

/* Telas (landing x fluxo) */
.screen { display: none; }
.screen.is-active { display: block; animation: fadeIn 300ms ease; }

/* ============ 04. BOTÕES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), box-shadow var(--t-fast),
                transform var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
    background: var(--white);
    color: var(--blue);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--soft-background); border-color: var(--blue); }
.btn-ghost:active { transform: translateY(1px); }

.btn:disabled,
.btn.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-block { width: 100%; }

.btn-xl {
    min-height: 56px;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* Spinner interno do botão (estado loading) */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }

/* Links secundários */
.link-secondary {
    background: none;
    border: none;
    padding: 10px;
    min-height: 44px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color var(--t-fast);
}
.link-secondary:hover { color: var(--blue); }

.link-inline {
    background: none;
    border: none;
    padding: 0;
    color: var(--blue);
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-inline:hover { color: var(--blue-hover); }

/* ============ 05. HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

/* Logo oficial (assets/brand/lotiva-logo.webp — arquivo branco, 1600×309).
   Não recolorir nem filtrar; só dimensionar mantendo proporção. */
.brand-logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.brand-logo-sm { height: 28px; max-width: 150px; }
@media (min-width: 720px) { .brand-logo { height: 36px; max-width: 200px; } .brand-logo-sm { height: 30px; } }

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

.nav-link {
    color: rgba(232, 237, 245, 0.8);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 2px;
    transition: color var(--t-fast);
}
.nav-link:hover { color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    color: #fff;
    cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

.mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--brand-primary);
    padding: 8px var(--gutter) 12px;
}
.mobile-menu.is-open { display: flex; }

.mobile-menu-link {
    padding: 14px 4px;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Badge AO VIVO sobre header escuro */
.site-header .live-badge, .flow-topbar .live-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.mobile-menu-link:last-child { border-bottom: none; }

/* ============ 06. HERO ============ */
.hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(1200px 500px at 50% -220px, rgba(23, 74, 126, 0.08), transparent),
        var(--background);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Badge AO VIVO */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.live-badge-solid { background: var(--white); }

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-live);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero-title {
    margin-top: 24px;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.hero-subtitle {
    margin-top: 16px;
    max-width: 560px;
    font-size: clamp(15px, 2.4vw, 17px);
    color: var(--text-secondary);
}

/* Últimos arremates — carrossel com foto grande quadrada */
.winners {
    margin-top: 40px;
    width: 100%;
    max-width: 880px;
    text-align: left;
}
.winners-title {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.winners-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.winners-track::-webkit-scrollbar { display: none; }

.winner-card {
    flex: 0 0 86%;              /* 1 card inteiro + espiada do próximo */
    max-width: 340px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.winner-photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: var(--soft-background);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #B8C0CC;
}
.winner-photo img { width: 100%; height: 100%; object-fit: cover; }
.winner-photo svg { width: 56px; height: 56px; }
.winner-photo-note { font-size: 11.5px; color: var(--text-secondary); }
.winner-info { padding: 12px 14px 14px; }
.winner-name { font-size: 15px; font-weight: 700; }
.winner-city { font-size: 12.5px; color: var(--text-secondary); margin-top: 1px; }
.winner-product {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-soft);
    padding: 4px 10px;
    border-radius: 999px; /* pill só em badge */
}
@media (min-width: 860px) {
    .winner-card { flex: 0 0 300px; }
}

/* CTA principal */
.hero-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-cta-note {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-cta-secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}
.hero-cta-secure .icon { color: var(--green); }

/* ============ 07. STATUS DO LEILÃO ============ */
.section { padding: 56px 0; }

.section-status { padding-top: 8px; }

.status-card {
    background: var(--navy);
    color: var(--text-on-dark);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    box-shadow: var(--shadow-lg);
}

.status-card .live-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.status-text { font-size: 16px; color: var(--text-on-dark); }

.status-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Enquanto não há dados reais (valores "--"), a régua fica oculta.
   Remova a classe .is-empty via JS quando alimentar os valores. */
.status-stats.is-empty { display: none; }

.status-stat dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(232, 237, 245, 0.65);
}
.status-stat dd { font-size: 20px; font-weight: 700; margin-top: 4px; }

/* ============ 08. SEÇÕES ============ */
.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    text-align: center;
}

.section-subtitle {
    margin-top: 10px;
    text-align: center;
    color: var(--text-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--blue);
    background: rgba(23, 74, 126, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
}

.step-title { margin-top: 14px; font-size: 17px; font-weight: 700; }
.step-text { margin-top: 6px; font-size: 14.5px; color: var(--text-secondary); }

.pre-steps-final {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}
.pre-steps-final .icon { color: var(--green); }

/* Confiança */
.section-trust { padding-top: 0; }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trust-item {
    background: var(--soft-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
}
.trust-item .icon {
    width: 28px;
    height: 28px;
    color: var(--blue);
    margin: 0 auto 12px;
}
.trust-item h3 { font-size: 15.5px; font-weight: 700; }
.trust-item p { margin-top: 6px; font-size: 13.5px; color: var(--text-secondary); }

/* FAQ */
.faq-list {
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item + .faq-item { border-top: 1px solid var(--border); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--t-fast);
}
.faq-question:hover { background: var(--soft-background); }

.faq-chevron { color: var(--text-secondary); transition: transform var(--t-med); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med);
}
.faq-answer p {
    padding: 0 20px 18px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

/* ============ 09. FOOTER ============ */
.site-footer {
    background: var(--brand-primary);
    color: var(--text-on-dark);
    margin-top: 24px;
    padding-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: start;
}
.footer-brand .brand-logo { height: 34px; max-width: 200px; }

.footer-company p {
    font-size: 13.5px;
    color: rgba(232, 237, 245, 0.75);
    margin-bottom: 6px;
}
.footer-company a { color: var(--text-on-dark); }

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-link {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-on-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--t-fast);
    text-align: left;
}
.footer-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    padding-bottom: 22px;
}
.footer-bottom p { font-size: 12.5px; color: rgba(232, 237, 245, 0.55); }

/* ============ 10. CTA FIXO MOBILE ============ */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform var(--t-med);
}
.sticky-cta.is-visible { transform: translateY(0); }

.live-badge-compact { padding: 6px 10px; font-size: 11px; }

.btn-sticky {
    flex: 1;
    min-height: 46px;
    font-size: 14px;
}

/* ============ 11. FLUXO DE CREDENCIAMENTO ============ */
#screen-flow {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--background);
}

.flow-topbar {
    background: var(--brand-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    position: sticky;
    top: 0;
    z-index: 100;
}

.flow-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px 8px 10px 0;
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(232, 237, 245, 0.85);
    cursor: pointer;
    transition: color var(--t-fast);
}
.btn-back:hover { color: #fff; }

.brand-flow { pointer-events: none; }
.flow-topbar-spacer { width: 64px; }

.flow-body {
    max-width: 560px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.flow-heading { text-align: center; }

.flow-title {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.flow-subtitle {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

/* Progresso */
.progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 28px auto 28px;
    max-width: 380px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 72px;
}

.progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-med), border-color var(--t-med);
    position: relative;
}

.progress-step.is-active .progress-dot {
    border-color: var(--blue);
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 74, 126, 0.14);
}

.progress-step.is-done .progress-dot {
    border-color: var(--green);
    background: var(--green);
}
.progress-step.is-done .progress-dot::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2.2px solid #fff;
    border-bottom: 2.2px solid #fff;
    transform: rotate(-45deg) translate(0.5px, -1px);
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.progress-step.is-active .progress-label,
.progress-step.is-done .progress-label { color: var(--navy); }

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: 10px;
    border-radius: 2px;
    transition: background var(--t-med);
}
.progress-line.is-done { background: var(--green); }

/* Cards do fluxo */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
}

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

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(23, 74, 126, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.card-icon .icon { width: 26px; height: 26px; }

.card-icon-alert {
    background: var(--danger-soft);
    color: var(--danger);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

.card-text {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
    text-align: center;
}

/* Etapas (transição suave) */
.step { animation: stepIn 280ms ease; }

.step-heading { text-align: center; margin-bottom: 20px; }
.step-heading-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.step-heading-text { margin-top: 6px; font-size: 14.5px; color: var(--text-secondary); }

/* Formulário */
.field { margin-top: 22px; text-align: left; }

.field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.field-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 17px;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-input::placeholder { color: #A6AFBD; letter-spacing: 0.04em; }
.field-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 74, 126, 0.12);
}
.field-input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.10);
}

.field-error {
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--danger);
}

#form-cpf .btn { margin-top: 20px; }
.turnstile-box { margin-top: 16px; display: flex; justify-content: center; }

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-secondary);
}
.secure-note .icon { color: var(--green); }

.privacy-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--soft-background);
    font-size: 12.5px;
    color: var(--text-secondary);
    text-align: center;
}

/* Spinner grande */
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(23, 74, 126, 0.15);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
    margin: 0 auto;
}
.spinner-lg { width: 44px; height: 44px; border-width: 3.5px; margin-bottom: 20px; }

/* Pilhas de botões */
.btn-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}
.btn-stack .btn-block { width: 100%; }

/* Card de dados (confirmação / revisão) */
.data-card {
    text-align: center;
}

.data-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(23, 74, 126, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.data-avatar .icon { width: 30px; height: 30px; }

.data-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--navy);
}

.data-list { margin-top: 20px; }

.data-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px solid var(--soft-background);
}
.data-row dt {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.data-row dd {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Foto de perfil */
.photo-frame {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: var(--soft-background);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    overflow: hidden;
    transition: border-color var(--t-med);
}
.photo-frame.has-photo { border: 3px solid var(--blue); }

.photo-placeholder {
    width: 64px;
    height: 64px;
    color: #B8C0CC;
}

#photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#step-foto .field-error { text-align: center; }

/* Revisão */
.review-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--blue);
    background: var(--soft-background);
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; }

.checklist {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.checklist-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.checklist-item .icon { color: var(--border); transition: color var(--t-med); }
.checklist-item.is-done { color: var(--text-primary); }
.checklist-item.is-done .icon { color: var(--green); }

.checklist-animated { margin-top: 24px; }
.checklist-animated .checklist-item {
    opacity: 0.4;
    transition: opacity var(--t-med);
}
.checklist-animated .checklist-item.is-done { opacity: 1; }

/* ============ 12. CREDENCIAL DIGITAL ============ */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.success-badge .icon { color: var(--green); }

.credential {
    max-width: 360px;
    margin: 8px auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: stepIn 350ms ease;
}

.credential-band {
    background: linear-gradient(120deg, var(--navy), var(--blue));
    color: #fff;
    padding: 14px 20px 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.credential-band-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
}
.credential-band-sub {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.credential-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: -36px auto 0;
    border: 4px solid var(--white);
    background: var(--soft-background);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.credential-photo img { width: 100%; height: 100%; object-fit: cover; }
.credential-photo-fallback { width: 48px; height: 48px; color: #B8C0CC; }

.credential-role {
    margin-top: 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
}

.credential-name {
    margin-top: 4px;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--navy);
}

.credential-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 12.5px;
    font-weight: 600;
}

.credential-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 18px 20px 0;
    padding: 14px 0;
    border-top: 1px solid var(--soft-background);
}
.credential-meta-row dt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}
.credential-meta-row dd {
    margin-top: 2px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.credential-footer {
    margin-top: 4px;
    padding: 10px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.credential-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.credential-cta .btn-block { max-width: 360px; }

/* ============ 13. MODAIS E TOAST ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(11, 31, 58, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    animation: fadeIn 200ms ease;
}
.modal-overlay[hidden] { display: none; }

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 26px 28px;
    box-shadow: var(--shadow-lg);
    animation: stepIn 250ms ease;
}

.modal-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    padding-right: 32px;
}

.modal p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 12px; }

.modal-note {
    padding: 12px 14px;
    background: var(--soft-background);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px !important;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-background);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }

/* Bottom sheet "Antes de entrar" (fundo pouco escurecido) */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(11, 31, 58, 0.38);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 180ms ease;
}
.intro-sheet {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 10px 10px 0 0;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(11, 31, 58, 0.22);
    animation: sheetUp 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.intro-handle {
    display: block;
    width: 40px; height: 4px;
    margin: 4px auto 8px;
    border-radius: 999px;
    background: var(--border);
}
.intro-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.intro-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-secondary); text-transform: uppercase; }
.intro-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--soft-background);
    border: none; border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}
.intro-close:hover { background: var(--border); }
/* Estrutura simples: TÍTULO → IMAGEM (orientações) → BOTÃO. Sem card dentro de card. */
.intro-body { padding: 10px 0 12px; text-align: center; }
.intro-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62vh;          /* imagem protagonista; imagem + botão cabem em 390×844 / 430×932 */
    object-fit: contain;
    margin: 0 auto;
}
.intro-sheet { max-height: 96vh; overflow-y: auto; }
@media (min-width: 720px) {
    .intro-overlay { align-items: center; padding: 16px; }
    .intro-sheet { border-radius: var(--radius-lg); padding-bottom: 20px; max-height: 92vh; }
    .intro-handle { display: none; }
    .intro-image { max-height: 60vh; }
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 400;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: calc(100vw - 32px);
    text-align: center;
    animation: toastIn 250ms ease;
}

/* ============ 14. ANIMAÇÕES ============ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ 15. RESPONSIVIDADE ============ */
@media (max-width: 860px) {
    .steps-grid, .trust-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }

    .hero { padding: 40px 0 32px; }
    .section { padding: 44px 0; }

    /* CTA fixo apenas no mobile */
    .sticky-cta { display: flex; }

    .hero-cta .btn-xl { width: 100%; min-height: 54px; }

    .flow-body { padding-top: 24px; }
    .card { padding: 28px 18px; }
}

@media (max-width: 360px) {
    .credential-meta { gap: 24px; }
}

/* ============ 16. REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .live-dot { animation: none; }
    .spinner, .btn-spinner { animation-duration: 800ms !important; animation-iteration-count: infinite !important; }
}
