  :root {
    --azul-900: #042C53;
    --azul-800: #0C447C;
    --azul-700: #185FA5;
    --azul-600: #2272C3;
    --azul-500: #378ADD;
    --azul-400: #6aaee8;
    --azul-100: #B5D4F4;
    --azul-50:  #E6F1FB;
    --verde-600: #1a7a3c;
    --verde-100: #d4f5e0;
    --laranja: #d4a64a;
    --bg: #F7F9FC;
    --branco: #ffffff;
    --text: #0d1b2a;
    --text-muted: #4a5568;
    --border: #dde5ef;
    --shadow-sm: 0 2px 8px rgba(4,44,83,0.08);
    --shadow-md: 0 8px 32px rgba(4,44,83,0.13);
    --shadow-lg: 0 24px 64px rgba(4,44,83,0.18);
    --radius: 14px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1,h2,h3,h4 {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    line-height: 1.2;
  }

  /* ===== HEADER ===== */
  header {
    background: var(--azul-900);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .logo-img {
    width: 140px;
    max-width: 40vw;
    height: auto;
    display: block;
  }

  .header-badge {
    position: relative;              /* base p/ o brilho */
    overflow: hidden;                /* recorta o brilho dentro do botão */
    background: linear-gradient(135deg, #1f9248 0%, #15692f 100%); /* verde do CTA */
    border: 1px solid rgba(255,255,255,0.20);
    color: #ffffff;                  /* branco sobre verde = ótimo contraste */
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 12px 22px;              /* alvo de toque maior p/ mobile */
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(21,105,47,0.45); /* destaca no header marinho */
    transition: transform .18s ease, box-shadow .18s ease;
  }

  /* faixa de luz que cruza o botão de tempos em tempos */
  .header-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg,
      transparent 0%,
      rgba(255,255,255,0.50) 50%,
      transparent 100%);
    transform: skewX(-18deg);
    animation: headerSheen 4.5s ease-in-out infinite;
    pointer-events: none;
  }

  /* leve elevação ao passar o mouse / tocar */
  .header-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(21,105,47,0.6);
  }

  @keyframes headerSheen {
    0%   { left: -60%; }
    55%  { left: 120%; }
    100% { left: 120%; }            /* pausa antes de repetir */
  }

  /* respeita quem configurou menos animação no aparelho (acessibilidade) */
  @media (prefers-reduced-motion: reduce) {
    .header-badge::after { animation: none; }
  }

  /* ===== HERO ===== */
  .hero {
    background:
      linear-gradient(to right, rgba(235,245,255,0.72) 0%, rgba(255,255,255,0.55) 50%, rgba(235,245,255,0.72) 100%),
      url('/images/wallpaper2.png') center center / cover no-repeat;
    padding: 64px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  /* Remove glows — não combinam com fundo claro */
  .hero::before,
  .hero::after { display: none; }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10,47,94,0.10);
    border: 1px solid rgba(10,47,94,0.20);
    color: var(--azul-900);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 800;
    color: var(--azul-900);
    margin-bottom: 12px;
    letter-spacing: -1px;
  }

  .hero h1 .destaque {
    color: var(--azul-600);
    display: block;
  }

  .hero-valor {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: clamp(40px, 9vw, 72px);
    font-weight: 800;
    color: #15803d;
    letter-spacing: -2px;
    line-height: 1;
    margin: 16px 0;
    text-shadow: 0 2px 12px rgba(21,128,61,0.18);
  }

  .hero-sub {
    font-size: clamp(15px, 2.5vw, 18px);
    color: rgba(10,47,94,0.70);
    max-width: 560px;
    margin: 0 auto 32px;
  }

  .hero-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
  }

  .hero-check {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(10,47,94,0.07);
    border: 1px solid rgba(10,47,94,0.15);
    color: var(--azul-900);
    font-size: 13px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 99px;
  }

  .hero-check svg { width: 16px; height: 16px; flex-shrink: 0; }

  .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--azul-600);
    color: white;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(34,114,195,0.45);
    transition: all .2s ease;
    letter-spacing: -0.2px;
  }

  .btn-cta:hover {
    background: var(--azul-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34,114,195,0.55);
  }

  .btn-cta:active { transform: scale(0.98); }

  .btn-cta svg { width: 20px; height: 20px; }

  .hero-disclaimer {
    margin-top: 14px;
    color: rgba(10,47,94,0.50);
    font-size: 12px;
  }


  .form-title-beneficio {
    font-size: clamp(22px, 3.4vw, 32px);
  }

  .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--azul-100);
    color: var(--azul-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 99px;
    margin-bottom: 18px;
  }

  .badge-pill svg {
    width: 16px;
    height: 16px;
    color: var(--azul-700);
  }

  .valor-inline-verde {
    color: #16a34a;
    font-weight: 800;
  }

  .valor-gradiente-verde {
    display: block;
    margin-top: 8px;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 45%, #86efac 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(34,197,94,0.28);
  }

  .btn-cta-beneficio-verde {
    background: #16a34a;
    box-shadow: 0 10px 34px rgba(22,163,74,0.50);
  }

  .btn-cta-beneficio-verde:hover {
    background: #15803d;
    box-shadow: 0 14px 44px rgba(22,163,74,0.62);
  }

  /* ===== STATS ===== */
  .stats-bar {
    background: var(--branco);
    padding: 48px 24px;
  }

  .stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .stat-item {
    background: var(--bg);
    text-align: center;
    padding: 28px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: var(--azul-50);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--azul-700);
  }

  .stat-num {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--azul-700);
    display: block;
  }

  .stat-divider {
    width: 28px;
    height: 3px;
    background: var(--laranja);
    border-radius: 2px;
    margin: 10px auto 12px;
  }

  .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  /* ===== SECTIONS ===== */
  section { padding: 64px 24px; }

  .section-inner {
    max-width: 860px;
    margin: 0 auto;
  }

  .section-tag {
    display: inline-block;
    background: var(--azul-50);
    color: var(--azul-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
  }

  .section-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: var(--azul-900);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }

  .section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 540px;
  }

  /* ===== DIREITO ===== */

  .direito-card {
    background: var(--bg);
    border: 1.5px solid var(--azul-100);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color .2s, box-shadow .2s;
  }

  .direito-card:hover {
    border-color: var(--azul-400);
    box-shadow: var(--shadow-sm);
  }

  .direito-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--azul-900);
    margin-bottom: 4px;
  }

  .direito-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ===== COMO FUNCIONA ===== */
  #funciona { background: var(--bg); text-align: center; }
  #funciona { --dourado: #d4a64a; }
  #funciona .section-inner { max-width: 1100px; }
  #funciona .section-tag { background: var(--azul-50); color: var(--dourado); }
  #funciona .section-title { color: var(--azul-900); }
  #funciona .section-sub { color: var(--text-muted); margin: 0 auto; }

  .steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 48px;
    position: relative;
  }

  .step-card {
    background: var(--branco);
    border: 1px solid var(--azul-100);
    border-radius: var(--radius);
    padding: 32px 22px;
    position: relative;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
  }

  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
  }

  .step-arrow svg {
    width: 22px;
    height: 22px;
    color: var(--dourado);
  }

  .step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--azul-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .step-icon svg {
    width: 26px;
    height: 26px;
    color: var(--azul-700);
  }

  .step-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--azul-900);
    margin-bottom: 8px;
  }

  .step-card h4 .step-n {
    color: var(--dourado);
  }

  .step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  @media (max-width: 900px) {
    .steps-grid { flex-direction: column; gap: 16px; }
    .step-arrow { display: none; }
  }

  /* ===== FORMULÁRIO ===== */
  #form-section { background: var(--branco); }

  .form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  .form-header {
    background: white;
    padding: 28px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .form-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
  }

  .form-header p {
    font-size: 14px;
    color: var(--text-muted);
  }

  .form-header-question {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }

  .form-header-text {
    flex: 1;
    min-width: 0;
  }

  .form-header .form-header-back {
    color: var(--text-muted);
    margin-top: 1px;
    align-self: flex-start;
  }

  .form-header .form-header-back:hover {
    background: var(--azul-50);
    color: var(--azul-700);
  }

  .form-header .form-header-back svg {
    width: 22px;
    height: 22px;
  }

  .form-body .form-step > .form-step-title,
  .form-body .form-step > .form-step-sub,
  .form-body .form-title-row,
  .form-body .form-title-row + .form-step-sub {
    display: none;
  }

  .progress-bar {
    height: 4px;
    background: var(--bg);
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: #16a34a;
    border-radius: 99px;
    transition: width 0.5s ease;
  }

  .form-body { padding: 32px; }

  .form-step { display: none; }
  .form-step.active { display: block; }

  .form-step-title {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--azul-900);
    margin-bottom: 6px;
  }

  .form-step-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .field-group { margin-bottom: 18px; }

  .field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--azul-800);
    margin-bottom: 7px;
  }

  .field-group input,
  .field-group select {
    width: 100%;
    padding: 15px 18px;
    border: 1.8px solid var(--border);
    border-radius: 14px;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
  }

  .field-group input:focus,
  .field-group select:focus {
    border-color: var(--azul-600);
    box-shadow: 0 0 0 4px rgba(34,114,195,0.15);
    background: white;
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .option-btn {
    min-height: 68px;
    padding: 18px 16px;
    border: 1.8px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(4,44,83,0.05);
  }

  .option-emoji {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
  }

  .option-btn:hover {
    border-color: var(--azul-600);
    background: var(--azul-50);
    color: var(--azul-800);
  }

  .option-btn.selected {
    border-color: var(--azul-600);
    background: var(--azul-50);
    color: var(--azul-800);
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(34,114,195,0.15);
    transform: translateY(-1px);
  }

  .btn-next {
    width: 100%;
    padding: 16px 16px 16px 28px;
    background: var(--azul-600);
    color: white;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    margin-top: 8px;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(34,114,195,0.35);
  }

  .btn-next:hover {
    background: var(--azul-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(34,114,195,0.45);
  }

  .btn-next-icon {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .btn-next-icon svg { width: 16px; height: 16px; color: var(--azul-600); }

  .btn-back {
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin: 0;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    flex-shrink: 0;
  }

  .btn-back:hover {
    background: var(--azul-50);
    color: var(--azul-700);
  }

  .btn-back svg { width: 20px; height: 20px; }


  .form-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 6px;
  }

  .form-title-row .form-step-title {
    margin-bottom: 0;
  }

  .form-title-row .btn-back {
    margin: 0;
  }

  .form-footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .form-footer-note svg { width: 14px; height: 14px; }

  .form-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    color: #9a3412;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 10px 0 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 8px 24px rgba(154,52,18,0.10);
    animation: alertPop .22s ease;
  }

  .form-alert-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fb923c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .form-alert strong {
    display: block;
    color: #7c2d12;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 13px;
    margin-bottom: 1px;
  }

  .field-error {
    border-color: #dc2626 !important;
    background: #fff7f7 !important;
  }

  @keyframes alertPop {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }


  /* ===== TELA WHATSAPP SIMULADA (OVERLAY FULLSCREEN) ===== */
  /* ── WPP SCREEN — container raiz ───────────────────────────── */
  #wpp-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
  }
  #wpp-screen.active { display: flex; flex-direction: column; }

  /* ════════════════════════════════════════════════════════════
     MOBILE — visual app WhatsApp (fundo claro, header verde)
     ════════════════════════════════════════════════════════════ */
  .wpp-sidebar { display: none; }

  .wpp-chat-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Fundo característico do app mobile */
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b2a99a' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  /* ════════════════════════════════════════════════════════════
     DESKTOP — visual WhatsApp Web (fundo escuro, header escuro)
     Tela cheia, sem sidebar, sem bordas
     ════════════════════════════════════════════════════════════ */
  @media (min-width: 768px) {
    .wpp-chat-col {
      /* Papel de parede do WhatsApp Web: bege claro com padrão geométrico */
      background-color: #efeae2;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8b89a' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    /* Header do WhatsApp Web: verde-azulado escuro */
    .wpp-header {
      background: #202c33 !important;
    }

    /* Bolhas do bot no desktop: fundo branco puro (igual WhatsApp Web) */
    .wpp-bubble {
      background: #ffffff;
      color: #111827;
      max-width: 55%;
    }
    .wpp-bubble::before {
      border-color: transparent #ffffff transparent transparent;
    }

    /* Bolhas do usuário no desktop: verde WhatsApp Web */
    .wpp-bubble-user {
      background: #d9fdd3;
      color: #111827;
      max-width: 55%;
    }

    /* Audio bubble no desktop */
    .wpp-audio-bubble { max-width: 55%; }

    /* Corpo com padding lateral maior */
    .wpp-body { padding: 12px 8% 16px; }

    /* Botões e cards do fluxo: largura limitada no desktop
       (no mobile continuam esticando — align-self: stretch).
       Antes ficavam largos demais por causa do stretch. */
    .wpp-confirm-btns,
    .wpp-upload-wrap,
    .wpp-contrato-card,
    .wpp-input-wrap {
      align-self: flex-start;   /* alinha à esquerda, como as bolhas */
      width: 55%;               /* mesma largura das bolhas do bot */
      max-width: 420px;         /* teto absoluto em telas grandes */
    }
  }

  .wpp-header {
    background: #075e54;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .wpp-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #128c7e;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-weight: 800; font-size: 15px; color: white;
    flex-shrink: 0;
    overflow: hidden;
  }
  .wpp-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .wpp-contact-info { flex: 1; min-width: 0; }
  .wpp-contact-name {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 15px; font-weight: 700; color: white;
    line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .wpp-contact-status {
    font-size: 12px; color: rgba(255,255,255,0.75);
  }

  .wpp-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  /* Largura do body controlada pelo .wpp-chat-col — não precisa de max-width aqui */

  .wpp-bubble {
    max-width: 82%;
    align-self: flex-start;
    background: white;
    border-radius: 0 10px 10px 10px;
    padding: 10px 12px 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #111;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .wpp-bubble::before {
    content: '';
    position: absolute;
    top: 0; left: -8px;
    border-width: 0 8px 8px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
  }
  .wpp-bubble.visible { opacity: 1; transform: translateY(0); }
  .wpp-bubble .wpp-time {
    position: absolute;
    bottom: 5px; right: 8px;
    font-size: 10px; color: #999;
  }

  /* ===== PLAYER DE ÁUDIO INTERATIVO ===== */
  .wpp-audio-bubble {
    max-width: 82%;
    align-self: flex-start;
    background: white;
    border-radius: 0 10px 10px 10px;
    padding: 8px 10px 26px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 240px;
  }
  .wpp-audio-bubble::before {
    content: '';
    position: absolute;
    top: 0; left: -8px;
    border-width: 0 8px 8px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
  }
  .wpp-audio-bubble.visible { opacity: 1; transform: translateY(0); }
  .wpp-audio-bubble .wpp-time {
    position: absolute;
    bottom: 5px; right: 8px;
    font-size: 10px; color: #999;
  }

  .wpp-play-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #075e54;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
  }
  .wpp-play-btn:active { background: #054d45; }
  .wpp-play-btn svg { width: 18px; height: 18px; fill: white; }

  .wpp-audio-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .wpp-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    cursor: pointer;
  }
  .wpp-waveform-bar {
    width: 3px;
    border-radius: 2px;
    background: #d0d0d0;
    flex-shrink: 0;
    transition: background .15s;
  }
  .wpp-waveform-bar.played { background: #075e54; }

  .wpp-audio-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .wpp-audio-timer {
    font-size: 11px;
    color: #999;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    min-width: 32px;
  }

  /* Botão de velocidade */
  .wpp-speed-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    color: #555;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.4;
  }
  .wpp-speed-btn:active,
  .wpp-speed-btn.active { background: #075e54; color: white; }

  /* Botão de repetir */
  .wpp-replay-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #aaa;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s;
  }
  .wpp-replay-btn:active,
  .wpp-replay-btn:hover { color: #075e54; }
  .wpp-replay-btn svg { width: 13px; height: 13px; fill: currentColor; }

  .wpp-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: white;
    border-radius: 0 10px 10px 10px;
    max-width: 70px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    align-self: flex-start;
    position: relative;
  }
  .wpp-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #aaa;
    animation: wppDot 1.4s infinite ease-in-out;
  }
  .wpp-typing span:nth-child(2) { animation-delay: .2s; }
  .wpp-typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes wppDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
  }

  /* #wpp-form-final removido — substituído pelo chat de triagem */

  /* ===== ELEMENTOS DE TRIAGEM ===== */

  /* Bolha do usuário (direita, verde) */
  .wpp-bubble-user {
    align-self: flex-end !important;
    background: #dcf8c6 !important;
    border-radius: 10px 0 10px 10px !important;
  }
  .wpp-bubble-user::before { display: none !important; }

  /* Input de texto do chat */
  .wpp-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 24px;
    padding: 8px 8px 8px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    align-self: stretch;
    margin: 4px 0;
  }
  .wpp-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #111;
    background: transparent;
    min-width: 0;
  }
  .wpp-input-field::placeholder { color: #aaa; }
  .wpp-input-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
  }
  .wpp-input-send:active { background: #128c7e; }
  .wpp-input-send svg { width: 18px; height: 18px; }

  /* Upload de arquivo */
  .wpp-upload-wrap {
    background: white;
    border-radius: 12px;
    padding: 14px 14px 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    align-self: stretch;
    margin: 4px 0;
  }
  .wpp-upload-label {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin: 0 0 10px;
  }
  .wpp-upload-btns {
    display: flex;
    gap: 8px;
    flex-direction: column;
  }
  .wpp-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;                  /* mesma altura do botão de contrato */
    border-radius: 10px;            /* mesmo arredondamento */
    background: #075e54;            /* verde-escuro padrão (igual ao contrato) */
    color: white;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background .15s;
    text-align: center;
  }
  .wpp-upload-btn svg { width: 18px; height: 18px; }
  .wpp-upload-btn:active { background: #054d45; }
  .wpp-upload-btn.secondary {
    background: white;
    color: #075e54;                 /* contorno verde-escuro */
    border: 2px solid #075e54;
  }
  .wpp-upload-btn.secondary:active { background: #f0f7f5; }
  .wpp-preview { margin-top: 10px; text-align: center; }

  /* Botões de confirmação de CEP */
  .wpp-confirm-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    margin: 4px 0;
  }
  .wpp-confirm-btn {
    display: flex;                      /* centraliza texto/ícone como no botão de contrato */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;                      /* mesma altura do botão de contrato */
    border-radius: 10px;                /* mesmo arredondamento */
    border: none;
    cursor: pointer;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s;
  }
  /* "Sim" = botão principal, idêntico ao de assinar contrato */
  .wpp-confirm-btn.sim { background: #075e54; color: white; }
  .wpp-confirm-btn.sim:active { background: #054d45; }
  /* "Não" = variante secundária: mesma forma, contorno verde */
  .wpp-confirm-btn.nao {
    background: white;
    color: #075e54;
    border: 2px solid #075e54;
  }
  .wpp-confirm-btn.nao:active { background: #f0f7f5; }

  /* Card de contrato */
  .wpp-contrato-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    align-self: stretch;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .wpp-contrato-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .wpp-contrato-icon svg {
    width: 26px;
    height: 26px;
    stroke: #075e54;
  }
  .wpp-contrato-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .wpp-contrato-info strong {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0d1b2a;
  }
  .wpp-contrato-info span {
    font-size: 12.5px;
    color: #888;
  }
  .wpp-contrato-badges {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 6px;
  }
  .wpp-contrato-badge {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .wpp-contrato-badge .badge-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .wpp-contrato-badge .badge-icon svg {
    width: 13px;
    height: 13px;
    stroke: #0f8a5f;
  }
  .wpp-contrato-badge strong {
    font-size: 11px;
    font-weight: 700;
    color: #222;
  }
  .wpp-contrato-badge span {
    font-size: 9.5px;
    color: #999;
    line-height: 1.2;
  }
  .wpp-contrato-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 13px;
    background: #075e54;
    color: white;
    border-radius: 10px;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
  }
  .wpp-contrato-btn svg { width: 16px; height: 16px; stroke: white; }
  .wpp-contrato-btn:active { background: #054d45; }
  .wpp-contrato-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10.5px;
    color: #999;
  }
  .wpp-contrato-footer svg { width: 11px; height: 11px; stroke: #999; }
  .wpp-contrato-aguardo {
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    padding: 8px;
    border-radius: 8px;
    background: #f9f9f9;
  }
  .wpp-spin { animation: wppSpin 2s linear infinite; display: inline-block; }
  @keyframes wppSpin {
    0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; }
  }

  /* Loading de salvamento */
  .wpp-loading-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    align-self: stretch;
    font-size: 13px;
    color: #555;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  }
  .wpp-loading-spinner {
    width: 20px; height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #25d366;
    border-radius: 50%;
    flex-shrink: 0;
    animation: wppRotate 0.8s linear infinite;
  }
  @keyframes wppRotate {
    to { transform: rotate(360deg); }
  }

  /* ===== RESULTADO DO FORM ===== */
  .result-screen { display: none; padding: 40px 32px; text-align: center; }
  .result-screen.active { display: block; }

  .result-icon {
    width: 72px;
    height: 72px;
    background: var(--verde-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }

  .result-icon svg { width: 36px; height: 36px; stroke: var(--verde-600); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

  .result-screen h3 {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--azul-900);
    margin-bottom: 10px;
  }

  .result-screen p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto 28px;
  }

  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37,211,102,0.35);
    transition: all .2s;
  }

  .btn-whatsapp:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  }

  .btn-whatsapp svg { width: 22px; height: 22px; fill: white; }

  /* ===== DEPOIMENTOS ===== */
  #depoimentos { background: var(--bg); }

  .depo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
  }

  .depo-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
  }

  .depo-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .depo-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
  }

  .depo-author {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .depo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--azul-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--azul-700);
    flex-shrink: 0;
  }

  .depo-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--azul-900);
  }

  .depo-city {
    font-size: 12px;
    color: var(--text-muted);
  }

  .depo-valor {
    display: inline-block;
    background: var(--verde-100);
    color: var(--verde-600);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    margin-top: 4px;
  }

  /* ===== FAQ ===== */
  #faq { background: white; }

  .faq-cards {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .faq-card {
    background: #fff9fd;
    border: 1.5px solid #fce7f3;
    border-radius: 18px;
    padding: 34px 40px;
    text-align: left;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .faq-card:nth-child(2) {
    background: #fbf8ff;
    border-color: #ede9fe;
  }

  .faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
  }

  .faq-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .faq-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ec4899;
  }

  .faq-card:nth-child(2) .faq-card-icon {
    color: #8b5cf6;
  }

  .faq-card-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .faq-card h4 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: #06122d;
    margin-bottom: 0;
    letter-spacing: -0.35px;
  }

  .faq-card p {
    font-size: clamp(16px, 2.1vw, 20px);
    color: #334155;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .faq-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .faq-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #fce7f3;
    color: #db2777;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 20px;
    border-radius: 9px;
    text-decoration: none;
    transition: all .2s;
  }

  .faq-card:nth-child(2) .faq-card-btn {
    background: #f3e8ff;
    color: #7c3aed;
  }

  .faq-card-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  }

  .faq-card-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ===== CTA FINAL ===== */
  #cta-final {
    background: linear-gradient(135deg, var(--azul-800) 0%, var(--azul-900) 100%);
    padding: 80px 24px;
    text-align: center;
  }

  #cta-final h2 {
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
  }

  #cta-final p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 36px;
  }

  /* ===== FOOTER ===== */
  footer {
    background: #ffffff;
    padding: 44px 24px 28px;
    color: #506174;
    border-top: 1px solid #eef2f7;
  }

  .footer-inner {
    max-width: 1140px;
    margin: 0 auto;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid #dde5ef;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--azul-900);
    letter-spacing: -0.4px;
  }

  .footer-logo span { color: var(--azul-500); }

  .footer-brand p,
  .footer-copy {
    font-size: 13px;
    color: #506174;
    line-height: 1.7;
  }

  .footer-title {
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--azul-900);
    margin-bottom: 14px;
  }

  .footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #506174;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
  }

  .footer-link:hover { color: var(--azul-700); }

  .footer-link svg,
  .footer-social a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #506174;
    text-decoration: none;
    transition: color .2s, transform .2s;
  }

  .footer-social a:hover {
    color: var(--azul-700);
    transform: translateY(-1px);
  }

  .footer-copy {
    text-align: center;
    padding-top: 24px;
  }

  /* ===== WHATSAPP FLUTUANTE ===== */
  .wpp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    text-align: left;
  }

  .wpp-float-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--text);
    border-radius: 14px;
    padding: 13px 16px;
    box-shadow: 0 8px 28px rgba(4,44,83,0.14);
    border: 1px solid rgba(221,229,239,0.85);
  }

  .wpp-float-mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6fff0;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }

  .wpp-float-title {
    display: block;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    line-height: 1.15;
    white-space: nowrap;
  }

  .wpp-float-sub {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
  }

  .wpp-float-circle {
    position: relative;
    width: 72px;
    height: 72px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,0.48);
    transition: transform .2s;
    flex-shrink: 0;
  }

  .wpp-float:hover .wpp-float-circle { transform: scale(1.06); }
  .wpp-float svg { width: 38px; height: 38px; fill: white; }

  .wpp-float-badge {
    position: absolute;
    top: -8px;
    right: -5px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid #fff;
  }

  /* ===== RESPONSIVO ===== */
  @media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-item { padding: 20px 12px; }
    .stat-num { font-size: 18px; }
    .options-grid { gap: 12px; }
    .option-btn { min-height: 72px; font-size: 16px; padding: 18px 15px; }
    .option-emoji { font-size: 50px; margin-bottom: 9px; }
    .form-body { padding: 24px 20px; }
    .form-header { padding: 22px 20px; }
    .wpp-float { right: 14px; bottom: 16px; gap: 8px; }
    .wpp-float-message { padding: 11px 13px; max-width: calc(100vw - 104px); }
    .wpp-float-mini-icon { width: 32px; height: 32px; font-size: 18px; }
    .wpp-float-title { font-size: 14px; white-space: normal; }
    .wpp-float-sub { font-size: 12px; white-space: normal; }
    .wpp-float-circle { width: 64px; height: 64px; }
    .wpp-float svg { width: 34px; height: 34px; }
    header { padding: 12px 16px; }
    .hero {
      padding: 48px 20px 64px;
      background-position: left center;
      background-size: auto 100%;
    }
    .faq-cards { grid-template-columns: 1fr; gap: 14px; }
    .faq-card { padding: 20px; }
    .faq-card-btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-list { align-items: center; }
    .footer-social { justify-content: center; }
  }
/* ===== MINIATURA DE EXEMPLO NO CHAT ===== */
.wpp-exemplo {
  padding: 6px;                /* moldura fina ao redor da imagem */
  display: flex;
  flex-direction: column;      /* imagem em cima, legenda embaixo */
  gap: 6px;
}
.wpp-exemplo img {
  width: 200px;                /* tamanho da miniatura */
  max-width: 100%;             /* nunca estoura no celular */
  height: auto;                /* mantém proporção */
  border-radius: 10px;
  display: block;
  pointer-events: none;        /* NAO clicavel */
  user-select: none;
}
.wpp-exemplo-cap {
  font-size: 12px;
  color: #667781;              /* cinza discreto, padrao WhatsApp */
  padding: 0 2px;
}


/* Acessibilidade — etapa 13 */
.option-btn:focus-visible,
.btn-next:focus-visible,
.btn-back:focus-visible,
.btn-cta:focus-visible,
.wpp-float:focus-visible,
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.btn-back {
  min-width: 44px;
  min-height: 44px;
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Etapa 15: retomada de atendimentos salvos */
body.retomada-aberta { overflow: hidden; }
.retomada-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.62);
}
.retomada-painel {
  position: relative;
  width: min(100%, 520px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 20px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.retomada-painel h2 { margin: 0 36px 8px 0; font-size: 1.35rem; }
.retomada-painel > p { margin: 0 0 18px; }
.retomada-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.retomada-lista { display: grid; gap: 12px; }
.retomada-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
}
.retomada-info { display: grid; gap: 4px; }
.retomada-info span { font-size: 0.9rem; color: #5f6b7a; }
.retomada-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.retomada-continuar,
.retomada-excluir,
.retomada-nova {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.retomada-continuar { border: 0; background: #176b3a; color: #fff; }
.retomada-excluir { border: 1px solid #b8c1cc; background: #fff; color: #263238; }
.retomada-nova { width: 100%; margin-top: 16px; border: 1px solid #176b3a; background: #fff; color: #176b3a; }
.retomada-painel button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 480px) {
  .retomada-overlay { align-items: flex-end; padding: 0; }
  .retomada-painel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .retomada-acoes > button { flex: 1 1 130px; }
}


/* Performance: adia a renderização de conteúdo fora da primeira tela. */
#depoimentos,
#faq,
#cta-final,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Reserva o espaço da marca antes do carregamento da imagem. */
.logo-img {
  aspect-ratio: 420 / 146;
  height: auto;
}

/* Verificação manual da assinatura */
.wpp-polling-texto {
  flex: 1 1 180px;
}

.wpp-verificar-assinatura {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  padding: 10px 14px;
  font: 700 12px/1.2 'DM Sans', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}

.wpp-verificar-assinatura:hover {
  transform: translateY(-1px);
}

.wpp-verificar-assinatura:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

@media (max-width: 520px) {
  #wpp-polling-status {
    flex-wrap: wrap;
  }

  .wpp-verificar-assinatura {
    width: 100%;
  }
}

/* ===== PADRONIZAÇÃO RESPONSIVA DO CHAT ===== */
.wpp-body > *,
.wpp-input-wrap,
.wpp-upload-wrap,
.wpp-confirm-btns,
.wpp-contrato-card,
#wpp-revisao-card,
#wpp-polling-status {
  min-width: 0;
  max-width: 100%;
}

.wpp-bubble,
.wpp-audio-bubble,
.wpp-contrato-info,
.wpp-revisao-linha,
.wpp-revisao-linha span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#wpp-revisao-card {
  width: 100%;
  align-self: stretch;
  overflow: hidden;
}

.wpp-revisao-acoes {
  width: 100%;
}

.wpp-revisao-btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.wpp-upload-btn,
.wpp-confirm-btn,
.wpp-contrato-btn,
.wpp-verificar-assinatura,
.wpp-input-send {
  touch-action: manipulation;
}

@media (max-width: 767px) {
  .wpp-header {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .wpp-body {
    width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .wpp-bubble,
  .wpp-audio-bubble {
    max-width: 90%;
  }

  .wpp-audio-bubble {
    min-width: 0;
    width: min(100%, 340px);
  }

  .wpp-input-wrap,
  .wpp-upload-wrap,
  .wpp-confirm-btns,
  .wpp-contrato-card,
  #wpp-revisao-card,
  #wpp-polling-status {
    width: 100%;
    align-self: stretch;
  }

  #wpp-revisao-card {
    padding: 16px 14px !important;
    margin: 8px 0 !important;
    border-radius: 14px !important;
  }

  #wpp-revisao-card h3 {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.15;
  }

  .wpp-revisao-aviso {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 12px !important;
  }

  .wpp-revisao-resumo {
    gap: 7px !important;
  }

  .wpp-revisao-linha {
    padding: 11px 12px !important;
    font-size: 15px;
    line-height: 1.4;
  }

  .wpp-revisao-linha strong,
  .wpp-revisao-linha span {
    display: inline;
  }

  .wpp-revisao-acoes {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .wpp-revisao-btn {
    grid-column: 1 / -1 !important;
    min-height: 48px !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
    font-size: 14px;
  }

  #wpp-revisao-edicao > div {
    width: 100%;
    padding: 10px !important;
  }

  #wpp-revisao-edicao input,
  #wpp-revisao-edicao select,
  #wpp-revisao-edicao textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .wpp-upload-btns,
  .wpp-confirm-btns {
    gap: 9px;
  }

  .wpp-upload-btn,
  .wpp-confirm-btn,
  .wpp-contrato-btn {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    white-space: normal;
    line-height: 1.25;
  }

  .wpp-contrato-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #wpp-polling-status {
    padding: 12px;
    flex-wrap: wrap;
  }

  .wpp-polling-texto,
  .wpp-verificar-assinatura {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .wpp-body {
    padding-left: 9px;
    padding-right: 9px;
  }

  #wpp-revisao-card {
    padding: 14px 11px !important;
  }

  .wpp-revisao-linha {
    font-size: 14px;
  }

  .wpp-contrato-badges {
    grid-template-columns: 1fr;
  }
}


/* Botão flutuante compacto: evita cobrir conteúdo no mobile */
.wpp-float.wpp-float-only-icon {
  gap: 0;
}
@media (max-width: 768px) {
  .wpp-float.wpp-float-only-icon {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ===== CORREÇÃO DO RESUMO NO MOBILE / SAFARI ===== */
@media (max-width: 767px) {
  .wpp-body {
    scroll-padding-top: 12px;
    scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom));
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  #wpp-revisao-card {
    scroll-margin-top: 12px;
    scroll-margin-bottom: calc(120px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
  }

  #wpp-revisao-card h3 {
    margin-top: 0 !important;
    padding-top: 2px;
  }
}

/* ===== AJUSTE DO RESUMO NO DESKTOP ===== */
@media (min-width: 768px) {
  .wpp-body {
    scroll-padding-top: 20px;
    scroll-padding-bottom: 28px;
  }

  #wpp-revisao-card {
    width: min(100%, 760px);
    max-width: 760px;
    align-self: center;
    margin: 14px auto 24px !important;
    padding: 22px !important;
    overflow: visible;
    scroll-margin-top: 20px;
    scroll-margin-bottom: 28px;
  }

  #wpp-revisao-card h3 {
    font-size: 24px !important;
    line-height: 1.2;
  }

  .wpp-revisao-aviso {
    font-size: 15px;
    line-height: 1.5;
  }

  .wpp-revisao-resumo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .wpp-revisao-linha {
    min-width: 0;
    padding: 11px 12px !important;
  }

  .wpp-revisao-linha:nth-child(4),
  .wpp-revisao-linha:nth-child(5) {
    grid-column: 1 / -1;
  }

  .wpp-revisao-acoes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .wpp-revisao-btn {
    min-height: 48px !important;
    font-size: 14px;
  }

  #wpp-revisao-edicao input,
  #wpp-revisao-edicao select,
  #wpp-revisao-edicao textarea {
    width: 100%;
    min-width: 0;
  }
}
