:root {
  --bg: #f4f6f9;
  --white: #ffffff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-soft: #eff6ff;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
  --warn-text: #9a3412;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.offer-bar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb 50%, #0ea5e9);
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; }
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  padding: 6px 10px;
  border-radius: 999px;
}
.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.checkout-headline { text-align: center; margin-bottom: 16px; }
.checkout-headline h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.checkout-headline p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

.order-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.order-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-mini-left span { font-weight: 700; display: block; font-size: 0.95rem; }
.order-mini-left small { color: var(--muted); font-size: 0.8rem; }
.order-mini-price {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue);
  text-align: right;
  line-height: 1.15;
}
.order-mini-price small {
  display: block;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.8rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pay-head {
  padding: 18px 18px 0;
}
.pay-head h2 { font-size: 1.05rem; font-weight: 800; }
.pay-head p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.pay-body { padding: 16px 18px 20px; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field input.err { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08); }
.field .hint {
  display: none;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}
.field input.err + .hint { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s, background .15s, opacity .15s;
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--blue-d), #0284c7); }
.btn-ghost {
  background: var(--blue-soft);
  color: var(--blue-d);
  border: 1px solid #bfdbfe;
}
.btn-paid {
  background: #fff;
  color: var(--ok);
  border: 2px solid var(--ok);
  box-shadow: none;
}
.btn-paid:hover:not(:disabled) {
  background: var(--ok-bg);
}
.paid-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Overlay verificação */
.verify-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.verify-overlay.show {
  display: flex;
}
.verify-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.verify-card p {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 14px 0 6px;
  color: var(--ink);
}
.verify-card small {
  color: var(--muted);
  font-size: 0.82rem;
  display: block;
}
.verify-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid #bfdbfe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Tela acesso liberado */
.success-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.2;
}
.success-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 16px;
}
.key-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 6px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
  margin-bottom: 18px;
  text-decoration: none;
}
.btn-download:hover {
  filter: brightness(1.05);
}
.video-block {
  margin: 8px 0 18px;
  text-align: left;
}
.video-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 10px;
  text-align: center;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.install-steps {
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 4px;
}
.install-steps h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.install-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
  display: grid;
  gap: 8px;
}
.install-steps code {
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.install-note {
  margin: 12px 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.link-instrucoes {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
}

.pix-box { display: none; text-align: center; }
.pix-box.show { display: block; }
#doneBox.show { display: block; }
.form-box.hide { display: none; }
.pix-amount { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.pix-sub { color: var(--muted); font-size: 0.88rem; margin: 4px 0 12px; }
.pix-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-d);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.pix-timer b { font-variant-numeric: tabular-nums; }
.qr-wrap {
  width: 200px;
  height: 200px;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pix-code-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--ink-2);
}
.pix-code {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  resize: none;
  background: #f8fafc;
  color: var(--ink-2);
  word-break: break-all;
}
.info-ok, .info-warn {
  display: flex;
  gap: 10px;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  margin: 12px 0;
  line-height: 1.45;
}
.info-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: #065f46; }
.info-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.info-ok strong, .info-warn strong { display: block; margin-bottom: 2px; }
.steps {
  list-style: none;
  text-align: left;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.steps i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-d);
  font-style: normal;
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.buyer-box {
  text-align: left;
  font-size: 0.84rem;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.status-wait {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sucesso */
.success-card { text-align: center; padding: 28px 20px; }
.success-card .check {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 2px solid var(--ok-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ok); font-size: 1.8rem; font-weight: 800;
}
.success-card h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.success-card p { color: var(--muted); font-size: 0.92rem; }
.license-box {
  margin: 18px 0;
  padding: 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  word-break: break-all;
  user-select: all;
}
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 8px 16px 28px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}
.foot a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover { text-decoration: underline; }
.foot-main {
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #64748b;
}
.foot-links {
  margin: 0 0 12px;
  font-size: 0.8rem;
}
.foot-links a { margin: 0 2px; }
.foot-disclaimer {
  margin: 0 0 10px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #94a3b8;
  font-weight: 500;
}
.foot-pay-note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-weight: 500;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-terms-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
  font-weight: 500;
}
.checkout-terms-hint a {
  color: #64748b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout-terms-hint a:hover { color: var(--blue); }

/* Páginas legais */
.legal-page { background: var(--bg); }
.legal-top {
  max-width: 760px;
}
.legal-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.legal-nav a:hover { color: var(--blue); }
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  background: transparent;
}
.legal-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}
.legal-wrap h1 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.legal-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.legal-toc strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.legal-toc li { margin: 4px 0; }
.legal-toc a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-wrap section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.legal-wrap h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.legal-wrap p,
.legal-wrap li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}
.legal-wrap p { margin-bottom: 10px; }
.legal-wrap p:last-child { margin-bottom: 0; }
.legal-wrap ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}
.legal-wrap li { margin: 6px 0; }
.legal-wrap a { color: var(--blue); font-weight: 600; }
.legal-callout {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.legal-callout strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #1e40af;
}
.legal-callout p { margin: 0; color: #1e3a8a; font-size: 0.92rem; }
.legal-callout-muted {
  background: #f8fafc;
  border-color: var(--line);
}
.legal-callout-muted p { color: #475569; }
.legal-callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}
.legal-callout-warn strong { color: var(--warn-text); }
.legal-callout-warn p { color: #9a3412; }
.legal-back {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.legal-foot {
  text-align: center;
  padding: 20px 18px 36px;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.legal-foot-links {
  margin-top: 8px;
  font-size: 0.8rem;
}
.legal-foot-links a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.legal-foot-links a:hover { text-decoration: underline; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 50;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Landing simples */
.hero {
  padding: 40px 16px 24px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 12px 0;
}
.hero p { color: var(--muted); font-size: 1.02rem; max-width: 480px; margin: 0 auto 20px; }
.hero .price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.hero .price small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
}
.features {
  max-width: 520px;
  margin: 0 auto 24px;
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.features li {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.features li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}
.cta-wrap { max-width: 360px; margin: 0 auto 40px; padding: 0 16px; }
