@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap; src: url("/static/fonts/InterDisplay-ExtraBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("/static/fonts/InterDisplay-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/static/fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/Inter-SemiBold.woff") format("woff"); }

:root {
  --paper: #f3f5f9;
  --sheet: #ffffff;
  --ink: #0f1f3d;
  --ink-2: #3f4a5e;
  --muted: #6b7487;
  --rule: #cfd6e2;
  --brand: #1b3a8c;
  --brand-deep: #142c6b;
  --marker: #f2e35b;
  --loss: #b3263e;
  --display: "Inter Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.home { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); font-feature-settings: "cv11"; }
:where(.home) a { color: inherit; }
:where(.home) :is(h1, h2, h3) { font-family: var(--display); margin: 0; }
:where(.home) p { margin: 0; }
:where(.home) :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Cabeçalho */
.h-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.h-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 600 21px/1 var(--display); letter-spacing: -0.02em; }
.h-logo img { display: block; }
.h-header-actions { display: flex; align-items: center; gap: 10px; }
.h-btn.h-btn-head { min-height: 40px; padding: 0 18px; }

/* Botões */
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.h-btn-primary { background: var(--brand); color: #fff; }
.h-btn-primary:hover { background: var(--brand-deep); }
.h-btn-ghost { border-color: var(--ink); }
.h-btn-ghost:hover { background: var(--ink); color: var(--paper); }
.h-btn-light { background: var(--marker); color: var(--ink); }
.h-btn-light:hover { background: #fff; }
.h-link { font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.h-link:hover { text-decoration-color: var(--brand); color: var(--brand); }

/* Abertura */
.h-hero { padding: 56px 0 96px; }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.h-hero h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; max-width: 13ch; }
.h-lede { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.h-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Extrato do exemplo */
.h-statement { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 28px 30px 24px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgb(15 36 32 / 35%); font-variant-numeric: tabular-nums; }
.h-statement figcaption { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.h-st-title { font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; }
.h-st-sub { font-size: 14px; color: var(--muted); }
.h-statement dl { margin: 0; }
.h-st-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.h-st-row dt { color: var(--ink-2); }
.h-st-row dd { margin: 0; font-weight: 500; white-space: nowrap; }
.h-st-sum { border-bottom: 2px solid var(--ink); }
.h-st-sum dt, .h-st-sum dd { color: var(--ink); font-weight: 600; }
.h-st-gap { border-bottom: 0; padding-top: 14px; font-size: 19px; }
.h-st-gap dt, .h-st-gap dd { color: var(--loss); font-weight: 600; }
.h-st-gap mark { color: inherit; padding: 1px 6px; margin: 0 -6px; border-radius: 3px; background: linear-gradient(var(--marker), var(--marker)) no-repeat left center / 100% 100%; }
.h-st-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .h-st-gap mark { animation: marker-sweep .7s cubic-bezier(.3, .7, .2, 1) 1s both; }
  .h-st-gap dd mark { animation-delay: 1.25s; }
  .h-st-note { animation: fade-in .5s ease 1.9s both; }
}
@keyframes marker-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Seções */
.h-section { padding: 96px 0; border-top: 1px solid var(--rule); }
.h-section-alt { background: var(--sheet); }
.h-section h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; max-width: 18ch; }
.h-section-lede { margin-top: 16px; color: var(--ink-2); max-width: 36em; }

.h-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.h-steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.h-steps li::before { content: counter(step); display: block; font: 800 15px/1 var(--display); color: var(--brand); margin-bottom: 14px; }
.h-steps h3 { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.h-steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

.h-leaks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.h-leaks-intro p { margin-top: 18px; color: var(--ink-2); max-width: 30em; }
.h-leak-list { margin: 0; }
.h-leak-list div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.h-leak-list div:first-child { padding-top: 6px; }
.h-leak-list dt { font-weight: 600; }
.h-leak-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.h-markets { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.h-markets li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 24px 26px 0; }
.h-markets li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.h-market-name { font: 600 clamp(22px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--muted); }
.h-markets .is-live .h-market-name { color: var(--ink); }
.h-tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); }
.h-tag-live { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Chamada final */
.h-cta { background: var(--brand); color: #fff; padding: 72px 0; }
.h-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-cta h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }

.h-footer { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.h-footer-inner { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .h-hero { padding: 24px 0 72px; }
  .h-hero-grid, .h-leaks { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .h-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .h-markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-markets li:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-markets li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .h-section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .h-wrap { padding: 0 16px; }
  .h-header-inner { min-height: 64px; }
  .h-lede { font-size: 17px; }
  .h-statement { padding: 22px 18px 18px; }
  .h-leak-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .h-markets li { padding-right: 12px; }
  .h-markets li + li { padding-left: 16px; }
  .h-markets li:nth-child(3) { padding-left: 0; }
}

/* Página Contratar (em construção) */
.h-soon { padding: 64px 0 120px; }
.h-soon-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.h-soon h1 { font-weight: 800; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.04em; max-width: 14ch; }
.h-soon .h-lede { max-width: 32em; }
.h-soon-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 32em; }
.h-soon-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.h-soon-list span:last-child { color: var(--muted); white-space: nowrap; }
.h-soon-sign { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; }
.h-soon-bar { height: 14px; border-radius: 7px; background: var(--rule); }
.h-soon-bar:nth-child(1) { width: 100%; }
.h-soon-bar:nth-child(2) { width: 82%; }
.h-soon-bar:nth-child(3) { width: 64%; background: linear-gradient(90deg, var(--rule) 0 70%, var(--marker) 70% 100%); }
.h-soon-sign p { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .h-soon-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .h-soon { padding: 32px 0 88px; } }
@media (max-width: 560px) {
  .h-logo { font-size: 18px; gap: 8px; }
  .h-logo img { width: auto; height: 26px; }
  .h-header-actions { gap: 6px; }
  .h-btn.h-btn-head { padding: 0 13px; min-height: 36px; font-size: 14px; }
}
