:root {
  --bg: #0B0C0C;
  --bg-elev: #141515;
  --bg-elev-2: #1b1c1c;
  --fg: #FFFBF1;
  --fg-muted: rgba(255, 251, 241, 0.55);
  --fg-dim: rgba(255, 251, 241, 0.35);
  --border: rgba(255, 251, 241, 0.08);
  --border-hover: rgba(255, 251, 241, 0.18);
  --accent: #E72864;
  --gradient: linear-gradient(135deg, #5B2A6B 0%, #E72864 35%, #E74C1E 65%, #B5B91F 100%);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -300px;
  right: -300px;
  width: 700px;
  height: 700px;
  background: var(--gradient);
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  bottom: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #5B2A6B, #E72864);
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: float 24s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 40px); }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 40px;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto 8px;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
nav a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--fg); }

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 40px 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.hero p { margin: 0 auto; }
.hero .stats { justify-content: center; width: 100%; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: fit-content;
}
.hero .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39D98A;
  box-shadow: 0 0 10px #39D98A;
}
.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.hero p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 480px;
}
.hero .stats {
  display: flex;
  gap: 40px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
}
.stat .label {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.login-card {
  background: linear-gradient(180deg, rgba(255,251,241,0.03) 0%, rgba(255,251,241,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.6;
}
.login-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.login-card .sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.tab-group {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: var(--bg-elev-2);
  color: var(--fg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.field input {
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--bg-elev-2);
}
.field input::placeholder { color: var(--fg-dim); }

.row-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 20px;
  font-size: 13px;
}
.row-helper .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  cursor: pointer;
}
.row-helper .remember input {
  accent-color: var(--accent);
}
.row-helper a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.row-helper a:hover { color: var(--fg); }

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: var(--fg);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(231, 40, 100, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-wallet {
  width: 100%;
  padding: 13px;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-wallet:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-hover);
}
.btn-wallet svg { width: 18px; height: 18px; }

footer {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-dim);
  font-size: 13px;
}
footer .legal { display: flex; gap: 20px; }
footer a { color: var(--fg-dim); text-decoration: none; }
footer a:hover { color: var(--fg-muted); }

@media (max-width: 960px) {
  main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 24px;
  }
  .hero .stats { gap: 24px; }
  header { padding: 20px 24px; }
  footer { padding: 20px 24px; flex-direction: column; gap: 12px; }
}

/* ---------- Estados do cartão (login, cadastro, código, conta) ---------- */
[hidden] { display: none !important; }

.alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(231, 40, 100, 0.45);
  background: rgba(231, 40, 100, 0.08);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg);
}
.alert.ok {
  border-color: rgba(57, 217, 138, 0.45);
  background: rgba(57, 217, 138, 0.08);
}

.field .hint { font-size: 12px; color: var(--fg-dim); }
.field input.code {
  font-family: 'Space Grotesk', monospace;
  font-size: 24px;
  letter-spacing: 0.4em;
  text-align: center;
}

.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-primary:focus-visible, .btn-link:focus-visible, .tab:focus-visible, nav a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.field input:focus-visible { border-color: var(--fg-muted); }

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-link:hover { color: var(--fg); }
.form-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }

.terms { font-size: 12px; line-height: 1.5; color: var(--fg-dim); margin: -2px 0 18px; }
.terms a { color: var(--fg-muted); }

#turnstile { margin-bottom: 16px; }
#turnstile:empty { display: none; }

.account-rows { border-top: 1px solid var(--border); margin-bottom: 24px; }
.account-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.account-rows dt { color: var(--fg-muted); }
.account-rows dd { text-align: right; overflow-wrap: anywhere; }
.next-step { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin-bottom: 24px; }

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

/* ---------- Pré-lançamento (cartão da home) ---------- */
.soon-links { list-style: none; border-top: 1px solid var(--border); }
.soon-links a {
  display: flex;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  transition: padding 0.2s, color 0.2s;
}
.soon-links a:hover { padding-left: 8px; }
.soon-links span { color: var(--fg-muted); }

/* ---------- Páginas de conteúdo (como funciona, taxas, segurança, suporte) ---------- */
.page.doc { grid-template-rows: auto 1fr auto; }
.page.doc header { justify-content: space-between; gap: 24px; }
.brand img { display: block; height: 30px; width: auto; }
nav a[aria-current="page"] { color: var(--fg); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  color: var(--fg) !important;
}
.nav-cta:hover { background: var(--bg-elev-2); }

.content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px 96px;
}
.content .kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.content h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.content h1 em {
  font-style: normal;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.content .lead { font-size: 18px; line-height: 1.6; color: var(--fg-muted); max-width: 640px; }
.content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 64px 0 8px;
}
.content h2 + p { color: var(--fg-muted); margin-bottom: 24px; }
.content h3 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.content p { font-size: 15.5px; line-height: 1.65; }
.content p + p { margin-top: 12px; }
.content a { color: var(--fg); text-underline-offset: 3px; }
.content strong { font-weight: 600; }

.notice {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.notice b { color: var(--fg); font-weight: 600; white-space: nowrap; }

/* passos numerados */
.steps { list-style: none; counter-reset: passo; border-top: 1px solid var(--border); }
.steps li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.steps li::before {
  content: counter(passo, decimal-leading-zero);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--accent);
  padding-top: 2px;
}
.steps p { color: var(--fg-muted); }

/* blocos lado a lado */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.box {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,251,241,0.03), rgba(255,251,241,0.01));
}
.box p { color: var(--fg-muted); font-size: 14.5px; }
.box .tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* tabelas */
.table-wrap { overflow-x: auto; }
.content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.content th, .content td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.content th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; }
.content td:first-child { font-weight: 600; white-space: nowrap; }
.content td { color: var(--fg-muted); }
.content td:first-child { color: var(--fg); }

/* listas simples */
.ticks { list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 26px; font-size: 15.5px; line-height: 1.55; color: var(--fg-muted); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 2px; background: var(--accent); }
.ticks strong { color: var(--fg); }

/* simulador de taxa */
.calc { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); position: relative; overflow: hidden; }
.calc::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--gradient); opacity: 0.6; }
.calc .field { max-width: 320px; margin-bottom: 24px; }
.calc output { display: block; }
.calc-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.calc-rows .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 6px; }
.calc-rows .val { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-rows .sub { font-size: 13px; color: var(--fg-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.calc .fine { margin-top: 20px; font-size: 13px; color: var(--fg-dim); }

/* perguntas frequentes */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-size: 16px; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 20px; color: var(--fg-muted); }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.faq details p { padding: 0 0 20px; color: var(--fg-muted); max-width: 680px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  color: var(--fg);
}
.btn.primary { background: var(--gradient); border-color: transparent; }
.btn:hover { background-color: var(--bg-elev-2); }

@media (max-width: 960px) {
  .content { padding: 28px 24px 72px; }
  .page.doc header { flex-wrap: wrap; }
  .page.doc nav { gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
  .cols, .cols.three, .calc-rows { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 40px 1fr; }
  nav { gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Taxas: faixa ativa e simulador em 3 colunas ---------- */
.calc-rows.three { grid-template-columns: repeat(3, 1fr); }
#faixas td:last-child { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: var(--fg); font-variant-numeric: tabular-nums; }
#faixas tr.on td { background: rgba(231, 40, 100, 0.09); }
#faixas td:first-child, #faixas th:first-child { padding-left: 14px; }
#faixas tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 960px) { .calc-rows.three { grid-template-columns: 1fr; } }
