/* Roboto — mesmas URLs que serasa.com.br usa (fonts.gstatic.com) */
@font-face {
  font-family: "Roboto";
  src: local("Roboto"), url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "Roboto";
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5vAx05IsDqlA.ttf') format('truetype');
  font-display: swap;
  font-weight: 300;
}
@font-face {
  font-family: "Roboto";
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9vAx05IsDqlA.ttf') format('truetype');
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: "Roboto";
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlvAx05IsDqlA.ttf') format('truetype');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtvAx05IsDqlA.ttf') format('truetype');
  font-display: swap;
  font-weight: 900;
}

/* ── Serasa tokens — extraídos de serasa.com.br ── */
:root {
  --brand:       #E80070;
  --brand-dark:  rgb(200,24,105);
  --brand-light: rgb(231,66,142);
  --black:       rgb(0,8,38);
  --text:        rgba(0,8,38,.80);
  --text-mid:    rgba(0,8,38,.66);
  --text-low:    rgba(0,8,38,.44);
  --bg:          rgb(245,247,249);
  --surface:     #fff;
  --border:      rgba(0,8,38,.08);
  --lightgray:   rgb(236,236,236);
  --silver:      rgb(216,216,216);
  --green:       #1D7A3F;
  --red-alert:   rgb(248,24,77);
  --radius:      0.625rem;
  --radius-pill: 1.5rem;
  --shadow:      0 1px 4px 0 rgba(91,98,122,.20);
  --shadow-card: 0 2px 12px rgba(0,8,38,.08);
  --transition:  0.25s ease;
  /* safe area para notch iOS */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* evita zoom em inputs no iOS */
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, button, select { font-family: inherit; }

/* remove tap highlight em mobile */
* { -webkit-tap-highlight-color: transparent; }

/* espaço no fim da página para o sticky CTA não cobrir conteúdo */
body { padding-bottom: 5.5rem; }

/* ══════════════════════════════════
   HEADER MOBILE
══════════════════════════════════ */
.header {
  background: var(--brand);
  height: 3.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-logo {
  height: 1.75rem;
  display: flex; align-items: center;
  cursor: pointer;
}
.header-logo img { height: 28px; }
.logo-wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.btn-header-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 2.25rem;
}
.btn-header-solid {
  background: #fff;
  border: none;
  color: var(--brand);
  border-radius: var(--radius-pill);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 2.25rem;
}

/* ══════════════════════════════════
   LOADING
══════════════════════════════════ */
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,.93);
  z-index: 999;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
}
.loading-overlay.active { display: flex; }
.spinner {
  width: 2.75rem; height: 2.75rem;
  border: 3px solid var(--lightgray);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { font-size: 0.9375rem; font-weight: 500; color: var(--text-mid); }

/* ══════════════════════════════════
   HERO — SMS LANDING (mobile-first)
══════════════════════════════════ */
.hero {
  background: var(--brand);
  padding: 2.5rem 1.25rem 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* pessoa — centralizada, toca o card abaixo */
.hero-person-img {
  display: block;
  width: auto;
  max-width: 280px;
  height: 220px;
  margin: 1.75rem auto 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem 0.75rem 0 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.hero p.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: .88;
  line-height: 1.55;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat strong { display: block; font-size: 1.375rem; font-weight: 900; }
.hero-stat span   { font-size: 0.75rem; opacity: .8; }

/* card flutuante — encosta direto na imagem do hero */
.hero-card-float {
  margin: 0 0.75rem 0;
  background: var(--surface);
  border-radius: 0 0 var(--radius-sm, 0.75rem) var(--radius-sm, 0.75rem);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}
.hero-card-float h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hero-card-float p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════
   FORMULÁRIO (mobile)
══════════════════════════════════ */
.input-group { margin-bottom: 1rem; }
.input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.375rem;
}
.input-group input {
  width: 100%;
  padding: 0.9375rem 1rem;
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius);
  font-size: 1.0625rem;   /* >16px evita zoom no iOS */
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
  /* altura mínima de toque */
  min-height: 3.25rem;
}
.input-group input:focus { border-color: var(--brand); }
.input-group input.has-error { border-color: var(--red-alert); }
.input-error {
  display: none;
  font-size: 0.75rem;
  color: var(--red-alert);
  font-weight: 500;
  margin-top: 0.25rem;
}
.api-error {
  display: none;
  background: rgba(248,24,77,.06);
  border: 1px solid rgba(248,24,77,.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--red-alert);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════
   BOTÃO PRIMÁRIO MOBILE
   — grande, fácil de tocar
══════════════════════════════════ */
.btn-brand {
  display: block;
  width: 100%;
  padding: 1.0625rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  min-height: 3.25rem;
  transition: background var(--transition), transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-brand:active { transform: scale(.98); background: var(--brand-dark); }
.btn-brand:disabled { background: var(--silver); cursor: not-allowed; }

/* botão fixo no fundo (bottom sticky) */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.875rem 1.25rem;
  padding-bottom: calc(0.875rem + var(--safe-bottom));
  background: var(--surface);
  box-shadow: 0 -2px 12px rgba(0,8,38,.10);
  z-index: 100;
}
.sticky-cta .btn-brand { border-radius: var(--radius-pill); }
.sticky-cta p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-low);
  margin-top: 0.5rem;
}

/* ══════════════════════════════════
   STEPS (landing)
══════════════════════════════════ */
.steps-section {
  padding: 2rem 1.25rem;
  background: var(--surface);
}
.steps-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-row:last-child { margin-bottom: 0; }
.step-num-sm {
  width: 2.25rem; height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-text strong { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-text p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.5; }

/* ══════════════════════════════════
   FEATURES
══════════════════════════════════ */
.features-section { padding: 2rem 1.25rem; background: var(--bg); }
.features-section h2 { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 1.25rem; }
.feature-row {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}
.feature-icon-sm { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.feature-text strong { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.125rem; }
.feature-text p { font-size: 0.8125rem; color: var(--text-mid); line-height: 1.5; }

/* ══════════════════════════════════
   CONSULTA PAGE
══════════════════════════════════ */
.page-consulta {
  padding: 1.5rem 1.25rem 9rem; /* espaço pro sticky btn */
  min-height: calc(100dvh - 3.5rem);
}
.consulta-icon { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.page-consulta h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.375rem; }
.page-consulta .sub { font-size: 0.9375rem; color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.5; }
.disclaimer {
  font-size: 0.75rem;
  color: var(--text-low);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ══════════════════════════════════
   RESULTADO PAGE
══════════════════════════════════ */
.page-resultado {
  padding: 0 0 9rem;
  min-height: calc(100dvh - 3.5rem);
}
/* user strip — fundo brand na parte de cima */
.user-strip {
  background: var(--brand);
  color: #fff;
  padding: 1.25rem 1.25rem 3.5rem;
}
.user-strip .user-name { font-size: 1.25rem; font-weight: 700; }
.user-strip .user-cpf  { font-size: 0.875rem; opacity: .8; margin-top: 2px; }
.user-strip .user-sit  { font-size: 0.75rem; opacity: .7; margin-top: 4px; }

/* summary card flutuante */
.summary-float {
  margin: -2rem 1.25rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  overflow: hidden;
}
.sum-item {
  flex: 1;
  padding: 1rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.sum-item:last-child { border-right: none; }
.sum-item span { display: block; font-size: 0.6875rem; color: var(--text-low); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 0.25rem; }
.sum-item strong { font-size: 1.0625rem; font-weight: 700; }
.sum-item strong.brand { color: var(--brand); }
.sum-item strong.green { color: var(--green); }

/* debt cards */
.debts-list { padding: 0 1.25rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-low); margin-bottom: 0.875rem;
}
.debt-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.875rem;
  overflow: hidden;
}
.debt-card-top {
  display: flex;
  gap: 0.875rem;
  padding: 1rem;
  align-items: center;
}
.debt-logo {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.debt-meta { flex: 1; min-width: 0; }
.debt-meta strong { display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.2; }
.debt-meta .type   { font-size: 0.8125rem; color: var(--text-mid); margin-top: 1px; }
.debt-tags { display: flex; gap: 0.375rem; margin-top: 0.5rem; flex-wrap: wrap; }
.tag {
  font-size: 0.6875rem; font-weight: 700;
  padding: 2px 0.5rem; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .03em;
}
.tag-neg   { background: rgba(248,24,77,.09); color: rgb(200,0,40); }
.tag-offer { background: rgba(29,122,63,.09); color: var(--green); }
.debt-card-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  gap: 0.75rem;
}
.debt-prices { flex: 1; }
.debt-prices .orig { font-size: 0.8125rem; color: var(--text-low); text-decoration: line-through; }
.debt-prices .desc { font-size: 1.25rem; font-weight: 700; color: var(--brand); line-height: 1; }
.debt-prices .eco  {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  background: rgba(29,122,63,.09); color: var(--green);
  padding: 2px 0.5rem; border-radius: var(--radius-pill); margin-top: 3px;
}
.btn-neg {
  background: var(--brand);
  color: #fff; border: none;
  border-radius: var(--radius-pill);
  padding: 0.6875rem 1.25rem;
  font-size: 0.9375rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  min-height: 2.75rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-neg:active { background: var(--brand-dark); }

.no-debts {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 1.5rem;
  margin: 0 1.25rem;
}
.no-debts .icon { font-size: 3rem; margin-bottom: 0.875rem; }
.no-debts h3 { font-size: 1.25rem; font-weight: 700; color: var(--green); margin-bottom: 0.375rem; }
.no-debts p { font-size: 0.9375rem; color: var(--text-mid); }

/* ══════════════════════════════════
   NEGOCIACAO PAGE
══════════════════════════════════ */
.page-negociacao {
  padding: 1.25rem 1.25rem 9rem;
  min-height: calc(100dvh - 3.5rem);
}
.page-negociacao h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.25rem; }
.credor-label { font-size: 0.9375rem; color: var(--text-mid); margin-bottom: 1.5rem; }

.oferta-box {
  background: var(--brand);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}
.oferta-sub   { font-size: 0.875rem; opacity: .85; }
.oferta-valor { font-size: 2.5rem; font-weight: 900; letter-spacing: -.02em; margin: 0.375rem 0; }
.oferta-eco   {
  display: inline-block; background: rgba(255,255,255,.2);
  border-radius: var(--radius-pill); padding: 0.25rem 0.875rem;
  font-size: 0.875rem; font-weight: 700;
}

.opcoes-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.875rem; }
.opcao-card {
  border: 1.5px solid var(--lightgray);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.625rem;
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer;
  min-height: 3rem;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.opcao-card:active, .opcao-card.selected {
  border-color: var(--brand);
  background: rgba(232,0,112,.04);
}
.opcao-icon  { font-size: 1.375rem; flex-shrink: 0; }
.opcao-info  { flex: 1; }
.opcao-info strong { display: block; font-size: 0.9375rem; font-weight: 700; }
.opcao-info span   { font-size: 0.8125rem; color: var(--text-mid); }
.opcao-price { font-size: 1.0625rem; font-weight: 700; color: var(--brand); flex-shrink: 0; }

.placeholder-aviso {
  background: rgba(255,179,0,.07);
  border: 1.5px dashed rgba(255,179,0,.45);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8125rem; color: #7A5200; font-weight: 500;
  text-align: center; margin: 1.25rem 0;
}
.placeholder-aviso strong { display: block; margin-bottom: 0.25rem; font-weight: 700; }

/* ══════════════════════════════════
   FOOTER mínimo
══════════════════════════════════ */
.footer-mini {
  background: var(--black);
  color: rgba(255,255,255,.35);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* ══════════════════════════════════
   DESKTOP overrides (>768px)
══════════════════════════════════ */
@media (min-width: 768px) {
  .hero { padding: 4rem 2rem 6rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-card-float { max-width: 480px; margin: -3rem auto 0; }
  .page-consulta,
  .page-negociacao { max-width: 480px; margin: 0 auto; }
  .summary-float { max-width: 680px; margin: -2rem auto 1.5rem; }
  .debts-list { max-width: 680px; margin: 0 auto; }
  .user-strip { text-align: center; padding-bottom: 4rem; }
  .sticky-cta { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: var(--radius) var(--radius) 0 0; }
  .no-debts { max-width: 480px; margin: 0 auto; }
}
