/* =====================================================
   ProtegMais – style.css  v10
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #6C5CE7;
  --purple-d:  #4f3ec8;
  --purple-l:  #ede9ff;
  --purple-m:  #8b7cf8;
  --purple-bg: #f5f3ff;
  --white:     #fff;
  --text:      #1a1a2e;
  --muted:     #8e8ea0;
  --bg:        #f0f0f8;
  --border:    #e4e4f0;
  --r:         16px;
  --r-sm:      12px;
  --tr:        .18s ease;
  --max:       480px;
}

html, body { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: 'Poppins', sans-serif; }

/* ── PAGE WRAP ── */
.page-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0,0,0,.12);
  position: relative;
}

/* =====================================================
   HEADER
   ===================================================== */
.hdr {
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 10px;
}
.hdr-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg,#8b7cf8,#4f3ec8);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(108,92,231,.4);
}
.hdr-brand-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.hdr-brand { font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.4px; white-space: nowrap; }
.hdr-brand strong { color: var(--purple); font-weight: 900; }
.hdr-dot { color: var(--border); font-size: 1.1rem; user-select: none; line-height: 1; }
.hdr-partner {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.hdr-porto {
  color: #003087;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .4px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.content { padding: 12px 12px 36px; }

/* =====================================================
   BANNER
   ===================================================== */
.banner {
  background: linear-gradient(135deg,#ebe6ff 0%,#d6ccff 45%,#c0affe 100%);
  border-radius: var(--r);
  padding: 18px 14px 18px 18px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

/* Texto ocupa o espaço restante, sem crescer além do necessário */
.banner-text {
  flex: 1 1 0;
  min-width: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Título — fonte fluida, nunca maior que o container */
.banner-h1 {
  font-size: clamp(1.25rem, 5.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  word-break: break-word;
}
.banner-purple { color: var(--purple); }

.banner-sub {
  font-size: clamp(.72rem, 2.3vw, .88rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* Alerta — bloco, não inline-flex, para não vazar */
.banner-alert {
  display: block;
  background: rgba(255,255,255,.6);
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: 7px 9px;
  font-size: clamp(.58rem, 1.6vw, .68rem);
  font-weight: 500;
  color: #2a2050;
  line-height: 1.45;
  word-break: break-word;
}
.banner-alert i {
  color: #f59e0b;
  font-size: .8rem;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
.banner-alert strong { color: var(--purple-d); font-weight: 800; }

/* Lista de coberturas */
.banner-list { display: flex; flex-direction: column; gap: 5px; }
.banner-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: clamp(.6rem, 1.7vw, .72rem);
  font-weight: 500;
  color: #2a2050;
  line-height: 1.3;
  word-break: break-word;
}
.check-icon { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* Ilustração direita — largura fixa pequena no mobile */
.banner-img {
  flex: 0 0 auto;
  width: clamp(100px, 32%, 150px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.phone-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at 50% 50%,rgba(108,92,231,.55) 0%,rgba(139,124,248,.25) 45%,transparent 72%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.12)} }
.phone-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.phone-svg {
  width: 100%; max-width: 100px; height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)) drop-shadow(0 2px 6px rgba(108,92,231,.3));
  transform: rotate(4deg);
}
.shield-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-58%,-58%);
  width: clamp(44px, 46%, 66px); z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.shield-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle,rgba(108,92,231,.7) 0%,rgba(108,92,231,.2) 50%,transparent 72%);
  border-radius: 50%;
  animation: shieldPulse 2.5s ease-in-out infinite;
}
@keyframes shieldPulse { 0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.2);opacity:1} }
.shield-svg { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 4px 16px rgba(79,62,200,.8)); }

.off-badge {
  position: absolute; bottom: 4px; right: -4px;
  width: clamp(50px, 16vw, 70px); height: clamp(50px, 16vw, 70px);
  background: linear-gradient(135deg,#3d2fa0,#4f3ec8);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--white); line-height: 1.15;
  box-shadow: 0 4px 16px rgba(61,47,160,.6); z-index: 10;
  border: 2px solid rgba(255,255,255,.15);
}
.off-ate { font-size: clamp(.42rem, 1.2vw, .55rem); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.off-pct { font-size: clamp(.75rem, 2.4vw, 1rem); font-weight: 900; line-height: 1.1; }

/* =====================================================
   DEVICE CARD
   ===================================================== */
.device-card {
  background: var(--white); border-radius: var(--r);
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.device-intro {
  background: var(--purple-bg); border-radius: var(--r-sm);
  padding: 12px 13px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
/* pitch: inline, sem quebrar colunas */
.device-pitch {
  font-size: clamp(.68rem, 2vw, .78rem);
  color: #3a3060;
  line-height: 1.55;
}
.device-pitch i { color: var(--purple); font-size: .9rem; margin-right: 6px; }
.device-pitch strong { color: var(--purple-d); font-weight: 700; }

.device-simulate-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: clamp(.64rem, 1.8vw, .74rem); font-weight: 700; color: var(--purple);
  cursor: pointer; width: fit-content;
}
.device-simulate-link i { animation: bounceDown 1.6s ease-in-out infinite; }
@keyframes bounceDown { 0%,100%{transform:translateY(0)}50%{transform:translateY(3px)} }

.device-title { font-size: clamp(.92rem, 3.2vw, 1.15rem); font-weight: 800; color: var(--text); margin-bottom: 3px; }
.device-sub   { font-size: clamp(.66rem, 1.9vw, .76rem); color: var(--muted); margin-bottom: 13px; }

/* Grid 4×2 */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px; margin-bottom: 13px;
}
.brand-btn {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); padding: 10px 5px 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  transition: border-color var(--tr), background var(--tr), transform var(--tr), box-shadow var(--tr);
  font-size: clamp(.58rem, 1.7vw, .72rem); font-weight: 600; color: var(--text);
  min-height: 64px;
}
.brand-btn:hover  { border-color: var(--purple); background: var(--purple-l); color: var(--purple-d); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(108,92,231,.18); }
.brand-btn.selected { border-color: var(--purple); background: var(--purple-l); color: var(--purple-d); box-shadow: 0 0 0 3px rgba(108,92,231,.2); }

.b-logo    { width: 26px; height: 26px; }
.b-samsung { font-size: clamp(.58rem, 1.6vw, .72rem); font-weight: 900; color: #1428A0; letter-spacing: -.3px; }
.b-mi      { background: #ff6900; color: var(--white); font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.b-realme  { font-size: clamp(.68rem, 1.9vw, .82rem); font-weight: 900; color: #1a1a1a; letter-spacing: -.3px; }
.b-asus    { font-size: clamp(.62rem, 1.7vw, .78rem); font-weight: 900; color: #00ADEF; letter-spacing: .4px; }
.b-plus    { width: 26px; height: 26px; background: var(--purple-l); color: var(--purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; }

/* Botão Continuar */
.btn-continuar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(135deg,var(--purple),var(--purple-d));
  color: var(--white); border: none; border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: clamp(.88rem, 2.8vw, 1rem); font-weight: 800;
  cursor: pointer; transition: var(--tr);
  box-shadow: 0 5px 20px rgba(108,92,231,.38);
  margin-bottom: 13px; letter-spacing: .2px;
}
.btn-continuar.disabled { opacity: .45; pointer-events: none; box-shadow: none; cursor: not-allowed; }
.btn-continuar:not(.disabled):hover { background: linear-gradient(135deg,var(--purple-m),#3525b5); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(108,92,231,.5); }

.card-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  font-size: clamp(.56rem, 1.5vw, .66rem); color: var(--muted); margin-bottom: 5px;
}
.card-footer i { font-size: .64rem; color: var(--purple); }
.sep { color: var(--border); }
.card-disclaimer { font-size: clamp(.53rem, 1.3vw, .62rem); color: var(--muted); text-align: center; }

/* =====================================================
   QR CODE CARD
   ===================================================== */
.qr-card {
  margin-top: 12px;
  background: var(--white);
  border-radius: var(--r);
  padding: 22px 16px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#qrcode-box {
  width: 140px; height: 140px;
  border-radius: 12px; overflow: hidden;
  border: 3px solid var(--purple-l);
  padding: 5px; background: var(--white);
  box-shadow: 0 4px 18px rgba(108,92,231,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#qrcode-box img,
#qrcode-box canvas {
  width: 100% !important; height: 100% !important;
  display: block; border-radius: 7px;
}

.qr-info { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.qr-title {
  font-size: clamp(.82rem, 2.4vw, .95rem);
  font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.qr-title i { color: var(--purple); font-size: .95rem; }
.qr-desc {
  font-size: clamp(.66rem, 1.9vw, .76rem);
  color: var(--muted); line-height: 1.6; max-width: 260px;
}

/* =====================================================
   DESKTOP 600px+
   ===================================================== */
@media (min-width: 600px) {
  :root { --max: 820px; }
  .hdr         { padding: 16px 28px 14px; }
  .hdr-brand   { font-size: 1.5rem; }
  .hdr-partner { font-size: .82rem; }
  .content     { padding: 22px 28px 40px; }

  .banner {
    padding: 28px 28px;
    gap: 20px;
    align-items: center;
  }
  .banner-img  { width: clamp(140px, 28%, 170px); }
  .banner-h1   { font-size: clamp(1.6rem, 3.5vw, 2rem); }
  .banner-alert { font-size: clamp(.66rem, 1.4vw, .74rem); }
  .banner-list li { font-size: clamp(.68rem, 1.5vw, .8rem); }
  .check-icon  { width: 16px; height: 16px; }

  .device-card { padding: 26px 22px 20px; }
  .brand-grid  { gap: 12px; }
  .brand-btn   { min-height: 80px; padding: 13px 8px 11px; }
  .btn-continuar { padding: 17px; font-size: 1.1rem; }
  .qr-card     { padding: 26px 22px 24px; }
  #qrcode-box  { width: 160px; height: 160px; }
}
