:root {
  --gold: #E8B931;
  --gold-dark: #C99612;
  --orange: #F08C2E;
  --soft: #FFF4E6;
  --gold-soft: #FFF6DE;
  --ink: #191C22;
  --muted: #5C6370;
  --line: #E6E8EE;
  --page: #F4F5F7;
  --card: #fff;
  --sidebar: #12141A;
  --sidebar-2: #0C0E12;
  --danger: #B42318;
  --ok: #067647;
  --font: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; font-size: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 9; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0;
  background: var(--gold); color: #111; font-weight: 700; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 24px rgba(232, 185, 49, .28);
}
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.secondary, .btn.ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.btn.text { background: transparent; box-shadow: none; color: var(--ink); min-height: 44px; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #F3C7C3; box-shadow: none; }
.btn.full { width: 100%; }
.btn + .btn { margin-left: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span, .field > span { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 48px; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 185, 49, .22);
}
.field .error, .form-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #FFF8F7; }
.hint { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 12px 0; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 2px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 92px; }
.pw-toggle {
  position: absolute; right: 8px; top: 8px; min-height: 36px; border: 0; background: transparent;
  font-weight: 700; color: var(--muted); cursor: pointer;
}

.flash { border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.flash.ok { background: #ECFDF3; color: var(--ok); }
.flash.erro { background: #FEF3F2; color: var(--danger); }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--soft); color: #8A4B08; font-size: 12px; font-weight: 700;
}
.badge.ok { background: #ECFDF3; color: var(--ok); }
.badge.warn { background: #FFF7ED; color: #C2410C; }
.badge.neutral { background: #F2F4F7; color: #344054; }
.banner {
  background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
  border-radius: 16px; padding: 14px 16px; margin: 12px 0; font-weight: 600;
}
.banner.bad { background: #FEF3F2; border-color: #F3C7C3; color: var(--danger); }

.card, .gold-card {
  background: #fff; border-radius: 24px; border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .07); padding: 22px; margin-bottom: 14px;
}
.kpis, .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi, .gold-stat {
  position: relative; overflow: hidden; background: #fff; border-radius: 20px;
  border: 1px solid #EEF2F7; padding: 22px; box-shadow: 0 12px 32px rgba(15, 23, 42, .055); margin: 0;
}
.kpi::after, .gold-stat::after {
  content: ""; position: absolute; width: 80px; height: 80px; right: -28px; bottom: -36px;
  border-radius: 50%; background: rgba(232, 185, 49, .16);
}
.kpi span, .gold-stat span {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #6B7280; font-weight: 700;
}
.kpi b, .gold-stat b { position: relative; z-index: 1; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.04em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > *, .split > *, .kpis > *, .card, .field, input, select, textarea { min-width: 0; max-width: 100%; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tools input, .tools select { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fff; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cards-only { display: none; }
.content > h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.empty {
  padding: 28px 8px; color: var(--muted); text-align: center;
}
.progress { height: 8px; background: #EEE; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--orange)); }

/* Login — estrutura da Gold */
.auth-page { background: #0c0c0c; min-height: 100dvh; }
.auth-login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem); color: #fff;
}
.auth-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(232,185,49,.12) 0%, transparent 42%), linear-gradient(220deg, #161616 0%, #0a0a0a 55%, #1a1508 100%);
}
.auth-hero-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 75%);
}
.auth-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.auth-glow.a { width: 420px; height: 420px; top: -80px; right: -60px; background: rgba(232,185,49,.22); }
.auth-glow.b { width: 320px; height: 320px; bottom: 10%; left: -80px; background: rgba(240,140,46,.12); }
.auth-hero-content { position: relative; z-index: 1; max-width: 34rem; }
.auth-hero img.mark { height: 3.25rem; width: auto; margin-bottom: 1.75rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--gold); }
.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 1rem;
}
.auth-hero h1 span { display: block; }
.auth-hero .lead { font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,.72); margin: 0 0 2.5rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.features li {
  display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 1rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.feat-n {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, var(--gold), #ffe082); flex: 0 0 2.5rem;
}
.features strong { display: block; font-size: .92rem; }
.features span { display: block; font-size: .82rem; color: rgba(255,255,255,.58); }
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(circle at top, rgba(232,185,49,.08), transparent 40%), #f4f5f7;
  min-height: 100dvh;
}
.auth-panel-inner { width: min(100%, 28rem); }
.mobile-brand { display: none; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6b7280; }
.mobile-brand img { height: 36px; width: auto; }
.auth-card {
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 24px 60px rgba(15,23,42,.08), 0 1px 0 rgba(255,255,255,.9) inset;
}
.auth-card h2 { font-size: clamp(1.65rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .4rem; }
.auth-card .hint { margin-top: 0; }
.auth-card .links { margin-top: 16px; font-weight: 600; }
.auth-card .links a { color: var(--gold-dark); }

/* Shell */
.app { background: var(--page); }
.shell { min-height: 100dvh; display: flex; }
.side {
  width: 18rem; flex: 0 0 18rem; color: #fff;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; z-index: 50;
}
.side-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 22px 18px 8px; }
.side-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; }
.side-brand img { height: 42px; width: auto; }
.side-eye { margin: 0 18px 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.collapse {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #fff; cursor: pointer;
}
.contract {
  margin: 0 14px 14px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 10px; align-items: flex-start;
}
.contract b { display: block; font-size: 14px; }
.contract span { display: block; font-size: 12px; color: rgba(255,255,255,.62); }
.side nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; overflow: auto; }
.side nav a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  text-decoration: none; color: rgba(255,255,255,.82); font-weight: 600;
}
.side nav a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side nav a.active { background: rgba(232,185,49,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(232,185,49,.35); }
.side-foot { margin-top: auto; padding: 14px; }
.side-foot a { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 28px;
}
.top-title p { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.top-title h1 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.menu-btn { display: none; }
.account { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.avatar-btn small { display: block; color: var(--muted); font-size: 11px; }
.account-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff;
  border-radius: 16px; box-shadow: 0 18px 40px rgba(15,23,42,.12); border: 1px solid var(--line); padding: 8px; z-index: 40;
}
.account.open .account-menu { display: block; }
.account-menu a, .account-menu p { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; margin: 0; }
.overlay { display: none; }
.content { padding: 28px 32px; overflow-wrap: anywhere; }
.shell.collapsed .side { width: 5.5rem; flex-basis: 5.5rem; }
.shell.collapsed .hide-collapsed { display: none; }

/* Campanha pública */
.public { background: #fff; }
.pub-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 28px; position: sticky; top: 0; z-index: 20; background: rgba(12,14,18,.92); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: inherit; }
.brand img { height: 44px; width: auto; }
.pub-nav { display: flex; gap: 18px; align-items: center; }
.pub-nav a { text-decoration: none; font-weight: 600; }
.pub-nav .btn { color: #111; }
.fold {
  min-height: calc(100dvh - 80px); display: flex; align-items: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(240,140,46,.28), transparent 36%),
    linear-gradient(165deg, #171A21, #0C0E12 72%);
  color: #fff; padding: 4rem 0 5rem;
}
.fold h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 1rem; max-width: 14ch; }
.fold .sentence { font-size: 1.15rem; max-width: 36rem; color: rgba(255,255,255,.78); margin: 0 0 2rem; }
.date-row { display: flex; gap: 28px; margin: 0 0 2rem; flex-wrap: wrap; }
.date-row div { display: flex; flex-direction: column; }
.date-row b { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.date-row span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.paper { background: #F7F4EE; }
.section { padding: 4rem 0; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 8px; }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.path article {
  background: #fff; border-radius: 22px; padding: 22px; min-height: 180px;
  box-shadow: 0 16px 40px rgba(15,23,42,.05);
}
.path i {
  display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--orange)); color: #111; font-weight: 800; font-style: normal; margin-bottom: 12px;
}
.faq { border-bottom: 1px solid #E7E1D6; }
.faq summary {
  cursor: pointer; font-weight: 700; min-height: 56px; display: flex; align-items: center; justify-content: space-between; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--orange); }
.faq[open] summary::after { content: "–"; }
.faq p { margin-top: 0; color: var(--muted); }
.law { background: #12141a; color: #fff; }
.law h2, .law p { color: #fff; }
.law p { color: rgba(255,255,255,.72); max-width: 36rem; }
.law-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.law-list b { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #111; }
.law-list span { color: rgba(255,255,255,.78); }
.law-list strong { display: block; color: #fff; }
.ribbon { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 18px 48px rgba(15,23,42,.06); }
.ribbon h2 { margin: 0 0 6px; }
.ribbon p { margin: 0; color: var(--muted); }
.ribbon-links { display: flex; flex-direction: column; gap: 8px; font-weight: 800; }
.ribbon-links a { color: #111; }
.kpis { margin-top: 14px; }
.gold-page-intro { margin-bottom: 16px; }
.gold-page-intro .gold-eyebrow { color: var(--gold); }
.gold-shortcut-grid { margin-top: 14px; }
.gold-shortcut { text-decoration: none; color: inherit; }
.stable-slot { height: 240px; overflow: auto; }
.pub-foot { display: flex; justify-content: space-between; gap: 24px; padding: 48px 0; color: #3c414c; }
.wa {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: #128C7E; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(18,140,126,.35); z-index: 25;
}
.wa svg { width: 28px; height: 28px; }
.sticky-cta { display: none; }
.legal { max-width: 42rem; }

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
  .sticky-cta { display: none !important; }
}
@media (max-width: 1023px) {
  .auth-login-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .mobile-brand { display: flex; justify-content: center; }
  .auth-panel { align-items: flex-start; padding-top: 2rem; }
  .kpis, .stat-grid, .path, .grid-3 { grid-template-columns: 1fr 1fr; }
  .side { position: fixed; transform: translateX(-105%); transition: transform .25s ease; width: min(18rem, 86vw); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .overlay { display: block; position: fixed; inset: 0; background: rgba(8,10,14,.62); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .collapse { display: none; }
  body.nav-lock { overflow: hidden; }
}
@media (max-width: 767px) {
  .kpis, .stat-grid, .grid-2, .grid-3, .split, .path, .law-grid, .gold-shortcut-grid { grid-template-columns: 1fr; }
  .ribbon { flex-direction: column; align-items: flex-start; }
  .table-wrap { display: none; }
  .cards-only { display: block; }
  .content { padding: 16px; }
  .top { padding: 10px 14px; }
  .top-title h1 { font-size: 1.05rem; }
  .avatar-meta, .gold-avatar-btn__chevron { display: none; }
  .pub-bar { padding: 14px 16px; }
  .hide-sm { display: none; }
  .fold { padding: 3rem 0 4rem; min-height: auto; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 24;
  }
  .wa { bottom: 84px; }
  .page-pad { padding-bottom: 96px; }
  .pub-foot { flex-direction: column; }
  .btn + .btn { margin-left: 0; margin-top: 8px; }
}
