:root { --navy: #0F2744; --navy-deep: #0A1628; --amber: #FBB040; --gold-warm: #F9ED32; --white: #fff; --gray: #FAFAFC; --mist: #DDE1EA; --text: #0A1628; --muted: #6D6D78; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--gray); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: linear-gradient(135deg, #060d1a 0%, var(--navy) 100%); color: var(--white); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; background: var(--amber); color: var(--navy); font-weight: 800; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-name { font-weight: 700; }
.brand-tag { color: var(--amber); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.progress { flex: 1; max-width: 320px; height: 12px; background: rgba(255,255,255,0.15); border-radius: 10px; position: relative; }
.progress .bar { height: 100%; background: var(--amber); border-radius: 10px; width: 0%; transition: width 0.3s ease; }
.progress span { position: absolute; top: -22px; right: 0; font-size: 12px; color: var(--amber); font-weight: 600; }
main { flex: 1; max-width: 760px; margin: 32px auto; padding: 0 16px; width: 100%; }
.tela { display: none; background: var(--white); border-radius: 16px; box-shadow: 0 8px 32px rgba(15,29,51,0.08); padding: 40px 32px; }
.tela.ativa { display: block; animation: in 0.25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
h1 { color: var(--navy); margin-bottom: 16px; font-weight: 700; }
h2 { color: var(--navy); margin-bottom: 24px; font-weight: 600; line-height: 1.4; }
.lead { color: var(--muted); margin-bottom: 24px; }
.lgpd-box { background: var(--gray); border-radius: 12px; padding: 20px; margin: 24px 0; max-height: 280px; overflow-y: auto; font-size: 14px; line-height: 1.6; }
.lgpd-box h3 { color: var(--navy); margin-bottom: 12px; font-size: 16px; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 500; cursor: pointer; }
.btn { padding: 14px 28px; border-radius: 10px; font-weight: 600; font-family: inherit; font-size: 15px; cursor: pointer; border: none; transition: all 0.2s; }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover:not(:disabled) { background: #0f1d33; }
.btn.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); }
.meta { display: flex; gap: 12px; margin-bottom: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.meta span { padding: 4px 10px; background: var(--gray); border-radius: 6px; color: var(--navy); font-weight: 700; }
.opcoes { display: grid; gap: 12px; margin-bottom: 24px; }
.opcao { background: var(--gray); border: 2px solid transparent; border-radius: 10px; padding: 14px 16px; min-height: 52px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: background 0.15s, border-color 0.15s; }
.opcao:hover { background: #e8edf3; }
.opcao.selected { background: rgba(251,176,64,0.15); border-color: var(--amber); }
.opcao input { accent-color: var(--amber); width: 20px; height: 20px; flex-shrink: 0; }
.opcao span { line-height: 1.35; }
.opcao:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
textarea { width: 100%; padding: 14px; border-radius: 10px; border: 2px solid #e1e6ed; font-family: inherit; font-size: 16px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--amber); }
.contador { font-size: 13px; color: var(--muted); margin: 8px 0 0; font-weight: 500; }
.contador.invalido { color: #C0392B; }
.contador.valido { color: #1E7E4F; }
.hidden { display: none !important; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.check input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lgpd-box { position: relative; }
.scroll-hint { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.loader { width: 40px; height: 40px; border: 4px solid var(--gray); border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#demo-form { display: grid; gap: 16px; margin-bottom: 24px; }
.demo-campo label { font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; font-size: 14px; }
.demo-campo select, .demo-campo input { width: 100%; padding: 12px; border-radius: 8px; border: 2px solid #e1e6ed; font-family: inherit; font-size: 16px; }
.demo-campo select:focus, .demo-campo input:focus { outline: none; border-color: var(--amber); }

/* Caixa de garantia de anonimato e tempo estimado (boas-vindas) */
.assurance { display: grid; gap: 12px; margin: 24px 0; }
.assurance-item { display: flex; gap: 10px; align-items: flex-start; background: rgba(251,176,64,0.10); border: 1px solid rgba(251,176,64,0.35); border-radius: 12px; padding: 14px 16px; }
.assurance-item strong { color: var(--navy); }
.assurance-item .ai-text { font-size: 14px; line-height: 1.5; color: var(--text); }
.assurance-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 7px; flex-shrink: 0; }

/* Aviso de rascunho salvo */
.retomar-box { background: rgba(251,176,64,0.12); border: 1px solid rgba(251,176,64,0.4); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.retomar-box p { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.retomar-acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.outline { background: transparent; border: 2px solid var(--mist); color: var(--navy); }

/* Mobile-first: telefones de 360px */
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .brand-tag { font-size: 10px; }
  .progress { max-width: none; }
  main { margin: 16px auto; padding: 0 12px; }
  .tela { padding: 24px 18px; border-radius: 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; margin-bottom: 20px; }
  .lead { font-size: 15px; }
  .meta { flex-wrap: wrap; gap: 8px; }
  .btn { width: 100%; padding: 15px 20px; }
  .btn.small { width: auto; }
  .nav { flex-direction: column-reverse; }
  .nav .btn { width: 100%; }
  .lgpd-box { max-height: 220px; }
  .opcao { padding: 14px; min-height: 56px; }
  .retomar-acoes .btn { width: auto; flex: 1; }
}
