/* ===========================================================
   MORPHEUS ERP — Cadastro / Onboarding
   Sistema visual: dark premium, violeta de marca (#5B21B6)
   Type: Sora (display) · Manrope (texto) · JetBrains Mono (códigos)
   =========================================================== */

:root {
  /* ---- Violeta de marca ---- */
  --v-900: #1a0f33;
  --v-800: #2e1065;
  --v-700: #4c1d95;
  --v-650: #5b21b6;   /* cor-tema oficial */
  --v-600: #6d28d9;
  --v-500: #7c3aed;
  --v-400: #8b5cf6;
  --v-300: #a78bfa;
  --v-200: #c4b5fd;

  /* ---- Fundos (near-black com tinta violeta) ---- */
  --bg-0: #0b0814;
  --bg-1: #110c1f;
  --bg-2: #171029;
  --bg-3: #1e1636;
  --surface: rgba(31, 22, 54, 0.62);
  --surface-2: rgba(42, 30, 72, 0.55);
  --line: rgba(167, 139, 250, 0.14);
  --line-2: rgba(167, 139, 250, 0.28);

  /* ---- Texto ---- */
  --ink: #f4f1fb;
  --ink-2: #cdc6e3;
  --ink-3: #9b93b8;
  --ink-4: #6f6790;

  /* ---- Acentos ---- */
  --green: oklch(0.78 0.16 152);
  --green-deep: oklch(0.62 0.16 152);
  --amber: oklch(0.82 0.15 78);
  --cyan: oklch(0.80 0.12 210);
  --rose: oklch(0.70 0.18 18);

  --glow: 0 0 0 1px rgba(139,92,246,0.18), 0 18px 50px -12px rgba(91,33,182,0.55);
  --radius: 18px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

::selection { background: var(--v-500); color: #fff; }

/* Backdrop ambient glow */
.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  isolation: isolate;
}
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124,58,237,0.30), transparent 60%),
    radial-gradient(800px 700px at 92% 8%, rgba(91,33,182,0.28), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(109,40,217,0.20), transparent 60%),
    var(--bg-0);
}
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(167,139,250,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(150deg, var(--v-400), var(--v-650) 55%, var(--v-800));
  box-shadow: 0 8px 22px -6px rgba(124,58,237,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-name b { color: var(--v-300); font-weight: 800; }
.topbar-right {
  display: flex; align-items: center; gap: 18px;
  font-size: 13.5px; color: var(--ink-3);
}
.secure-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 12px;
  border-radius: 999px;
}
.secure-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 26px auto 8px;
  max-width: 720px;
}
.step {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line-2);
  color: var(--ink-3);
  background: var(--bg-2);
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.step-label {
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color .3s;
}
.step.active .step-num {
  border-color: var(--v-400);
  color: #fff;
  background: linear-gradient(150deg, var(--v-500), var(--v-700));
  box-shadow: 0 0 0 5px rgba(124,58,237,0.16);
}
.step.active .step-label { color: var(--ink); }
.step.done .step-num {
  border-color: var(--green-deep);
  color: var(--green);
  background: rgba(34,197,94,0.10);
}
.step.done .step-label { color: var(--ink-2); }
.step-bar {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 14px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step-bar i {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--v-500), var(--v-300));
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.step-bar.filled i { width: 100%; }

/* ---------- Panels ---------- */
.stage {
  padding: 14px 0 70px;
}
.panel-head {
  text-align: center;
  margin: 22px auto 30px;
  max-width: 720px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v-300);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--v-400));
}
.eyebrow::after { background: linear-gradient(90deg, var(--v-400), transparent); }
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.panel-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--v-300), var(--v-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.panel-sub {
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Billing toggle ---------- */
.billing {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto 34px;
}
.billing-switch {
  position: relative;
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  cursor: pointer;
}
.billing-switch button {
  position: relative; z-index: 2;
  border: 0; background: transparent;
  font-family: var(--font-body);
  font-weight: 700; font-size: 14px;
  color: var(--ink-3);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s;
  white-space: nowrap;
}
.billing-switch button.on { color: #fff; }
.billing-glider {
  position: absolute; z-index: 1; top: 5px; bottom: 5px;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--v-500), var(--v-700));
  box-shadow: 0 6px 18px -6px rgba(124,58,237,0.8);
  transition: all .38s cubic-bezier(.3,.8,.3,1);
}
.save-pill {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Plan cards ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s, background .3s;
  text-align: left;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.selected {
  border-color: var(--v-400);
  background: linear-gradient(180deg, rgba(76,29,149,0.42), rgba(23,16,41,0.6));
  box-shadow: var(--glow);
}
.plan.popular {
  border-color: rgba(167,139,250,0.34);
}
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--v-400), var(--v-650));
  padding: 6px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(124,58,237,0.8);
}
.plan-radio {
  position: absolute; top: 22px; right: 22px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid; place-items: center;
  transition: all .3s;
}
.plan.selected .plan-radio {
  border-color: var(--v-300);
  background: var(--v-500);
}
.plan-radio svg { opacity: 0; transform: scale(.4); transition: all .3s; }
.plan.selected .plan-radio svg { opacity: 1; transform: scale(1); }

.plan-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}
.plan-for { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 4px;
}
.plan-cur { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.plan-amt {
  font-family: var(--font-display);
  font-weight: 800; font-size: 40px;
  letter-spacing: -0.03em; line-height: 1;
}
.plan-cents { font-size: 19px; font-weight: 700; color: var(--ink-2); }
.plan-per { font-size: 14px; color: var(--ink-3); margin-left: 2px; }
.plan-was {
  font-size: 14px; color: var(--ink-4); text-decoration: line-through;
  margin-left: 8px; align-self: center;
}
.plan-annual {
  font-size: 12.5px; color: var(--ink-3);
  min-height: 18px; margin-bottom: 18px;
}
.plan-annual b { color: var(--green); font-weight: 700; }
.plan-strike { text-decoration: line-through; color: var(--ink-4); margin-right: 6px; }

.plan-annual { margin-bottom: 12px; }
.plan-specs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.spec-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.plan.selected .spec-chip { border-color: var(--line-2); }

.compare tr.grp td {
  background: var(--bg-3);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--v-300); font-weight: 600;
  text-align: left; padding: 11px 16px;
}
.compare tbody tr.grp:hover td { background: var(--bg-3); }
.compare-note {
  font-size: 12px; color: var(--ink-4); padding: 14px 16px 4px;
  font-style: italic;
}

.plan-feats {
  list-style: none; margin: 0 0 20px; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 11px;
  flex: 1 1 auto;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.4;
}
.plan-feats li.off { color: var(--ink-4); }
.feat-ic {
  flex: 0 0 auto; margin-top: 1px;
  width: 16px; height: 16px;
}
.plan-feats li b { color: var(--ink); font-weight: 700; }
.tag-ai {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cyan);
  border: 1px solid rgba(125,211,252,0.35);
  border-radius: 5px; padding: 1px 5px; margin-left: 4px;
  vertical-align: middle;
}
.plan-pick {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700; font-size: 14.5px;
  padding: 13px; border-radius: 12px;
  cursor: pointer;
  transition: all .25s;
}
.plan.selected .plan-pick {
  background: linear-gradient(150deg, var(--v-500), var(--v-700));
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(124,58,237,0.8);
}
.plan.popular:not(.selected) .plan-pick { border-color: var(--v-500); color: var(--v-200); }

/* ---------- Comparison ---------- */
.compare-toggle {
  display: flex; justify-content: center; margin: 30px auto 0;
}
.compare-toggle button {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 999px;
  cursor: pointer; transition: all .25s;
}
.compare-toggle button:hover { border-color: var(--line-2); color: var(--ink); }
.compare-toggle svg { transition: transform .3s; }
.compare-toggle button.open svg { transform: rotate(180deg); }

.compare-wrap {
  display: none;
  margin-top: 0;
}
.compare-wrap.open { display: block; margin-top: 24px; animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.compare thead th {
  padding: 18px 16px 16px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare thead th:first-child { text-align: left; color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.compare thead th.hl { background: rgba(76,29,149,0.30); color: var(--v-200); }
.compare tbody td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.compare tbody td:first-child { text-align: left; color: var(--ink-2); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td.hl { background: rgba(76,29,149,0.14); }
.compare .ok { color: var(--green); }
.compare .no { color: var(--ink-4); }
.compare tbody tr:hover td { background: rgba(167,139,250,0.05); }
.compare tbody tr:hover td.hl { background: rgba(76,29,149,0.22); }

/* ---------- Footer nav ---------- */
.stage-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 40px; gap: 16px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 13px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.btn-primary {
  background: linear-gradient(150deg, var(--v-500), var(--v-700));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(124,58,237,0.75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(124,58,237,0.9); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--v-400); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Forms (Step 2) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 26px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 28px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 8px;
}
.field label .req { color: var(--v-300); }
.field label > span:first-child { white-space: nowrap; }
.field-input {
  position: relative;
  display: flex; align-items: center;
}
.field-input .lead {
  position: absolute; left: 14px;
  color: var(--ink-4); display: grid; place-items: center;
  pointer-events: none;
}
.field input, .field select {
  width: 100%;
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  transition: all .2s;
  outline: none;
}
.field-input.has-lead input { padding-left: 42px; }
.field input::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus {
  border-color: var(--v-400);
  background: var(--bg-3);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.14);
}
.field input.ok { border-color: rgba(34,197,94,0.45); }
.field input.err { border-color: var(--rose); }
.field-msg {
  font-size: 12px; margin-top: 7px; min-height: 15px;
  color: var(--ink-4);
  display: flex; align-items: center; gap: 6px;
}
.field-msg.bad { color: var(--rose); }
.field-msg.good { color: var(--green); }
.eye {
  position: absolute; right: 12px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-4); display: grid; place-items: center; padding: 4px;
}
.eye:hover { color: var(--ink-2); }

/* password strength */
.pw-meter { display: flex; gap: 5px; margin-top: 9px; }
.pw-meter i {
  height: 4px; flex: 1; border-radius: 3px;
  background: var(--line); transition: background .3s;
}
.pw-meter.s1 i:nth-child(1) { background: var(--rose); }
.pw-meter.s2 i:nth-child(-n+2) { background: var(--amber); }
.pw-meter.s3 i:nth-child(-n+3) { background: var(--cyan); }
.pw-meter.s4 i { background: var(--green); }

.doc-toggle {
  display: inline-flex; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 9px; padding: 3px;
  gap: 2px;
}
.doc-toggle button {
  border: 0; background: transparent;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ink-3); padding: 5px 12px; border-radius: 7px; cursor: pointer;
  transition: all .2s;
}
.doc-toggle button.on { background: var(--v-600); color: #fff; }
.doc-toggle.compact { padding: 2px; border-radius: 8px; }
.doc-toggle.compact button { padding: 3px 11px; font-size: 11px; }

/* ---- WhatsApp verify ---- */
.wa-row { display: flex; gap: 10px; align-items: stretch; }
.wa-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  color: #fff; white-space: nowrap;
  background: linear-gradient(150deg, #25d366, #128c4b);
  border: 0; border-radius: 11px; padding: 0 18px;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 8px 20px -8px rgba(37,211,102,0.6);
}
.wa-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(37,211,102,0.75); }
.wa-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.wa-verified {
  margin-top: 10px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-2);
  background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.30);
  border-radius: 11px; padding: 12px 14px;
}
.wa-verified svg { color: var(--green); flex: 0 0 auto; }
.wa-verified b { color: var(--ink); white-space: nowrap; }
.wa-change {
  flex: 0 0 auto;
  background: transparent; border: 1px solid rgba(34,197,94,0.4);
  color: var(--green); font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  padding: 6px 13px; border-radius: 8px; cursor: pointer; transition: all .2s;
}
.wa-change:hover { background: rgba(34,197,94,0.12); }
.otp-head b { color: var(--ink); white-space: nowrap; }
.otp-wrap {
  margin-top: 12px; padding: 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px;
  animation: fadeUp .4s cubic-bezier(.2,.7,.2,1) both;
}
.otp-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.4; margin-bottom: 14px;
}
.otp-head b { color: var(--ink); }
.otp-inputs { display: flex; gap: 10px; }
.otp-inputs input {
  flex: 1 1 0; min-width: 0; max-width: 54px; height: 56px; text-align: center;
  font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--ink);
  background: var(--bg-1); border: 1.5px solid var(--line-2); border-radius: 11px;
  outline: none; transition: all .18s;
}
.otp-inputs input:focus {
  border-color: var(--v-400); background: var(--bg-3);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.16);
}
.otp-inputs.err input { border-color: var(--rose); }
.otp-msg { font-size: 12.5px; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.otp-msg.bad { color: var(--rose); }
.wa-demo {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2);
  font-size: 12px; color: var(--ink-4);
}
.wa-demo b { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; color: var(--v-300); }
.wa-step-hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4;
}
.wa-step-hint > span:first-child {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-3);
}
.wa-step-hint > span:first-child.on { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.4); color: var(--green); }

/* Order summary aside */
.summary {
  position: sticky; top: 22px;
  background: linear-gradient(180deg, rgba(46,16,101,0.40), rgba(23,16,41,0.66));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--glow);
}
.summary h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--v-300);
  margin: 0 0 18px; font-weight: 600;
}
.sum-plan {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sum-plan .badge {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--v-500), var(--v-800));
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 18px;
}
.sum-plan .nm { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.sum-plan .cy { font-size: 12.5px; color: var(--ink-3); }
.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-2); margin-bottom: 12px;
}
.sum-row .muted { color: var(--ink-3); }
.sum-row b { font-weight: 700; }
.sum-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line);
}
.sum-total .lbl { font-size: 13px; color: var(--ink-3); }
.sum-total .val { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.sum-total .val small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.trial-banner {
  margin-top: 18px; padding: 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.26);
  border-radius: 12px;
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
  display: flex; gap: 10px;
}
.trial-banner b { color: var(--green); }

/* trust row */
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px;
  font-size: 12px; color: var(--ink-3);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Step 3 payment ---------- */
.pay-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 26px; align-items: start;
}
.method-tabs { display: flex; gap: 12px; margin-bottom: 22px; }
.method {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-2); border: 1.5px solid var(--line);
  border-radius: 13px; padding: 16px; cursor: pointer; transition: all .25s;
}
.method:hover { border-color: var(--line-2); }
.method.on { border-color: var(--v-400); background: rgba(76,29,149,0.28); box-shadow: 0 0 0 4px rgba(124,58,237,0.12); }
.method .mt { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.method .md { font-size: 12px; color: var(--ink-3); }
.method .pill {
  font-family: var(--font-mono); font-size: 10px; color: var(--green);
  border: 1px solid rgba(34,197,94,0.3); border-radius: 5px; padding: 1px 6px;
  margin-left: auto; font-weight: 700;
}

/* trial timeline */
.timeline { margin: 8px 0 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--v-400), var(--line));
}
.tl-item { position: relative; padding: 0 0 22px 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 4px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--v-400);
  z-index: 1;
}
.tl-item.free .tl-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 10px var(--green); }
.tl-item.charge .tl-dot { background: var(--v-500); border-color: var(--v-300); }
.tl-when { font-family: var(--font-mono); font-size: 11.5px; color: var(--v-300); letter-spacing: 0.04em; margin-bottom: 3px; }
.tl-what { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.tl-desc { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.tl-amt { font-weight: 800; }
.tl-amt.zero { color: var(--green); }

.card-fields { margin-top: 4px; }
.pix-box {
  text-align: center; padding: 22px;
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 13px;
}
.pix-qr {
  width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 10px;
  background:
    repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 18px 18px;
  background-color: #fff; padding: 8px;
}

/* checkbox */
.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13px; color: var(--ink-3); line-height: 1.5; cursor: pointer;
  margin-top: 18px;
}
.check input { display: none; }
.check .box {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid var(--line-2); border-radius: 6px;
  display: grid; place-items: center; transition: all .2s;
}
.check input:checked + .box { background: var(--v-600); border-color: var(--v-400); }
.check .box svg { opacity: 0; transition: opacity .2s; }
.check input:checked + .box svg { opacity: 1; }
.check a { color: var(--v-300); text-decoration: none; }
.check a:hover { text-decoration: underline; }

/* ---------- Mini-resumo fixo (passo 2, mobile) ---------- */
.plan-minibar {
  display: none;
  position: sticky; top: 0; z-index: 30;
  align-items: center; gap: 12px;
  background: rgba(23,16,41,0.94); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 11px 13px; margin-bottom: 18px;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.7);
}
.mb-badge {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--v-500), var(--v-800));
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 16px;
}
.mb-info { flex: 1; min-width: 0; }
.mb-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.mb-name span { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.mb-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.mb-edit {
  flex: 0 0 auto; background: transparent; border: 1px solid var(--line-2);
  color: var(--v-200); font-family: var(--font-body); font-weight: 700; font-size: 12px;
  padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: all .2s;
}
.mb-edit:hover { border-color: var(--v-400); color: #fff; }
.mb-today { flex: 0 0 auto; text-align: right; }
.mb-today span { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.mb-today b { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--green); }
@media (max-width: 1000px) { .plan-minibar { display: flex; } }
@media (max-width: 560px) { .mb-sub { display: none; } }

/* ---------- Success ---------- */
.success {
  max-width: 660px; margin: 30px auto 0; text-align: center;
}
.success-ring {
  width: 110px; height: 110px; margin: 0 auto 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 70%);
  position: relative;
}
.success-ring .core {
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(150deg, var(--green), var(--green-deep));
  display: grid; place-items: center;
  box-shadow: 0 14px 36px -10px rgba(34,197,94,0.7);
}
.success-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-top: 30px; text-align: left;
}
.success-card .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.success-card .row:last-child { border-bottom: 0; }
.success-card .row .k { color: var(--ink-3); }
.success-card .row .v { font-weight: 700; white-space: nowrap; }
.success-card .row .v.mono { font-family: var(--font-mono); color: var(--v-300); }
.next-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px;
}
.next-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-align: left;
}
.next-card .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124,58,237,0.16); color: var(--v-300); margin-bottom: 12px;
}
.next-card h5 { margin: 0 0 5px; font-size: 14px; font-weight: 700; }
.next-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* spinner */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* confetti */
.confetti-pc { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 50; pointer-events: none; border-radius: 2px; }

/* ---------- Anim ---------- */
@keyframes fadeUp { from { transform: translateY(18px); } to { transform: translateY(0); } }
.fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; }
.d4 { animation-delay: .24s; } .d5 { animation-delay: .30s; }

@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}
@keyframes popIn {
  0% { transform: scale(0.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); }
}
.pop { animation: popIn .5s cubic-bezier(.3,1.4,.5,1) both; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan.popular { order: -1; }
  .form-grid, .pay-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .next-steps { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .compare-wrap.open { max-height: none; }
  /* tabela de comparação rola horizontalmente */
  .compare-wrap.open { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare { min-width: 600px; }
}

@media (max-width: 720px) {
  .stepper { margin-top: 18px; }
  .step-bar { margin: 0 8px; }
  .panel-head { margin-bottom: 22px; }
  .stage { padding-bottom: 48px; }
  /* navegação inferior empilha */
  .stage-nav { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-top: 30px; }
  .stage-nav > span { text-align: center; order: 2; }
  .stage-nav .btn { width: 100%; justify-content: center; min-width: 0 !important; }
  /* WhatsApp: botão abaixo do campo */
  .wa-row { flex-direction: column; }
  .wa-btn { justify-content: center; padding: 13px; }
  /* botões da tela de sucesso */
  .success > div:last-child { flex-direction: column; }
  .success > div:last-child .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .wrap { padding: 0 16px; }
  .topbar { padding-top: 16px; }
  .topbar-right .secure-tag { display: none; }
  .topbar-right .login-q { display: none; }
  .billing { flex-wrap: wrap; gap: 12px; }
  .panel-sub { font-size: 15px; }
  .form-card { padding: 22px 18px; }
  .summary { padding: 20px 18px; }
  .otp-inputs input { height: 50px; font-size: 19px; }
  .otp-inputs { gap: 7px; }
  .plan { padding: 24px 20px; }
  .next-steps { gap: 12px; }
  .success-card { padding: 20px 18px; }
  .success-card .row { font-size: 13px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .plan-amt { font-size: 34px; }
  .panel-title { font-size: 23px; }
}
