:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --border: rgba(15, 23, 42, .08);
  --shadow: 0 18px 45px rgba(15, 23, 42, .10);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, .08);

  --primary: #6d28d9;      /* roxo moderno */
  --primary-2: #4f46e5;    /* azul/indigo */
  --primary-dark: #4c1d95;

  --success: #0a7c2f;
  --danger: #c62828;

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;
}

* { box-sizing: border-box; font-family: "Inter", Arial, Helvetica, sans-serif; }
html, body { height: 100%; }
body {
  background: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 2vw, 18px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap; /* evita quebrar em telas pequenas */
}
.brand{ display:flex; align-items:center; gap: 12px; min-width: 220px; }
.brand-mark{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(109,40,217,.22);
  flex: 0 0 auto;
}
.brand-text{ min-width: 0; }
.brand-name{ font-weight: 800; font-size: 14px; letter-spacing: .2px; }
.brand-sub{ font-size: 12px; color: var(--muted2); margin-top: 2px; }

.topnav{
  display:flex;
  gap: 14px;
  align-items: center;
}
.topnav-link{
  text-decoration:none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.topnav-link:hover{ color: var(--text); }

/* PAGE */
.page { min-height: calc(100vh - 64px); }

/* HERO */
.hero{
  padding: clamp(18px, 2.8vw, 32px) clamp(12px, 2vw, 18px) 8px;
}
.hero-inner{
  max-width: var(--container);
  margin: 0 auto;
  border-radius: clamp(16px, 2vw, 22px);
  background: linear-gradient(135deg, rgba(109,40,217,.10), rgba(79,70,229,.10));
  border: 1px solid rgba(109,40,217,.12);
  padding: clamp(16px, 2.4vw, 28px);

  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(12px, 2vw, 18px);
  align-items: start;
}

.hero-left{ padding: 10px 10px 8px; }
.hero-title{
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw + 10px, 40px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.hero-subtitle{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(13px, 1vw + 11px, 16px);
  line-height: 1.55;
  max-width: 62ch;
}
.hero-points{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(12px, .5vw + 11px, 13px);
}

.hero-right{
  display: grid;
  justify-items: end;
}
.card-form{
  width: 100%;
  max-width: 420px; /* não estica demais no desktop */
}

/* CARD */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-form{ padding: clamp(14px, 2vw, 18px); }
.card-head{ margin-bottom: 12px; }
.card-title{ font-weight: 800; font-size: 16px; }
.card-desc{ color: var(--muted2); font-size: 13px; margin-top: 4px; }

/* FORM */
.form-grid{ display: grid; gap: 12px; }
.field{ display: grid; gap: 8px; }
.label{ font-size: 12px; color: var(--muted2); font-weight: 700; }

input{
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  outline: none;
}
input:focus{
  border-color: rgba(109,40,217,.45);
  box-shadow: 0 0 0 4px rgba(109,40,217,.12);
}

/* BUTTONS */
.btn{
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}
.btn-primary{
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 25px rgba(109,40,217,.20);
}
.btn-primary:hover{ filter: brightness(0.98); }
.btn-primary:disabled{
  opacity: .65;
  cursor: not-allowed;
}

.btn-secondary{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
}
.btn-secondary:hover{ filter: brightness(0.98); }

/* RESULTADO */
.resultado{
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(15,23,42,.14);
  background: rgba(15,23,42,.03);
  display: none;
  word-break: break-word;
}
.resultado.sucesso{
  display:block;
  border-color: rgba(10,124,47,.25);
  background: rgba(10,124,47,.06);
  color: var(--success);
  font-weight: 700;
}
.resultado.erro{
  display:block;
  border-color: rgba(198,40,40,.25);
  background: rgba(198,40,40,.06);
  color: var(--danger);
  font-weight: 700;
}

.security-hint{
  font-size: 12px;
  color: var(--muted2);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(109,40,217,.06);
  border: 1px solid rgba(109,40,217,.10);
  word-break: break-word;
}

/* CONTENT */
.content{ padding: clamp(14px, 2vw, 18px) clamp(12px, 2vw, 18px) clamp(28px, 3vw, 40px); }
.content-inner{ max-width: var(--container); margin: 0 auto; }
.content-head{ margin: 6px 0 16px; }
.content-title{ margin: 0; font-size: 18px; font-weight: 900; }
.content-subtitle{ margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* PANELS */
.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}
.panel-head{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15,23,42,.02), transparent);
  gap: 10px;
}
.panel-title{ font-weight: 900; font-size: 14px; }
.panel-chip{
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  white-space: nowrap;
}
.chip-secondary{
  background: rgba(15,23,42,.85);
}

.list{ padding: 14px; }
.section-title{
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
}

/* ITEMS */
.item{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 22px rgba(15,23,42,.06);
  margin-bottom: 12px;
  min-width: 0;
}
.item-title{
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}
.item-line{
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}
.item-line b{ color: var(--text); }

.item-value{
  margin-top: 10px;
  font-weight: 900;
  color: #b91c1c;
  font-size: 13px;
}

/* AGREEMENT BOX */
.agreement-box{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(109,40,217,.16);
  background: rgba(109,40,217,.06);
}
.agreement-box .agreement-title{
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.agreement-box .agreement-meta{
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
  word-break: break-word;
}

.linha-digitavel-box{
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  word-break: break-word;
  font-size: 13px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.btn-link{
  display:inline-block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  text-decoration:none;
  font-size: 12px;
  font-weight: 900;
  word-break: break-word;
}
.btn-link:hover{ filter: brightness(0.98); }

.empty, .loading{
  padding: 12px;
  color: var(--muted);
  background: rgba(15,23,42,.03);
  border: 1px dashed rgba(15,23,42,.10);
  border-radius: 14px;
  font-size: 13px;
  word-break: break-word;
}

/* FOOTER */
.footer{
  padding: clamp(18px, 2.2vw, 22px) clamp(12px, 2vw, 18px) clamp(22px, 3vw, 34px);
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap; /* evita overflow */
}
.footer-brand{ font-weight: 900; }
.footer-note{ color: var(--muted2); font-size: 12px; margin-top: 4px; }
.footer-right{ display:flex; gap: 12px; flex-wrap: wrap; }
.footer-link{ color: var(--muted); text-decoration:none; font-weight: 800; font-size: 12px; }
.footer-link:hover{ color: var(--text); }

/* ====== utilitário para esconder/mostrar telas ====== */
.hidden{ display: none !important; }

/* ====== cabeçalho da tela de resultados ====== */
.results-header{
  margin: 6px 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
}
.results-title{
  font-weight: 900;
  font-size: clamp(16px, 1vw + 13px, 18px);
  letter-spacing: -0.2px;
}
.results-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.badge{
  display:inline-block;
  margin-left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  vertical-align:middle;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: var(--text);
}

.badge-best{
  background: rgba(109,40,217,.10);
  border-color: rgba(109,40,217,.22);
  color: var(--primary-dark);
}

.discount-highlight{
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
}

.discount-highlight.best{
  border-color: rgba(109,40,217,.28);
  background: rgba(109,40,217,.08);
}

.discount-label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.discount-value{
  margin-top: 6px;
  font-size: clamp(18px, 1.6vw + 10px, 22px);
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--primary-dark);
}

.contract-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge-contract{
  margin-left: 0;
  white-space: nowrap;
  font-size: clamp(14px, 1.4vw + 10px, 20px);
  padding: 6px 10px;
}

.footer-left-inline{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left-inline .footer-note{
  margin-top: 0;
}

/* =========================
   RESPONSIVO (refino)
========================= */

/* Tablet */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-right{ justify-items: stretch; }
  .card-form{ max-width: 100%; }
  .grid-2{ grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px){
  .brand{ min-width: 0; }
  .brand-sub{ display: none; }

  .topnav{
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }

  .hero-left{ padding: 6px 4px 2px; }
  .hero-inner{ padding: 14px; }
  input{ padding: 12px 12px; }
  .btn{ padding: 12px 12px; }
  .panel-head{ padding: 12px 12px; }
  .list{ padding: 12px; }
}

/* Mobile pequeno */
@media (max-width: 420px){
  .topbar-inner{ gap: 10px; }
  .brand-mark{ width: 34px; height: 34px; border-radius: 11px; }
  .brand-name{ font-size: 13px; }
  .topnav-link{ font-size: 12px; }
  .item{ padding: 12px; }
}

/* Ultrawide / telas grandes */
@media (min-width: 1440px){
  .hero{ padding-top: 40px; }
  .hero-inner{ padding: 30px; }
}

/* =========================
   TRUST / SELOS DE SEGURANÇA
========================= */
.trustbox{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.75);
}

.trustbox-title{
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(15,23,42,.85);
}

.trust-seals{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-seal{
  flex: 1 1 170px;
  min-width: 170px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.85);
}

.trust-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,.08);
  color: rgba(79,70,229,.95);
}

.trust-text strong{
  display: block;
  font-size: 13px;
  line-height: 1.1;
  color: rgba(15,23,42,.9);
}

.trust-text span{
  display: block;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(71,85,105,.95);
  margin-top: 2px;
}

.trustbox-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(71,85,105,.95);
}

.trustbox-link{
  text-decoration: none;
  font-weight: 600;
}

.trustbox-link:hover{
  text-decoration: underline;
}

.trustbox-dot{
  opacity: .7;
}

@media (max-width: 420px){
  .trust-seal{
    min-width: 100%;
  }
}

.wa-widget{
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 9999;
      font-family: "Inter", Arial, Helvetica, sans-serif;
    }

    .wa-toggle{
      width: 56px;
      height: 56px;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
      box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
      background: #25D366;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .wa-toggle:hover{ filter: brightness(.98); }
    .wa-toggle:active{ transform: translateY(1px); }

    .wa-panel{
      position: absolute;
      right: 0;
      bottom: 70px;
      width: min(320px, calc(100vw - 36px));
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, .10);
      border-radius: 16px;
      box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
      overflow: hidden;
      display: none;
    }
    .wa-panel.open{ display: block; }

    .wa-panel-head{
      background: #1fa855;
      color: #fff;
      padding: 12px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .wa-title{
      font-weight: 800;
      font-size: 13px;
      letter-spacing: .2px;
      line-height: 1.1;
    }

    .wa-sub{
      font-weight: 500;
      font-size: 12px;
      opacity: .9;
      margin-top: 2px;
    }

    .wa-close{
      width: 32px;
      height: 32px;
      border: 0;
      border-radius: 10px;
      cursor: pointer;
      background: rgba(255,255,255,.18);
      color: #fff;
      font-size: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .wa-close:hover{ background: rgba(255,255,255,.25); }

    .wa-panel-body{
      padding: 12px;
      background: rgba(246, 247, 251, .65);
    }

    .wa-bubble{
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, .08);
      border-radius: 14px;
      padding: 10px 12px;
      color: rgba(15, 23, 42, .85);
      font-size: 13px;
      line-height: 1.45;
      box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
    }

    .wa-actions{
      margin-top: 10px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .wa-start{
      flex: 1 1 auto;
      text-decoration: none;
      background: #25D366;
      color: #fff;
      padding: 10px 12px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
    }
    .wa-start:hover{ filter: brightness(.98); }

    .wa-number{
      flex: 1 1 100%;
      font-size: 12px;
      color: rgba(71, 85, 105, .95);
      text-align: center;
      margin-top: 6px;
    }