/* ============================================================
   DefesaTOP Multas — app.css
   Identidade herdada do DefesaTOP (navy / hi-vis / paper, Inter 900,
   bordas 2px sem raio, sombra dura). Mobile-first (375px), coluna
   centralizada de 560px no desktop.
   ============================================================ */

:root {
  --ink: #0A1628;
  --ink-soft: #2A3A52;
  --paper: #F4F2ED;
  --paper-warm: #EDEAE1;
  --hi-vis: #FFD400;
  --alert: #D63A1F;
  --alert-text: #B8301A;
  --warning: #9A5E0A;
  --success: #0F7A4A;
  --mute: #586476;
  --mute-soft: #9BA7B8;
  --shadow-hard: 4px 4px 0 var(--ink);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(10,22,40,0.04) 39px, rgba(10,22,40,0.04) 40px);
}
body:not(.cookies-accepted) { padding-bottom: 100px; }
@media (max-width: 560px) {
  body:not(.cookies-accepted) { padding-bottom: 120px; }
}

a { color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ COOKIE BAR ============ */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: var(--paper);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  z-index: 90;
  border-top: 2px solid var(--hi-vis);
  box-shadow: 0 -4px 20px rgba(10,22,40,0.15);
  animation: cookieSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes cookieSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-bar.hidden { display: none; }
.cookie-text { flex: 1; min-width: 240px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.cookie-text a { color: var(--hi-vis); text-decoration: underline; font-weight: 600; }
.cookie-btn {
  padding: 12px 22px; min-height: 44px;
  background: var(--hi-vis); color: var(--ink);
  border: 2px solid var(--hi-vis);
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.cookie-btn:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 560px) {
  .cookie-bar { padding: 14px 16px; gap: 12px; }
  .cookie-text { font-size: 12px; }
  .cookie-btn { padding: 10px 18px; font-size: 12px; }
}

/* ============ BARRA DE IDENTIDADE (topo) ============ */
.identity-bar {
  background: var(--ink); color: var(--paper);
  padding: 10px 20px; text-align: center;
  font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.2px;
  border-bottom: 1.5px solid var(--ink);
}
.identity-bar strong { color: var(--hi-vis); font-weight: 700; }
@media (max-width: 560px) { .identity-bar { font-size: 12px; padding: 10px 16px; } }

/* ============ BARRA DE RODAPÉ ============ */
.footer-bar {
  background: var(--ink); color: var(--paper);
  padding: 18px 20px; text-align: center;
  font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.3px;
  border-top: 1.5px solid var(--ink);
  margin-top: auto;
}
.footer-bar strong { color: var(--paper); font-weight: 700; letter-spacing: 0.4px; }
.footer-bar .divider { display: block; width: 40px; height: 1.5px; background: var(--hi-vis); margin: 8px auto; }
.footer-bar .footer-sub { color: var(--mute-soft); font-size: 11px; font-weight: 400; }
.footer-bar .footer-sub a { color: var(--mute-soft); }
@media (max-width: 560px) { .footer-bar { font-size: 11px; padding: 16px; } }

/* ============ COLUNA DO APP ============ */
.app {
  max-width: 560px; margin: 0 auto; min-height: 100vh;
  background: var(--paper); position: relative;
  display: flex; flex-direction: column;
}
@media (min-width: 561px) {
  .app {
    margin-top: 24px; margin-bottom: 24px;
    min-height: calc(100vh - 48px);
    border-left: 1px solid rgba(10,22,40,0.1);
    border-right: 1px solid rgba(10,22,40,0.1);
    box-shadow: 0 0 0 1px rgba(10,22,40,0.04);
  }
}

/* ============ HEADER ============ */
.header {
  padding: 20px; border-bottom: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); position: sticky; top: 0; z-index: 10;
}
.logo {
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px; line-height: 1;
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
}
.logo-mark {
  display: inline-block; background: var(--hi-vis); color: var(--ink);
  padding: 6px 9px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  border: 1.5px solid var(--ink);
}
.header-meta {
  font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px;
  text-transform: uppercase; background: var(--paper-warm);
  padding: 6px 10px; border: 1.5px solid var(--ink);
}
.header-meta.is-paid { background: var(--success); color: var(--paper); }

/* ============ PROGRESSO ============ */
.progress {
  padding: 16px 20px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(10,22,40,0.1); background: var(--paper);
}
.progress-step { flex: 1; height: 4px; background: rgba(10,22,40,0.12); position: relative; }
.progress-step.done { background: var(--ink); }
.progress-step.active { background: var(--hi-vis); }
.progress-step.active::after {
  content: ''; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px;
  background: var(--hi-vis); border: 1.5px solid var(--ink);
}
.progress-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink); margin-left: 12px; white-space: nowrap;
}

/* ============ TELAS ============ */
main { flex: 1; position: relative; }
.screen { display: none; padding: 28px 20px 32px; animation: fadeIn 0.4s ease-out; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.5s ease-out backwards; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2.5px; background: var(--ink); }
.eyebrow.is-success { color: var(--success); }
.eyebrow.is-success::before { background: var(--success); }

.hero-headline {
  font-weight: 900; font-size: clamp(54px, 14vw, 72px); line-height: 0.9; letter-spacing: -2px;
  color: var(--ink); margin-bottom: 24px; text-transform: uppercase;
}
.accent {
  display: inline-block; background: var(--hi-vis); padding: 0 10px; margin-left: -4px;
  transform: rotate(-1deg);
}
.hero-sub { font-size: 24px; line-height: 1.3; color: var(--ink); margin-bottom: 10px; font-style: italic; max-width: 460px; }
.hero-note { font-size: 16px; color: var(--mute); margin-bottom: 36px; font-weight: 500; }

.screen-title {
  font-weight: 900; font-size: clamp(34px, 9vw, 42px); line-height: 0.95; letter-spacing: -1px;
  margin-bottom: 14px; text-transform: uppercase;
}
.screen-title .accent { padding: 0 8px; margin-left: 0; }
.screen-sub { font-size: 17px; color: var(--mute); margin-bottom: 32px; line-height: 1.5; font-weight: 500; }

/* ============ UPLOAD ============ */
.upload {
  display: block; width: 100%;
  border: 2.5px dashed var(--ink); background: var(--paper-warm);
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: var(--transition); margin-bottom: 24px; position: relative;
  font-family: inherit; color: var(--ink);
}
.upload:hover, .upload:active, .upload:focus-visible {
  background: var(--paper); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); outline: none;
}
.upload.is-dragover { background: var(--hi-vis); }
.upload-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; background: var(--hi-vis);
  border: 1.5px solid var(--ink); display: grid; place-items: center;
}
.upload-icon svg { width: 28px; height: 28px; }
.upload-icon.is-small { width: 48px; height: 48px; margin-bottom: 12px; }
.upload-icon.is-small svg { width: 24px; height: 24px; }
.upload-title { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.upload-hint { font-size: 14px; color: var(--mute); font-weight: 500; line-height: 1.45; }
.upload-cta {
  display: inline-flex; margin-top: 14px; padding: 10px 16px; min-height: 44px; align-items: center;
  border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; background: var(--paper);
}
.upload.is-compact { padding: 24px 20px; margin-bottom: 0; }
.upload.is-compact .upload-title { font-size: 18px; }

.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 20px;
  color: var(--mute); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(10,22,40,0.2); }

.camera-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 22px; min-height: 44px;
  background: var(--paper); border: 2px solid var(--ink);
  font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.3px;
  cursor: pointer; text-transform: uppercase; transition: var(--transition);
}
.camera-btn:hover, .camera-btn:active { background: var(--ink); color: var(--paper); }
.camera-btn svg { width: 22px; height: 22px; }

/* ============ ARQUIVOS EM ESPERA ============ */
.files-staged {
  margin-top: 20px; border: 2px solid var(--ink); background: var(--paper);
  padding: 14px; animation: slideUp 0.3s ease-out;
}
.files-staged-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink); margin-bottom: 12px;
}
.files-staged-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink);
}
.files-staged-count {
  display: inline-block; background: var(--hi-vis); color: var(--ink);
  padding: 3px 10px; border: 1.5px solid var(--ink); font-weight: 900;
  font-variant-numeric: tabular-nums; min-width: 26px; text-align: center;
}
.files-staged-clear {
  margin-left: auto; background: none; border: none; min-height: 44px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--mute); cursor: pointer; padding: 4px 0;
}
.files-staged-clear:hover { color: var(--alert-text); }
.files-staged-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.files-staged-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--paper-warm); border: 1.5px solid var(--ink); animation: slideUp 0.25s ease-out;
}
.files-staged-item.is-error { background: #FFF4F2; border-color: var(--alert); }
.files-staged-thumb {
  width: 36px; height: 36px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.files-staged-thumb img { width: 100%; height: 100%; object-fit: cover; }
.files-staged-thumb svg { width: 16px; height: 16px; }
.files-staged-meta { flex: 1; min-width: 0; line-height: 1.25; }
.files-staged-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files-staged-sub { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; margin-top: 2px; }
.files-staged-sub.is-error-text { color: var(--alert-text); font-weight: 600; }
.files-staged-remove {
  background: none; border: none; font-size: 22px; line-height: 1; color: var(--mute);
  cursor: pointer; padding: 0 6px; flex-shrink: 0; font-weight: 700; min-width: 44px; min-height: 44px;
}
.files-staged-remove:hover { color: var(--alert-text); }
.files-staged-add {
  width: 100%; padding: 12px; min-height: 44px; background: transparent;
  border: 1.5px dashed var(--ink); font-size: 13px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink); cursor: pointer;
  margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.files-staged-add:hover { background: var(--hi-vis); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.files-staged-submit {
  width: 100%; padding: 18px; min-height: 44px; background: var(--hi-vis);
  border: 2px solid var(--ink); font-size: 16px; font-weight: 900;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition);
}
.files-staged-submit:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.files-staged-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ COMO FUNCIONA ============ */
.steps { margin-top: 48px; padding-top: 32px; border-top: 1.5px solid var(--ink); }
.steps-title { font-weight: 900; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.step { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(10,22,40,0.1); }
.step:last-child { border-bottom: none; }
.step-num { font-weight: 900; font-size: 30px; line-height: 1; color: var(--ink); min-width: 42px; position: relative; }
.step-num::after { content: ''; display: block; width: 22px; height: 3px; background: var(--hi-vis); margin-top: 6px; }
.step-text { flex: 1; }
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.step-desc { font-size: 15px; color: var(--mute); line-height: 1.5; }

/* ============ BLOCOS ESCUROS (promessa / honestidade / LGPD) ============ */
.dark-block {
  background: var(--ink); color: var(--paper); padding: 24px 20px; position: relative; margin-top: 36px;
}
.dark-block.is-tight { padding: 20px; margin-top: 28px; }
.dark-block-flag {
  position: absolute; top: -7px; left: 18px; background: var(--hi-vis); color: var(--ink);
  padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.dark-block h2, .dark-block .dark-title {
  font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hi-vis); margin: 10px 0 14px;
}
.dark-block.is-tight .dark-title { margin: 0 0 8px; font-size: 13px; }
.dark-block p { font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.dark-block p:last-child { margin-bottom: 0; }
.dark-block .dark-small { font-size: 13px; color: var(--mute-soft); }
.dark-block.is-tight p { font-size: 14px; line-height: 1.55; }
.dark-row { display: flex; gap: 14px; align-items: flex-start; }
.dark-row svg { flex-shrink: 0; margin-top: 2px; color: var(--hi-vis); }
.dark-block strong { color: var(--hi-vis); }

/* ============ PREÇO ============ */
.price-block {
  margin-top: 36px; border: 2px solid var(--ink); padding: 24px 20px;
  display: flex; align-items: center; gap: 20px; background: var(--paper);
}
.price-block.is-warm { background: var(--paper-warm); padding: 20px; gap: 18px; margin-top: 28px; }
.price-big { font-weight: 900; font-size: 44px; line-height: 0.9; letter-spacing: -2px; }
.price-big.is-inline { font-size: 40px; }
.price-big small { font-size: 20px; letter-spacing: 0; font-weight: 900; }
.price-text { flex: 1; min-width: 0; }
.price-label { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.price-desc { font-size: 14px; color: var(--mute); line-height: 1.45; }

/* ============ SERVE PARA ============ */
.serve-list { display: flex; flex-direction: column; gap: 10px; }
.serve-item {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--ink);
  padding: 14px 16px; background: var(--paper);
}
.serve-item svg { flex-shrink: 0; color: var(--success); }
.serve-title { font-weight: 700; font-size: 16px; }
.serve-desc { font-size: 14px; color: var(--mute); line-height: 1.45; }
.section-title { font-weight: 900; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin: 36px 0 16px; }
.section-title.is-first { margin-top: 28px; }

/* ============ CARD "LIDO PELA IA" ============ */
.extracted {
  background: var(--ink); color: var(--paper); padding: 22px 20px 24px;
  margin-bottom: 24px; position: relative; animation: slideUp 0.5s ease-out;
}
.extracted-flag {
  position: absolute; top: -7px; left: 18px; background: var(--hi-vis); color: var(--ink);
  padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.extracted-header {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(244,242,237,0.2);
}
.extracted-header svg { width: 22px; height: 22px; color: var(--hi-vis); flex-shrink: 0; }
.extracted-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hi-vis); }
.extracted-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.extracted-item.is-wide { grid-column: span 2; }
.extracted-label { font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--mute-soft); margin-bottom: 4px; font-weight: 600; }
.extracted-value { font-size: 17px; color: var(--paper); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.extracted-value.is-muted { color: var(--mute-soft); font-weight: 500; }
.extracted-note { font-size: 14px; color: var(--paper); opacity: 0.85; line-height: 1.4; margin-top: 4px; }
.extracted-input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--hi-vis); background: var(--ink-soft);
  color: var(--paper); font-size: 16px; font-weight: 600; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.extracted-input:focus { outline: none; background: var(--paper); color: var(--ink); }
.extracted-edit {
  margin-top: 20px; width: 100%; padding: 14px; min-height: 44px; background: transparent;
  border: 1.5px solid var(--paper); color: var(--paper); font-size: 13px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.extracted-edit:hover { background: var(--paper); color: var(--ink); }

/* ============ CARD DE PRAZO ============ */
.deadline-card { margin: 0 0 24px; background: var(--paper); border: 2.5px solid var(--ink); position: relative; overflow: hidden; }
.deadline-card[data-urgency="normal"] { border-color: var(--ink); }
.deadline-card[data-urgency="warning"] { border-color: var(--warning); }
.deadline-card[data-urgency="critical"] { border-color: var(--alert); }
.deadline-card[data-urgency="expired"] { border-color: #6B6B6B; }
.deadline-card[data-urgency="desconhecido"] { border-color: var(--mute); }
.deadline-card-flag {
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.deadline-card[data-urgency="warning"] .deadline-card-flag { background: var(--warning); }
.deadline-card[data-urgency="critical"] .deadline-card-flag { background: var(--alert); animation: pulseFlag 1.4s ease-in-out infinite; }
.deadline-card[data-urgency="expired"] .deadline-card-flag { background: #6B6B6B; }
.deadline-card[data-urgency="desconhecido"] .deadline-card-flag { background: var(--mute); }
@keyframes pulseFlag { 0%, 100% { background: var(--alert); } 50% { background: #A82813; } }
.deadline-card-body { padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.deadline-number { font-weight: 900; font-size: 72px; line-height: 0.85; letter-spacing: -3px; color: var(--ink); }
.deadline-card[data-urgency="warning"] .deadline-number { color: var(--warning); }
.deadline-card[data-urgency="critical"] .deadline-number { color: var(--alert-text); }
.deadline-card[data-urgency="expired"] .deadline-number { color: #6B6B6B; font-size: 44px; letter-spacing: -1.5px; }
.deadline-card[data-urgency="desconhecido"] .deadline-number { color: var(--mute); font-size: 44px; letter-spacing: -1.5px; }
.deadline-info { min-width: 0; }
.deadline-label { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink); line-height: 1.25; margin-bottom: 6px; }
.deadline-dateline { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.4; }
.deadline-warning {
  padding: 12px 16px; background: var(--paper-warm); border-top: 1px solid rgba(10,22,40,0.15);
  font-size: 14px; line-height: 1.5; font-weight: 500;
}

/* ============ SINAIS / CARDS DE AVISO ============ */
.sinal-card {
  border: 2px solid var(--ink); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); margin-bottom: 12px;
}
.sinal-card svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.sinal-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.sinal-desc { font-size: 14px; color: var(--mute); line-height: 1.5; }

/* ============ FORMULÁRIO ============ */
.form-section-title {
  font-weight: 900; font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase;
  margin: 8px 0 20px; display: flex; align-items: center; gap: 10px;
}
.form-section-title::after { content: ''; flex: 1; height: 2px; background: var(--ink); }
.field { margin-bottom: 20px; }
.field label, .field legend {
  display: block; font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 8px; color: var(--ink); padding: 0;
}
.field label .optional { color: var(--mute); font-weight: 600; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 18px 16px; border: 2px solid var(--ink); background: var(--paper);
  font-size: 18px; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none;
  font-weight: 600; transition: var(--transition);
}
.field input::placeholder { color: rgba(10,22,40,0.35); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--hi-vis); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard);
}
.field input.is-invalid { border-color: var(--alert); }
.field-help { font-size: 13px; color: var(--mute); font-weight: 500; margin-top: 6px; line-height: 1.4; }
.field-help.is-ok { color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field-help.is-bad { color: var(--alert-text); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
.toggle { display: flex; border: 2px solid var(--ink); }
.toggle-btn {
  flex: 1; padding: 18px 10px; min-height: 44px; background: var(--paper); color: var(--ink); border: 0;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
  transition: var(--transition);
}
.toggle-btn:first-child { border-right: 2px solid var(--ink); }
.toggle-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle-btn:hover { background: var(--ink); color: var(--paper); }

.lgpd-box {
  margin-top: 28px; border: 1.5px solid var(--ink); padding: 14px 16px; display: flex; gap: 12px;
  align-items: flex-start; background: var(--paper-warm); font-size: 13px; line-height: 1.5; font-weight: 500;
}
.lgpd-box svg { flex-shrink: 0; margin-top: 2px; }

/* ============ DOCUMENTOS ============ */
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-slot { border: 2px solid var(--ink); background: var(--paper); }
.doc-slot.is-done { border-color: var(--success); }
.doc-slot.is-optional { border: 1.5px solid rgba(10,22,40,0.3); }
.doc-slot-head { display: flex; gap: 14px; align-items: center; padding: 16px; }
.doc-slot-icon {
  width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--hi-vis); border: 1.5px solid var(--ink);
}
.doc-slot.is-done .doc-slot-icon { background: var(--success); border-color: var(--success); color: var(--paper); }
.doc-slot.is-optional .doc-slot-icon { background: transparent; border: 1.5px dashed rgba(10,22,40,0.4); color: var(--mute); }
.doc-slot-text { flex: 1; min-width: 0; }
.doc-slot-title { font-weight: 700; font-size: 16px; }
.doc-slot-title .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--mute); margin-left: 4px; }
.doc-slot-desc { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.4; }
.doc-slot-files { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.doc-slot-actions { padding: 0 16px 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  width: 44px; height: 44px; border: 1.5px solid var(--ink); background: var(--paper); display: grid;
  place-items: center; cursor: pointer; flex-shrink: 0; color: var(--ink); transition: var(--transition);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; cursor: pointer;
  transition: var(--transition); flex: 1;
}
.mini-btn:hover { background: var(--ink); color: var(--paper); }
.mini-btn.is-yellow { background: var(--hi-vis); }

/* ============ PONTOS DE DEFESA (teses) ============ */
.pontos-list { display: flex; flex-direction: column; gap: 12px; }
.ponto-card { border: 2px solid var(--ink); background: var(--paper); padding: 18px; animation: slideUp 0.4s ease-out backwards; }
.ponto-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ponto-num { font-weight: 900; font-size: 22px; line-height: 1; }
.badge {
  display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--paper); background: var(--mute);
}
.badge.forca-forte { background: var(--success); }
.badge.forca-medio { background: var(--warning); }
.badge.forca-subsidiario { background: var(--mute); }
.badge.is-tipo { background: var(--ink); color: var(--hi-vis); }
.ponto-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.ponto-resumo { font-size: 14px; color: var(--mute); line-height: 1.5; margin: 0; }

/* ============ PRÉVIA DO PDF ============ */
.previa {
  position: relative; border: 2px solid var(--ink); background: #FFFFFF; padding: 22px 20px 26px; overflow: hidden;
}
.previa-flag {
  position: absolute; top: -7px; right: 14px; background: var(--hi-vis); color: var(--ink); padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; border: 1.5px solid var(--ink);
}
.previa-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.previa-end { font-size: 12px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; white-space: pre-line; }
.previa-abertura { font-size: 11px; line-height: 1.6; margin-bottom: 12px; }
.previa-h { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.previa-bar { height: 7px; background: rgba(10,22,40,0.14); margin-bottom: 5px; }
.previa-lock {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 70%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
}
.previa-lock span {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.previa-lock svg { color: var(--hi-vis); }
.previa-note { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.45; margin-top: 10px; }

/* ============ BOTÕES DE AÇÃO ============ */
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 22px; min-height: 44px; font-size: 16px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition); border: 2px solid var(--ink);
  text-decoration: none; color: var(--ink);
}
.action-primary { background: var(--hi-vis); color: var(--ink); }
.action-primary:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.action-secondary { background: var(--paper); color: var(--ink); }
.action-secondary:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.action-ghost {
  background: var(--paper); color: var(--ink); padding: 16px; font-size: 13px; gap: 8px;
}
.action-ghost:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.action-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.action-btn svg { flex-shrink: 0; }
.action-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.action-stack.is-top { margin-top: 0; }
.legal-note { font-size: 12px; color: var(--mute); line-height: 1.5; margin: 14px 0 0; text-align: center; }
.legal-note a { text-decoration: underline; color: var(--ink); }

/* ============ BARRA CTA (voltar / continuar) ============ */
.cta-bar {
  position: sticky; bottom: 0; left: 0; right: 0; padding: 16px 20px; background: var(--paper);
  border-top: 2px solid var(--ink); display: flex; gap: 10px; box-shadow: 0 -6px 20px rgba(10,22,40,0.06);
  margin: 28px -20px -32px; z-index: 5;
}
.btn-back, .btn-next {
  padding: 20px 22px; min-height: 44px; border: 2px solid var(--ink); font-size: 15px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn-back { background: var(--paper); color: var(--ink); flex: 0 0 auto; min-width: 64px; }
.btn-back:hover { background: var(--ink); color: var(--paper); }
.btn-next { background: var(--ink); color: var(--paper); flex: 1; }
.btn-next:hover:not(:disabled) { background: var(--hi-vis); color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.btn-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ PIX ============ */
.pix-amount {
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.pix-amount-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hi-vis); }
.pix-amount-value { font-weight: 900; font-size: 28px; letter-spacing: -1px; }
.pix-qr {
  border: 2px solid var(--ink); background: #FFFFFF; padding: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.pix-qr-img { width: 220px; height: 220px; border: 2px solid var(--ink); background: #FFFFFF; display: grid; place-items: center; }
.pix-qr-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.pix-qr-note { font-size: 13px; color: var(--mute); font-weight: 500; text-align: center; line-height: 1.4; }
.copia-row { display: flex; }
.copia-row input {
  flex: 1; min-width: 0; padding: 16px 14px; border: 2px solid var(--ink); border-right: 0; background: var(--paper);
  font-size: 16px; color: var(--ink); border-radius: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copia-row button {
  padding: 16px 18px; min-height: 44px; border: 2px solid var(--ink); background: var(--hi-vis); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; flex-shrink: 0;
  transition: var(--transition);
}
.copia-row button:hover { background: var(--ink); color: var(--paper); }

.status-row {
  margin-top: 24px; border: 2px solid var(--ink); padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  background: var(--paper-warm);
}
.status-dot { width: 14px; height: 14px; background: var(--warning); flex-shrink: 0; }
.status-dot.is-ok { background: var(--success); animation: none; }
.status-dot.is-bad { background: var(--alert); animation: none; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.status-title { font-weight: 700; font-size: 16px; }
.status-sub { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.4; }
.helper-text { font-size: 14px; line-height: 1.55; margin: 20px 0 0; color: var(--mute); font-weight: 500; }

/* ============ LOADER / ERRO ============ */
.loader { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; text-align: center; }
.loader-spinner {
  width: 44px; height: 44px; border: 4px solid rgba(10,22,40,0.15); border-top-color: var(--hi-vis);
  border-right-color: var(--ink); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-weight: 700; font-size: 16px; }
.loader-sub { font-size: 14px; color: var(--mute); font-weight: 500; }
.error-box {
  border: 2px solid var(--alert); background: #FFF4F2; padding: 16px 18px; margin-top: 16px;
  font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
}
.error-box svg { flex-shrink: 0; color: var(--alert-text); margin-top: 2px; }
.error-box strong { color: var(--alert-text); }

/* ============ DEFESA PRONTA ============ */
.file-card {
  border: 2px solid var(--ink); background: #FFFFFF; padding: 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 12px;
}
.file-icon {
  width: 56px; height: 68px; border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 6px; flex-shrink: 0; position: relative;
}
.file-icon::before { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: var(--ink); }
.file-icon span { font-size: 10px; font-weight: 900; letter-spacing: 1px; background: var(--hi-vis); padding: 2px 5px; border: 1px solid var(--ink); }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 800; font-size: 16px; line-height: 1.3; word-break: break-word; }
.file-sub { font-size: 13px; color: var(--mute); font-weight: 500; margin-top: 4px; }
.recibo {
  margin-top: 28px; border: 2px solid var(--ink); padding: 18px 20px; background: var(--paper-warm);
  display: flex; flex-direction: column; gap: 6px;
}
.recibo-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.recibo-main { font-weight: 700; font-size: 16px; }
.recibo-sub { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.4; }

/* ============ ESTADO: SEM PONTOS / PRAZO VENCIDO ============ */
.state-card { border: 2px solid var(--ink); padding: 24px 20px; background: var(--paper); margin-bottom: 24px; }
.state-card.is-muted { border-color: var(--mute); }
.state-card h2 { font-weight: 900; font-size: 22px; letter-spacing: -0.5px; text-transform: uppercase; margin-bottom: 10px; line-height: 1.1; }
.state-card p { font-size: 15px; line-height: 1.55; color: var(--ink); margin-bottom: 10px; }
.state-card p:last-child { margin-bottom: 0; }

/* ============ PÁGINAS ESTÁTICAS (termos/privacidade) ============ */
.static-page { padding: 28px 20px 48px; }
.static-page h1 { font-weight: 900; font-size: clamp(34px, 9vw, 42px); line-height: 0.95; letter-spacing: -1px; text-transform: uppercase; margin-bottom: 14px; }
.static-page h2 { font-weight: 900; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin: 32px 0 12px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.static-page p, .static-page li { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.static-page ul { padding-left: 22px; }
.static-page .pending {
  border: 2px dashed var(--warning); background: #FFF7E8; padding: 12px 14px; font-size: 13px; font-weight: 600;
  color: var(--warning); margin: 10px 0 16px;
}
.static-page .updated { font-size: 13px; color: var(--mute); font-weight: 500; }

/* ============ RODAPÉ INSTITUCIONAL ============ */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 28px 20px 22px; margin-top: auto;
  border-top: 1.5px solid var(--ink);
  font-size: 13px; line-height: 1.5;
}
.site-footer .sf-brand {
  font-weight: 900; font-size: 20px; letter-spacing: -0.5px; line-height: 1;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--paper);
}
.site-footer .sf-tagline { color: var(--mute-soft); margin: 0 0 22px; max-width: 460px; }
.site-footer .sf-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.site-footer h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hi-vis); margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer li { color: var(--mute-soft); }
.site-footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,242,237,.35); display: inline-block; min-height: 24px; }
.site-footer a:hover { text-decoration-color: var(--hi-vis); }
.site-footer .sf-legal {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(244,242,237,.15);
  text-align: center; font-size: 11px; color: var(--mute-soft); line-height: 1.6;
}
.site-footer .sf-legal span { display: block; }
.site-footer .sf-legal .divider { width: 40px; height: 1.5px; background: var(--hi-vis); margin: 8px auto; }
@media (min-width: 480px) {
  .site-footer .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ============================================================
   DESKTOP (≥ 900px) — duas colunas por tela.
   Abaixo de 900px os wrappers .l-* são blocos comuns: o mobile
   continua coluna única, na mesma ordem do HTML.
   ============================================================ */
@media (min-width: 900px) {
  .app { max-width: 1240px; }
  .header { padding: 20px 48px; }
  .progress { padding: 16px 48px; }
  .screen { padding: 44px 48px 48px; }
  .site-footer { padding: 36px 48px 24px; }
  .site-footer .sf-grid { gap: 40px; }
  .identity-bar { font-size: 14px; }

  /* Grade padrão: cabeçalho em cima, conteúdo à esquerda, apoio à direita, CTA embaixo */
  .screen.active, .l-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
    column-gap: 48px; row-gap: 0;
    align-items: start;
  }
  .screen > .l-head, .l-grid > .l-head { grid-column: 1 / -1; }
  .l-head .screen-sub { max-width: 640px; }
  .l-main { grid-column: 1; min-width: 0; }
  .l-side { grid-column: 2; min-width: 0; }
  .l-side.is-sticky { position: sticky; top: 124px; }
  .l-after { grid-column: 1; min-width: 0; }
  .screen > .cta-bar {
    grid-column: 1 / -1;
    margin: 36px -48px -48px; padding: 18px 48px;
  }
  .screen > .cta-bar .btn-next { flex: 0 1 420px; margin-left: auto; }
  .screen > .error-box, .screen > .loader, .screen > .l-grid, .screen > .l-pix, .l-narrow, .screen > .action-stack { grid-column: 1 / -1; }
  .l-narrow { max-width: 640px; }
  .l-grid > .l-side .section-title.is-first, .l-grid > .l-side .section-title:first-child { margin-top: 0; }

  /* --- Tela 1: hero + informações à esquerda, envio fixo à direita --- */
  #screen-1 { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px); row-gap: 8px; align-items: center; }
  #screen-1 > .l-hero { grid-column: 1; grid-row: 1; }
  #screen-1 > .l-upload { grid-column: 2; grid-row: 1; align-self: center; }
  #screen-1 > .l-info { grid-column: 1 / -1; grid-row: 2; }
  .hero-headline { font-size: clamp(56px, 6.5vw, 80px); letter-spacing: -2.5px; margin-bottom: 28px; }
  .hero-sub { font-size: 28px; max-width: 560px; }
  .hero-note { font-size: 18px; margin-bottom: 0; }
  .l-upload .upload { padding: 52px 28px; }
  .l-upload .upload-title { font-size: 21px; }
  .l-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .l-info .steps { margin-top: 40px; }
  .l-info .step { padding: 18px 0; }
  .l-info-side { margin-top: 40px; padding-top: 32px; border-top: 1.5px solid var(--ink); }
  .l-info-side .dark-block { margin-top: 0; }
  .l-info-side .price-block { margin-top: 24px; }

  /* --- Tela 2: campos lidos × prazo e sinais --- */
  #screen-2 .extracted { margin-bottom: 0; }
  #screen-2 .extracted-grid { gap: 20px 24px; }
  #screen-2 .deadline-card { margin-bottom: 20px; }

  /* --- Tela 3: formulário em duas colunas, LGPD ao lado --- */
  #formDados { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  #formDados .form-section-title, #formDados .field.is-full { grid-column: 1 / -1; }
  #formDados .form-section-title { margin-top: 12px; }
  #formDados .form-section-title:first-child { margin-top: 0; }
  #screen-3 .lgpd-box { margin-top: 0; }

  /* --- Tela 4: documentos em grade 2×2, aviso ao lado --- */
  #docList { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  #docList .doc-slot { display: flex; flex-direction: column; }
  #docList .doc-slot-actions { margin-top: auto; }
  #screen-4 .l-side .dark-block { margin-top: 0; }

  /* --- Tela 5: pontos de defesa × prévia e pagamento --- */
  #resumoOk .section-title { margin-top: 0; }
  #resumoOk .l-side { position: sticky; top: 124px; }
  #resumoOk .previa-lock { height: 100px; }

  /* --- Tela 6: QR à esquerda, valor/copia e cola/status à direita --- */
  .l-pix {
    display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    column-gap: 40px; align-items: start;
  }
  .l-pix .pix-qr { grid-column: 1; grid-row: 1 / span 2; }
  .l-pix .pix-amount { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .l-pix .l-side { grid-column: 2; grid-row: 2; }
  .l-pix .pix-qr-img { width: 260px; height: 260px; }
  #screen-6 > .action-stack { max-width: 360px; }

  /* --- Tela 7: arquivo e ações à esquerda, como protocolar à direita --- */
  #prontoOk .l-side { grid-row: 2 / span 2; }
  #prontoOk .l-after { grid-row: 3; }
  #prontoOk .l-side .steps { margin-top: 0; padding-top: 0; border-top: 0; }
  #prontoOk .l-after .recibo { margin-top: 24px; }
  #prontoOk .l-after .dark-block { margin-top: 20px; }
  #screen-7 > .action-stack { max-width: 360px; }

  /* --- Páginas estáticas: linha de leitura confortável --- */
  .static-page { padding: 44px 48px 56px; max-width: 860px; }
}

@media (min-width: 1200px) {
  .screen { padding: 52px 64px 56px; }
  .header, .progress { padding-left: 64px; padding-right: 64px; }
  .site-footer { padding-left: 64px; padding-right: 64px; }
  .screen > .cta-bar { margin: 40px -64px -56px; padding: 18px 64px; }
  .static-page { padding-left: 64px; padding-right: 64px; }

  .l-info { column-gap: 64px; }
}
