/*
 * Tokens do Design System AUVP (tema Capital, claro), conforme
 * https://central-produtos.vercel.app/design-system
 */
:root {
  /* Tipografia */
  --font-display: "Anek Latin", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-ui: "Sora", sans-serif;

  /* Texto */
  --text-strong: #000000;
  --text-muted: #404040;
  --text-strong-dark: #ffffff;
  --text-muted-dark: #bfbfbf;

  /* Superfícies (dobras e cards de baixo contraste) */
  --dobra-preta: #000000;
  --dobra-branca: #ffffff;
  --dobra-cinza: #f2f2f2;
  --card-on-preta: #1b1b1b;
  --card-on-branca: #f2f2f2;
  --card-on-cinza: #ffffff;
  --border: hsl(120 10% 88%);
  --border-dark: #292929;

  /* Marca */
  --brand: hsl(155 93% 11%);
  --accent-dark: #5a8770;
  --destructive: hsl(0 84% 48%);

  /* Paleta de dados (claro) */
  --chart-1: hsl(152 80% 30%);
  /* Paleta categórica (escuro), usada sobre a dobra preta */
  --chart-1-d: hsl(135 50% 55%);
  --chart-2-d: hsl(270 65% 70%);
  --chart-3-d: hsl(38 90% 65%);
  --chart-4-d: hsl(199 85% 65%);
  --chart-8-d: hsl(220 30% 70%);

  /* Forma, sombra e movimento */
  --radius: 12px;
  --radius-btn: 5px;
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
  --dur: 240ms;
  --dur-micro: 150ms;

  /* Ritmo: múltiplos de 15px */
  --s-15: 15px;
  --s-30: 30px;
  --s-45: 45px;
  --s-60: 60px;
  --title-gap: 32px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-strong);
  background: var(--dobra-branca);
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dobra--preta :focus-visible { outline-color: var(--accent-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.02; max-width: 16ch; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-30); }
.dobra { padding: var(--s-60) 0; }
.dobra--preta { background: var(--dobra-preta); color: var(--text-strong-dark); }
.dobra--branca { background: var(--dobra-branca); }
.dobra--cinza { background: var(--dobra-cinza); }
.section-lede { color: var(--text-muted); max-width: 62ch; margin: var(--s-15) 0 var(--title-gap); }

/* Hero */
.hero { padding-top: var(--s-45); padding-bottom: var(--s-60); }
.logo { width: 120px; margin-bottom: var(--s-60); }
.lede { color: var(--text-muted-dark); font-size: 1.125rem; max-width: 58ch; margin: var(--s-30) 0 0; }

.ledger { margin-top: var(--s-60); }
.ledger-total {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-muted-dark);
  margin: 0 0 var(--s-15);
}
.ledger-total span {
  display: block;
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-strong-dark);
  margin-bottom: 6px;
}
.alloc {
  display: flex;
  gap: 3px;
  height: 45px;
  margin-top: var(--s-30);
  border-radius: 6px;
  overflow: hidden;
}
.alloc span { display: block; height: 100%; min-width: 4px; transform-origin: left; }
.alloc-legend {
  list-style: none;
  padding: 0;
  margin: var(--s-30) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-15) var(--s-30);
}
.alloc-legend li { border-top: 3px solid var(--c); padding-top: 12px; }
.alloc-legend b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.alloc-legend span { display: block; color: var(--text-strong-dark); font-weight: 500; margin-top: 4px; }
.alloc-legend small { display: block; color: var(--text-muted-dark); font-size: 14px; }
.status { color: var(--text-muted-dark); font-size: 14px; margin: var(--s-45) 0 0; }

/* Itens entregues: bento */
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.item {
  background: var(--card-on-branca);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}
.item:first-child { grid-row: span 1; }
.item .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; }
.item .t { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 6px; }
.split { margin-top: var(--s-15); }
.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--dobra-branca); }
.split-bar span { display: block; height: 100%; }
.split-text { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.split-text i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

/* Método */
.method { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-30) var(--s-60); align-items: start; }
.method .section-lede { margin-bottom: 0; }
.method-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-15); }
.method-list li { overflow-wrap: anywhere; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-15); background: var(--card-on-branca); border-radius: var(--radius); padding: 16px 20px; }
.method-list i { font-size: 24px; color: var(--brand); line-height: 1.4; }
.method-cta { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-15); }
.hint { color: var(--text-muted); font-size: 14px; }

/* Botão (Sora, caixa alta, radius 5px, hover revela a borda) */
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 45px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.btn:hover { background: transparent; color: var(--brand); }

/* Rodapé */
.footer { padding: var(--s-30) 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-15); }
.footer p { margin: 0; color: var(--text-muted-dark); font-size: 14px; }

/* Tablet */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .item:first-child { grid-column: 1 / -1; }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method-cta { grid-column: 1; }
}
/* Mobile */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .dobra { padding: var(--s-45) 0; }
  .logo { margin-bottom: var(--s-45); }
  .alloc { height: 30px; }
  .bento { grid-template-columns: 1fr; }
  .item { min-height: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Movimento: um único momento orquestrado na carga (barra do hero) */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.alloc.is-ready span { animation: grow 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
