@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-latin-700-normal.woff2) format('woff2'); }

:root {
  --roxo: #470073;          /* extraído da logomarca original */
  --roxo-2: #5c0a8f;
  --roxo-claro: #f6effb;
  --roxo-borda: #e6d6f1;
  --texto: #1d1724;
  --texto-2: #514a5a;
  --borda: #cfc8d6;
  --erro: #c4162a;
  --ok: #19a84a;
  --ok-claro: #effaf2;
  --cinza: #f2f1f4;
  --raio: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #fff; color: var(--texto); }
body { font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.35;
  -webkit-text-size-adjust: 100%; }
@media (min-width: 560px) { body { background: #efe9f3; } }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #fff; position: relative; overflow-x: hidden; }
@media (min-width: 560px) { .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 22px; box-shadow: 0 10px 40px rgba(71,0,115,.18); overflow: hidden; } }
.screen[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cabeçalho roxo ---------- */
.topo { background: var(--roxo); color: #fff; position: relative; padding: 18px 16px 30px; border-radius: 0 0 50% 50% / 0 0 22px 22px; }
.topo .logo { display: block; height: 40px; width: auto; margin: 0 auto; }
.topo .voltar-topo { position: absolute; left: 8px; top: 50%; transform: translateY(-62%); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.topo .voltar-topo:focus-visible { outline: 2px solid #fff; }

/* ---------- tela inicial ---------- */
.hero { background: var(--roxo); color: #fff; padding: 22px 22px 46px; border-radius: 0 0 60% 40% / 0 0 46px 30px; }
.hero .logo { display: block; height: 54px; width: auto; margin: 6px auto 28px; }
.hero-titulo { display: flex; align-items: center; gap: 14px; margin: 0; }
.hero-titulo svg { flex: 0 0 auto; }
.hero h1 { font-size: 38px; line-height: 1.02; margin: 0; font-weight: 700; letter-spacing: -.3px; }
.hero p { font-size: 18px; margin: 18px 0 0; line-height: 1.35; opacity: .95; }
.beneficios { list-style: none; margin: 18px 22px 0; padding: 0; }
.beneficios li { display: flex; align-items: center; gap: 16px; padding: 12px 0; font-weight: 600; font-size: 18px; color: var(--texto); }
.beneficios li + li { border-top: 1px solid #ece6f0; }
.beneficios svg { flex: 0 0 auto; color: var(--roxo); }
.cta-wrap { padding: 16px 16px 0; position: relative; z-index: 2; }
.modelo { display: block; width: 100%; height: auto; margin-top: -10px; }
.rodape-inicial { text-align: center; font-size: 12px; color: var(--texto-2); padding: 8px 16px 18px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--raio);
  font: 600 20px/1 'Barlow', sans-serif; min-height: 54px; padding: 0 20px; cursor: pointer; width: 100%; text-decoration: none;
  transition: transform .06s ease, filter .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.985); }
.btn-roxo { background: linear-gradient(180deg, var(--roxo-2), var(--roxo)); color: #fff; box-shadow: 0 4px 12px rgba(71,0,115,.25); }
.btn-roxo:hover { filter: brightness(1.08); }
.btn-cinza { background: var(--cinza); color: var(--texto); border: 1px solid #e2e0e6; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible { outline: 3px solid #b48ad6; outline-offset: 2px; }
.acoes { display: flex; gap: 12px; padding: 18px 16px 22px; }
.acoes .btn-cinza { flex: 0 0 36%; }
.acoes.col { flex-direction: column; }
.acoes.col .btn-cinza { flex: auto; }

/* ---------- etapas ---------- */
.stepper { display: flex; justify-content: space-between; list-style: none; padding: 16px 18px 4px; margin: 0; position: relative; }
.stepper li { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--texto-2); }
.stepper li::before { content: ''; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: #d9d2df; }
.stepper li:first-child::before { display: none; }
.stepper li.feito::before, .stepper li.atual::before { background: var(--roxo); }
.stepper .bolha { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 4px; font-weight: 700;
  background: #ebe7ee; color: var(--texto); font-size: 15px; position: relative; z-index: 1; }
.stepper li.atual .bolha { background: var(--roxo); color: #fff; box-shadow: 0 0 0 4px #e9dcf2; }
.stepper li.feito .bolha { background: var(--roxo); color: #fff; }
.stepper li.atual { color: var(--roxo); font-weight: 700; }

.secao-titulo { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 4px; }
.secao-titulo svg { color: var(--roxo); flex: 0 0 auto; margin-top: 2px; }
.secao-titulo h2 { font-size: 25px; margin: 0; font-weight: 700; }
.secao-titulo p { margin: 2px 0 0; color: var(--texto-2); font-size: 15px; }

form.campos { padding: 4px 16px 0; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grade .wide { grid-column: span 1; }
.grade-cidade { display: grid; grid-template-columns: 1fr 104px; gap: 0 12px; }
.campo { margin-top: 12px; }
.campo label, .campo .rotulo { display: block; font-weight: 700; font-size: 15px; margin-bottom: 5px; color: var(--texto); }
.req { color: var(--erro); margin-left: 3px; }
.campo input[type=text], .campo input[type=tel], .campo input[type=email], .campo select {
  width: 100%; height: 46px; border: 1.5px solid var(--borda); border-radius: 8px; padding: 0 13px; background: #fff;
  font: 500 16px 'Barlow', sans-serif; color: var(--texto); -webkit-appearance: none; appearance: none; }
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1724' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.campo select:invalid, .campo select option[value=""] { color: #6b6473; }
.campo input::placeholder { color: #8a8392; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px #eadcf4; }
.campo.erro input, .campo.erro select { border-color: var(--erro); background: #fff8f8; }
.msg-erro { color: var(--erro); font-size: 13.5px; margin-top: 4px; min-height: 0; font-weight: 500; }
.dica { color: var(--texto-2); font-size: 13px; margin-top: 3px; }
.com-icone { position: relative; }
.com-icone input { padding-left: 42px !important; }
.com-icone .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.com-icone .ico-dir { left: auto; right: 12px; }
.linha-cep { display: flex; gap: 10px; }
.linha-cep input { flex: 1; }
.btn-lupa { width: 52px; flex: 0 0 52px; height: 46px; border-radius: 8px; border: 0; background: var(--roxo); color: #fff; cursor: pointer; display: grid; place-items: center; }
.btn-lupa[disabled] { opacity: .6; }
.cep-status { font-size: 13.5px; margin-top: 5px; color: var(--texto-2); }
.cep-status.falha { color: #9a5b00; }
.radios { display: flex; gap: 26px; height: 40px; align-items: center; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin: 0; cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: var(--roxo); margin: 0; }
.obrigatorios { color: var(--erro); font-size: 15px; font-weight: 600; padding: 16px 16px 0; margin: 0; }
.ref-box { background: var(--roxo-claro); border-radius: 12px; padding: 4px 12px 14px; margin-top: 18px; border: 1px solid var(--roxo-borda); }
.ref-box h3 { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--roxo); font-size: 21px; }

/* ---------- confirmação ---------- */
.resumo { padding: 6px 16px 0; }
.resumo details { border: 1px solid #e7e2ec; border-radius: 12px; margin-top: 10px; overflow: hidden; }
.resumo summary { list-style: none; cursor: pointer; padding: 13px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; background: #faf8fc; }
.resumo summary::-webkit-details-marker { display: none; }
.resumo dl { margin: 0; padding: 4px 14px 10px; display: grid; grid-template-columns: 44% 56%; gap: 6px 8px; font-size: 14.5px; }
.resumo dt { color: var(--texto-2); }
.resumo dd { margin: 0; font-weight: 600; word-break: break-word; }
.resumo .editar { font: 600 14px 'Barlow'; color: var(--roxo); background: none; border: 0; padding: 4px 0 8px 14px; cursor: pointer; text-decoration: underline; }
.autorizacao { margin: 16px 16px 0; background: var(--roxo-claro); border: 1px solid var(--roxo-borda); border-radius: 14px; padding: 14px; }
.autorizacao h3 { margin: 0 0 10px; text-align: center; font-size: 18px; }
.autorizacao label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.38; cursor: pointer; }
.autorizacao input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--roxo); margin: 2px 0 0; }
.link { color: var(--roxo); font-weight: 700; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.aviso-info { display: flex; gap: 12px; align-items: flex-start; margin: 12px 16px 0; padding: 12px; background: #fbfafc; border-radius: 12px; font-size: 14.5px; color: var(--texto-2); }
.alerta { margin: 14px 16px 0; padding: 12px 14px; border-radius: 10px; background: #fff1f2; border: 1px solid #f3c3c9; color: #8c1020; font-weight: 500; font-size: 15px; }
.sucesso { text-align: center; margin: 22px 16px 0; padding: 26px 18px; background: var(--ok-claro); border-radius: 16px; }
.sucesso .check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 6px 18px rgba(25,168,74,.35); }
.sucesso h2 { font-size: 30px; margin: 0; line-height: 1.1; }
.sucesso p { font-size: 17px; margin: 10px 0 0; }
.protocolo { display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 10px; background: #fff; border: 1px dashed #8bc9a0; font-weight: 700; letter-spacing: .6px; font-size: 18px; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- modal aviso ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 16px; width: min(560px, 94vw); max-height: 88vh; }
dialog.modal::backdrop { background: rgba(30, 0, 50, .55); }
.modal-cab { position: sticky; top: 0; background: var(--roxo); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.modal-cab h2 { margin: 0; font-size: 19px; }
.modal-cab button { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; width: 40px; height: 40px; }
.modal-corpo { padding: 6px 18px 20px; font-size: 15px; line-height: 1.5; }
.modal-corpo h3 { font-size: 16px; margin: 16px 0 4px; color: var(--roxo); }
.rascunho { background: #fff7e0; border: 1px solid #f0d58a; padding: 8px 10px; border-radius: 8px; font-size: 13px; margin-top: 12px; }

@media (max-width: 350px) {
  .hero h1 { font-size: 32px; }
  .btn { font-size: 18px; }
  .acoes .btn-cinza { flex-basis: 40%; }
  .stepper li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.ico-rs { font-weight: 700; font-size: 16px; color: var(--texto); }
.com-icone.sem-esq input { padding-left: 13px !important; padding-right: 42px; }

.faixa-homolog { background: #fff3c4; color: #5c4400; font-weight: 700; font-size: 13px; text-align: center; padding: 6px 10px; letter-spacing: .2px; }
