/* ==========================================================================
   Guia de Corretoras FX — Design System
   pt-BR · static · no framework
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --paper: #F8F6F1;
  --paper-2: #F1EDE4;
  --surface: #FFFFFF;
  --ink: #1B2B36;
  --ink-soft: #46586A;
  --ink-faint: #75828D;
  --line: #E6E1D5;
  --line-strong: #D8D2C2;

  --brand-950: #082336;
  --brand-900: #0A2E42;
  --brand-800: #0E4A63;
  --brand-700: #145D7C;
  --brand-600: #1B7095;
  --brand-100: #DCECF4;
  --brand-50:  #EFF6FA;

  --green-700: #0B8A55;
  --green-600: #0FA968;
  --green-500: #19C37D;
  --green-100: #DCF3E7;
  --green-50:  #EFFAF4;

  --amber-600: #C77E1A;
  --amber-100: #F9EBD3;
  --amber-50:  #FCF5E8;

  --red-600: #C24040;
  --red-100: #F8E0E0;

  /* type */
  --font-head: 'Saira', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(20, 40, 55, .05);
  --sh-2: 0 4px 14px rgba(20, 40, 55, .07);
  --sh-3: 0 10px 30px rgba(20, 40, 55, .10);

  /* layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 28px);
  --header-h: 68px;

  /* motion */
  --ease: cubic-bezier(.3, .6, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--brand-900); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 650; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
strong { font-weight: 650; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .35em; }
::selection { background: var(--green-100); color: var(--brand-900); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--brand-900); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 7vw, 76px) 0; }
.section--tight { padding: clamp(30px, 5vw, 52px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--brand { background: var(--brand-900); color: #D9E6EE; }
.section--brand h2, .section--brand h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
  margin: 0 0 .6em; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-500); border-radius: 2px; }
.section--brand .eyebrow { color: var(--green-500); }

.section-head { max-width: 720px; margin-bottom: 2.2em; }
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }
.section--brand .section-head p { color: #A9C3D2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand:hover { opacity: .92; }
.brand svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-head); font-weight: 650; font-size: 1.06rem; color: var(--brand-900); line-height: 1.1; letter-spacing: -.01em; }
.brand-name small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--green-600); text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.main-nav a:hover { color: var(--brand-800); background: var(--brand-50); }
.main-nav a[aria-current="page"] { color: var(--brand-900); background: var(--brand-50); }

.nav-toggle { display: none; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-md);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 2px 0 rgba(11,138,85,.35); }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--sh-2); }
.btn--navy { background: var(--brand-800); color: #fff; }
.btn--navy:hover { background: var(--brand-700); color: #fff; }
.btn--outline { background: transparent; color: var(--brand-800); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.btn--white { background: #fff; color: var(--brand-900); box-shadow: var(--sh-2); }
.btn--white:hover { color: var(--brand-900); }
.btn--sm { height: 38px; padding: 0 15px; font-size: .9rem; border-radius: var(--r-sm); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-900); color: #DCE8F0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(25,195,125,.16) 0, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(27,112,149,.28) 0, transparent 48%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  pointer-events: none;
}
.hero-inner { position: relative; padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 7vw, 80px); }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 5vw, 3.15rem); font-weight: 700; max-width: 16em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--green-500); }
.hero .lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: #B9CFDC; max-width: 46em; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.4em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #8FB0C2; font-size: .92rem; }
.hero-meta strong { color: #E7F1F6; font-weight: 650; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); display: inline-block; margin-right: 8px; vertical-align: middle; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card--hover { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--line-strong); }

.broker-card { display: flex; flex-direction: column; padding: 22px; height: 100%; }
.broker-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.broker-logo {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.broker-logo img { width: 100%; height: 100%; object-fit: contain; }
.broker-logo--dark { background: #0E2233; }
.broker-logo--dark img { filter: none; }
.broker-logo--sm { width: 52px; height: 52px; padding: 6px; border-radius: var(--r-sm); }
.broker-card__name { font-family: var(--font-head); font-weight: 650; font-size: 1.12rem; color: var(--brand-900); line-height: 1.2; }
.broker-card__tag { color: var(--ink-faint); font-size: .86rem; margin-top: 2px; }
.broker-card__body { flex: 1; }
.broker-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.broker-card__facts { display: grid; grid-template-columns: 1fr; gap: 7px 14px; margin-bottom: 16px; }
.broker-card__fact { display: flex; justify-content: space-between; gap: 10px; font-size: .87rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); padding-bottom: 6px; min-width: 0; }
.broker-card__fact dt { color: var(--ink-faint); flex-shrink: 0; }
.broker-card__fact dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; min-width: 0; overflow-wrap: break-word; }
.broker-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.broker-card__actions .btn { flex: 1; }

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-800); white-space: nowrap;
}
.tag--green { background: var(--green-50); color: var(--green-700); }
.tag--amber { background: var(--amber-50); color: var(--amber-600); }
.tag--red { background: var(--red-100); color: var(--red-600); }
.tag--gray { background: var(--paper-2); color: var(--ink-soft); }
.tag--line { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

.badge-pix {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  background: #F0FCF5; color: #0B8A55; border: 1px solid #BFE8D2;
  padding: 3px 10px; border-radius: var(--r-pill); font-size: .78rem; letter-spacing: .01em;
}
.badge-pix svg { width: 14px; height: 14px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--brokers { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-1); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--brand-900); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .88rem; position: sticky; top: 0; }
.compare-table tbody tr:nth-child(even) { background: #FBF9F4; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 600; color: var(--ink-soft); width: 190px; font-size: .88rem; }
.compare-table .yes { color: var(--green-700); font-weight: 650; }
.compare-table .no { color: var(--ink-faint); }
.compare-table .table-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 650; color: var(--brand-900); font-size: .95rem; }
.compare-table .table-logo img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.compare-table .table-logo--dark img { background: #0E2233; }

/* ---------- Fact sheet (broker page) ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact-cell { background: #fff; padding: 16px 18px; }
.fact-cell dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; margin-bottom: 5px; }
.fact-cell dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.45; }

/* ---------- Article / prose ---------- */
.prose { font-size: 1.03rem; line-height: 1.75; color: var(--ink); }
.prose h2 { margin-top: 1.9em; padding-top: .4em; }
.prose h3 { margin-top: 1.5em; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { font-weight: 550; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--green-500); background: var(--green-50); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-soft); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .86rem; color: var(--ink-faint); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-head); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- Status / info panels ---------- */
.panel { border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--line); background: #fff; }
.panel--green { background: var(--green-50); border-color: #C8E9D7; }
.panel--amber { background: var(--amber-50); border-color: #EFDDB4; }
.panel--red { background: var(--red-100); border-color: #ECC9C9; }
.panel--navy { background: var(--brand-50); border-color: #CBDFEB; }
.panel-title { font-family: var(--font-head); font-weight: 650; color: var(--brand-900); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .98rem; }
.panel-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.panel p:last-child { margin-bottom: 0; }

.risk-note { font-size: .88rem; color: var(--ink-faint); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 14px 18px; background: var(--paper); }
.risk-note strong { color: var(--ink-soft); }

.status-box { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 18px; margin-bottom: 22px; font-size: .9rem; }
.status-box .item { color: var(--ink-soft); }
.status-box .item strong { color: var(--ink); font-weight: 650; display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 2px; }
.status-box .item .value { font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .86rem; color: var(--ink-faint); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(34px, 5vw, 56px) 0 0; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }

/* ---------- FAQ ---------- */
/* ---------- Guide / post cards ---------- */
.content-card { display: flex; flex-direction: column; padding: 22px; height: 100%; text-decoration: none; color: inherit; }
.content-card:hover { color: inherit; }
.content-card__cat { font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }
.content-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.content-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 14px; flex: 1; }
.content-card__meta { font-size: .82rem; color: var(--ink-faint); display: flex; gap: 14px; flex-wrap: wrap; }
.content-card__meta time { display: inline-flex; align-items: center; gap: 5px; }
.content-card__link { font-weight: 650; color: var(--brand-700); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.content-card__link svg { width: 15px; height: 15px; transition: transform .15s var(--ease); }
.content-card:hover .content-card__link svg { transform: translateX(3px); }

/* ---------- Profile finder (home) ---------- */
.profile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-1); }
.profile-card .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-50); display: flex; align-items: center; justify-content: center; }
.profile-card .icon svg { width: 22px; height: 22px; stroke: var(--brand-700); }
.profile-card h3 { font-size: 1.06rem; margin: 0; }
.profile-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; flex: 1; }
.profile-card a { font-size: .9rem; font-weight: 650; }

/* ---------- Numbers / stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 20px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--brand-800); line-height: 1.1; }
.stat .lbl { font-size: .83rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950, #082336); color: #9DB6C5; margin-top: 0; }
.site-footer a { color: #BCD3E0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer-brand p { font-size: .9rem; margin-top: 14px; max-width: 34ch; color: #7E9AAB; }
.footer-brand .brand svg { width: 44px; height: 44px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px; font-size: .84rem; color: #6E8A9B; }
.footer-bottom p { margin-bottom: 8px; }
.footer-risk { background: rgba(255,255,255,.04); border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 26px; font-size: .8rem; line-height: 1.55; color: #8FA9B9; border: 1px solid rgba(255,255,255,.08); }
.footer-risk strong { color: #C6DAE6; }

/* ---------- Forms ---------- */
.search-box { position: relative; }
.search-box input {
  width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: #fff; font-size: 1rem; font-family: var(--font-body);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(27,112,149,.15); }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-faint); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-size: .86rem; font-weight: 550; padding: 7px 14px; border-radius: var(--r-pill);
  cursor: pointer; font-family: var(--font-body); transition: all .15s;
}
.chip:hover { border-color: var(--brand-600); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

/* ---------- Compare page selector ---------- */
.compare-selector { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.compare-selector label { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px 8px 10px; cursor: pointer; font-weight: 550; font-size: .92rem; }
.compare-selector label img { width: 26px; height: 26px; object-fit: contain; }
.compare-selector label.sel-logo--dark img { background: #0E2233; border-radius: 6px; padding: 3px; }
.compare-selector input:checked + span { color: var(--brand-800); }

/* ---------- CVM / situação no Brasil ---------- */
.cvm-panel { border-left: 4px solid var(--amber-600); }
.cvm-list { margin: 4px 0 10px; }
.cvm-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cvm-row dt { flex: 0 0 230px; color: var(--ink-faint); font-weight: 600; font-size: .86rem; }
.cvm-row dd { margin: 0; font-weight: 550; color: var(--ink); font-size: .92rem; line-height: 1.5; }
.cvm-row dd a { font-weight: 600; }
.cvm-note { font-size: .88rem; color: var(--ink-soft); background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.cvm-ref { font-size: .84rem; color: var(--ink-faint); margin: 10px 0 0; }
.conta-br-panel { border-left: 4px solid var(--brand-600); }
.broker-card__cvm { margin: 0 0 10px; }
@media (max-width: 640px) {
  .cvm-row { flex-direction: column; gap: 3px; }
  .cvm-row dt { flex: none; }
}

/* ---------- Ranking por perfil ---------- */
.porque { background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; }
.porque strong { font-family: var(--font-head); font-size: .86rem; color: var(--brand-800); display: block; margin-bottom: 6px; }
.porque ul { margin: 0; padding-left: 18px; }
.porque li { font-size: .88rem; color: var(--ink-soft); margin-bottom: 4px; }

/* ---------- Ferramentas (calculadoras) ---------- */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.tool-card label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-soft); margin: 14px 0 6px; }
.tool-card input, .tool-card select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); font-size: 1rem; font-family: var(--font-body); color: var(--ink); background: #fff;
}
.tool-card input:focus, .tool-card select:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(27,112,149,.15); }
.tool-result { margin-top: 16px; background: var(--brand-50); border: 1px solid #CBDFEB; border-radius: var(--r-md); padding: 16px 18px; }
.tool-result .big { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--brand-800); }
.tool-result p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Cartão compacto de corretora (home + diretório) ---------- */
.broker-card--compact { display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.broker-card--compact .bc-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.broker-card--compact .broker-logo { width: 60px; height: 60px; flex-shrink: 0; }
.broker-card--compact .bc-head-txt { min-width: 0; }
.broker-card--compact h3 { margin: 0 0 3px; font-family: var(--font-head); font-size: 1.18rem; color: var(--brand-900); }
.broker-card--compact .broker-card__tag { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.broker-card--compact .broker-card__cvm { margin: 12px 0 10px; }
.bc-cf { display: grid; grid-template-columns: 1fr; gap: 10px 14px; margin: 0 0 14px; }
.cf { min-width: 0; }
.cf dt { font-size: .72rem; color: var(--ink-faint); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.cf dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .88rem; line-height: 1.4; overflow-wrap: normal; word-break: normal; }
.cf--full { grid-column: 1 / -1; }
.broker-card--compact .broker-card__actions { margin-top: auto; display: flex; gap: 8px; }
.broker-card--compact .broker-card__actions .btn { flex: 1; }

/* ---------- Lista de corretoras (cards largos, legado) ---------- */
.broker-list { display: flex; flex-direction: column; gap: 20px; }
.broker-card--wide { padding: 22px; display: grid; gap: 16px; }
.bc-top { display: flex; align-items: center; gap: 18px; }
.bc-logo { flex: 0 0 76px; }
.bc-logo .broker-logo { width: 76px; height: 76px; }
.bc-head { flex: 1; min-width: 0; }
.bc-head h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 1.3rem; color: var(--brand-900); }
.bc-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.bc-status { flex-shrink: 0; }
.bc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.bc-fact { min-width: 0; }
.bc-fact dt, .bc-entity dt { font-size: .76rem; color: var(--ink-faint); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.bc-fact dd, .bc-entity dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.bc-entity { border-top: 1px solid var(--line); padding-top: 12px; }
.bc-entity dd { overflow-wrap: anywhere; }
.bc-entity-jur { color: var(--ink-faint); font-weight: 500; }
.broker-card--wide .broker-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .bc-top { flex-wrap: wrap; gap: 12px; }
  .bc-status { margin-left: auto; }
  .bc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .broker-card--wide .btn { flex: 1; }
}

/* ---------- Comparador side-by-side (removido) ---------- */
.compare-grid-wrap, .cg-group, .cg-title, .cg-grid, .cg-label, .cg-cell, .cg-head, .cg-logo, .compare-selector, .search-box { display: none; }

.dateline { color: var(--ink-faint); font-size: .86rem; margin: 8px 0 0; }

.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.tool-desc { color: var(--ink-soft); font-size: .9rem; margin: 0 0 8px; line-height: 1.5; }
.tool-card h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 1.1rem; color: var(--brand-900); }
.tool-card select { appearance: auto; }

/* ---------- Misc ---------- */
.chip-avail { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 650; }
.chip-avail--sim { background: var(--green-50); color: var(--green-700); }
.chip-avail--parcial { background: var(--amber-50); color: var(--amber-600); }
.chip-avail--nao { background: var(--paper-2); color: var(--ink-faint); }
.chip-avail--nc { background: var(--paper-2); color: var(--ink-faint); }

.disclosure { font-size: .82rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }

.sitemap-list { columns: 2; column-gap: 40px; }
.sitemap-list li { break-inside: avoid; margin-bottom: 8px; }
@media (max-width: 640px) { .sitemap-list { columns: 1; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line);
    background: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; stroke: var(--brand-900); }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
    display: none; padding: 10px 16px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1.02rem; border-radius: var(--r-sm); }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .broker-card__actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .compare-table { min-width: 720px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
