:root {
  --brand: #342f8b;
  --brand-deep: #141054;
  --accent: #f8c32c;
  --red: #342f8b; /* alias */
  --red-deep: #24206a;
  --ink: #1c1c1c;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #d0d0d0;
  --paper: #ffffff;
  --wash: #f4f6ff;
  --shadow: 0 18px 50px rgba(28, 28, 28, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at -8% -10%, rgba(52, 47, 139, 0.18), transparent 58%),
    radial-gradient(900px 480px at 110% 8%, rgba(248, 195, 44, 0.16), transparent 55%),
    linear-gradient(165deg, #f8f9ff 0%, #eef0fb 48%, #e8ebf7 100%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(28, 28, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 247, 0.82);
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img {
  height: 34px;
  width: auto;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(52, 47, 139, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
}
.topbar-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.topbar-back:hover { color: var(--red); }

.offer-bar {
  background: var(--brand-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.offer-bar[hidden] { display: none !important; }
.offer-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.offer-bar strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.offer-bar span { color: var(--accent); font-weight: 700; }

body.offer-mode .topbar-back { display: none !important; }
body.offer-mode #step-plano { display: none !important; }

/* ── Layout ── */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 14px calc(108px + env(safe-area-inset-bottom, 0px));
  }
}

.stage { min-width: 0; }

/* ── Progress steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.steps button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: default;
  color: var(--muted);
}
.steps .dot {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(28, 28, 28, 0.1);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}
.steps .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 0.45s var(--ease);
}
.steps .done .dot::after,
.steps .current .dot::after { transform: scaleX(1); }
.steps .label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.steps .current { color: var(--red); }
.steps .done { color: var(--ink-soft); }

@media (max-width: 640px) {
  .steps {
    gap: 6px;
    margin-bottom: 12px;
  }
  .steps .label { display: none; }
  .steps .dot { margin-bottom: 0; }
}

/* ── Panel ── */
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 28, 28, 0.05);
  padding: clamp(22px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), #5a54c0 55%, var(--brand-deep));
}

.step.is-active {
  animation: stepIn 0.45s var(--ease) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-head { margin-bottom: 26px; max-width: 38rem; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.step-head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
}
.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 960px) {
  .panel {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }
  .panel::before { width: 4px; }
  .step-head { margin-bottom: 16px; }
  .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .step-head h1 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    margin-bottom: 6px;
  }
  .lead {
    font-size: 0.92rem;
    line-height: 1.4;
  }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 14px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--red); }
.tab.active::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding-inline: 12px; }
}

/* ── Plans carousel (estilo home) ── */
.plans-carousel {
  position: relative;
  margin: 0 -8px;
}
.plans-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.plans-arrow {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(28, 28, 28, 0.06);
}
.plans-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.plans-arrow:active { transform: scale(0.96); }
.plans {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  padding: 10px 8px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.plans::-webkit-scrollbar { display: none; }
.plan {
  flex: 0 0 min(300px, 82vw);
  max-width: 300px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 6px solid var(--red);
  outline: none;
  min-height: 100%;
}
.plans-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 4px;
}
.plans-dots button {
  appearance: none;
  border: 0;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s var(--ease), background 0.2s;
}
.plans-dots button.on {
  width: 28px;
  background: var(--red);
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(52, 47, 139, 0.12);
}
.plan.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(52, 47, 139, 0.14);
}
.plan.selected::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  z-index: 2;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan-main {
  padding: 18px 18px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan .name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 6px;
  padding-right: 36px;
  color: var(--ink);
}
.plan .sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  min-height: 2.2em;
  margin-bottom: 12px;
  font-weight: 500;
}
.price-block {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plan .old {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: line-through;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 2px;
}
.plan .price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.plan .currency {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
}
.plan .amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  letter-spacing: -0.045em;
  color: var(--red);
  line-height: 1;
}
.plan .price-side {
  display: flex;
  flex-direction: column;
  margin-left: 2px;
}
.plan .cents {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--red);
  line-height: 1;
}
.plan .per {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.plan-benefits {
  border-top: 1.5px dashed var(--line);
  padding-top: 12px;
  margin-bottom: 12px;
}
.benefits-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.plan-benefits ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}
.plan-benefits svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 1px;
}
.plan-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1.5px dashed var(--line);
  padding-top: 12px;
  margin-bottom: 8px;
}
.plan-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 6px;
  overflow: hidden;
}
.plan-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.plan-channels {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 18px 10px;
  width: fit-content;
  transition: color 0.2s;
}
.plan-channels:hover { color: var(--red-deep); }
.plan-select-hint {
  margin-top: auto;
  margin: 8px 14px 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 10px;
  padding: 12px 10px;
  transform: skewX(-10deg);
}
.plan-select-hint span {
  display: inline-block;
  transform: skewX(10deg);
}
.plan.selected .plan-select-hint {
  background: var(--ink);
}

/* Channels modal */
.channels-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  animation: stepIn 0.25s var(--ease);
}
.channels-panel {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 2rem;
  width: 100%;
  max-width: 56rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}
.channels-head {
  padding: 1.5rem;
  border-bottom: 1px solid #2d2d2d;
  text-align: center;
  position: relative;
}
.channels-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.channels-head p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}
.channels-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
}
.channels-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}
.ch-cat { margin-bottom: 2rem; }
.ch-cat h4 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  justify-items: center;
}
@media (max-width: 639px) {
  .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 72px;
}
.ch-logo {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: #111;
  border: 1px solid #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ch-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.ch-short {
  font-size: 10px;
  font-weight: 900;
  color: #6d6e70;
  text-align: center;
  padding: 8px;
  text-transform: uppercase;
}
.ch-name {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  line-height: 1.2;
  padding: 0 2px;
}

/* ── Portability ── */
.portability {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border: 1px solid var(--line);
  animation: stepIn 0.35s var(--ease);
}
.portability-head h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.portability-head p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .choice-row { grid-template-columns: 1fr; }
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s;
}
.choice:has(input:checked) {
  border-color: var(--red);
  color: var(--ink);
  background: #f7f6ff;
}
.choice input { accent-color: var(--red); width: 16px; height: 16px; }

/* ── Payment ── */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
}
.pay {
  appearance: none;
  position: relative;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
  min-height: 200px;
}
.pay:hover { border-color: #b8b4e0; transform: translateY(-2px); }
.pay.selected {
  border-color: var(--red);
  background: linear-gradient(165deg, #f7f6ff, #fff);
}
.pay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 8px;
  border-radius: 6px;
}
.pay-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(52, 47, 139, 0.08);
  color: var(--red);
  margin-bottom: 16px;
}
.pay-icon svg { width: 28px; height: 28px; }
.pay strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.pay p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.pay p em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* ── Addons ── */
.addons { display: grid; gap: 22px; }
.addon-group h3 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.addon-list { display: grid; gap: 8px; }
.addon {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: center;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.addon:hover { border-color: #b8b4e0; }
.addon.selected {
  border-color: var(--red);
  background: #f7f6ff;
}
.addon-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  transition: 0.2s var(--ease);
}
.addon.selected .addon-check {
  border-color: var(--red);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.addon strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.addon .note {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.addon .pr {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
  white-space: nowrap;
}

/* ── Forms ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field-cep { max-width: 200px; }
.field-uf { max-width: 100px; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-cep, .field-uf { max-width: none; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.portability .field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  font: 500 1rem/1.2 var(--font-body);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(52, 47, 139, 0.12);
}
.field input:disabled {
  background: #f4f4f4;
  color: var(--muted);
}

.hint {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 12px;
  min-height: 1.2em;
}
.hint.err { color: var(--red); font-weight: 600; }
.hint.ok { color: #1f7a3a; font-weight: 600; }
.step-error { margin-top: 16px; }

.portability .field { margin-top: 14px; }
.portability .field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  display: block;
}

/* ── Actions (topo do fluxo) ── */
.actions,
.actions-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 15px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red);
  color: #fff;
  min-width: 160px;
}
.btn-primary:hover { background: var(--red-deep); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .actions-top {
    position: sticky;
    top: 62px;
    z-index: 40;
    margin: 0 -14px 14px;
    padding: 10px 14px;
    background: rgba(244, 246, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(28, 28, 28, 0.06);
    gap: 8px;
  }
  body.offer-mode .actions-top { top: 62px; }
  .actions-top .btn {
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 11px;
  }
  .actions-top .btn-ghost {
    flex: 0 0 auto;
    min-width: 92px;
    padding-inline: 14px;
  }
  .actions-top .btn-primary {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-shadow: 0 10px 24px rgba(52, 47, 139, 0.28);
  }
}

/* ── Summary ── */
.summary {
  position: sticky;
  top: 88px;
  background: var(--ink);
  color: #f5f5f5;
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 47, 139, 0.35), transparent 70%);
  pointer-events: none;
}
.summary-top { position: relative; margin-bottom: 18px; }
.summary-kicker {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.summary h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.summary-empty {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.summary-plan {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.summary-promo {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.58);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}
.summary-row span:last-child {
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 900;
}
.summary-total span { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.summary-total strong {
  color: var(--accent);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.summary-adesao {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile: resumo fixo embaixo — preço sempre à vista */
@media (max-width: 960px) {
  .summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 45;
    margin: 0;
    border-radius: 18px 18px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(20, 16, 84, 0.28);
  }
  .summary-top { display: none; }
  .summary-empty {
    font-size: 0.82rem;
    margin: 0;
    text-align: center;
    grid-column: 1 / -1;
  }
  #summaryBody {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 14px;
  }
  .summary-plan {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .summary-promo {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
  }
  .summary-row { display: none; }
  .summary-total {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .summary-total span {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  .summary-total strong {
    font-size: 1.35rem;
    line-height: 1;
  }
  body.docs-active .summary { opacity: 0.92; }
  body.success-mode .summary { display: none; }
  body.success-mode .shell { padding-bottom: 40px; }
}

/* ── Success ── */
.success {
  text-align: center;
  padding: 28px 8px 12px;
  animation: stepIn 0.5s var(--ease);
}
.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--red);
  animation: pop 0.55s var(--ease);
}
.success-mark svg { width: 100%; height: 100%; }
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}
.success p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 28rem;
  margin: 0 auto 24px;
}

.hidden { display: none !important; }

.loading-dot::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

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


/* ── ZAAZ extras ── */
select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  font: 500 1rem/1.2 var(--font-body);
  color: var(--ink);
  background: #fff;
  outline: none;
}
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(52, 47, 139, 0.1);
}
.doc-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.doc-pill {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(52, 47, 139, 0.04);
  border: 1px solid var(--line);
}
.doc-pill.on {
  color: var(--brand);
  background: rgba(52, 47, 139, 0.08);
  border-color: rgba(52, 47, 139, 0.22);
}
.doc-pill.ok {
  color: #0d6b32;
  background: #dafbe5;
  border-color: rgba(29, 178, 78, 0.25);
}
.doc-panel { display: none; }
.doc-panel.on { display: block; }
.bio-prog {
  height: 4px;
  background: rgba(52, 47, 139, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}
.bio-prog > div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.25s ease;
}
.step-docs .capture { border-radius: 16px; }
.step-docs .btn { min-height: 46px; }
.step.hidden, .hidden { display: none !important; }
.step.is-active { display: block !important; }
body.docs-active .actions { display: none; }
@media (min-width: 961px) {
  body.docs-active .summary { opacity: 0.7; }
}
.submit-progress {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(52, 47, 139, 0.04);
  border: 1px solid rgba(52, 47, 139, 0.1);
}
.submit-progress-track {
  height: 6px;
  border-radius: 99px;
  background: #e8edff;
  overflow: hidden;
}
.submit-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.45s ease;
}
.submit-progress-lbl {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.cam:not(.open), .flash:not(.on) { pointer-events: none !important; }
.plan.hot { border-top-color: var(--accent); }
.plan.hot .amount, .plan.hot .cents { color: var(--brand); }
.plan-badge {
  position: static;
  display: inline-block;
  margin: 0 0 8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a2f00;
  background: var(--accent);
  padding: 5px 8px;
  border-radius: 6px;
}
.price-block .plan-badge { margin-bottom: 8px; }
.plan .amount { color: var(--brand); }
.plan .cents { color: var(--brand); }
.plan.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(52, 47, 139, 0.14); }
.plan.selected::after { background-color: var(--brand); }
.plan-select-hint { background: var(--brand); }
.plan.selected .plan-select-hint { background: var(--brand-deep); }
.plan:hover { box-shadow: 0 16px 36px rgba(52, 47, 139, 0.12); }
.plans-arrow:hover { background: var(--brand); border-color: var(--brand); }
.plans-dots button.on { background: var(--brand); }
.step-chip { color: var(--brand); background: rgba(52, 47, 139, 0.08); }
.topbar-back:hover { color: var(--brand); }
.eyebrow { color: var(--brand); }
.steps .current { color: var(--brand); }
.steps .dot::after { background: var(--brand); }
.tab.active { color: var(--brand); }
.tab::after { background: var(--brand); }
.btn-primary {
  background: var(--brand) !important;
}
.btn-primary:hover { background: var(--brand-deep) !important; }
.summary-total strong { color: var(--accent) !important; }
