/* ══════════════════════════════════════════════════════════
   DESIGN SYSTEM — identidade visual toodo.com.br
   Todas as cores, sombras, raios e transições centralizados
   em variáveis CSS para facilitar manutenção futura.
══════════════════════════════════════════════════════════ */
:root {
  /* Cores da marca */
  --navy:         #1a3470;
  --navy-dark:    #0d2050;
  --navy-mid:     #2a4a8a;
  --orange:       #f5a820;
  --orange-dark:  #e09010;
  --blue-cta:     #2156d4;
  --blue-cta-hov: #1840b0;

  /* Superfícies e fundos */
  --bg-white:     #ffffff;
  --bg-section:   #f0f4ff;
  --border:       #dde4f5;
  --border-light: #eef1fb;

  /* Tipografia */
  --text-heading: #1a3470;
  --text-body:    #4a5568;
  --text-light:   #8896a8;

  /* Status semânticos */
  --success:      #10b981;
  --success-bg:   #ecfdf5;
  --danger:       #ef4444;
  --danger-bg:    #fef2f2;
  --warn:         #f59e0b;
  --warn-bg:      #fffbeb;
  --purple:       #7c3aed;
  --teal:         #0891b2;

  /* Formas e animações */
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(26,52,112,.08);
  --shadow:       0 2px 16px rgba(26,52,112,.10);
  --shadow-lg:    0 8px 32px rgba(26,52,112,.14);
  --transition:   0.2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-section);
  color: var(--text-body);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* ══════════════════════════════════
   HEADER — posição relativa (scroll)
══════════════════════════════════ */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 8px rgba(26,52,112,.07);
}

.logo {
  display: flex; align-items: center;
  text-decoration: none;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1;
}
.logo-toodo { color: var(--navy); }
.logo-pay   { color: var(--orange); }

.header-left,
.header-right { display: flex; align-items: center; gap: 12px; }

.header-left {
  min-width: 220px;
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.header-tag {
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--navy-mid);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: .3px; text-transform: uppercase;
}

.btn-cta {
  background: var(--blue-cta); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 9px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
  display: none;
  align-items: center; gap: 6px;
}
.btn-cta:hover { background: var(--blue-cta-hov); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-cta.show  { display: inline-flex; }

/* ══════════════════════════════════
   OVERLAY DE CARREGAMENTO
══════════════════════════════════ */
#loading-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(240,244,255,.9); backdrop-filter: blur(5px);
  z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
#loading-overlay.show { display: flex; }
.spinner {
  width: 46px; height: 46px;
  border: 4px solid var(--border);
  border-top-color: var(--blue-cta);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-overlay p { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ══════════════════════════════════
   TELA DE UPLOAD
══════════════════════════════════ */
#upload-screen {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center;
  justify-content: center; padding: 48px 20px;
}
.upload-wrap {
  max-width: 680px;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.upload-hero { text-align: center; margin-bottom: 32px; }
.upload-hero h1 {
  font-size: 32px; font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px;
}
.upload-hero p {
  font-size: 15px; color: var(--text-body);
  max-width: 440px; margin: 0 auto; line-height: 1.65;
}

.upload-checklist {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 18px; margin-top: 14px;
}
.upload-checklist span {
  font-size: 12px; color: var(--navy-mid); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.upload-checklist span::before { content: '✓'; color: var(--success); font-weight: 800; }

.upload-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
}

.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--bg-section); position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over { border-color: var(--blue-cta); background: #e8eeff; }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon {
  width: 56px; height: 56px; background: var(--bg-white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; border: 2px solid var(--border);
}
.drop-label { font-size: 14px; color: var(--text-body); }
.drop-label strong { color: var(--blue-cta); }
.drop-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }

.cols-section { margin-top: 24px; }
.cols-section h4 {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px;
}
.col-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.col-pill {
  background: var(--bg-section); border: 1px solid var(--border);
  color: var(--navy-mid); border-radius: 6px; padding: 3px 10px;
  font-size: 11px; font-weight: 600;
}

.sim-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sim-field label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-mid);
}
.sim-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  padding: 10px 12px;
  outline: none;
  transition: var(--transition);
}
.sim-field input:focus {
  border-color: var(--blue-cta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33,86,212,.10);
}
.sim-field input::placeholder {
  color: rgba(74,85,104,.48);
  font-weight: 600;
}
.sim-field input.sim-zero {
  color: rgba(74,85,104,.48);
  font-weight: 600;
}
.sim-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 4px;
  color: var(--navy-mid);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.sim-flag input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-cta);
  cursor: pointer;
}
.sim-submit {
  min-height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue-cta);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: var(--transition);
}
.sim-submit:hover {
  background: var(--blue-cta-hov);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
/* ══════════════════════════════════
   TELA DO DASHBOARD
══════════════════════════════════ */
#dashboard-screen { display: none; padding: 28px 36px 48px; max-width: 1480px; margin: 0 auto; }

.toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.toolbar-title h2 {
  font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.3px;
}
.toolbar-title p { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ══════════════════════════════════
   BANNER INSIGHT (gradiente azul)
══════════════════════════════════ */
.insight-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 55%, var(--blue-cta) 100%);
  border-radius: var(--radius-lg); padding: 24px 32px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.insight-banner::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; background: rgba(255,255,255,.04); border-radius: 50%;
}
.ib-item { flex: 1; min-width: 140px; }
.ib-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.ib-value { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.ib-value .hl { color: var(--orange); }
.ib-div { width: 1px; height: 44px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* ══════════════════════════════════
   BARRA DE FILTROS
══════════════════════════════════ */
.filter-bar {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 14px 20px;
  margin-bottom: 20px; display: flex; gap: 14px;
  flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow-sm);
}
.fg { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.fg label {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .5px;
}
.fg select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 28px 7px 10px; font-size: 12px; color: var(--text-heading);
  background: var(--bg-white); cursor: pointer; outline: none;
  transition: var(--transition); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.fg select:focus { border-color: var(--blue-cta); }
.btn-clear {
  background: none; border: 1.5px solid var(--border);
  color: var(--text-light); border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-clear:hover { color: var(--danger); border-color: var(--danger); }

/* ══════════════════════════════════
   GRID DE KPIs
══════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.kpi {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-accent  { border-top: 3px solid var(--blue-cta); }
.kpi-orange  { border-top: 3px solid var(--orange); }
.kpi-success { border-top: 3px solid var(--success); }
.kpi-danger  { border-top: 3px solid var(--danger); }
.kpi-navy    { border-top: 3px solid var(--navy); }
.kpi-warn    { border-top: 3px solid var(--warn); }
.kpi-purple  { border-top: 3px solid var(--purple); }
.kpi-teal    { border-top: 3px solid var(--teal); }
.kpi-label {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 5px;
}
.kpi-value {
  font-size: 24px; font-weight: 800; color: var(--navy);
  line-height: 1; margin-bottom: 5px;
}
.kpi-orange  .kpi-value { color: var(--orange-dark); }
.kpi-success .kpi-value { color: var(--success); }
.kpi-danger  .kpi-value { color: var(--danger); }
.kpi-warn    .kpi-value { color: var(--warn); }
.kpi-purple  .kpi-value { color: var(--purple); }
.kpi-teal    .kpi-value { color: var(--teal); }
.kpi-sub  { font-size: 11px; color: var(--text-light); line-height: 1.4; }
.kpi-icon {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); font-size: 40px;
  opacity: .06; pointer-events: none;
}

/* ══════════════════════════════════════════════════
   SEÇÃO ECONOMIA — v3: identidade visual corrigida
   Removidos gradientes customizados; usa bg-white
   com border-left colorido, consistente com os
   demais cards do sistema de design.
══════════════════════════════════════════════════ */
.economia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 20px;
}

/* Card de economia — sem gradiente, alinhado ao design system */
.eco-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--blue-cta);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start;
  transition: var(--transition);
}
.eco-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.eco-card.eco-green { border-left-color: var(--success); }

.eco-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-cta); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 20px;
}
.eco-card.eco-green .eco-icon-wrap { background: var(--success); }

.eco-body { flex: 1; min-width: 0; }
.eco-label {
  font-size: 10px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 4px;
}
.eco-value {
  font-size: 26px; font-weight: 800; color: var(--navy);
  line-height: 1; margin-bottom: 4px;
}
.eco-card.eco-green .eco-value { color: var(--success); }
.eco-sub  { font-size: 11px; color: var(--text-light); line-height: 1.4; }

/* Texto explicativo da origem do cálculo */
.eco-explain {
  margin-top: 8px;
  font-size: 10px; color: var(--text-light);
  line-height: 1.55; font-style: italic;
  padding: 6px 8px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
}

.eco-micro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.eco-micro-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--navy-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}

.diagnosis-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.diagnosis-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.diagnosis-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(33,86,212,.10);
  color: var(--blue-cta);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.diagnosis-header h3 {
  color: var(--navy-dark);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.7px;
}

.diagnosis-header p {
  max-width: 520px;
  color: #5f6f88;
  font-size: 13px;
  line-height: 1.75;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.diagnosis-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 14px 30px rgba(26,52,112,.05);
}

.diagnosis-priority {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 62%, var(--blue-cta) 100%);
  color: #fff;
}

.diagnosis-opportunity {
  background: linear-gradient(135deg, #fff9ef 0%, #ffffff 100%);
}

.diag-label {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.diagnosis-priority .diag-label {
  color: rgba(255,255,255,.68);
}

.diagnosis-opportunity .diag-label {
  color: #9a5b00;
}

.diagnosis-card h4 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.4px;
  margin-bottom: 10px;
}

.diagnosis-priority h4 {
  color: #fff;
}

.diagnosis-opportunity h4 {
  color: var(--navy-dark);
}

.diagnosis-card p {
  font-size: 13px;
  line-height: 1.75;
}

.diagnosis-priority p {
  color: rgba(255,255,255,.84);
}

.diagnosis-opportunity p {
  color: #5f6f88;
}

.diagnosis-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.diagnosis-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy-mid);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26,52,112,.05);
}

.recommendation-panel {
  background: linear-gradient(180deg, rgba(33,86,212,.04) 0%, rgba(255,255,255,.98) 100%);
  border: 1px solid rgba(33,86,212,.10);
  border-radius: 20px;
  padding: 20px;
}

.recommendation-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.recommendation-panel-head h4 {
  color: var(--navy-dark);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.recommendation-panel-head p {
  max-width: 480px;
  color: #61728c;
  font-size: 13px;
  line-height: 1.7;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-card {
  background: #fff;
  border: 1px solid rgba(26,52,112,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26,52,112,.05);
}

.recommendation-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(33,86,212,.10);
  color: var(--blue-cta);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.recommendation-card h5 {
  color: var(--navy-dark);
  font-size: 16px;
  line-height: 1.28;
  margin-bottom: 8px;
}

.recommendation-card p {
  color: #5f6f88;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.recommendation-card strong {
  color: var(--blue-cta);
  font-size: 11px;
  line-height: 1.5;
}

/* Detalhamento dos 4 componentes da Economia Invisível */
.eco-breakdown {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.eco-breakdown-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--text-body);
  padding: 4px 6px; border-radius: 4px;
}
.eco-breakdown-item:nth-child(odd) { background: var(--bg-section); }
.eco-breakdown-item .ebi-label { color: var(--text-light); }
.eco-breakdown-item .ebi-val   { font-weight: 700; color: var(--success); }

/* ══════════════════════════════════
   SCORE DE SAÚDE FINANCEIRA
══════════════════════════════════ */
.score-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); padding: 24px 28px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.score-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
/* Mantém customização manual do usuário: font-size 22px */
.score-header-text h3 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
}
.score-header-text p { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.score-number-wrap { display: flex; align-items: center; gap: 16px; }
.score-number {
  font-size: 56px; font-weight: 900; line-height: 1;
  letter-spacing: -2px;
}
.score-number.score-red    { color: var(--danger); }
.score-number.score-yellow { color: var(--warn); }
.score-number.score-green  { color: var(--success); }
.score-num-label { font-size: 11px; color: var(--text-light); font-weight: 600; }

.score-bar-wrap { margin-bottom: 20px; }
.score-bar-bg {
  width: 100%; height: 10px; background: var(--bg-section);
  border-radius: 99px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 1s ease;
  background: linear-gradient(90deg, var(--blue-cta), var(--success));
}

.score-components {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.sc-item { background: var(--bg-section); border-radius: var(--radius-sm); padding: 12px 14px; }
.sc-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sc-item-label { font-size: 11px; font-weight: 600; color: var(--text-heading); }
.sc-item-pts { font-size: 11px; font-weight: 800; color: var(--navy); }
.sc-item-bar-bg { width: 100%; height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.sc-item-bar-fill { height: 100%; border-radius: 99px; background: var(--blue-cta); transition: width .8s ease; }

.score-insights-title {
  font-size: 11px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px; margin-top: 4px;
}
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.insight-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-section); border-radius: var(--radius-sm); padding: 11px 14px;
}
.insight-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.insight-dot.dot-ok     { background: var(--success); }
.insight-dot.dot-warn   { background: var(--warn); }
.insight-dot.dot-alert  { background: var(--danger); }
.insight-dot.dot-info   { background: var(--blue-cta); }
.insight-text { font-size: 12px; color: var(--text-body); line-height: 1.5; }
.insight-text strong { color: var(--text-heading); }

/* ══════════════════════════════════
   GRÁFICOS
══════════════════════════════════ */
.charts-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 20px;
}
.chart-card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.chart-card.full { grid-column: span 2; }
.chart-card.tall .chart-wrap { height: 320px; }
.chart-head { margin-bottom: 16px; }
.chart-head h3 {
  font-size: 12px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
}
.chart-head p { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.chart-wrap { position: relative; height: 260px; }

/* Status card: cresce para preencher o espaço quando o CTA está ativo */
#status-container {
  display: flex;
  flex-direction: column;
}
#status-container .chart-wrap {
  flex: 1;
  height: auto;
  min-height: 260px;
}

/* ══════════════════════════════════════════════════
   CTA DE CLASSIFICAÇÃO
   Exibido quando nenhuma linha tem Classificação
   preenchida. v3: paginação de benefícios com ← →
══════════════════════════════════════════════════ */
.class-cta-card {
  background: linear-gradient(135deg, #f7f9ff 0%, #eff4ff 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 28px; display: flex; flex-direction: column; gap: 16px;
}
.class-cta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warn-bg); border: 1px solid #fde68a;
  color: #92400e; border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; width: fit-content;
}
.class-cta-title {
  font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.3;
}
.class-cta-subtitle { font-size: 12px; color: var(--text-body); line-height: 1.5; }
.class-cta-valor {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.class-cta-valor-num { font-size: 22px; font-weight: 900; color: var(--orange-dark); }
.class-cta-valor-label { font-size: 11px; color: var(--text-light); line-height: 1.4; }

.class-benefits { display: flex; flex-direction: column; gap: 8px; min-height: 80px;}
.class-benefit {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-white); border-radius: var(--radius-sm); padding: 10px 14px;
}
.class-benefit-icon {
  width: 28px; height: 28px; border-radius: 8px; background: var(--blue-cta);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.class-benefit-text strong { display: block; font-size: 12px; font-weight: 700; color: var(--navy); }
.class-benefit-text span   { font-size: 11px; color: var(--text-light); line-height: 1.4; }

/* Paginação do CTA */
.cta-pag {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border-light);
}
.cta-pag-info { font-size: 10px; color: var(--text-light); font-weight: 600; }
.cta-pag-btns { display: flex; gap: 6px; }
.cta-pag-btn {
  background: var(--bg-white); border: 1.5px solid var(--border);
  color: var(--navy-mid); border-radius: 6px;
  width: 28px; height: 28px; font-size: 15px;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cta-pag-btn:hover:not(:disabled) { border-color: var(--blue-cta); color: var(--blue-cta); background: #eef3ff; }
.cta-pag-btn:disabled { opacity: .35; cursor: default; }

.class-cta-btn {
  background: var(--blue-cta); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 11px 22px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: var(--transition); width: fit-content; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
}
.class-cta-btn:hover { background: var(--blue-cta-hov); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ══════════════════════════════════
   TABELA DE TRANSAÇÕES
══════════════════════════════════ */
.table-card {
  background: var(--bg-white); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 22px 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.table-head h3 {
  font-size: 12px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
}
.search-box {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 14px 7px 32px; font-size: 12px; color: var(--text-heading);
  outline: none; transition: var(--transition); width: 220px;
  background: var(--bg-section) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238896a8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
}
.search-box:focus { border-color: var(--blue-cta); background-color: var(--bg-white); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th {
  background: var(--bg-section); color: var(--navy);
  font-weight: 700; font-size: 10px; text-transform: uppercase;
  letter-spacing: .5px; padding: 9px 13px; text-align: left;
  border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
/* Coluna Data: clicável para ordenar */
.th-sortable {
  cursor: pointer; user-select: none;
  transition: color var(--transition);
}
.th-sortable:hover { color: var(--blue-cta); }
.sort-icon {
  display: inline-block; margin-left: 4px;
  font-style: normal; opacity: .4;
  font-size: 9px; vertical-align: middle;
}
.sort-icon.sort-asc  { opacity: 1; color: var(--blue-cta); }
.sort-icon.sort-desc { opacity: 1; color: var(--blue-cta); }

tbody tr { border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
tbody tr:hover { background: var(--bg-section); }
tbody td { padding: 10px 13px; color: var(--text-heading); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.b-ok  { background: var(--success-bg); color: var(--success); }
.b-no  { background: var(--danger-bg);  color: var(--danger); }
.b-rev { background: var(--warn-bg);    color: var(--warn); }
.b-def { background: var(--bg-section); color: var(--text-light); }

/* ══════════════════════════════════
   PAGINAÇÃO DA TABELA
══════════════════════════════════ */
.pag { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.pag-info { font-size: 11px; color: var(--text-light); }
.pag-btns { display: flex; gap: 5px; }
.pb {
  border: 1.5px solid var(--border); background: var(--bg-white);
  color: var(--navy-mid); border-radius: 6px; padding: 4px 11px;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.pb:hover:not(:disabled) { border-color: var(--blue-cta); color: var(--blue-cta); }
.pb.active { background: var(--blue-cta); color: #fff; border-color: var(--blue-cta); }
.pb:disabled { opacity: .35; cursor: default; }

/* ══════════════════════════════════
   RODAPÉ
══════════════════════════════════ */
.footnote { font-size: 10px; color: var(--text-light); text-align: center; margin: -8px 0 20px; }
.footnote code { background: var(--bg-section); padding: 1px 5px; border-radius: 4px; font-size: 10px; font-family: monospace; }

/* ══════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .score-components { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  #dashboard-screen { padding: 14px 14px 36px; }
  header { padding: 0 16px; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.full { grid-column: span 1; }
  .economia-row { grid-template-columns: 1fr; }
  .insight-banner { padding: 18px 20px; flex-direction: column; gap: 12px; }
  .ib-div { display: none; }
  .score-components { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .upload-hero h1 { font-size: 24px; }
  .score-number { font-size: 42px; }
  .search-box { width: 100%; }
  .table-head { flex-direction: column; align-items: flex-start; }
}
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 52, 112, .42);
  backdrop-filter: blur(8px);
}
.lead-modal.show { display: flex; }
.lead-dialog {
  width: min(100%, 460px);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.lead-dialog-pipedrive {
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lead-dialog-pipedrive h3,
.lead-dialog-pipedrive p {
  flex: 0 0 auto;
}
.lead-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8eeff;
  color: var(--blue-cta);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.lead-dialog h3 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 10px;
}
.lead-dialog p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.58;
  margin-bottom: 22px;
}
.lead-pipedrive-host {
  min-height: 360px;
  max-height: min(560px, calc(100vh - 250px));
  flex: 1 1 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  scrollbar-gutter: stable;
}
.lead-pipedrive-host .pipedriveWebForms {
  min-height: 520px;
}
.lead-loading {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lead-field label {
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
}
.lead-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  padding: 10px 12px;
  outline: none;
  transition: var(--transition);
}
.lead-field input:focus {
  border-color: var(--blue-cta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33,86,212,.10);
}
.lead-submit {
  min-height: 46px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue-cta);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: var(--transition);
  margin-top: 4px;
}
.lead-submit-fallback {
  width: 100%;
  margin-top: 14px;
  flex: 0 0 auto;
}
.lead-submit[hidden] {
  display: none;
}
.lead-submit:not(:disabled):hover {
  background: var(--blue-cta-hov);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.lead-submit:disabled {
  cursor: not-allowed;
  opacity: .42;
  filter: saturate(.7);
}

/* Etapa 1 - reposicionamento visual e comercial */
body {
  font-family: 'Manrope', 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

#upload-screen {
  padding: 56px 20px;
}

.upload-wrap {
  max-width: 1200px;
  background:
    radial-gradient(circle at top left, rgba(245,168,32,.20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(33,86,212,.18), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f6f8ff 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.upload-hero {
  text-align: left;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(33,86,212,.10);
  border: 1px solid rgba(33,86,212,.14);
  color: var(--blue-cta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.upload-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.02;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}

.upload-hero h1 span {
  color: var(--blue-cta);
}

.upload-hero p {
  font-size: 17px;
  color: #31425f;
  max-width: 640px;
  margin: 0;
  line-height: 1.75;
}

.upload-checklist {
  justify-content: flex-start;
  gap: 10px 12px;
  margin-top: 20px;
}

.upload-checklist span {
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 12px 30px rgba(26,52,112,.06);
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-proof-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 40px rgba(26,52,112,.07);
}

.hero-proof-card strong {
  display: block;
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-proof-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #50607a;
}

.upload-card {
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(13,32,80,.14);
  border: 1px solid rgba(255,255,255,.7);
  padding: 28px;
  align-self: center;
}

.upload-card-head {
  margin-bottom: 18px;
}

.upload-card-kicker {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245,168,32,.14);
  color: #9a5b00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.upload-card-head h2 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.6px;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.upload-card-head p {
  font-size: 14px;
  color: #5d6d87;
  line-height: 1.7;
}

.sim-trust-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-light);
  padding-top: 2px;
}

.toolbar-title h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -.6px;
  line-height: 1.15;
}

.toolbar-title p {
  font-size: 13px;
  color: #63748f;
  margin-top: 6px;
  max-width: 760px;
}

.executive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 18px;
  margin-bottom: 20px;
}

.executive-hero-copy,
.executive-hero-side {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.executive-hero-copy {
  padding: 28px 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0)),
    linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 44%, var(--blue-cta) 100%);
  color: #fff;
}

.executive-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.executive-hero-copy h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -.9px;
  margin-bottom: 12px;
}

.executive-hero-copy p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 720px;
  color: rgba(255,255,255,.82);
}

.executive-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.executive-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.12);
}

.executive-hero-side {
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
  border: 1px solid rgba(26,52,112,.08);
}

.executive-hero-side-solo {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
}

.executive-mini-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-cta);
  margin-bottom: 12px;
}

.executive-mini-title {
  color: var(--navy-dark);
  font-size: 22px;
  line-height: 1.24;
  font-weight: 850;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.executive-mini-note {
  color: #5f6f88;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .upload-wrap {
    grid-template-columns: 1fr;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .executive-hero {
    grid-template-columns: 1fr;
  }

  .executive-hero-side-solo {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #upload-screen {
    padding: 28px 14px 36px;
  }

  .upload-wrap {
    padding: 24px;
    gap: 20px;
  }

  .upload-hero {
    text-align: left;
  }

  .upload-hero p {
    max-width: none;
  }

  .diagnosis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .upload-card {
    padding: 22px 18px;
  }

  .upload-card-head h2 {
    font-size: 24px;
  }

  .executive-hero-copy,
  .executive-hero-side {
    padding: 22px 18px;
  }

  .executive-mini-title {
    font-size: 19px;
  }
}

.hero-actions,
.executive-actions,
.recommendation-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions,
.executive-actions {
  margin-top: 20px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.hero-action.primary {
  background: var(--blue-cta);
  color: #fff;
  box-shadow: 0 16px 34px rgba(33,86,212,.22);
}

.hero-action.primary:hover {
  background: var(--blue-cta-hov);
  transform: translateY(-1px);
}

.hero-action.secondary {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(26,52,112,.12);
  color: var(--navy);
}

.hero-action.secondary:hover {
  border-color: var(--blue-cta);
  color: var(--blue-cta);
  transform: translateY(-1px);
}

.recommendation-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(26,52,112,.08);
}

.recommendation-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 560px;
}

.recommendation-footer-copy strong {
  color: var(--navy-dark);
  font-size: 15px;
  line-height: 1.4;
}

.recommendation-footer-copy span {
  color: #5f6f88;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .recommendation-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.closing-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(245,168,32,.16), transparent 22%),
    linear-gradient(120deg, #0d2050 0%, #1a3470 52%, #2156d4 100%);
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 20px 48px rgba(13,32,80,.18);
  margin-bottom: 24px;
}

.closing-cta-copy {
  max-width: 760px;
}

.closing-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.closing-cta h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.9px;
  margin-bottom: 10px;
}

.closing-cta p {
  color: rgba(255,255,255,.80);
  font-size: 14px;
  line-height: 1.8;
}

.closing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.closing-points span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.closing-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.closing-cta .hero-action.secondary {
  background: rgba(255,255,255,.96);
}

@media (max-width: 900px) {
  .closing-cta {
    padding: 22px 18px;
  }

  .closing-cta-actions {
    width: 100%;
  }

  .closing-cta-actions .hero-action {
    width: 100%;
  }
}

/* Resultado premium - raio-x operacional ToodoPay */
body {
  background: #f6f8fc;
  color: #2e3b52;
}

#dashboard-screen {
  max-width: 1320px;
  padding: 30px 28px 56px;
}

.toolbar {
  align-items: center;
  margin-bottom: 18px;
}

.toolbar-title h2 {
  color: #0d2050;
  font-size: 18px;
  letter-spacing: 0;
}

.toolbar-title p {
  color: #7b8798;
  font-size: 12px;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.premium-hero-copy {
  min-height: 520px;
  border-radius: 28px;
  padding: 42px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.10), rgba(255,255,255,0)),
    linear-gradient(135deg, #0d2050 0%, #1a3470 52%, #2156d4 100%);
  color: #fff;
  box-shadow: 0 24px 58px rgba(13,32,80,.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.premium-eyebrow,
.score-seal {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(33,86,212,.10);
  color: #2156d4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.premium-hero-copy .premium-eyebrow,
.closing-kicker {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
}

.premium-hero h1 {
  max-width: 760px;
  margin: 28px 0 18px;
  color: #fff;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.premium-hero-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.65;
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.premium-actions .hero-action.secondary {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}

.premium-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.premium-metric {
  min-height: 160px;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 16px 42px rgba(13,32,80,.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.premium-metric.metric-featured {
  grid-column: span 2;
  min-height: 206px;
  background:
    linear-gradient(180deg, rgba(33,86,212,.06), rgba(33,86,212,0)),
    #fff;
}

.metric-label,
.gap-card span,
.scenario-strip span {
  color: #7b8798;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.premium-metric strong {
  color: #0d2050;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.premium-metric.metric-featured strong {
  color: #2156d4;
  font-size: 56px;
}

.premium-metric small,
.gap-card p,
.section-heading p {
  color: #66758d;
  font-size: 13px;
  line-height: 1.55;
}

.score-mini strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.score-mini .score-hero-alert {
  color: #dc2626;
}

.score-mini em {
  color: #8a97ad;
  font-size: 18px;
  font-style: normal;
}

.eco-micro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.eco-micro-pill {
  position: relative;
  min-height: 36px;
  padding: 0 13px 0 28px;
  border: 1px solid rgba(33,86,212,.13);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f8faff);
  color: #17326f;
  box-shadow: 0 8px 18px rgba(13,32,80,.055);
  font-size: clamp(11px, .82vw, 13px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.eco-micro-pill::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f5a623;
  box-shadow: 0 0 0 4px rgba(245,166,35,.12);
  transform: translateY(-50%);
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(26,52,112,.08);
  background: rgba(26,52,112,.08);
  margin-bottom: 18px;
}

.scenario-strip div {
  min-height: 92px;
  padding: 18px;
  background: rgba(255,255,255,.86);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.scenario-strip strong {
  display: block;
  margin-top: 7px;
  color: #0d2050;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.filter-bar {
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13,32,80,.06);
}

.section-block {
  margin-bottom: 22px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 45px rgba(13,32,80,.07);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  color: #0d2050;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.gap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gap-card {
  min-height: 190px;
  border-radius: 22px;
  padding: 20px;
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gap-card strong {
  color: #0d2050;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.compact-reading {
  margin-top: 16px;
}

.diagnosis-card {
  border-radius: 22px;
  box-shadow: none;
}

.diagnosis-card h4 {
  font-size: 22px;
  line-height: 1.18;
}

.diagnosis-card p {
  font-size: 13px;
}

.diagnosis-pill-row {
  margin-top: 14px;
}

.solution-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}

.solution-flow article {
  min-height: 172px;
  border-radius: 22px;
  padding: 18px;
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
}

.solution-flow span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #2156d4;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(33,86,212,.10);
}

.solution-flow strong {
  display: block;
  margin-top: 22px;
  color: #0d2050;
  font-size: 17px;
  line-height: 1.2;
}

.solution-flow p {
  margin-top: 8px;
  color: #66758d;
  font-size: 12px;
  line-height: 1.5;
}

.recommendation-panel {
  margin-top: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.recommendation-panel-head {
  margin-bottom: 14px;
}

.recommendation-panel-head p {
  display: none;
}

.recommendation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1181px) {
  #dashboard-screen:not(.is-reimbursement-mode) .recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.recommendation-card {
  border-radius: 18px;
  box-shadow: none;
}

.chart-section {
  padding-bottom: 34px;
}

.chart-card {
  border-radius: 24px;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: none;
  padding: 24px;
}

.chart-card.full {
  grid-column: auto;
}

.chart-head {
  margin-bottom: 18px;
}

.chart-head h3 {
  color: #0d2050;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
}

.chart-head p {
  color: #7b8798;
  font-size: 12px;
}

.chart-wrap {
  height: 360px;
}

.chart-fallback-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}

.chart-fallback-row {
  display: grid;
  gap: 8px;
}

.chart-fallback-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #1a3470;
  font-size: 12px;
  font-weight: 800;
}

.chart-fallback-meta strong {
  color: #0d2050;
  white-space: nowrap;
}

.chart-fallback-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8edf7;
}

.chart-fallback-fill {
  height: 100%;
  border-radius: inherit;
  background: #2156d4;
}

.premium-score {
  --score: 0%;
  margin-bottom: 22px;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(13,32,80,.03), rgba(255,255,255,0)),
    #fff;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 45px rgba(13,32,80,.07);
}

.premium-score .score-header {
  align-items: center;
  margin-bottom: 24px;
}

.premium-score .score-header-text h3 {
  margin-top: 12px;
  color: #0d2050;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.premium-score .score-header-text p {
  max-width: 520px;
  color: #66758d;
  font-size: 14px;
}

.score-gauge {
  display: flex;
  align-items: center;
  gap: 18px;
}

.score-gauge-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#2156d4 var(--score), #e8edf7 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(26,52,112,.06), 0 20px 48px rgba(13,32,80,.10);
}

.score-number {
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.score-num-label {
  color: #7b8798;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.score-premium-badge {
  min-width: 76px;
  border-radius: 999px;
  padding: 9px 14px;
  text-align: center;
  background: #0d2050;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.score-bar-bg,
.sc-item-bar-bg {
  background: #e8edf7;
}

.score-bar-fill,
.sc-item-bar-fill {
  border-radius: 999px;
}

.score-components {
  gap: 12px;
}

.sc-item {
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid rgba(26,52,112,.08);
}

.score-insights-title {
  color: #0d2050;
}

.insight-item {
  border-radius: 18px;
  box-shadow: none;
}

.table-card {
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(13,32,80,.06);
}

.closing-cta {
  border-radius: 28px;
  background:
    linear-gradient(135deg, #0d2050 0%, #1a3470 58%, #2156d4 100%);
}

.closing-cta h3 {
  letter-spacing: 0;
}

@media (max-width: 1180px) {
  .premium-hero {
    grid-template-columns: 1fr;
  }

  .premium-hero-copy {
    min-height: 420px;
  }

  .gap-grid,
  .solution-flow,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #dashboard-screen {
    padding: 18px 14px 42px;
  }

  .premium-hero-copy,
  .section-block,
  .premium-score,
  .closing-cta {
    border-radius: 22px;
    padding: 22px;
  }

  .premium-hero-copy {
    min-height: auto;
  }

  .premium-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .premium-hero-copy p {
    font-size: 15px;
  }

  .premium-metrics,
  .scenario-strip,
  .gap-grid,
  .solution-flow,
  .recommendation-grid,
  .diagnosis-grid {
    grid-template-columns: 1fr;
  }

  .premium-metric.metric-featured {
    grid-column: auto;
  }

  .premium-metric,
  .gap-card,
  .solution-flow article {
    min-height: auto;
    gap: 18px;
  }

  .premium-metric strong,
  .premium-metric.metric-featured strong {
    font-size: 34px;
  }

  .section-heading h2,
  .premium-score .score-header-text h3 {
    font-size: 27px;
  }

  .score-header,
  .premium-score .score-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-gauge {
    width: 100%;
    justify-content: space-between;
  }

  .score-gauge-ring {
    width: 158px;
    height: 158px;
  }

  .score-number {
    font-size: 46px;
  }

  .chart-wrap {
    height: 300px;
  }
}

@media print {
  #dashboard-screen {
    max-width: none;
    padding: 0;
  }

  .premium-hero,
  .premium-metrics,
  .gap-grid,
  .solution-flow,
  .recommendation-grid,
  .scenario-strip {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.pdf-print-root .premium-hero,
.pdf-print-root .premium-metrics,
.pdf-print-root .gap-grid,
.pdf-print-root .solution-flow,
.pdf-print-root .recommendation-grid,
.pdf-print-root .scenario-strip {
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-print-root .premium-hero {
  grid-template-columns: 1fr;
}

.pdf-print-root .premium-hero-copy {
  min-height: auto;
  color: #fff;
}

.pdf-print-root .premium-metrics,
.pdf-print-root .gap-grid,
.pdf-print-root .solution-flow,
.pdf-print-root .recommendation-grid,
.pdf-print-root .scenario-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-pdf-btn {
  background: #0d2050;
  border-radius: 9px;
  padding: 9px 16px;
  box-shadow: 0 12px 28px rgba(13,32,80,.14);
}

#dashboard-screen .toolbar {
  display: none;
}

/* Entrada premium e formulario de lead */
#upload-screen {
  min-height: calc(100vh - 62px);
  padding: 34px 20px;
  background:
    linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

.upload-wrap {
  max-width: 1400px;
  min-height: min(760px, calc(100vh - 130px));
  padding: 22px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(13,32,80,.03), rgba(33,86,212,.08)),
    #fff;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 26px 70px rgba(13,32,80,.12);
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
}

.upload-hero {
  padding: 34px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, #0d2050 0%, #1a3470 54%, #2156d4 100%);
  color: #fff;
  justify-content: space-between;
  overflow: hidden;
}

.upload-hero .hero-kicker {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  margin-bottom: 0;
}

.upload-hero h1 {
  max-width: 760px;
  margin: 28px 0 16px;
  color: #fff;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: 0;
}

.upload-hero h1 span {
  color: #fff;
}

.upload-hero p {
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.65;
}

.upload-checklist {
  justify-content: flex-start;
  margin-top: 24px;
}

.upload-checklist span {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: none;
}

.upload-checklist span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5a820;
}

.hero-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.hero-proof-card {
  min-height: 156px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}

.hero-proof-card strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
}

.hero-proof-card p {
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.upload-card {
  align-self: stretch;
  padding: 30px;
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 50px rgba(13,32,80,.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-card-kicker {
  background: rgba(33,86,212,.08);
  color: #2156d4;
  letter-spacing: 0;
}

.upload-card-head {
  margin-bottom: 22px;
}

.upload-card-head h2 {
  color: #0d2050;
  font-size: 32px;
  letter-spacing: 0;
}

.upload-card-head p {
  color: #66758d;
  font-size: 13px;
}

.sim-form {
  gap: 14px;
}

.sim-field {
  gap: 8px;
}

.sim-field label,
.lead-field label {
  color: #1a3470;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 850;
}

.sim-field input,
.lead-field input {
  min-height: 52px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.12);
  color: #0d2050;
  font-size: 16px;
  font-weight: 750;
  padding: 12px 14px;
}

.sim-field input:focus,
.lead-field input:focus {
  border-color: #2156d4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33,86,212,.10);
}

.sim-field input::placeholder,
.lead-field input::placeholder {
  color: #9aa6b8;
  font-weight: 650;
}

.lead-field input[aria-invalid="true"] {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.lead-field-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.lead-field-error[hidden] {
  display: none;
}

.sim-flag {
  min-height: 48px;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
  color: #1a3470;
  font-size: 13px;
}

.sim-submit,
.lead-submit {
  min-height: 54px;
  border-radius: 14px;
  background: #2156d4;
  box-shadow: 0 16px 34px rgba(33,86,212,.22);
}

.sim-submit:hover,
.lead-submit:not(:disabled):hover {
  background: #1840b0;
}

.sim-trust-note {
  font-size: 0;
  color: #7b8798;
  line-height: 1.6;
}

.sim-trust-note::before {
  content: 'Resultado personalizado para revelar tempo, capital e previsibilidade que podem ser liberados com o ToodoPay.';
  font-size: 12px;
}

.lead-modal {
  background: rgba(13,32,80,.58);
  backdrop-filter: blur(14px);
}

.lead-dialog.lead-dialog-premium {
  width: min(100%, 900px);
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 34px 90px rgba(13,32,80,.28);
}

.lead-value-panel {
  padding: 34px;
  background:
    linear-gradient(135deg, #0d2050 0%, #1a3470 58%, #2156d4 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lead-value-panel .lead-kicker {
  width: fit-content;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  letter-spacing: 0;
}

.lead-value-panel h3 {
  margin: 26px 0 12px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead-value-panel p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}

.lead-preview-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.lead-preview-list span {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.lead-form-premium {
  padding: 34px;
  background: #fff;
}

.lead-form-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.lead-form-head span {
  color: #2156d4;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form-head strong {
  color: #0d2050;
  font-size: 24px;
  line-height: 1.15;
}

.lead-submit:disabled {
  box-shadow: none;
  opacity: .45;
}

.lead-privacy-note {
  color: #7b8798;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .upload-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #upload-screen {
    padding: 16px 12px 34px;
  }

  .upload-wrap {
    padding: 12px;
    border-radius: 24px;
  }

  .upload-hero,
  .upload-card {
    padding: 22px;
    border-radius: 20px;
  }

  .upload-hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .upload-hero p {
    font-size: 15px;
  }

  .upload-card-head h2 {
    font-size: 27px;
  }

  .lead-dialog.lead-dialog-premium {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .lead-value-panel,
  .lead-form-premium {
    padding: 24px;
  }

  .lead-value-panel h3 {
    font-size: 28px;
  }
}

/* Ajuste pedido: painel inicial claro, alinhado ao card do formulario */
.upload-hero {
  background:
    linear-gradient(180deg, rgba(33,86,212,.035), rgba(33,86,212,0)),
    #fff;
  color: #0d2050;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 50px rgba(13,32,80,.08);
}

.upload-hero .hero-kicker {
  background: rgba(33,86,212,.08);
  border: 0;
  color: #2156d4;
}

.upload-hero h1,
.upload-hero h1 span {
  color: #0d2050;
}

.upload-hero p {
  color: #53637d;
}

.upload-checklist span {
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
  color: #0d2050;
  box-shadow: none;
}

.upload-checklist span::before {
  background: #f5a820;
}

.hero-proof-card {
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: none;
}

.hero-proof-card strong {
  color: #0d2050;
}

.hero-proof-card p {
  color: #53637d;
}

/* Ajuste pedido: painel esquerdo do formulario pessoal em visual claro */
.lead-value-panel {
  background:
    linear-gradient(180deg, rgba(33,86,212,.035), rgba(33,86,212,0)),
    #fff;
  color: #0d2050;
  border-right: 1px solid rgba(26,52,112,.08);
}

.lead-value-panel .lead-kicker {
  background: rgba(33,86,212,.08);
  border: 0;
  color: #2156d4;
}

.lead-value-panel h3 {
  color: #0d2050;
}

.lead-value-panel p {
  color: #53637d;
}

.lead-preview-list span {
  background: #f8faff;
  border: 1px solid rgba(26,52,112,.08);
  color: #0d2050;
}

/* Alinhamento dos cards de valor da tela inicial */
.hero-proof-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-proof-card strong {
  width: 100%;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-proof-card p {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .hero-proof-card strong {
    white-space: normal;
  }
}

/* Refinamento do modal de liberacao do raio-x */
.lead-modal {
  padding: 24px;
  background: rgba(13,32,80,.50);
}

body.lead-modal-open {
  overflow: hidden;
}

.lead-dialog.lead-dialog-premium {
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  grid-template-columns: minmax(310px, .88fr) minmax(390px, 1fr);
  background: #fff;
  border: 1px solid rgba(26,52,112,.10);
  box-shadow: 0 34px 90px rgba(13,32,80,.22);
  overflow-x: hidden;
  overflow-y: auto;
}

.lead-value-panel {
  padding: 42px;
  justify-content: center;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(33,86,212,.045), rgba(33,86,212,0)),
    #f8faff;
}

.lead-value-panel .lead-kicker {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-value-panel h3 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.03;
}

.lead-value-panel p {
  max-width: 430px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.lead-preview-list {
  width: 100%;
  margin-top: 8px;
  gap: 10px;
}

.lead-preview-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
}

.lead-preview-list span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5a820;
  flex: 0 0 auto;
}

.lead-form-premium {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.lead-form-head {
  margin-bottom: 4px;
}

.lead-form-head span {
  letter-spacing: 0;
}

.lead-form-head strong {
  font-size: 31px;
}

.lead-field {
  gap: 8px;
}

.lead-field input {
  min-height: 56px;
  border-radius: 16px;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  color: #53637d;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.lead-consent input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: #2156d4;
  cursor: pointer;
}

.lead-consent span {
  display: inline-block;
}

.lead-submit {
  margin-top: 4px;
  min-height: 58px;
  border-radius: 16px;
}

.lead-privacy-note {
  margin-top: 2px;
}

@media (max-width: 860px) {
  .lead-modal {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .lead-dialog.lead-dialog-premium {
    width: 100%;
    max-height: none;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .lead-value-panel {
    padding: 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(26,52,112,.08);
  }

  .lead-value-panel h3 {
    max-width: none;
    font-size: 30px;
  }

  .lead-value-panel p {
    max-width: none;
    font-size: 14px;
  }

  .lead-preview-list {
    grid-template-columns: 1fr;
  }

  .lead-form-premium {
    padding: 26px;
  }

  .lead-form-head strong {
    font-size: 25px;
  }
}

@media (min-width: 861px) {
  .lead-modal {
    padding: calc(24px * var(--lead-modal-scale, 1));
  }

  .lead-dialog.lead-dialog-premium {
    zoom: var(--lead-modal-scale, 1);
  }
}

@media (min-width: 861px) and (max-height: 840px) {
  .lead-dialog.lead-dialog-premium {
    max-height: calc(100vh - 18px);
    overflow-y: visible;
  }

  .lead-value-panel,
  .lead-form-premium {
    padding: 26px 34px;
  }

  .lead-value-panel {
    gap: 12px;
  }

  .lead-value-panel h3 {
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1.02;
  }

  .lead-value-panel p {
    font-size: 13px;
    line-height: 1.45;
  }

  .lead-preview-list {
    margin-top: 2px;
    gap: 7px;
  }

  .lead-preview-list span {
    min-height: 38px;
    padding: 8px 12px;
  }

  .lead-form-premium {
    gap: 9px;
  }

  .lead-form-head {
    margin-bottom: 0;
  }

  .lead-form-head strong {
    font-size: 26px;
  }

  .lead-field input {
    min-height: 43px;
    border-radius: 14px;
    font-size: 15px;
    padding: 9px 14px;
  }

  .lead-field {
    gap: 5px;
  }

  .lead-field label {
    font-size: 10px;
  }

  .lead-submit {
    min-height: 46px;
    border-radius: 14px;
  }

  .lead-consent {
    font-size: 11px;
    gap: 8px;
    margin-top: 0;
  }

  .lead-privacy-note {
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (min-width: 861px) and (max-height: 660px) {
  .lead-dialog.lead-dialog-premium {
    max-height: calc(100vh - 18px);
    overflow-y: auto;
  }
}

@media (min-width: 861px) {
  .lead-dialog.lead-dialog-premium {
    max-height: none;
    overflow: hidden;
  }

  .lead-value-panel,
  .lead-form-premium {
    padding: 42px;
  }

  .lead-value-panel {
    gap: 22px;
  }

  .lead-value-panel h3 {
    font-size: 46px;
    line-height: 1.03;
  }

  .lead-value-panel p {
    font-size: 15px;
    line-height: 1.7;
  }

  .lead-preview-list {
    margin-top: 8px;
    gap: 10px;
  }

  .lead-preview-list span {
    min-height: 48px;
    padding: 12px 14px;
  }

  .lead-form-premium {
    gap: 16px;
  }

  .lead-form-head {
    margin-bottom: 4px;
  }

  .lead-form-head strong {
    font-size: 31px;
  }

  .lead-field {
    gap: 8px;
  }

  .lead-field label {
    font-size: 11px;
  }

  .lead-field input {
    min-height: 56px;
    border-radius: 16px;
    font-size: 16px;
    padding: 12px 14px;
  }

  .lead-submit {
    min-height: 58px;
    border-radius: 16px;
  }

  .lead-consent {
    font-size: 12px;
    gap: 10px;
    margin-top: 2px;
  }

  .lead-privacy-note {
    font-size: 11px;
    line-height: 1.55;
  }
}

@media (max-width: 430px) {
  .lead-value-panel,
  .lead-form-premium {
    padding: 22px;
  }

  .lead-value-panel h3 {
    font-size: 27px;
  }

  .lead-preview-list span {
    min-height: 44px;
  }
}

/* Hero do resultado em linguagem minimalista */
.premium-hero-copy {
  background:
    linear-gradient(180deg, rgba(33,86,212,.04), rgba(33,86,212,0)),
    #fff;
  color: #0d2050;
  border: 1px solid rgba(26,52,112,.08);
  box-shadow: 0 18px 50px rgba(13,32,80,.08);
}

.premium-hero-copy .premium-eyebrow {
  background: rgba(33,86,212,.08);
  border: 0;
  color: #2156d4;
}

.premium-hero-copy h1 {
  max-width: 620px;
  color: #0d2050;
  font-size: 46px;
  line-height: 1.04;
}

.premium-hero-copy p {
  max-width: 540px;
  color: #53637d;
  font-size: 16px;
}

.premium-actions .hero-action.secondary {
  background: #f8faff;
  border-color: rgba(26,52,112,.10);
  color: #0d2050;
}

.premium-actions .hero-action.secondary:hover {
  color: #2156d4;
  border-color: rgba(33,86,212,.24);
}

@media (max-width: 760px) {
  .premium-hero-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .upload-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 24px;
  }

  .upload-checklist span {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  .upload-checklist {
    grid-template-columns: 1fr;
  }
}

/* Mantem a primeira dobra com presenca de desktop em viewports amplos. */
@media (min-width: 1081px) {
  header {
    height: calc(62px * var(--desktop-scale, 1));
    padding: 0 calc(36px * var(--desktop-scale, 1));
  }

  .header-left {
    min-width: calc(220px * var(--desktop-scale, 1));
  }

  .header-left,
  .header-right {
    gap: calc(12px * var(--desktop-scale, 1));
  }

  .header-tag {
    font-size: calc(11px * var(--desktop-scale, 1));
    padding: calc(4px * var(--desktop-scale, 1)) calc(12px * var(--desktop-scale, 1));
    border-radius: calc(20px * var(--desktop-scale, 1));
  }

  .btn-cta,
  .header-pdf-btn {
    border-radius: calc(9px * var(--desktop-scale, 1));
    font-size: calc(13px * var(--desktop-scale, 1));
  }

  .btn-cta {
    padding: calc(9px * var(--desktop-scale, 1)) calc(20px * var(--desktop-scale, 1));
    gap: calc(6px * var(--desktop-scale, 1));
  }

  .header-pdf-btn {
    padding: calc(9px * var(--desktop-scale, 1)) calc(16px * var(--desktop-scale, 1));
  }

  .btn-cta svg {
    width: calc(13px * var(--desktop-scale, 1));
    height: calc(13px * var(--desktop-scale, 1));
  }

  .header-pdf-btn svg {
    width: calc(16px * var(--desktop-scale, 1));
    height: calc(16px * var(--desktop-scale, 1));
  }

  #upload-screen {
    min-height: calc(100vh - (62px * var(--desktop-scale, 1)));
    align-items: flex-start;
    padding-top: calc(38px * var(--upload-scale, 1));
    padding-bottom: calc(42px * var(--upload-scale, 1));
    overflow-x: hidden;
  }

  .upload-wrap {
    min-height: 760px;
    zoom: var(--upload-scale, 1);
  }

  .upload-checklist {
    gap: 12px 14px;
    margin-top: 28px;
  }

  .upload-checklist span {
    min-height: 36px;
    padding: 10px 16px;
    border-color: rgba(26,52,112,.12);
    box-shadow: 0 10px 24px rgba(13,32,80,.06);
    font-size: 13px;
    line-height: 1.15;
  }

  .upload-checklist span::before {
    width: 7px;
    height: 7px;
  }
}

/* Tipografia ToodoPay */
:root {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mobile-ui: "SF Pro Text", "SF Compact Text", -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  --type-title-xl: clamp(36px, 4vw, 56px);
  --type-title-lg: clamp(32px, 3.2vw, 46px);
  --type-title-md: clamp(26px, 2.4vw, 34px);
  --type-subtitle-lg: clamp(20px, 1.8vw, 28px);
  --type-subtitle-md: clamp(18px, 1.4vw, 22px);
  --type-body: 15px;
  --type-body-sm: 13px;
  --type-caption: 11px;
  --lh-title: 1.08;
  --lh-subtitle: 1.25;
  --lh-body: 1.65;
  --weight-light: 300;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-sans);
}

body {
  font-size: var(--type-body);
  font-weight: var(--weight-light);
  line-height: var(--lh-body);
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  color: inherit;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

p,
small,
span,
label,
li,
td,
th,
select,
input {
  letter-spacing: 0;
}

button,
.btn-cta,
.pdf-export-btn,
.hero-action,
.sim-submit,
.lead-submit,
.btn-clear,
.class-cta-btn,
.pdf-export-action,
.pb,
.cta-pag-btn {
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

.upload-hero h1,
.premium-hero h1,
.premium-hero-copy h1 {
  font-size: var(--type-title-xl);
  line-height: var(--lh-title);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-wrap: balance;
}

.lead-value-panel h3,
.closing-cta h3,
.executive-hero-copy h3,
.section-heading h2,
.premium-score .score-header-text h3,
.diagnosis-header h3 {
  font-size: var(--type-title-lg);
  line-height: var(--lh-title);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  text-wrap: balance;
}

.upload-card-head h2,
.lead-form-head strong,
.toolbar-title h2,
.diagnosis-card h4,
.recommendation-panel-head h4,
.chart-head h3,
.table-head h3,
.score-header-text h3,
.executive-mini-title {
  font-size: var(--type-subtitle-lg);
  line-height: var(--lh-subtitle);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.upload-hero p,
.premium-hero-copy p,
.section-heading p,
.closing-cta p,
.lead-value-panel p,
.upload-card-head p,
.toolbar-title p,
.executive-hero-copy p {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: var(--lh-body);
  font-weight: var(--weight-light);
}

.premium-eyebrow,
.score-seal,
.metric-label,
.gap-card span,
.scenario-strip span,
.hero-kicker,
.upload-card-kicker,
.executive-eyebrow,
.executive-mini-label,
.closing-kicker,
.diag-label,
.diagnosis-kicker,
.lead-value-panel .lead-kicker,
.lead-form-head span,
.sim-field label,
.lead-field label,
.fg label,
thead th,
.score-insights-title,
.class-cta-badge {
  font-size: var(--type-caption);
  line-height: 1.25;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-proof-card strong,
.recommendation-footer-copy strong,
.class-benefit-text strong,
.diagnosis-card h4,
.solution-flow strong {
  font-weight: var(--weight-semibold);
}

.upload-checklist span,
.hero-proof-card p,
.premium-metric small,
.gap-card p,
.solution-flow p,
.recommendation-footer-copy span,
.chart-head p,
.class-benefit-text span,
.class-cta-subtitle,
.lead-privacy-note,
.lead-consent,
.sim-trust-note,
.table-card td,
.pag-info,
.insight-text {
  font-weight: var(--weight-light);
  line-height: 1.6;
}

.sim-field input,
.lead-field input,
.search-box,
.filter-bar select {
  font-size: 15px;
  line-height: 1.35;
  font-weight: var(--weight-medium);
}

.sim-field input::placeholder,
.lead-field input::placeholder,
.search-box::placeholder {
  font-weight: var(--weight-light);
}

.premium-metric strong,
.premium-metric.metric-featured strong,
.gap-card strong,
.scenario-strip strong,
.score-number,
.score-num,
.class-cta-valor-num,
.ib-value,
.kpi-val,
.eco-val {
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.premium-metric strong {
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.04;
}

.premium-metric.metric-featured strong,
.score-number,
.score-num {
  font-size: clamp(42px, 4vw, 56px);
}

.gap-card strong {
  font-size: clamp(30px, 2.8vw, 42px);
}

.scenario-strip strong {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
}

.hero-action,
.sim-submit,
.lead-submit,
.btn-cta,
.pdf-export-btn,
.class-cta-btn {
  min-height: 46px;
  font-size: 14px;
  line-height: 1.2;
}

.header-tag,
.btn-clear,
.pdf-export-action,
.badge,
.pb,
.cta-pag-info,
.lead-preview-list span,
.closing-points span,
.executive-badges span {
  font-weight: var(--weight-medium);
}

.mockup,
.app-mockup,
.iphone-mockup,
.phone-mockup,
.whatsapp-mockup,
.mobile-ui,
[data-mobile-ui] {
  font-family: var(--font-mobile-ui);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 1080px) {
  .upload-hero h1,
  .premium-hero h1,
  .premium-hero-copy h1 {
    font-size: clamp(36px, 7vw, 48px);
  }

  .lead-value-panel h3,
  .closing-cta h3,
  .section-heading h2,
  .premium-score .score-header-text h3 {
    font-size: clamp(28px, 5vw, 38px);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  header {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(26,52,112,.08);
    box-shadow: 0 1px 10px rgba(26,52,112,.07);
  }

  .header-left {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .header-right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .header-tag {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f7faff);
    border: 1px solid rgba(33,86,212,.14);
    color: #17326f;
    box-shadow: 0 8px 18px rgba(13,32,80,.06);
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .header-tag::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: #2156d4;
    box-shadow: 0 0 0 4px rgba(33,86,212,.12);
  }

  .btn-cta.show {
    min-height: 34px;
    height: 34px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 11px;
    border-radius: 10px;
    background: #fff;
    color: #17326f;
    border: 1px solid rgba(26,52,112,.12);
    box-shadow: 0 8px 18px rgba(13,32,80,.06);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .btn-cta.show svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    padding: 3px;
    border-radius: 999px;
    background: #edf3ff;
    color: #2156d4;
    box-sizing: content-box;
  }

  .eco-micro-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    max-width: 100%;
  }

  .eco-micro-pill {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 34px;
    padding: 0 11px 0 27px;
    font-size: 11px;
    white-space: nowrap;
  }

  .premium-metrics .premium-metric {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .premium-metrics .premium-metric > * {
    max-width: 100%;
  }

  .premium-metrics .premium-metric small {
    text-align: center;
  }

  .premium-metrics .eco-micro-grid,
  .premium-metrics .score-mini strong {
    justify-content: center;
  }

  .section-block > .section-heading {
    align-items: center;
    text-align: center;
  }

  .section-block > .section-heading h2,
  .section-block > .section-heading p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .premium-hero-copy {
    align-items: center;
    text-align: center;
  }

  .premium-hero-copy .premium-eyebrow,
  .premium-hero-copy h1,
  .premium-hero-copy p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

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

  .diagnosis-card .diag-label,
  .diagnosis-card h4,
  .diagnosis-card p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

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

  .gap-card > span,
  .gap-card > strong,
  .gap-card > p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .solution-flow article {
    align-items: center;
    text-align: center;
  }

  .solution-flow article > span,
  .solution-flow article > strong,
  .solution-flow article > p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .recommendation-panel-head,
  .recommendation-panel-head > div {
    align-items: center;
    text-align: center;
  }

  .recommendation-panel-head .diagnosis-kicker,
  .recommendation-panel-head h4 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

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

  .recommendation-card .recommendation-step,
  .recommendation-card h5,
  .recommendation-card p,
  .recommendation-card strong {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .chart-head,
  .score-header-text,
  .table-head {
    align-items: center;
    text-align: center;
  }

  .chart-head h3,
  .chart-head p,
  .score-header-text .score-seal,
  .score-header-text h3,
  .score-header-text p,
  .table-head h3 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .closing-cta,
  .closing-cta-copy,
  .closing-points {
    align-items: center;
    text-align: center;
  }

  .closing-kicker,
  .closing-cta h3,
  .closing-cta p,
  .closing-points span {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .upload-hero {
    align-items: center;
    text-align: center;
  }

  .upload-hero h1,
  .upload-hero p,
  .upload-card-kicker {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .upload-checklist {
    justify-items: center;
    justify-content: center;
  }

  .upload-checklist span {
    justify-content: center;
    text-align: center;
  }

  .hero-proof-card {
    align-items: center;
    text-align: center;
  }

  .hero-proof-card strong,
  .hero-proof-card p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .lead-value-panel h3 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .lead-value-panel .lead-kicker,
  .lead-value-panel p,
  .lead-form-head,
  .lead-form-head > span,
  .lead-form-head strong {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .lead-form-head {
    align-items: center;
  }

  .lead-privacy-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .upload-hero h1,
  .premium-hero h1,
  .premium-hero-copy h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .upload-hero p,
  .premium-hero-copy p,
  .section-heading p,
  .closing-cta p,
  .lead-value-panel p,
  .upload-card-head p {
    font-size: 15px;
    line-height: 1.6;
  }

  .upload-card-head h2,
  .lead-form-head strong,
  .chart-head h3,
  .table-head h3 {
    font-size: 22px;
  }

  .lead-value-panel h3,
  .section-heading h2,
  .premium-score .score-header-text h3,
  .closing-cta h3 {
    font-size: 30px;
    line-height: 1.12;
  }

  .premium-metric strong,
  .premium-metric.metric-featured strong,
  .gap-card strong {
    font-size: 34px;
  }

  .score-number,
  .score-num {
    font-size: 46px;
  }

  .hero-action,
  .sim-submit,
  .lead-submit,
  .btn-cta,
  .pdf-export-btn,
  .class-cta-btn {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .upload-hero h1,
  .premium-hero h1,
  .premium-hero-copy h1 {
    font-size: 34px;
  }

  .lead-value-panel h3,
  .section-heading h2,
  .premium-score .score-header-text h3,
  .closing-cta h3 {
    font-size: 28px;
  }

  .premium-eyebrow,
  .score-seal,
  .metric-label,
  .gap-card span,
  .scenario-strip span,
  .hero-kicker,
  .upload-card-kicker,
  .lead-value-panel .lead-kicker,
  .lead-form-head span,
  .sim-field label,
  .lead-field label,
  .fg label {
    font-size: 10px;
  }
}

.lead-form-head strong .lead-title-nowrap {
  display: block;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-transform: none;
  white-space: nowrap;
}

/* Tela inicial desktop conforme referencia visual */
@media (min-width: 900px) {
  header {
    height: 62px;
    padding: 0 36px;
  }

  #upload-screen {
    align-items: center;
    min-height: calc(100vh - 62px);
    padding: 38px 24px 34px;
  }

  .upload-wrap {
    width: min(1460px, calc(100vw - 48px));
    max-width: 1460px;
    min-height: min(760px, calc(100vh - 136px));
    grid-template-columns: minmax(0, 1.45fr) minmax(390px, .95fr);
    gap: 28px;
    padding: 22px;
    zoom: 1;
  }

  .upload-hero {
    padding: clamp(34px, 3.2vw, 56px);
    justify-content: center;
  }

  .upload-hero h1 {
    max-width: 760px;
    margin: 0 0 34px;
    font-size: clamp(46px, 3.25vw, 56px);
    line-height: 1.1;
  }

  .upload-hero p {
    max-width: 680px;
    margin: 0;
    font-size: clamp(15px, .95vw, 17px);
    line-height: 1.58;
    font-weight: var(--weight-light);
  }

  .upload-checklist {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 14px;
    margin-top: clamp(40px, 5vh, 66px);
  }

  .upload-checklist span {
    width: auto;
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(42px, 6vh, 72px);
  }

  .hero-proof-card {
    min-height: 174px;
    padding: 22px 20px;
  }

  .hero-proof-card strong {
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.2;
  }

  .hero-proof-card p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.58;
  }

  .upload-card {
    align-self: stretch;
    justify-content: center;
    padding: clamp(28px, 2.6vw, 42px);
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  #upload-screen {
    padding: 24px 16px 30px;
  }

  .upload-wrap {
    width: calc(100vw - 32px);
    min-height: auto;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
    gap: 18px;
    padding: 16px;
  }

  .upload-hero {
    padding: 30px;
  }

  .upload-hero h1 {
    max-width: 620px;
    margin-bottom: 24px;
    font-size: clamp(38px, 4.1vw, 46px);
    line-height: 1.08;
  }

  .upload-hero p {
    max-width: 590px;
    font-size: 15px;
    line-height: 1.55;
  }

  .upload-checklist {
    gap: 10px;
    margin-top: 34px;
  }

  .upload-checklist span {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero-proof-grid {
    gap: 10px;
    margin-top: 34px;
  }

  .hero-proof-card {
    min-height: 156px;
    padding: 18px 16px;
  }

  .hero-proof-card strong {
    font-size: 13px;
  }

  .hero-proof-card p {
    font-size: 12px;
    line-height: 1.52;
  }

  .upload-card {
    padding: 26px;
  }
}

/* Header de resultados */
@media (min-width: 901px) {
  header {
    min-height: 62px;
    height: 62px;
    padding: 0 36px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(26,52,112,.07);
    box-shadow: 0 1px 8px rgba(26,52,112,.07);
  }

  .header-left,
  .header-right {
    gap: 12px;
  }

  .header-left {
    min-width: 0;
  }

  .header-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f7faff);
    border: 1px solid rgba(33,86,212,.14);
    color: #17326f;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 8px 18px rgba(13,32,80,.06);
  }

  .header-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: #2156d4;
    box-shadow: 0 0 0 4px rgba(33,86,212,.12);
  }

  .btn-cta.show,
  .header-pdf-btn,
  .header-pdf-btn.is-visible {
    min-height: 38px;
    height: 38px;
    padding: 0 15px;
    border-radius: 9px;
    gap: 8px;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(13,32,80,.08);
  }

  .btn-cta.show {
    background: #fff;
    color: #17326f;
    border: 1px solid rgba(26,52,112,.12);
    box-shadow: 0 8px 18px rgba(13,32,80,.06);
  }

  .header-pdf-btn,
  .header-pdf-btn.is-visible {
    background: #17326f;
    color: #fff;
    border: 1px solid rgba(13,32,80,.08);
  }

  .btn-cta.show:hover,
  .header-pdf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13,32,80,.11);
  }

  .btn-cta.show:hover {
    background: #f7faff;
    border-color: rgba(33,86,212,.20);
    color: #2156d4;
  }

  .header-pdf-btn:hover {
    background: #112a61;
  }

  .btn-cta svg,
  .header-pdf-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
    flex: 0 0 auto;
  }

  .btn-cta.show svg {
    width: 15px;
    height: 15px;
    padding: 3px;
    border-radius: 999px;
    background: #edf3ff;
    color: #2156d4;
    box-sizing: content-box;
  }
}

/* Ajuste visual do card de horas devolvidas */
@media (min-width: 761px) {
  .premium-metric:has(#eco-horas),
  .premium-metric:has(#k-taxa) {
    min-height: 236px;
    padding: 28px;
  }

  .premium-metric:has(#eco-horas) {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
  }

  .premium-metric:has(#k-taxa) {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }

  #eco-horas-label {
    max-width: 100%;
    line-height: 1.35;
    margin-bottom: 0;
  }

  #eco-horas {
    width: 100%;
    align-self: center;
    justify-self: stretch;
    margin: 0;
    text-align: left;
  }

  #k-taxa {
    width: 100%;
    margin-top: 28px;
    text-align: left;
  }

  #k-taxa-s {
    align-self: end;
    margin-top: 0;
	margin-bottom: 18px;
  }

  #eco-horas-s {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.55;
    justify-self: stretch;
  }

  .premium-metric.is-reimbursement-copy #eco-horas-s {
    display: block;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  #eco-horas-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 0;
    padding-top: 0;
  }

  #eco-horas-highlights .eco-micro-pill {
    min-height: 38px;
    padding: 0 13px 0 28px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
  }
}

/* Titulos de secoes devem aproveitar a largura do card no desktop */
@media (min-width: 761px) {
  .section-block > .section-heading {
    width: 100%;
    max-width: none;
  }

  .section-block > .section-heading h2 {
    max-width: 1180px;
    text-wrap: normal;
  }

  .section-block > .section-heading p {
    max-width: 900px;
  }
}

.gap-card strong .metric-unit {
  display: inline-block;
  margin-top: 0;
  margin-left: 8px;
  font-size: clamp(12px, .95vw, 16px);
  line-height: 1;
  font-weight: 600;
  vertical-align: baseline;
}

.gap-card strong.metric-value-long,
.gap-card strong.metric-value-xlong,
.gap-card strong.metric-value-xxlong {
  white-space: nowrap;
}

.gap-card strong.metric-value-long {
  font-size: clamp(28px, 2.5vw, 38px);
}

.gap-card strong.metric-value-xlong {
  font-size: clamp(25px, 2.2vw, 33px);
}

.gap-card strong.metric-value-xxlong {
  font-size: clamp(22px, 1.9vw, 28px);
}

@media (min-width: 761px) {
  .gap-grid .gap-card:nth-child(2) > span {
    white-space: nowrap;
    font-size: clamp(9px, .78vw, 11px);
  }

  .gap-card.is-reimbursement-money-card > strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
  }

  .gap-card.is-denied-money-card > strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-long {
    font-size: clamp(26px, 2.2vw, 36px);
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-xlong {
    font-size: clamp(23px, 1.95vw, 31px);
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-xxlong {
    font-size: clamp(20px, 1.68vw, 27px);
  }

  .gap-card.is-reimbursement-money-card > p {
    max-width: 100%;
  }

  .gap-card.is-denied-money-card > p {
    max-width: 100%;
  }

  .gap-card > strong,
  .gap-card > strong.metric-value-long,
  .gap-card > strong.metric-value-xlong,
  .gap-card > strong.metric-value-xxlong {
    font-size: clamp(30px, 2.6vw, 42px);
    line-height: 1.05;
    font-weight: 700;
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-long {
    font-size: clamp(24px, 2vw, 32px);
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-xlong {
    font-size: clamp(21px, 1.75vw, 28px);
  }

  .gap-card.is-reimbursement-money-card > strong.metric-value-xxlong {
    font-size: clamp(18px, 1.48vw, 24px);
  }

  .gap-card.is-denied-money-card > strong.metric-value-long {
    font-size: clamp(24px, 2vw, 32px);
  }

  .gap-card.is-denied-money-card > strong.metric-value-xlong {
    font-size: clamp(21px, 1.75vw, 28px);
  }

  .gap-card.is-denied-money-card > strong.metric-value-xxlong {
    font-size: clamp(18px, 1.48vw, 24px);
  }

  .gap-card > strong .metric-unit {
    font-size: clamp(12px, .95vw, 16px);
    font-weight: 600;
  }

}

/* Nuvens do diagnostico distribuidas pela largura do card */
.diagnosis-pill-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 20px;
}

.diagnosis-pill {
  justify-content: center;
  min-height: 46px;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 18px;
}

@media (max-width: 760px) {
  .diagnosis-pill-row {
    grid-template-columns: 1fr;
  }
}

/* CTA final mais alinhado ao visual premium claro */
.closing-cta {
  position: relative;
  overflow: hidden;
  align-items: center;
  flex-wrap: nowrap;
  gap: 34px;
  background: #fff;
  border: 1px solid rgba(26, 52, 112, .12);
  border-radius: 24px;
  padding: 32px 34px;
  box-shadow: 0 16px 38px rgba(13, 32, 80, .06);
}

.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0 34px auto 34px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: #2156d4;
  opacity: .88;
}

.closing-cta-copy {
  position: relative;
  max-width: 760px;
  padding-left: 0;
}

.closing-kicker {
  padding: 0;
  background: transparent;
  border: 0;
  color: #2156d4;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  margin-bottom: 14px;
}

.closing-cta h3 {
  max-width: 720px;
  color: var(--navy-dark);
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 10px;
}

.closing-cta p {
  max-width: 700px;
  color: #5f6f88;
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.7;
  font-weight: 300;
}

.closing-points {
  gap: 8px;
  margin-top: 20px;
}

.closing-points span {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafd;
  border: 1px solid rgba(26, 52, 112, .08);
  color: #1a3470;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}

.closing-cta-actions {
  position: relative;
  justify-content: center;
  min-width: 230px;
  gap: 10px;
  padding-left: 28px;
  border-left: 1px solid rgba(26, 52, 112, .08);
}

.closing-cta .hero-action {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

.closing-cta .hero-action.primary {
  background: var(--navy-dark);
  box-shadow: 0 12px 26px rgba(13, 32, 80, .14);
}

.closing-cta .hero-action.secondary {
  background: #f8fafd;
  border: 1px solid rgba(26, 52, 112, .10);
  color: #1a3470;
  box-shadow: none;
}

@media (max-width: 900px) {
  .closing-cta {
    flex-wrap: wrap;
    padding: 24px;
  }

  .closing-cta::before {
    inset: 0 24px auto 24px;
  }

  .closing-cta-actions {
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* PDF permanece implementado, mas sem botao visivel na interface */
[data-pdf-export-trigger] {
  display: none !important;
}
