/* Santos Alves — sistema visual (paleta do logo)
   Conceito: dois mundos com as cores do logo. Você = ouro claro com marinho; Empresas = marinho com ouro.
   Layout: blocos de cor chapada, tipografia grotesca grande, uma ferramenta de análise no topo de cada página. */
:root {
  --navy: #07073D;       /* fundo do logo */
  --navy-2: #14155A;
  --gold: #DAA520;       /* moldura do logo */
  --gold-light: #F7CF75; /* monograma */
  --cream: #E7D49E;      /* letreiro */
  --paper: #FBF8F0;
  --white: #FFFFFF;
  --gold-ink: #7A5508;   /* ouro como texto em fundo claro (6,3:1) */
  --gray: #555A6E;       /* texto secundário em fundo claro (6,4:1) */
  --mist: #C9CBE0;       /* texto secundário em fundo marinho (11,8:1) */
  --rule: #E6E1D3;
  --tint-gold: #F5EDD6;
  --tint-cool: #EEEEF6;

  --ink: var(--navy);
  --world: var(--gold-light);
  --world-deep: var(--navy);
  --world-tint: var(--tint-gold);
  --on-world: var(--navy);
  --action-bg: var(--navy);
  --action-fg: var(--gold-light);
  --accent-ink: var(--gold-ink);
  --accent-dark: var(--gold-light);

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --t-2xl: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  --t-3xl: clamp(2.5rem, 1.4rem + 4vw, 5.2rem);

  --max: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  color-scheme: light;
}
body.b2b {
  --world: var(--navy);
  --world-deep: var(--navy-2);
  --world-tint: var(--tint-cool);
  --on-world: var(--white);
  --action-bg: var(--gold-light);
  --action-fg: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--t-md)/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font: 500 0.8125rem/1.3 var(--f-mono); letter-spacing: 0.02em; text-transform: uppercase; }

/* Faixa de prévia */
.preview-bar { background: #FFF6CC; color: #3A2E00; font-size: 0.875rem; padding: 8px var(--pad); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; text-align: center; }
.preview-bar a { font-weight: 700; }
.confirm { text-decoration: underline dotted 2px; text-decoration-color: #C98A00; text-underline-offset: 4px; cursor: help; }

/* Cabeçalho */
.top { background: var(--world); color: var(--on-world); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mark { text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 800 1.3rem/1 var(--f-display); letter-spacing: -0.03em; }
.mark img { height: 36px; width: auto; }
.mark span { font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: var(--t-sm); }
.top nav a { text-decoration: none; }
.top nav a:not(.act):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .top nav a:not(.act) { display: none; } }
@media (max-width: 440px) { .mark span { display: none; } }

/* Botão de ação: um só estilo no site inteiro */
.act { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--action-bg); color: var(--action-fg); font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s ease; text-align: center; }
.act:hover { transform: translateY(-2px); }
.act svg { width: 20px; height: 20px; flex: none; }
.act.small { min-height: 42px; padding: 9px 16px; font-size: 0.9375rem; }
.act.full { width: 100%; }
.tool .act { background: var(--navy); color: var(--gold-light); }
.link-out { font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* HERO: bloco de cor + ferramenta */
.hero { background: var(--world); color: var(--on-world); padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-text { display: grid; gap: 22px; min-width: 0; padding-top: 8px; }
.hero-text p { font-size: var(--t-lg); line-height: 1.5; max-width: 36ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-sm); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 500 0.8125rem var(--f-mono); text-transform: uppercase; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ferramenta */
.tool { background: var(--white); color: var(--navy); border-radius: 22px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(7, 7, 61, .5); min-width: 0; border-top: 6px solid var(--gold); }
.tool-head { display: grid; gap: 6px; }
.tool-head .label { color: var(--gold-ink); }
.tool-head h2 { font-size: var(--t-xl); line-height: 1.05; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--rule); background: var(--white); border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: var(--t-sm); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.answer { background: var(--tint-gold); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px; }
[hidden] { display: none !important; }
.answer p { font-size: var(--t-sm); }
.answer h3 { font-size: 1.25rem; }
.law { font: 500 0.8125rem var(--f-mono); color: var(--gold-ink); }
.tool-note { font-size: 0.875rem; color: var(--gray); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--t-sm); }
.field small { color: var(--gray); font-size: 0.8125rem; }
.money, .unit { display: flex; align-items: center; border: 2px solid var(--rule); border-radius: 12px; padding: 0 12px; background: var(--white); }
.money:focus-within, .unit:focus-within { border-color: var(--navy); }
.money span, .unit span { font: 600 1rem var(--f-display); color: var(--gray); white-space: nowrap; }
.money input, .unit input { border: 0; outline: 0; width: 100%; min-width: 0; padding: 12px 8px; font: 700 1.25rem var(--f-display); letter-spacing: -0.02em; background: transparent; }
input[type="date"] { border: 2px solid var(--rule); border-radius: 12px; padding: 11px 12px; font-weight: 600; width: 100%; background: var(--white); }
select { width: 100%; border: 2px solid var(--rule); border-radius: 12px; padding: 12px; font-weight: 600; background: var(--white); color: var(--navy); }
select:focus, input[type="date"]:focus { border-color: var(--navy); outline: 0; }
.checks { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.checks legend { margin-bottom: 4px; }
.checks label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; font-size: var(--t-sm); cursor: pointer; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 12px; }
.checks label:has(input:checked) { border-color: var(--navy); background: var(--tint-gold); }
.checks input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.result { background: var(--navy); color: var(--white); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; }
.result .label { color: var(--gold-light); }
.result h3 { color: var(--white); }
.result-big { font: 800 clamp(2rem, 1.5rem + 2.2vw, 3rem)/1 var(--f-display); letter-spacing: -0.04em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.result p { color: var(--mist); font-size: var(--t-sm); }
.result .law { color: var(--cream); }
.breakdown { display: grid; font-size: var(--t-sm); }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-variant-numeric: tabular-nums; }
.breakdown div:last-child { border-bottom: 0; }
.breakdown span { color: var(--mist); }
.breakdown strong { color: var(--white); white-space: nowrap; }
.meter { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold-light); border-radius: 99px; width: 0; transition: width .3s ease; }

/* Seções */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec.tint { background: var(--world-tint); }
.sec.deep { background: var(--world-deep); color: var(--white); }
.sec.inkbg { background: var(--navy); color: var(--white); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.sec-head .label { color: var(--accent-ink); }
.sec.deep .sec-head .label, .sec.inkbg .sec-head .label { color: var(--accent-dark); }
.sec-head p { font-size: var(--t-lg); color: var(--gray); max-width: 46ch; }
.sec.deep .sec-head p, .sec.inkbg .sec-head p { color: var(--mist); }

/* Dois caminhos */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.path { padding: 28px clamp(0px, 3vw, 36px) 8px 0; display: grid; gap: 14px; align-content: start; }
.path + .path { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 36px); }
.path h3 { font-size: var(--t-xl); }
.path dl { margin: 0; }
.path dt { font: 500 0.8125rem var(--f-mono); text-transform: uppercase; color: var(--gray); padding-top: 14px; }
.path dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path + .path { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* Linhas tipográficas */
.rows { border-top: 3px solid currentColor; }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 12px 32px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sec.deep .row, .sec.inkbg .row { border-bottom-color: rgba(255, 255, 255, .18); }
.row h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.row p { color: var(--gray); }
.sec.deep .row p, .sec.inkbg .row p { color: var(--mist); }
.row .law { white-space: nowrap; }
.sec.inkbg .row .law, .sec.deep .row .law { color: var(--accent-dark); }
a.row:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.row .arrow { font: 700 1.6rem var(--f-display); }
.row .soon { font: 500 0.8125rem var(--f-mono); text-transform: uppercase; color: var(--gray); }
.tool .rows { border-top-width: 2px; }
.tool .row { padding-block: 14px; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.tool .row h3 { font-size: 1.2rem; }
.tool .row p { grid-column: 1; grid-row: 2; font-size: var(--t-sm); }
.tool .row .arrow { grid-row: 1 / 3; grid-column: 2; align-self: center; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row .law { white-space: normal; } }

/* Escada (B2B) */
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.stair { background: rgba(255, 255, 255, .07); border-top: 4px solid var(--gold-light); border-radius: 0 0 14px 14px; padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.stair:nth-child(1) { min-height: 220px; } .stair:nth-child(2) { min-height: 270px; } .stair:nth-child(3) { min-height: 320px; } .stair:nth-child(4) { min-height: 370px; }
.stair .label { color: var(--gold-light); }
.stair p { color: var(--mist); font-size: var(--t-sm); }
@media (max-width: 860px) { .stairs { grid-template-columns: 1fr 1fr; } .stair { min-height: 0 !important; } }
@media (max-width: 520px) { .stairs { grid-template-columns: 1fr; } }

/* Fluxo */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; counter-reset: f; }
.flow li { counter-increment: f; padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; }
.flow li::before { content: counter(f); font: 800 3.4rem/1 var(--f-display); letter-spacing: -0.05em; color: var(--accent-ink); }
.sec.inkbg .flow li::before, .sec.deep .flow li::before { color: var(--gold-light); }
.flow p { color: var(--gray); }
.sec.inkbg .flow p, .sec.deep .flow p { color: var(--mist); }
@media (max-width: 760px) { .flow { gap: 28px; } }

/* Advogado */
.lawyer { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lawyer img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 4px solid var(--gold); }
.lawyer-body { display: grid; gap: 18px; }
.lawyer-body > p { font-size: var(--t-lg); max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--white); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.facts strong { font: 700 1.0625rem var(--f-display); letter-spacing: -0.01em; }
.facts span { font-size: 0.875rem; color: var(--gray); }
@media (max-width: 680px) { .lawyer { grid-template-columns: 1fr; } .lawyer img { width: 140px; height: 140px; } }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.quotes figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.quotes blockquote { margin: 0; font: 600 clamp(1.2rem, 1rem + .7vw, 1.5rem)/1.35 var(--f-display); letter-spacing: -0.015em; }
.quotes figcaption { font-size: var(--t-sm); color: var(--gray); }
.quotes figcaption strong { color: var(--navy); }
.source { margin-top: 28px; font: 500 0.8125rem var(--f-mono); color: var(--gray); text-transform: uppercase; }

/* Perguntas */
.qa { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.qa-list { border-top: 3px solid var(--navy); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.125rem/1.35 var(--f-body); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font: 700 1.8rem/1 var(--f-display); color: var(--gold-ink); }
.qa details[open] summary::after { content: "–"; }
.qa details > div { padding: 0 0 22px; color: var(--gray); display: grid; gap: 10px; max-width: 62ch; }
@media (max-width: 860px) { .qa { grid-template-columns: 1fr; } }

/* Tabela */
.table-wrap { overflow-x: auto; border-top: 3px solid currentColor; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 500 0.8125rem var(--f-mono); text-transform: uppercase; color: var(--gray); }
td:first-child { font-weight: 700; }
td code { font: 500 0.8125rem var(--f-mono); color: var(--gold-ink); }

/* Chamada final */
.closer { background: var(--world); color: var(--on-world); padding-block: clamp(72px, 10vw, 128px); }
.closer .wrap { display: grid; gap: 28px; justify-items: start; }
.closer h2 { font-size: var(--t-3xl); max-width: 14ch; }
.closer p { font-size: var(--t-lg); font-weight: 600; }

/* Rodapé */
.foot { background: var(--navy); color: var(--mist); font-size: var(--t-sm); padding-block: 48px 120px; border-top: 4px solid var(--gold); }
.foot .wrap { display: grid; gap: 22px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.foot strong { color: var(--gold-light); }
.foot a { color: var(--white); }
.foot .legal { font-size: 0.875rem; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 18px; }

/* Barra fixa no celular */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: none; }
.dock .act { width: 100%; box-shadow: 0 14px 30px -10px rgba(7, 7, 61, .6); }
.dock.show { display: block; }
@media (min-width: 861px) { .dock.show { display: none; } }

/* Artigos */
.prose { max-width: 760px; display: grid; gap: 18px; font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; margin-top: 28px; }
.prose h3 { font-size: 1.35rem; margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose blockquote { margin: 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--tint-gold); border-radius: 0 12px 12px 0; }
.prose a { color: var(--gold-ink); font-weight: 600; }
.prose-cover { width: 100%; border-radius: 16px; margin-bottom: 8px; }
.prose table { min-width: 0; font-size: 1rem; }
.prose > * { min-width: 0; }

/* Aviso de cookies */
.cookie { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; background: var(--navy); color: var(--white); border: 1px solid var(--gold); border-radius: 18px; padding: 18px 20px; display: grid; gap: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.cookie p { font-size: var(--t-sm); color: var(--mist); }
.cookie a { color: var(--gold-light); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie button { min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; border: 2px solid var(--gold-light); }
.cookie-no { background: transparent; color: var(--gold-light); }
.cookie-yes { background: var(--gold-light); color: var(--navy); }
.has-cookie .dock { display: none !important; }
body[data-area="artigo"] .hero h1 { font-size: var(--t-2xl); }
