:root {
  --purple: #8B6CFF;
  --purple-deep: #6426e8;
  --ink: #16141f;
  --muted: #8b8798;
  --line: #e6e3ee;
  --bg: #f6f5f8;
  --ok: #1b9e5a;
  --warn: #c47a12;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
}
body, h1, h2, h3, p, span, strong, em, a, button, label, li {
  font-weight: 400;
}
.wrap {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.brand img {
  width: 52px;
  height: auto;
  display: block;
  object-fit: contain;
}
.brand strong {
  margin: 0;
  font-family: Montserrat, Nunito, sans-serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.4px;
  color: #0B1028;
  line-height: 1;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 22px;
}
.trust article {
  background: #f6f5f8;
  border-radius: 14px;
  padding: 12px 8px 10px;
  text-align: center;
}
.trust svg {
  width: 20px;
  height: 20px;
  color: var(--purple-deep);
  margin-bottom: 6px;
}
.trust span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #2a1658;
}
.card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.card .k {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card .name {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ink);
}
.card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}
.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #efe9ff;
  color: var(--purple-deep);
}
.badge.is-test { background: #fff4d6; color: var(--warn); }
.freedom {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #efe9ff 0%, #f8f4ff 100%);
  color: #2a1658;
}
.freedom p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.freedom b {
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
  font-size: 15px;
  color: var(--purple-deep);
}
.benefits {
  margin: 8px 0 22px;
}
.benefits h2,
.secure-box h2,
.terms h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--ink);
}
.benefits ul,
.secure-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0eef5;
  font-size: 14px;
  line-height: 1.45;
  color: #3d3a4a;
}
.benefits li:last-child { border-bottom: 0; }
.benefits li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--purple-deep);
}
.benefits li em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.secure-box {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f5f8;
}
.secure-box p,
.secure-box li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5768;
}
.secure-box ul { padding-left: 18px; list-style: disc; }
.field { margin: 0 0 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: 400 16px Nunito, sans-serif;
  color: var(--ink);
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 14px;
}
.total span {
  font-size: 13px;
  color: var(--muted);
}
.total b {
  font-size: 22px;
  font-weight: 400;
  color: var(--purple-deep);
  letter-spacing: -.3px;
}
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a5768;
}
.agree input {
  margin-top: 3px;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--purple-deep);
}
.agree a { color: var(--purple-deep); }
.cta {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font: 400 16px Nunito, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.cta:disabled { opacity: .45; cursor: default; }
a.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 8px 0 12px;
}
a.ghost {
  display: block;
  text-align: center;
  margin: 8px 0;
  color: var(--purple-deep);
  text-decoration: none;
  font-size: 14px;
}
.terms-open {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 8px 0 14px;
  border: 0;
  background: none;
  color: var(--purple-deep);
  font: 400 14px Nunito, sans-serif;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}
.terms-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 20px 40px;
}
.terms-sheet[hidden] { display: none !important; }
.terms-sheet-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 12px;
  background: #fff;
}
.terms-sheet-close {
  border: 0;
  background: none;
  color: var(--purple-deep);
  font: 400 15px Nunito, sans-serif;
  padding: 8px 0;
  cursor: pointer;
}
.terms {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.secure {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.err {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecee;
  color: #b42318;
  font-size: 14px;
}
.err.is-on { display: block; }
.pix {
  display: none;
  text-align: center;
  margin: 12px 0 8px;
}
.pix.is-on { display: block; }
.pix img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
}
.pix code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12px;
  word-break: break-all;
}
.ok-box {
  display: none;
  text-align: center;
  padding: 20px 8px 8px;
}
.ok-box.is-on { display: block; }
.ok-box h2 { margin: 0 0 8px; font-size: 20px; }
.terms-meta {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.terms h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  color: var(--ink);
}
.terms p,
.terms li {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #5a5768;
}
.terms ul {
  margin: 0 0 12px;
  padding-left: 18px;
}
.foot {
  margin-top: 8px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.foot a { color: var(--purple-deep); }
#pay-live[hidden],
#pay-form[hidden] { display: none !important; }
