/* Brião — base das páginas (mobile-first).
   Identidade: Brandbook Brião 2026 v3. Azul profundo #0F1B2D, dourado #F2C66E (só acento), marfim #F6F4EF, branco.
   Títulos em League Spartan, texto em Open Sans. O logo é sempre o PNG oficial (nunca refeito em texto ou CSS). */

:root {
  --navy: #0F1B2D;
  --navy-2: #172238;
  --gold: #F2C66E;
  --ivory: #F6F4EF;
  --white: #FFFFFF;
  --alert: #B64C4C;

  /* Contexto padrão: seção escura (azul profundo). `.theme-ivory` troca tudo para o contexto claro. */
  --bg: var(--navy);
  --fg: var(--ivory);
  --fg-muted: #C5CBD3;
  --fg-dim: #9BA4B0;
  --fg-faint: #7F8998;
  --surface: var(--navy-2);
  --field: rgba(6, 12, 22, .45);
  --line: rgba(246, 244, 239, .14);
  --line-strong: rgba(242, 198, 110, .55);
  --hair: rgba(246, 244, 239, .1);
  --accent: var(--gold);          /* cor de texto de destaque: dourado sobre azul, azul sobre marfim */
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  --btn-bg-hover: #F7D58E;
  --tint: rgba(242, 198, 110, .08);
  --shadow: none;

  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 20px;
  --header-h: 68px;
  --font-title: 'League Spartan', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.theme-ivory {
  --bg: var(--ivory);
  --fg: var(--navy);
  --fg-muted: #4D5668;
  --fg-dim: #6E7480;
  --fg-faint: #6E7480;
  --surface: var(--white);
  --field: var(--white);
  --line: #E7E4DD;
  --line-strong: rgba(15, 27, 45, .3);
  --hair: #E7E4DD;
  --accent: var(--navy);
  --btn-bg: var(--navy);
  --btn-fg: var(--ivory);
  --btn-bg-hover: var(--navy-2);
  --tint: rgba(15, 27, 45, .04);
  --shadow: 0 16px 40px rgba(15, 27, 45, .08);
}

.theme-ivory { background: var(--bg); color: var(--fg); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
.mono, .num-font { font-family: var(--font-title); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: 72px 0; background: var(--bg); color: var(--fg); }
/* Compatibilidade com o HTML antigo: a alternância agora é por tema (navy ou ivory), sem degradês nem pontilhados. */
.section-navy, .section-ink { background: var(--navy); }

/* Tipografia */
h1, h2, h3, h4, .btn, .eyebrow, .badge, .tab, .step b, .plan-pick button, .num-chips button { font-family: var(--font-title); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--gold); flex: none; }
h1 { font-size: clamp(38px, 8.6vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(30px, 6vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2.3vw, 20px); line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.gold { color: var(--gold); }
.theme-ivory .gold { color: var(--navy); box-shadow: inset 0 -.32em 0 var(--gold); }

/* Botões: cantos discretos, League Spartan em caixa alta */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-outline { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: var(--tint); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards: blocos retos, borda fina, sem brilho */
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-ring {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); color: var(--accent); background: var(--tint);
}

/* Cabeçalho: faixa marfim com o wordmark oficial (arquivo claro) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: var(--ivory); color: var(--navy);
  border-bottom: 1px solid rgba(15, 27, 45, .08);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(15, 27, 45, .1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* O arquivo claro tem uma faixa vazia embaixo (848×260, desenho em 848×206): o recorte é só enquadramento, o desenho não muda. */
.brand { display: block; flex: none; width: 124px; aspect-ratio: 848 / 206; overflow: hidden; line-height: 0; color: var(--navy); }
.brand img { display: block; width: 100%; height: auto; clip-path: inset(4% 0 0); }
.nav { display: none; gap: 22px; }
.nav a { color: var(--navy); font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--gold); }
.site-header .btn { display: none; }
.site-header .btn-primary { --btn-bg: var(--navy); --btn-fg: var(--ivory); --btn-bg-hover: var(--navy-2); }

/* Revelar ao rolar (só quando há JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Barra fixa de CTA no mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--navy); border-top: 1px solid rgba(242, 198, 110, .4);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* Rodapé: assinatura completa (arquivo azul). O PNG tem fundo #06101F, mais escuro que o azul da página;
   "lighten" deixa o fundo da imagem sumir sem mexer no desenho (o que é mais claro que o fundo, o logo, aparece como é). */
.site-footer { padding: 44px 0 calc(44px + 72px); border-top: 3px solid var(--gold); background: var(--navy); color: var(--fg-dim); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-logo { display: block; width: 150px; line-height: 0; }
.footer-logo img { width: 100%; mix-blend-mode: lighten; }
.site-footer a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .mono { letter-spacing: .08em; }

@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 78px; }
  section { padding: 104px 0; }
  .brand { width: 140px; }
  .nav { display: flex; }
  .site-header .btn { display: inline-flex; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
