/* Layout: coluna de 1200px sobre grafite; capítulos em faixas cheias que alternam grafite e preto,
   o preto entrando com o corte diagonal do guia. Círculos chapados e as três diagonais verdes emolduram. */
:root {
  --preto: #050607;
  --grafite: #0B0F14;
  --surface: #111820;
  --surface-2: #18212B;
  --borda: #263241;
  --borda-forte: #34465C;
  --verde: #00C853;
  --verde-h: #00B248;
  --neon: #39FF14;
  --amarelo: #FFD000;
  --amarelo-h: #E6BB00;
  --laranja: #FF7A00;
  --erro: #FF3B30;
  --erro-texto: #FF7A70;
  --texto: #F6F8FA;
  --texto-2: #B8C0CC;
  --texto-3: #8792A2;
  --circ-verde: rgba(0, 200, 83, 0.14);
  --circ-amarelo: rgba(255, 208, 0, 0.09);
  --f-display: "Rajdhani", "Inter", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Source Sans 3", "Inter", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-card: 14px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topo-h: 72px;
  --corte: clamp(28px, 4vw, 56px);
  --respiro: clamp(80px, 10vw, 140px);
  color-scheme: dark;
}

@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/rajdhani-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/rajdhani-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/rajdhani-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/rajdhani-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/rajdhani-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/source-sans-900-latin.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 24px); background: var(--grafite); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--grafite);
  color: var(--texto);
  font: 400 16px/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--preto); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid rgba(0, 200, 83, 0.7); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--amarelo); color: var(--preto); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.pular { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amarelo); color: var(--preto); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.pular:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.container {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* tipografia de apoio */
.rotulo { font: 600 12px/1.2 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto-2); margin: 0 0 18px; }
.c-verde { color: var(--verde); }
.c-amarelo { color: var(--amarelo); }
.c-erro { color: var(--erro-texto); }
.subtitulo { font: 700 clamp(26px, 3vw, 36px)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; margin: clamp(56px, 7vw, 88px) 0 18px; }
.nota { color: var(--texto-3); font-size: 14px; line-height: 1.5; margin: 12px 0 0; max-width: 72ch; }
.nota a, .link { color: var(--texto); text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.nota a:hover, .link:hover { color: var(--verde); }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
code { font: 600 0.92em/1.45 var(--f-mono); }

/* seta ascendente: o motivo da marca, desenhado em vetor */
.seta-i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 92 L88 12 M38 8 H92 V62' fill='none' stroke='black' stroke-width='16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 92 L88 12 M38 8 H92 V62' fill='none' stroke='black' stroke-width='16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.seta-svg { flex-shrink: 0; }
.seta-svg path { fill: none; stroke: var(--verde); stroke-width: 15; stroke-linecap: butt; stroke-linejoin: miter; }

/* botões: pílula, Rajdhani em maiúsculas, 48px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 17px/1.1 var(--f-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--verde { background: var(--verde); color: var(--preto); }
.btn--verde:hover { background: var(--verde-h); box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.16); }
.btn--amarelo { background: var(--amarelo); color: var(--preto); }
.btn--amarelo:hover { background: var(--amarelo-h); box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.14); }
.btn--contorno { background: transparent; color: var(--texto); border-color: var(--borda-forte); }
.btn--contorno:hover { border-color: var(--verde); }
.btn--p { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ok { background: var(--texto); color: var(--preto); border-color: var(--texto); }

/* campos */
.rot { display: block; font: 600 13px/1.3 var(--f-texto); color: var(--texto-2); margin: 18px 0 8px; }
.campo {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--preto);
  border: 1.5px solid var(--borda);
  border-radius: 10px;
  color: var(--texto);
  font: 500 16px/1.4 var(--f-texto);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.campo:hover { border-color: var(--borda-forte); }
.campo:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.18); }
.campo::placeholder { color: var(--texto-3); }
.campo[aria-invalid="true"] { border-color: var(--erro); }
textarea.campo { resize: vertical; min-height: 112px; }
select.campo {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23B8C0CC' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* topo */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--preto); border-bottom: 1px solid var(--borda); }
.topo__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--topo-h);
  max-width: 1248px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.topo__marca { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.topo__marca img { height: 40px; width: auto; }
.topo__rotulo { font: 600 11px/1.2 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto-2); padding-left: 14px; border-left: 1px solid var(--borda); white-space: nowrap; }
.topo__nav { display: flex; gap: 2px; margin-left: auto; }
.topo__nav a { position: relative; padding: 10px 10px; font: 700 15px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--texto-2); white-space: nowrap; transition: color 0.15s; }
.topo__nav a:hover, .topo__nav a[aria-current="true"] { color: var(--texto); }
.topo__nav a[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--verde); }
.topo__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--verde);
  background: transparent;
  color: var(--texto);
  font: 700 14px/1 var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.topo__link:hover { background: rgba(0, 200, 83, 0.12); }
.topo__ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-3); flex-shrink: 0; }
.kit-ativo .topo__ponto, .ativo .topo__ponto { background: var(--verde); box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.22); }

@media (max-width: 1120px) {
  :root { --topo-h: 104px; }
  .topo__in { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 8px; }
  .topo__marca img { height: 34px; }
  .topo__link { margin-left: auto; }
  .topo__nav {
    order: 3;
    width: calc(100% + 48px);
    margin: 4px -24px 0;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 24px), transparent);
  }
  .topo__nav::-webkit-scrollbar { display: none; }
  .topo__nav a { padding: 14px 12px 16px; }
}
@media (max-width: 767px) {
  .topo__in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .topo__nav { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 520px) {
  .topo__rotulo { display: none; }
}

/* faixa do modo time */
.faixa-time { background: var(--amarelo); color: var(--preto); }
.faixa-time__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.faixa-time p { margin: 0; font: 700 17px/1.2 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.faixa-time .btn--verde { background: var(--preto); color: var(--amarelo); }

/* rodapé */
.rodape { background: var(--preto); border-top: 1px solid var(--borda); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--texto-2); font-size: 14px; }
.rodape__in { display: grid; gap: 14px; justify-items: start; }
.rodape__logo { height: 44px; width: auto; }
.rodape p { margin: 0; }
.rodape__links { display: flex; gap: 20px; flex-wrap: wrap; }
.rodape__links a { color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--borda-forte); }
.rodape__links a:hover { border-color: var(--verde); }
.rodape__aviso { display: flex; align-items: center; gap: 10px; color: var(--texto-3); }
.selo18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; font: 800 10px/1 var(--f-texto); }

/* diálogo do link */
.dlg {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--borda);
  border-radius: 18px;
  background: var(--surface);
  color: var(--texto);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dlg::backdrop { background: rgba(0, 0, 0, 0.7); }
.dlg__in { padding: 24px; }
.dlg__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg__cab h2 { margin: 0; font: 700 32px/1 var(--f-display); text-transform: uppercase; }
.dlg__fechar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borda); background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.dlg__fechar:hover { border-color: var(--verde); }
.dlg__erro { color: var(--erro-texto); font-size: 14px; margin: 10px 0 0; }
.dlg .btn--verde { margin-top: 18px; width: 100%; }
.dlg .subtitulo { margin-top: 36px; font-size: 24px; }
.sublinks { list-style: none; margin: 14px 0 0; padding: 0; }
.sublinks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--borda); }
.sublinks b { font: 600 14px/1.3 var(--f-mono); color: var(--amarelo); }
.sublinks span { grid-column: 1; color: var(--texto-3); font-size: 13px; }
.sublinks .btn { grid-row: 1 / span 2; grid-column: 2; }

/* aviso flutuante */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--texto);
  color: var(--preto);
  font: 600 15px/1.3 var(--f-texto);
  text-align: center;
  box-shadow: var(--sombra);
}
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: sobe 0.28s var(--ease); }
  @keyframes sobe { from { opacity: 0; transform: translate(-50%, 12px); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
