/* ============================================================
   Campanha «IRS 12,5 % para o trabalho independente»
   Tema escuro · navy #1F3864 · dourado #F2C14E · Georgia
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #191919;
  --surface: #212832;
  --surface-2: #1c2129;
  --navy: #1F3864;
  --navy-deep: #14243f;
  --gold: #F2C14E;
  --gold-dim: #c98500;
  --ink: #f2f2f0;
  --ink-2: #c9c9c2;
  --ink-3: #a8a8a2;
  --ink-4: #8f8f89;
  --line: #3a3a38;
  --line-strong: #6b6b66;
  --pos: #7fc98f;
  --neg: #e89b93;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #14243f; padding: 10px 16px;
  font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 26, 36, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a3548;
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.nav-brand {
  font-weight: 700; color: var(--ink); text-decoration: none;
  font-size: 17px; letter-spacing: .3px; margin-right: auto;
}
.nav-brand .pct { color: var(--gold); }
.nav a.nav-link {
  color: var(--ink-2); text-decoration: none; font-size: 15.5px;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 17px;
  letter-spacing: .4px;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-gold { background: var(--gold); color: #14243f; }
.btn-gold:hover { background: #f6cf6f; }
.btn-ghost { border-color: #56617a; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 20px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 75% -10%, #2c4b82 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, #101c30 100%);
  border-bottom: 1px solid #2a3548;
  padding: 72px 0 64px;
  text-align: center;
}
.hero .kicker {
  color: #b9c6de; letter-spacing: 4px; font-size: 13.5px;
  text-transform: uppercase; margin: 0 0 18px;
}
.hero .kicker::before, .hero .kicker::after {
  content: "——"; color: var(--gold); margin: 0 12px; letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: .2px;
}
.hero h1 .big { color: var(--gold); }
.hero .sub {
  color: #d5dcea; font-size: clamp(17px, 2.6vw, 21px);
  margin: 0 auto 34px; max-width: 640px;
}
.hero .sub .dot { color: var(--gold); margin: 0 8px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- milestones ---------- */
.milestones {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; color: #b9c6de; font-size: 14.5px;
}
.milestones span b { color: var(--gold); }

/* ---------- sections ---------- */
section { padding: 64px 0 8px; }
.eyebrow {
  color: var(--gold); text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; margin: 0 0 8px; font-weight: 700;
}
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 720px; }
p { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 700px) { .cards.c2 { grid-template-columns: 1fr 1fr; } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid #2c3440;
  border-radius: 12px;
  padding: 22px 22px 18px;
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 8px 0 0; }
.card .stat { font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.card .stat.pos { color: var(--pos); }
.card .stat.neg { color: var(--neg); }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.card li { margin: 6px 0; }

.trade { border-top: 3px solid var(--gold); }
.trade.lose { border-top-color: #56617a; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  margin: 0 0 10px; font-size: 16px; line-height: 1.45;
  min-width: 560px;
}
th, td {
  text-align: left; vertical-align: top;
  padding: 14px 16px 14px 2px;
  border-bottom: 1px solid var(--line);
}
thead th { font-weight: 700; border-bottom: 1px solid var(--line-strong); padding-top: 0; }
td.num, th.num { text-align: right; white-space: nowrap; padding-right: 2px; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-bottom: 1px solid var(--line-strong); }
tr.subtotal td { font-style: italic; color: #d8d8d2; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.gold { color: var(--gold); }
p.note {
  color: var(--ink-4); font-size: 13.5px; line-height: 1.55;
  margin: 14px 0 40px; max-width: 860px;
}
p.note b { color: #b5b5af; }

/* ---------- comparison ---------- */
.compare-row td:first-child { font-weight: 700; }
.flag { margin-right: 8px; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid #2c3440; border-radius: 10px;
  background: var(--surface-2);
  margin: 0 0 12px; padding: 0 20px;
}
details summary {
  cursor: pointer; font-weight: 700; font-size: 17px;
  padding: 16px 0; list-style: none; position: relative; padding-right: 34px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  color: var(--gold); font-size: 24px; font-weight: 400;
}
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); font-size: 15.5px; margin-top: 0; }

/* ---------- docs ---------- */
.doc-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-list a {
  display: block; background: var(--surface); border: 1px solid #2c3440;
  border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink);
}
.doc-list a:hover { border-color: var(--gold); }
.doc-list .doc-title { font-weight: 700; }
.doc-list .doc-meta { color: var(--ink-3); font-size: 14px; }

/* ---------- share ---------- */
.share-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }

/* ---------- chart ---------- */
.chart-card {
  background: var(--surface); border: 1px solid #2c3440; border-radius: 12px;
  padding: 22px; margin: 28px 0 10px; position: relative;
}
.chart-legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 14px; font-size: 15px; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.chart-legend .swatch { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
#chart-tooltip {
  position: absolute; pointer-events: none; display: none;
  background: #10151d; border: 1px solid #3a4554;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; line-height: 1.5;
  min-width: 170px; z-index: 5;
}
#chart-tooltip b { display: block; margin-bottom: 4px; }
#chart-tooltip .row { display: flex; justify-content: space-between; gap: 16px; }
#chart-tooltip .row .v { font-variant-numeric: tabular-nums; }

/* ---------- scenario tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.tab-btn {
  font-family: var(--serif); font-size: 15.5px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid #2c3440; border-radius: 999px 999px 0 0;
  border-bottom: none; padding: 10px 22px; cursor: pointer;
}
.tab-btn[aria-selected="true"] { background: var(--surface); color: var(--gold); border-color: #3a4554; }
.tab-panel {
  background: var(--surface); border: 1px solid #3a4554; border-radius: 0 12px 12px 12px;
  padding: 20px 20px 6px;
}
.tab-panel[hidden] { display: none; }
.tab-panel table { font-size: 14.5px; min-width: 640px; }
.tab-panel th, .tab-panel td { padding: 10px 12px 10px 2px; }

/* ---------- footer ---------- */
footer {
  margin-top: 72px; border-top: 1px solid #2a3548;
  background: var(--navy-deep);
  padding: 42px 0 48px; color: #b9c6de; font-size: 15px;
}
footer a { color: var(--gold); }
footer .foot-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { footer .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer h4 { color: var(--ink); margin: 0 0 8px; font-size: 16px; }
footer p { margin: 0 0 8px; }

/* ---------- final CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid #2a3548; border-radius: 16px;
  text-align: center; padding: 48px 24px; margin: 64px 0 0;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0 auto 26px; max-width: 560px; color: #d5dcea; }

/* ---------- manifesto ---------- */
.manifesto p { font-size: 18px; line-height: 1.75; max-width: 720px; }
.manifesto h2 { margin-top: 56px; }
.manifesto .lead-cap { font-size: 20px; color: var(--ink); }
.pullquote {
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 29px);
  line-height: 1.4;
  color: var(--gold);
  max-width: 680px;
  margin: 46px auto;
  text-align: center;
}
.pullquote::before { content: "«"; }
.pullquote::after { content: "»"; }
.stat-row { display: grid; gap: 16px; margin: 34px 0; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- mobile nav: brand+CTA on top, swipeable tabs below ---------- */
.nav-links { display: contents; }
@media (max-width: 719px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
  .nav-links {
    display: flex; order: 3; flex: 1 0 100%;
    gap: 24px; overflow-x: auto;
    padding: 10px 2px 12px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav a.nav-link { white-space: nowrap; font-size: 15.5px; padding: 2px 0; }
  .nav a.nav-link[aria-current="page"] {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
  }
}
