/* vendasportal.css - Rede Ideal (UX de compra / produção) */

:root{
  --bg: #f3f7f5;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6778;
  --border: #e2e8f0;

  /* Primário (verde) */
  --primary: #0f6b3e;
  --primary-hover: #0b5a34;

  --accent: #e9f7ef;
  --accent-2: #f0faf5;
  --danger: #b91c1c;

  --shadow: 0 12px 30px rgba(2, 6, 23, .08);
  --radius: 18px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--primary); text-decoration: none; }

a:hover{ text-decoration: underline; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.header-left{ display:flex; flex-direction: column; gap: 8px; }
.header-right{ display:flex; align-items:center; gap: 14px; }

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--text);
}

.brand:hover{ text-decoration: none; }

.brand-mark{ font-weight: 900; }
.brand-mark--accent{ color: var(--primary); }

.nav{ display: flex; gap: 14px; align-items: center; }

.trust-row{ display:flex; flex-wrap:wrap; gap: 8px; }

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b3a22;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(15, 107, 62, .16);
}

.card{
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

h1{ margin: 0 0 8px 0; font-size: 36px; line-height: 1.1; }

p{ margin: 0 0 18px 0; color: var(--muted); }

.grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Grid específico para vitrine de planos/serviços (evita conflito com estilos externos) */
.plans-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Layout tipo e-commerce (cards + resumo lateral) */
.plans-layout{
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 14px;
  align-items: start;
}

.side-summary{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
}

/* Mantém o CTA sempre visível: o conteúdo do resumo rola dentro do card */
.side-summary-body{
  overflow: auto;
  padding-right: 4px;
}

.side-summary-footer{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.side-summary h3{
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 900;
  color: #0b3a22;
}

.side-summary .divider{ height: 1px; background: var(--border); margin: 12px 0; }

.side-summary .plan-name{ font-size: 18px; font-weight: 900; margin: 0; }

.side-summary .summary-bullets{ margin: 10px 0 0 0; padding-left: 18px; color: var(--muted); }
.side-summary .summary-bullets li{ margin: 8px 0; }

.side-summary .side-total{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.side-summary .side-total .amount{
  color: #8a1f3d;
  font-size: 22px;
}

/* Mini indicador de etapa (perto do resumo/total) */
.mini-step{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-2);
}

.mini-step .mini-step-left{
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: .2px;
}

.mini-step .mini-step-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(15, 107, 62, .18);
}

.side-summary .btn{ width: 100%; margin-top: 12px; }

/* Stepper */
.stepper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.stepper-item{
  display:flex;
  align-items:center;
  gap: 10px;
}

.stepper-dot{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fff;
}

.stepper-label{
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.stepper-line{
  width: 44px;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
}

.stepper-item.is-active .stepper-dot{
  background: var(--accent);
  border-color: rgba(15, 107, 62, .25);
  color: #0b3a22;
}

.stepper-item.is-active .stepper-label{ color: #0b3a22; }

.stepper-item.is-done .stepper-dot{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stepper-line.is-done{ background: rgba(15, 107, 62, .35); }

/* Mobile: escondemos o stepper do topo e usamos a etapa na barra fixa (sticky-bar) */
@media (max-width: 768px){
  .stepper{ display:none; }
}

/* Hero (Planos) */
.hero{
  border: 1px solid rgba(15, 107, 62, .16);
  background: linear-gradient(180deg, var(--accent-2), #ffffff);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.hero h1{ font-size: 34px; margin-bottom: 10px; }

.hero .bullets{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 10px; }

.bullet{
  display:flex;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 107, 62, .12);
  background: #fff;
  font-weight: 600;
  color: #0b3a22;
  font-size: 13px;
}

/* Toggle de catálogo */
.catalog-toggle{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
  background: #fff;
}

.catalog-toggle a{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}

.catalog-toggle a.is-active{
  background: var(--accent);
  color: #0b3a22;
  border: 1px solid rgba(15, 107, 62, .16);
}

.plan{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  overflow: hidden;
}

.plan.is-featured{
  border-color: rgba(15, 107, 62, .30);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .10);
}

.plan.is-selected{
  border-color: rgba(15, 107, 62, .55);
  box-shadow: 0 18px 40px rgba(2, 6, 23, .14);
}

.plan:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .08);
  border-color: #cbd5e1;
}

.plan input[type="checkbox"],
.plan input[type="radio"]{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 2;
}

.plan-media{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #f1f5f9;
}

.plan-media--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color: #64748b;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #eef2f7, #f8fafc);
}

.plan-media--placeholder span{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(100, 116, 139, .35);
  background: rgba(255,255,255,.7);
  font-size: 12px;
}

/* Placeholder quando não há imagem (mantém altura e evita layout “quebrado”) */
.plan-media.is-placeholder{
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(15,107,62,.10), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(15,107,62,.08), transparent 45%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

.plan-media.is-placeholder .ph{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,107,62,.14);
  background: rgba(255,255,255,.75);
  color: #0b3a22;
  font-weight: 800;
  font-size: 12px;
}

.plan-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-title{ font-weight: 800; margin-top: 12px; margin-bottom: 6px; letter-spacing: -.01em; }

.plan-desc{ color: var(--muted); min-height: 18px; }

.plan-bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.plan-bullets li{
  margin: 6px 0;
}

.plan-price{ margin-top: auto; padding-top: 18px; font-weight: 800; font-size: 18px; }

.plan-cta{ margin-top: 12px; }
.plan-cta .btn{ width: 100%; }
.plan.is-selected .btn-add{ filter: saturate(1.05); }

.badge{
  position:absolute;
  left: 14px;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b3a22;
  border: 1px solid rgba(15, 107, 62, .16);
}

.summary{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Barra fixa no mobile (total + continuar) */
.sticky-bar{
  margin-top: 18px;
  display:none;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* No desktop, usamos o resumo lateral; no mobile, usamos a barra fixa */
@media (min-width: 981px){
  .sticky-bar{ display: none; }
}

.sticky-bar .total{
  display:flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-bar .total small{ color: var(--muted); font-weight: 600; }
.sticky-bar .total .sticky-step{ color: var(--text); font-weight: 900; font-size: 11px; opacity: .85; letter-spacing: .2px; }
.sticky-bar .total strong{ font-size: 18px; }

.btn, button.btn{
  appearance: none;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
  will-change: transform;
}

.btn:active, button.btn:active{ transform: scale(.98); }

.btn.is-loading, button.btn.is-loading{
  opacity: .85;
  cursor: progress;
  pointer-events: none;
}

/* Loading sutil no botao (sem trocar texto) */
.btn.is-loading::after, button.btn.is-loading::after{
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  vertical-align: -3px;
  animation: vp-spin .9s linear infinite;
}

.btn:hover, button.btn:hover{ background: var(--primary-hover); }

.btn:disabled, button.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost{
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(15, 107, 62, .22);
  box-shadow: none;
}

.btn-ghost:hover{
  background: var(--accent);
}

.btn-sm{ padding: 10px 12px; border-radius: 12px; font-weight: 800; }

/* Form (Checkout) */
label{ display: block; margin-top: 12px; margin-bottom: 6px; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  background: #fff;
}

input:focus, select:focus{
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, .35);
}

/* Checkout */
.panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.terms-box{
  max-height: 260px;
  overflow:auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.checkout-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.summary-card{
  position: sticky;
  top: 14px;
  align-self: start;
}

.summary-list{ margin: 0; padding-left: 18px; color: var(--muted); }

.summary-total{
  margin-top: 12px;
  font-weight: 900;
  font-size: 18px;
}

.helper{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* Pix */
.status-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  font-size: 12px;
}

.status-chip.is-pending{ background: rgba(15,107,62,.08); border-color: rgba(15,107,62,.18); color: #0b3a22; }
.status-chip.is-paid{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); color: #0b3a22; }
.status-chip.is-expired{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22); color: #7f1d1d; }
.status-chip--timer{ margin-top: 10px; }
.status-chip--timer.is-expired{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22); color: #7f1d1d; }

.pix-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}

.qrcode{
  /* QR maior = leitura mais fácil */
  max-width: 420px;
  width: 100%;
  height:auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.qrcode img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.steps{ display:flex; flex-direction: column; gap: 10px; }
.step{ display:flex; gap: 10px; }
.step .num{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--accent);
  color: #0b3a22;
  font-weight: 900;
  border: 1px solid rgba(15, 107, 62, .16);
}
.step .txt{ color: var(--muted); font-weight: 600; font-size: 13px; }

.footer{ margin-top: 18px; color: var(--muted); padding: 10px 2px; text-align: left; }

/* Transição suave entre páginas */
body.vp-fade{ opacity:0; transition: opacity .18s ease; }
body.vp-fade.is-ready{ opacity:1; }
body.vp-fade.is-leaving{ opacity:0; }
@media (prefers-reduced-motion: reduce){
  body.vp-fade{ transition: none; }
}

/* Tela de pagamento confirmado */
.paid-wrap{ margin-top: 14px; }
.paid-hero{
  border: 1px solid rgba(15,107,62,.18);
  background: linear-gradient(180deg, rgba(15,107,62,.08), rgba(255,255,255,1) 55%);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.paid-icon{
  width: 54px; height: 54px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(15,107,62,.12);
  border: 1px solid rgba(15,107,62,.18);
  font-size: 28px;
  color: var(--primary);
  font-weight: 900;
}
.paid-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.paid-actions .btn{ width: auto; }

@keyframes vp-spin{ to{ transform: rotate(360deg); } }

/* Drawer (mobile) para o resumo */
.vp-drawer{ display:none; }
.vp-drawer-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.vp-drawer-panel{
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  max-height: min(85vh, calc(100vh - 60px));
  overflow: auto;
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -18px 40px rgba(0,0,0,.22);
  transform: translateY(110%);
  transition: transform .18s ease;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.vp-drawer-close{
  position: sticky;
  top: 0;
  float: right;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,107,62,.18);
  background: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 36px;
  font-weight: 900;
  color: var(--primary);
}
.vp-drawer .side-summary{ margin-top: 8px; }

body.vp-drawer-open .vp-drawer-backdrop{ opacity: 1; pointer-events: auto; }
body.vp-drawer-open .vp-drawer-panel{ transform: translateY(0); }

.drawer-toggle{
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,107,62,.18);
  background: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}
.drawer-toggle:active{ transform: scale(.98); }
.sr-only{
  position: absolute!important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Tela inicial (catálogo) */
.catalog-page{ max-width: 980px; margin: 0 auto; }
.catalog-hero{
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(15,107,62,.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15,107,62,.06), rgba(255,255,255,1));
}
.catalog-h1{ margin: 0; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.catalog-sub{ margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.catalog-trust{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trust-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,107,62,.14);
  background: rgba(255,255,255,.85);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}
.catalog-hero-badge{
  position: relative;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(15,107,62,.16), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(217,70,239,.14), transparent 55%),
              rgba(255,255,255,.7);
  border: 1px solid rgba(15,107,62,.12);
}
.catalog-hero-badge .badge-ring{
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 2px dashed rgba(15,107,62,.25);
}
.catalog-hero-badge .badge-heart{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #d946ef;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.08));
}
.catalog-hero-badge .badge-dot{
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15,107,62,.22);
}
.badge-dot-1{ top: 18px; left: 22px; }
.badge-dot-2{ bottom: 20px; right: 28px; background: rgba(217,70,239,.18); }
.badge-dot-3{ top: 50%; right: 18px; transform: translateY(-50%); background: rgba(15,107,62,.14); }

.catalog-choice{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.catalog-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15,107,62,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 40px rgba(2,6,23,.08);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.catalog-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 0% 0%, rgba(15,107,62,.10), transparent 45%),
              radial-gradient(circle at 100% 100%, rgba(217,70,239,.08), transparent 45%);
  pointer-events: none;
}
.catalog-card > *{ position: relative; }
.catalog-card:hover{ transform: translateY(-2px); box-shadow: 0 20px 50px rgba(2,6,23,.10); }
.catalog-card:active{ transform: translateY(-1px) scale(.99); }
.catalog-card-top{ display:flex; gap:12px; align-items:center; }
.catalog-icon{
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(15,107,62,.08);
  border: 1px solid rgba(15,107,62,.14);
  color: var(--primary);
}
.catalog-kicker{ font-size: 12px; font-weight: 800; color: var(--primary); opacity: .9; }
.catalog-title{ font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.catalog-desc{ color: var(--muted); }
.catalog-bullets{ margin: 2px 0 0; padding-left: 18px; color: #0f172a; }
.catalog-bullets li{ margin: 6px 0; color: #0f172a; }
.catalog-actions{ display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.catalog-hint{ font-size: 12px; color: var(--muted); }
.catalog-card-ghost .catalog-icon{ background: rgba(2,6,23,.04); border-color: rgba(2,6,23,.08); }
.catalog-card-ghost .catalog-icon{ color: #0f172a; opacity: .85; }

.catalog-tip{ margin-top: 12px; color: var(--muted); font-size: 13px; }

/* Responsivo */
@media (max-width: 980px){
  h1{ font-size: 30px; }
  .catalog-hero{ grid-template-columns: 1fr; }
  .catalog-hero-badge{ display: none; }
  .catalog-h1{ font-size: 34px; }
  .catalog-choice{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .plans-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-layout{ grid-template-columns: 1fr; }
  /* No mobile, o resumo vira drawer (o elemento é movido via JS) */
  .side-summary{ display: none; }
  .vp-drawer{ display: block; }
  .vp-drawer .side-summary{ display: block; }
  .sticky-bar{ display:flex; }
  .summary{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; }
  .checkout-grid{ grid-template-columns: 1fr; }
  .pix-grid{ grid-template-columns: 1fr; }
  .summary-card{ position: static; }
  body{ padding-bottom: 110px; }
}

@media (max-width: 640px){
  .plans-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .header{ flex-direction: column; align-items: stretch; }
  .header-right{ justify-content: space-between; }

  /* fixa o CTA no rodapé no mobile */
  .sticky-bar{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 24px));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 10;
  }
}
