:root{
  --bg:#060f22;

  --panel: rgba(255,255,255,.07);
  --panel2: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.14);

  --text: #eef6ff;
  --muted: rgba(238,246,255,.72);
  --muted2: rgba(238,246,255,.58);

  --brand: #2fb7ff;
  --brand2:#1d6cff;

  --shadow: 0 28px 90px rgba(0,0,0,.48);
  --shadow2: 0 16px 50px rgba(0,0,0,.35);

  --r: 24px;
  --max: 1240px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  overflow:hidden;
}

/* Background */
.bg{ position: fixed; inset:0; z-index:-1; }
.glow{
  position:absolute; width: 900px; height: 900px; border-radius: 999px;
  filter: blur(80px);
  opacity: .55;
}
.g1{ left:-260px; top:-320px; background: radial-gradient(circle at 35% 35%, rgba(47,183,255,.62), transparent 60%); }
.g2{ right:-320px; bottom:-360px; background: radial-gradient(circle at 35% 35%, rgba(29,108,255,.55), transparent 62%); }

.gridlines{
  position:absolute; inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .25;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1), transparent 70%);
}

.noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  opacity:.10;
}

/* Stage */
.stage{
  width:100vw; height:100vh;
  display:grid; place-items:center;
  padding: 18px;
}

.deck{
  width: min(var(--max), 100%);
  height: min(760px, 100%);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
  position: relative;
}

/* Header */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 20px 12px 20px;
  gap: 16px;
}
.brand{ display:flex; align-items:center; gap:14px; min-width: 0; }

/* Premium logo badge */
.logoWrap{
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 40%),
    linear-gradient(145deg, rgba(47,183,255,.22), rgba(29,108,255,.14));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.logoImg{
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
.logoSquare{ width: 78%; height: 78%; }

.brandText{ min-width:0; }
.brandName{
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
  font-size: 12.5px;
  color: rgba(238,246,255,.92);
}
.brandTag{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.topRight{ display:flex; align-items:center; gap:10px; }
.counter{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 13px;
}

.pillBtn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(238,246,255,.92);
  font-weight: 950;
  cursor:pointer;
}
.pillBtn:hover{ background: rgba(255,255,255,.10); }

/* Progress */
.progress{
  height: 6px;
  background: rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(0,0,0,.22);
}
.progressBar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transition: width .45s ease;
}

/* Slides area */
.viewport{
  height: calc(100% - 70px - 6px - 78px); /* header + progress + footer */
  overflow: hidden; /* mantém o deck intacto */
}

/* mantém swipe e transição */
.slides{
  height: 100%;
  display:flex;
  transition: transform .60s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
  touch-action: pan-y; /* swipe horizontal sem brigar com scroll */
}

/* ✅ ALTERAÇÃO MÍNIMA: slide não pode “vazar” */
.slide{
  width:100%;
  flex: 0 0 100%;
  height:100%;
  padding: 26px 26px 18px 26px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;         /* <<< (novo) impede escapar pra fora */
  min-height: 0;            /* <<< (novo) importante pro scroll funcionar */
}

/* Slide content animation + ✅ agora rola internamente */
.slideInner{
  flex: 1;
  display:flex;
  flex-direction: column;
  min-height: 0;
  gap: 14px;

  overflow-y: auto;         /* <<< (novo) scroll interno por slide */
  overflow-x: hidden;       /* <<< (novo) evita scroll lateral */
  padding-right: 8px;       /* <<< (novo) espaço pro scroll sem “apertar” texto */

  -webkit-overflow-scrolling: touch; /* <<< (novo) rolagem suave no iPad */
  animation: pop .46s ease;
}

/* scrollbar discreta (mantém premium) */
.slideInner::-webkit-scrollbar{ width: 6px; }
.slideInner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.slideInner::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

@keyframes pop{
  from{ transform: translateY(10px); opacity: 0; filter: blur(2px); }
  to{ transform: translateY(0px); opacity: 1; filter: blur(0px); }
}

/* Typography */
.kicker{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47,183,255,.22);
  background: linear-gradient(145deg, rgba(47,183,255,.12), rgba(29,108,255,.10));
  color: rgba(238,246,255,.9);
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 11px;
  width: fit-content;
}
.kdot{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
}
.title{
  font-size: clamp(30px, 3.1vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.7px;
  font-weight: 950;
}
.subtitle{
  font-size: clamp(15px, 1.35vw, 19px);
  color: var(--muted);
  line-height: 1.45;
  max-width: 78ch;
}
.note{
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.35;
}

/* Layout base */
.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  min-height: 0;
  flex: 1;
}

/* ✅ (novo) para grids não “estourarem” dentro do scroll */
.grid > *{ min-height: 0; }

.card{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  padding: 16px;
  min-height: 0;
}
.cardHeader{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card h3{
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(238,246,255,.90);
}
.mini{
  font-size: 12px;
  color: var(--muted2);
}

/* Pills */
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }
.pill{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 12px 12px;
  display:flex; align-items:center; gap:10px;
  min-width: 240px;
}
.badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(47,183,255,.20), rgba(29,108,255,.16));
  border: 1px solid rgba(47,183,255,.23);
  color: rgba(238,246,255,.94);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .75px;
  white-space: nowrap;
}
.pill b{ font-weight: 950; }

/* Lists */
.list{
  list-style:none;
  display:grid;
  gap: 10px;
}
.item{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px 12px;
  display:flex;
  gap: 10px;
  align-items: flex-start;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
  margin-top: 5px;
  flex: 0 0 auto;
}

/* Pricing */
.priceStack{ display:grid; gap: 12px; }
.priceBox{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 16px;
}
.k{
  color: rgba(238,246,255,.72);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.v{
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
  margin-top: 8px;
}
.v small{
  font-size: 13px;
  font-weight: 950;
  color: rgba(238,246,255,.68);
}
.hintText{
  margin-top: 8px;
  color: rgba(238,246,255,.72);
  font-size: 13px;
  line-height: 1.35;
}

/* Colunas da lista */
.cols{
  display:grid;
  grid-template-columns: 1fr 1fr; /* default */
  gap: 12px;
  min-height: 0;
}

/* Plans */
.planGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  min-height: 0;
}
.planName{
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(238,246,255,.90);
}
.planPrice{
  font-size: 34px;
  font-weight: 950;
}
.planPrice small{
  font-size: 12px;
  color: rgba(238,246,255,.66);
  font-weight: 950;
}

/* CTA */
.ctaRow{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }

/* Footer controls */
.controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 14px 20px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.btn{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(238,246,255,.92);
  padding: 14px 16px;
  font-weight: 950;
  cursor:pointer;
  min-height: 48px;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn.primary{
  border-color: rgba(47,183,255,.28);
  background: linear-gradient(145deg, rgba(47,183,255,.18), rgba(29,108,255,.14));
}
.btn.primary:hover{ filter: brightness(1.06); }

.hint{
  color: rgba(238,246,255,.58);
  font-size: 12px;
  padding-left: 8px;
  white-space: nowrap;
}

.dots{ display:flex; gap: 8px; padding: 0 6px; }
.dots button{
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  cursor:pointer;
}
.dots button[aria-current="true"]{
  width: 26px;
  background: linear-gradient(145deg, var(--brand), var(--brand2));
  border-color: rgba(47,183,255,.35);
}

/* Tablet-first tuning */
@media (min-width: 768px) and (max-width: 1366px){
  .stage{ padding: 14px; }
  .deck{
    height: 92vh;
    width: min(1180px, 96vw);
  }
  .viewport{
    height: calc(100% - 74px - 6px - 86px);
  }
  .slide{
    padding: 28px 28px 18px 28px;
  }
  .controls{
    gap: 12px;
    padding: 14px 16px 22px 16px;
  }
  .btn{
    padding: 16px 18px;
    min-height: 52px;
  }
  .pillBtn{
    padding: 12px 16px;
    min-height: 44px;
  }

  /* Mais espaço p/ especialidades e 3 colunas no tablet */
  .grid{
    grid-template-columns: .82fr 1.18fr;
    align-items: start;
  }
  .cols{
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .item{ padding: 10px 10px; }
  .list{ gap: 8px; }
}

/* Narrow columns on smaller tablets/portrait */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .planGrid{ grid-template-columns: 1fr; }
  .cols{ grid-template-columns: 1fr 1fr; }
  .brandTag{ display:none; }
}

/* Remove hover dependence on touch devices */
@media (hover: none){
  .btn:hover, .pillBtn:hover{ background: rgba(255,255,255,.06); }
}
