:root {
  --bg: #0b1020;
  --bg-alt: #0f1628;
  --surface: #141d33;
  --surface-2: #1a2440;
  --line: #24304f;
  --text: #eef2fb;
  --text-dim: #a3aec7;
  --text-mute: #6f7c9b;
  --accent: #22c58a;
  --accent-dark: #16a06e;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.topnav a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06231a; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: auto; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 16px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent);
}
.hero h1 {
  margin: 0 0 20px; font-size: 46px; line-height: 1.14;
  font-weight: 700; letter-spacing: -0.025em; max-width: 20ch;
}
.lead { margin: 0 0 32px; max-width: 60ch; font-size: 18px; color: var(--text-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 12px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.section-lead { margin: 0 0 36px; max-width: 68ch; color: var(--text-dim); font-size: 16px; }
.note { margin: 24px 0 0; font-size: 13px; color: var(--text-mute); max-width: 72ch; }

/* ---------- calculadora ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 28px; align-items: start;
}
.calc-inputs {
  display: grid; gap: 22px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: grid; gap: 8px; }
.field > label {
  font-size: 14px; font-weight: 600; color: var(--text);
}
.field input[type="number"], .field select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px;
}
.field input[type="number"]:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.slider { width: 100%; accent-color: var(--accent); }
.inline { display: flex; align-items: center; gap: 14px; }
.inline output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 82px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { margin: 0; font-size: 13px; color: var(--text-mute); }
/* Extremos da faixa, alinhados com as pontas do slider. */
.faixa { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

.calc-result {
  padding: 26px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: 88px;
}
.result-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
.result-total {
  display: block; margin: 4px 0 2px; font-size: 38px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.result-sub { font-size: 13px; color: var(--text-dim); }

.breakdown { width: 100%; margin: 6px 0 0; border-collapse: collapse; }
.breakdown th, .breakdown td {
  padding: 11px 0; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.breakdown th { font-weight: 500; color: var(--text-dim); }
.breakdown th small { display: block; font-size: 12px; color: var(--text-mute); font-weight: 400; }
.breakdown td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.breakdown tr.muted th, .breakdown tr.muted td { color: var(--text-mute); }
.breakdown tr.subtotal th, .breakdown tr.subtotal td { font-weight: 600; color: var(--text); }
.breakdown tr.total th, .breakdown tr.total td {
  font-size: 16px; font-weight: 700; color: var(--text);
  border-bottom-color: var(--text-mute);
}

.callout {
  margin: 20px 0 0; padding: 14px 16px; font-size: 14px;
  background: rgba(34, 197, 138, 0.09);
  border: 1px solid rgba(34, 197, 138, 0.32);
  border-radius: 8px; color: var(--text-dim);
}
.callout strong { color: var(--text); }

/* ---------- planos ---------- */
.planos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plano {
  display: flex; flex-direction: column; padding: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); position: relative;
}
.plano-destaque { border-color: var(--accent); }
.tag {
  position: absolute; top: -11px; left: 24px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--accent); color: #06231a; border-radius: 999px;
}
.plano h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.plano-publico { margin: 0 0 16px; font-size: 13px; color: var(--text-mute); min-height: 38px; }
.plano-preco {
  margin: 0 0 18px; font-size: 34px; font-weight: 700;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.plano-preco .cifra { font-size: 17px; font-weight: 600; margin-right: 3px; color: var(--text-dim); }
.plano-preco .por { font-size: 14px; font-weight: 500; color: var(--text-mute); }
.plano dl { margin: 0 0 18px; display: grid; gap: 10px; }
.plano dt {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-mute);
}
.plano dd { margin: 2px 0 0; font-size: 14px; color: var(--text-dim); }
.plano-obs { margin: 0 0 16px; font-size: 12px; color: var(--text-mute); }

/* ---------- footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-mute); }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
  .planos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 620px) {
  .planos { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .topnav { gap: 14px; }
  .topnav a:first-child { display: none; }
  .plano-publico { min-height: 0; }
}
