/* Edital de Matrículas 2027 · CEV
   Design: DS Vencedores - Oficial (tokens copiados sem alteração).
   Mobile first: celular → tablet (600px) → computador (900px). */

@font-face { font-family: "Sora"; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Cores do DS Vencedores - Oficial */
  --indigo: #3330c0;
  --azul: #1e8fe5;
  --ciano: #00d4ff;
  --amarelo: #ffd500;
  --branco: #ffffff;
  --azul-claro: #e6f8ff;
  --ciano-claro: #9fedff;
  --azul-gelo: #bde2f9;
  --indigo-vivo: #2e43c7;
  --ponto-inativo: #b4c0ed;
  --whatsapp: #17a049;
  --sombra-suave: 0 12px 32px rgba(51, 48, 192, 0.18);

  --radius-md: 28px;
  --radius-lg: 56px;
  --radius-pill: 999px;

  --fonte-titulo: "Sora", system-ui, sans-serif;
  --fonte-texto: "DM Sans", system-ui, sans-serif;

  --lateral: 16px;
  --largura: 1080px;
  --altura-menu: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-menu) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--azul-claro);
  color: var(--indigo);
  font-family: var(--fonte-texto);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; flex: none; }

h1, h2, h3, h4 { font-family: var(--fonte-titulo); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .cartao-contato :focus-visible, .rodape :focus-visible,
.calc-resultado :focus-visible, .destaque-bf :focus-visible { outline-color: var(--amarelo); }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.so-js { display: none; }
.js .so-js { display: block; }
.js .so-js[hidden] { display: none; }

.pular {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--branco); color: var(--indigo); padding: 12px 20px;
  border-radius: var(--radius-pill); font-family: var(--fonte-titulo); font-weight: 700;
}
.pular:focus { top: 16px; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.1875rem; /* 19px: texto grande em negrito */
  line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-whats { background: var(--whatsapp); color: var(--branco); box-shadow: 0 10px 24px rgba(23, 160, 73, 0.28); }
.btn-whats .ic { width: 26px; height: 26px; }
.btn-branco { background: var(--branco); color: var(--indigo); box-shadow: var(--sombra-suave); }
.btn-grande { min-height: 64px; font-size: 1.1875rem; padding: 14px 22px; }
.btn-menor { min-height: 48px; font-size: 1.1875rem; padding: 10px 20px; gap: 8px; }
.btn-menor .ic { width: 22px; height: 22px; }
.btn-largo { width: 100%; }

/* Pulso: anel ciano que expande e some a cada ~4 s. Só um botão por vez recebe .pulso */
.btn.pulso::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 3px solid var(--ciano); opacity: 0; pointer-events: none;
  animation: pulso 4s ease-out 1s infinite;
}
.btn.pulso:hover::after, .btn.pulso:focus-visible::after, .btn.pulso.parado::after { animation: none; opacity: 0; }
@keyframes pulso {
  0% { transform: scale(1); opacity: 0.9; }
  14% { transform: scale(1.12, 1.4); opacity: 0; }
  100% { transform: scale(1.12, 1.4); opacity: 0; }
}

.link-seta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.0625rem;
  color: var(--indigo); padding: 12px 4px;
}
.link-seta .ic { transition: transform 200ms ease-out; }
.link-seta:hover .ic { transform: translateX(4px); }

/* ---------- Topo (hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--indigo); color: var(--branco);
  padding: 20px var(--lateral) 32px;
}
.hero-forma { position: absolute; fill: var(--indigo-vivo); pointer-events: none; }
.hero-forma-1 { width: 260px; height: 260px; left: -90px; bottom: -40px; transform: scale(-1, -1); }
.hero-forma-2 { width: 220px; height: 200px; right: -60px; top: 40%; }

.hero-in { position: relative; max-width: var(--largura); margin: 0 auto; }
.hero-texto { position: relative; z-index: 1; }

.pilula-logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 6px 18px 6px 6px;
  background: var(--branco); color: var(--indigo); border-radius: var(--radius-pill);
  box-shadow: var(--sombra-suave);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem;
}
.pilula-logo img { width: 44px; height: 44px; }

/* Tarja da Black Friday: preto e amarelo, só nesta campanha (exceção aprovada pelo Joe, 19/10/2026) */
.bf-faixa {
  --preto: #0d0d10;
  position: relative; z-index: 2;
  margin: -20px calc(-1 * var(--lateral)) 22px; padding: 14px var(--lateral) 20px;
  background: var(--preto); color: var(--branco);
}
.bf-faixa::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amarelo) 0 12px, var(--preto) 12px 24px);
}
.bf-faixa[hidden] { display: none; }
.bf-in {
  max-width: var(--largura); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  font-family: var(--fonte-titulo); font-weight: 700;
}
.bf-tag { flex: 1 0 100%; font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: 0.02em; color: var(--amarelo); }
.bf-sub { font-size: 1.0625rem; }
.js .bf-cont:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.bf-num {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px;
  border-radius: 14px; background: var(--amarelo); color: var(--preto);
  font-size: 1.625rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bf-num[hidden] { display: none; }
.balanca { animation: balanca 3.2s ease-in-out infinite alternate; }
@keyframes balanca { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

.aviso-pos-bf[hidden] { display: none; }
.aviso-pos-bf {
  display: inline-block; margin: 0 0 20px; padding: 12px 18px;
  background: var(--branco); color: var(--indigo); border-radius: var(--radius-md);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem;
}

.hero-titulo {
  font-weight: 800; font-size: clamp(2.6rem, 11vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em;
}
.amarelo { color: var(--amarelo); }
.ondinha { width: 132px; height: 17px; margin: 10px 0 14px; }
.hero-sub { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.25rem; line-height: 1.35; margin: 0 0 20px; max-width: 22ch; }

.hero-botoes { display: flex; flex-direction: column; gap: 12px; }

.hero-marca {
  position: absolute; top: -36px; right: -58px; width: 140px; height: 140px; pointer-events: none;
}
.hero-anel { width: 100%; height: 100%; }
.hero-disco { display: none; }
.gira { animation: gira 60s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.escolha { position: relative; z-index: 1; margin: 26px 0 0; }
.link-valores {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 2px;
  color: var(--branco); font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.0625rem;
}
.link-valores .ic { width: 22px; height: 22px; transition: transform 200ms ease-out; }
.link-valores:hover .ic { transform: translateY(3px); }
.escolha-titulo { font-size: 1.25rem; margin-bottom: 12px; }
.escolha-botoes { display: grid; gap: 12px; }
.btn-escolha {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 72px; padding: 12px 20px 12px 12px;
  background: var(--branco); color: var(--indigo);
  border: 3px solid transparent; border-radius: var(--radius-md);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem; text-align: left; line-height: 1.25;
  box-shadow: var(--sombra-suave); cursor: pointer;
  transition: transform 200ms ease-out;
}
.btn-escolha .ic {
  width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  background: var(--azul-claro); color: var(--indigo);
}
.btn-escolha:hover { transform: translateY(-2px); }
.btn-escolha[aria-pressed="true"] { background: var(--ciano); }
.btn-escolha[aria-pressed="true"] .ic { background: var(--branco); }

/* ---------- Menu ---------- */
.menu {
  position: sticky; top: 0; z-index: 40;
  background: var(--branco); box-shadow: 0 6px 18px rgba(51, 48, 192, 0.12);
}
.menu-in {
  display: flex; align-items: center; gap: 8px;
  max-width: calc(var(--largura) + 2 * var(--lateral)); margin: 0 auto;
  min-height: var(--altura-menu); padding: 0 0 0 var(--lateral);
}
.menu-logo { flex: none; border-radius: 50%; }
.menu-logo img { width: 32px; height: 32px; }
.menu-lista {
  display: flex; gap: 6px; flex: 1; min-width: 0;
  margin: 0; padding: 10px var(--lateral) 10px 2px; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.menu-lista::-webkit-scrollbar { display: none; }
.menu-lista li { flex: none; scroll-snap-align: start; }
.menu-lista a {
  display: block; padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--azul-claro); color: var(--indigo);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.menu-lista a[aria-current="true"] { background: var(--indigo); color: var(--branco); }
.menu-cta { display: none; }

/* ---------- Blocos (painel, calculadora, seções) ---------- */
main { padding: 24px var(--lateral) 40px; overflow-x: clip; }

.bloco, .secao {
  position: relative; isolation: isolate;
  max-width: var(--largura); margin: 0 auto 20px;
  padding: 24px 20px;
}
.bloco::before, .secao::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--branco); border-radius: var(--radius-md); box-shadow: var(--sombra-suave);
}
.bloco::before { border-radius: 40px; }

.forma-canto {
  position: absolute; z-index: -2; width: 180px; height: 180px; top: -34px; right: -26px;
  fill: var(--ciano-claro); pointer-events: none;
}
.forma-dir { top: auto; bottom: -30px; right: auto; left: -26px; }
.flutua { animation: flutua 9s ease-in-out infinite alternate; }
.flutua-lento { animation-duration: 13s; }
@keyframes flutua { from { transform: translate(0, 0); } to { transform: translate(-10px, 12px); } }

.titulo-secao {
  position: relative; padding-left: 18px; margin-bottom: 16px;
  font-size: clamp(1.5rem, 5.6vw, 2rem); letter-spacing: -0.01em;
}
.titulo-secao::before {
  content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 6px;
  border-radius: 3px; background: var(--ciano);
}
.painel .titulo-secao::after, .calc .titulo-secao::after {
  content: ""; display: block; width: 112px; height: 15px; margin-top: 10px;
  background: url("img/ondinha.svg") no-repeat left center / contain;
}

.subtitulo { font-size: 1.1875rem; margin: 26px 0 12px; letter-spacing: 0.01em; }

/* ---------- Painel "Seu caso" ---------- */
.painel[hidden] { display: none; }
.painel-rotulo {
  display: inline-block; margin-bottom: 12px; padding: 6px 14px;
  background: var(--amarelo); color: var(--indigo); border-radius: var(--radius-md);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem;
}
.painel-intro { max-width: 60ch; }
.painel-grade { display: grid; gap: 14px; margin: 20px 0; }
.painel-cartao { background: var(--azul-claro); border-radius: var(--radius-md); padding: 20px; }
.painel-cartao h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; margin-bottom: 14px; }
.painel-cartao h3 .ic { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--ciano); }
.painel-nota { font-size: 1.0625rem; margin: 12px 0 0; }
.painel-valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.painel-valores li { background: var(--branco); border: 3px solid transparent; border-radius: 20px; padding: 12px 16px; }
.painel-valores li.escolhida { border-color: var(--ciano); }
.painel-valores .seg { display: block; font-weight: 700; font-size: 1.0625rem; }
.painel-valores .valor { display: block; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
.painel-valores .de { display: block; font-size: 1.0625rem; }
.painel-cartao .lista-check { margin: 0; }
.painel-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.painel-acoes .btn { width: 100%; }

/* ---------- Calculadora ---------- */
.calc-grade { display: grid; gap: 20px; }
.grupo-pilulas { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.grupo-pilulas legend { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; padding: 0; }
.grupo-pilulas label { position: relative; cursor: pointer; }
.grupo-pilulas input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.grupo-pilulas span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px;
  border: 2px solid var(--ponto-inativo); border-radius: var(--radius-pill);
  background: var(--branco); color: var(--indigo);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem;
  transition: transform 200ms ease-out;
}
.grupo-pilulas input:checked + span { background: var(--indigo); border-color: var(--indigo); color: var(--branco); }
.grupo-pilulas input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 3px; }
.grupo-pilulas label:hover span { transform: translateY(-1px); }

.calc-resultado {
  background: var(--indigo); color: var(--branco); border-radius: var(--radius-md);
  padding: 22px 22px 18px; align-self: start;
}
.calc-rotulo { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem; margin: 0 0 4px; }
.calc-valor {
  font-family: var(--fonte-titulo); font-weight: 800; color: var(--amarelo);
  font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.1; margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.calc-conta { margin: 0 0 8px; }
.calc-fonte { font-size: 1.0625rem; margin: 0; }

/* ---------- Edital ---------- */
.edital { max-width: var(--largura); margin: 0 auto; }
.edital-topo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  margin: 36px 0 16px; padding: 0 4px;
}
.edital-nome { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem; margin: 0; line-height: 1.35; }
.link-imprimir {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px;
  background: none; border: 0; color: var(--indigo); cursor: pointer;
  font-family: var(--fonte-texto); font-size: 1.0625rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-imprimir .ic { width: 22px; height: 22px; }

.secao > p, .secao .sub-bloco > p { max-width: 70ch; }
.secao > :last-child { margin-bottom: 0; }

.lista { margin: 0 0 1em; padding-left: 1.3em; }
.lista li { margin-bottom: 8px; }
.lista ul { margin: 8px 0 0; padding-left: 1.3em; list-style: circle; }
.lista-num li { padding-left: 4px; }

.lista-check { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.lista-check li { display: flex; align-items: flex-start; gap: 12px; }
.check {
  position: relative; overflow: hidden; flex: none;
  width: 30px; height: 30px; margin-top: 0; border-radius: 50%;
  background: var(--ciano); color: var(--indigo); display: grid; place-items: center;
}
.check svg { width: 19px; height: 19px; }
/* Check que "desenha": uma tampa ciano corre para a direita e revela o traço */
.js .lista-check .check::after {
  content: ""; position: absolute; inset: 0; background: var(--ciano);
  transform: translateX(0);
}
.js .lista-check.desenhado .check::after { transform: translateX(101%); transition: transform 480ms ease-out; }
.js .lista-check.desenhado li:nth-child(2) .check::after { transition-delay: 80ms; }
.js .lista-check.desenhado li:nth-child(3) .check::after { transition-delay: 160ms; }
.js .lista-check.desenhado li:nth-child(4) .check::after { transition-delay: 240ms; }
.js .lista-check.desenhado li:nth-child(5) .check::after { transition-delay: 320ms; }
.js .lista-check.desenhado li:nth-child(6) .check::after { transition-delay: 400ms; }
.js .lista-check.desenhado li:nth-child(7) .check::after { transition-delay: 480ms; }

.duas-colunas { display: grid; gap: 14px; margin-bottom: 18px; }
.cartao { background: var(--azul-claro); border-radius: var(--radius-md); padding: 20px; border: 3px solid transparent; transition: border-color 300ms ease; }
.cartao.escolhido { border-color: var(--ciano); }
.cartao h3 { font-size: 1.125rem; margin-bottom: 14px; }

.datas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.datas > div { flex: 1 1 120px; background: var(--branco); border-radius: 20px; padding: 10px 16px; }
.datas dt { font-weight: 700; font-size: 1.0625rem; }
.datas dd { margin: 0; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.375rem; }

.destaque-bf {
  position: relative; overflow: hidden;
  margin: 26px 0 18px; padding: 24px 20px 30px;
  background: #0d0d10; color: var(--branco); border-radius: 36px;
}
.destaque-bf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--amarelo) 0 12px, #0d0d10 12px 24px);
}
.subtitulo-bf { color: var(--amarelo); margin-top: 0; font-size: 1.25rem; line-height: 1.3; }
.subtitulo-bf strong { font-weight: 800; }
.destaque-bf .lista-check { margin-bottom: 0; }

/* Acordeão dos documentos */
.acordeao { background: var(--azul-claro); border-radius: var(--radius-md); border: 3px solid transparent; }
.acordeao.escolhido { border-color: var(--ciano); }
.acordeao summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; border-radius: var(--radius-md);
}
.acordeao summary::-webkit-details-marker { display: none; }
.seta-acordeao {
  width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--ciano);
  transition: transform 250ms ease-out;
}
.acordeao[open] .seta-acordeao { transform: rotate(180deg); }
.acordeao .lista-check { padding: 0 20px 20px; margin: 0; }

/* Passos com linha pontilhada que se desenha */
.passos { list-style: none; margin: 0; padding: 0; }
.passos li { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding-bottom: 22px; }
.passos li:last-child { padding-bottom: 0; }
.passos li:not(:last-child)::before {
  content: ""; position: absolute; left: 28px; top: 64px; bottom: 4px; width: 4px;
  background-image: radial-gradient(circle, var(--azul) 2px, transparent 2.4px);
  background-size: 4px 11px; background-repeat: repeat-y;
  transform-origin: top center;
}
.js .passos li:not(:last-child)::before { transform: scaleY(0); opacity: 0; }
.js .passos.desenhado li::before { transform: scaleY(1); opacity: 1; transition: transform 500ms ease-out, opacity 200ms ease-out; }
.js .passos.desenhado li:nth-child(2)::before { transition-delay: 350ms; }
.js .passos.desenhado li:nth-child(3)::before { transition-delay: 700ms; }
.passos p { margin: 14px 0 0; }
.passo-anel { position: relative; width: 60px; height: 60px; }
.passo-anel svg { width: 100%; height: 100%; }
.passo-anel b, .turma-anel b {
  position: absolute; inset: 11px; display: grid; place-items: center;
  background: var(--branco); border-radius: 50%;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.375rem; color: var(--indigo);
}

/* Tabelas */
.tabela { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 1.0625rem; line-height: 1.45; }
.tabela caption { text-align: left; padding: 0 0 10px; }
.tabela th, .tabela td { border: 1px solid var(--ponto-inativo); padding: 12px 14px; text-align: left; vertical-align: top; }
.tabela thead th { background: var(--indigo); color: var(--branco); font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem; }
.tabela tbody th { font-weight: 700; }
.tabela .valor { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.tabela .desconto { display: block; font-size: 1rem; }
.tabela-simples tbody tr:nth-child(even) { background: var(--azul-claro); }

/* Tabela de valores no celular: cada linha vira um cartão (sem rolagem lateral) */
@media (max-width: 759px) {
  .tabela-valores, .tabela-valores tbody, .tabela-valores tr, .tabela-valores th, .tabela-valores td { display: block; }
  .tabela-valores thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela-valores tbody tr {
    background: var(--azul-claro); border-radius: var(--radius-md); padding: 18px 18px 8px; margin-bottom: 12px;
    border: 3px solid transparent;
  }
  .tabela-valores tbody tr.escolhida { border-color: var(--ciano); }
  .tabela-valores th, .tabela-valores td { border: 0; padding: 0; }
  .tabela-valores tbody th { font-family: var(--fonte-titulo); font-size: 1.0625rem; line-height: 1.35; margin-bottom: 8px; }
  .tabela-valores td {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline;
    padding: 10px 0; border-top: 1px solid var(--ponto-inativo);
  }
  .tabela-valores td::before { content: attr(data-rotulo); grid-row: 1 / span 2; font-size: 1.0625rem; }
  .tabela-valores td .valor { grid-column: 2; text-align: right; font-size: 1.25rem; }
  .tabela-valores td .desconto { grid-column: 2; text-align: right; }
}

.sub-bloco { margin-top: 8px; }
.pilulas-dias { display: flex; gap: 10px; margin: -4px 0 22px; }
.pilulas-dias span {
  display: grid; place-items: center; min-width: 68px; height: 48px; padding: 0 14px;
  background: var(--amarelo); color: var(--indigo); border-radius: var(--radius-pill);
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.25rem;
}

/* Turmas */
.cartao-turma { background: var(--azul-claro); }
.cartao-turma .tabela { background: var(--branco); margin: 0; }
.cartao-turma .tabela-simples tbody tr:nth-child(even) { background: #f3fbff; }
.turma-num { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.125rem; }
.turma-anel { position: relative; width: 84px; height: 84px; flex: none; }
.turma-anel svg { width: 100%; height: 100%; }
.turma-anel b { inset: 15px; font-size: 1.75rem; }
.data-edital { font-family: var(--fonte-titulo); font-weight: 700; margin-top: 18px; }

/* Contato */
.cartao-contato {
  position: relative; overflow: hidden;
  background: var(--indigo); color: var(--branco); border-radius: var(--radius-md);
  padding: 24px 20px;
}
.contato-anel { display: none; position: absolute; width: 150px; height: 150px; right: -52px; top: -52px; }
.contato-lista { position: relative; list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.contato-lista li { display: flex; gap: 12px; align-items: flex-start; }
.contato-lista .ic { width: 26px; height: 26px; color: var(--ciano); margin-top: 1px; }
.cartao-contato a:not(.btn) { color: var(--branco); }
.cartao-contato .btn { width: 100%; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--indigo); color: var(--branco); padding: 32px var(--lateral) 40px; }
.rodape-in { max-width: var(--largura); margin: 0 auto; }
.rodape-dados { font-style: normal; }
.rodape-dados p { margin: 0 0 6px; }
.rodape-dados a { color: var(--branco); }
.rodape-data { margin: 18px 0 0; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem; }

/* ---------- Barra fixa do celular ---------- */
.barra-fixa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--lateral) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); box-shadow: 0 -8px 24px rgba(51, 48, 192, 0.16);
  transform: translateY(120%); opacity: 0;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}
.barra-fixa.ativa { transform: translateY(0); opacity: 1; }
body.tem-barra { padding-bottom: 84px; }

/* ---------- Entrada suave ao rolar ---------- */
.js .revela { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .revela.visivel { opacity: 1; transform: none; }
.painel.entra { animation: entra 450ms ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Confete ---------- */
.confete { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confete i {
  position: absolute; width: 10px; height: 14px; border-radius: 3px;
  animation: confete 950ms cubic-bezier(.2, .7, .3, 1) forwards;
}
.confete i.redondo { width: 10px; height: 10px; border-radius: 50%; }
@keyframes confete {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* ================= Tablet ================= */
@media (min-width: 600px) {
  :root { --lateral: 28px; }
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .bf-faixa { margin-top: -28px; }
  .hero-botoes { flex-direction: row; flex-wrap: wrap; }
  .escolha-botoes { grid-template-columns: 1fr 1fr; }
  .hero-marca { top: -40px; right: -40px; width: 190px; height: 190px; }
  .bloco, .secao { padding: 32px 32px; }
  .bloco::before { border-radius: var(--radius-lg); }
  .duas-colunas { grid-template-columns: 1fr 1fr; align-items: start; }
  .destaque-bf { padding: 32px; border-radius: var(--radius-lg); }
  .painel-acoes .btn { width: auto; }
  .btn-grande { font-size: 1.25rem; padding: 14px 30px; }
  .cartao-contato { padding: 32px; }
  .cartao-contato .btn { width: auto; }
  .contato-anel { display: block; width: 180px; height: 180px; right: -70px; top: -70px; }
  .contato-lista { padding-right: 96px; }
  .forma-canto { width: 240px; height: 240px; top: -48px; right: -40px; }
  .forma-dir { left: -40px; bottom: -40px; }
}

/* ================= Computador ================= */
@media (min-width: 900px) {
  :root { --altura-menu: 72px; }
  .hero { padding: 40px var(--lateral) 56px; }
  .hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
  .hero-marca { position: relative; top: auto; right: auto; width: 360px; height: 360px; justify-self: end; display: grid; place-items: center; }
  .hero-anel { position: absolute; inset: 0; }
  .hero-disco {
    display: grid; place-items: center; width: 232px; height: 232px; border-radius: 50%;
    background: var(--branco); box-shadow: var(--sombra-suave);
  }
  .hero-disco img { width: 172px; height: 172px; }
  .hero-forma-2 { width: 320px; height: 300px; right: -80px; top: auto; bottom: -120px; }
  .hero-sub { font-size: 1.5rem; }
  .escolha { margin-top: 30px; }
  .bf-faixa { margin: -40px calc(-1 * var(--lateral)) 32px; }
  .bf-in { gap: 8px 28px; }
  .bf-tag { flex: none; font-size: 1.75rem; }

  .menu-cta { display: inline-flex; flex: none; margin-right: var(--lateral); }
  .menu-lista { padding-right: 8px; gap: 4px; }
  .menu-lista a { padding: 8px 12px; }

  main { padding-top: 40px; }
  .bloco, .secao { padding: 44px 48px; margin-bottom: 28px; }
  .painel-grade { grid-template-columns: repeat(3, 1fr); }
  .calc-grade { grid-template-columns: 1fr 1fr; gap: 32px; }
  .barra-fixa { display: none; }
  body.tem-barra { padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .menu-in { max-width: 1340px; }
}
@media (min-width: 1400px) {
  .menu-lista { -webkit-mask-image: none; mask-image: none; }
}

/* ================= Menos movimento ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revela { opacity: 1; transform: none; }
  .js .lista-check .check::after { display: none; }
  .js .passos li:not(:last-child)::before { transform: none; opacity: 1; }
}

/* ================= Impressão ================= */
@media print {
  @page { margin: 16mm 14mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.45; padding: 0 !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .menu, .barra-fixa, .escolha, .painel, .calc, .hero-marca, .hero-forma, .forma-canto, .contato-anel,
  .btn, .bf-faixa, .link-valores, .link-imprimir, .aviso-pos-bf, .ondinha, .pular, .pilulas-dias,
  .turma-num, .seta-acordeao, .confete, .rodape .pilula-logo { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0 0 8pt; }
  .hero .amarelo { color: #000; }
  .hero-titulo { font-size: 24pt; }
  .hero-sub { font-size: 14pt; max-width: none; }
  .pilula-logo { box-shadow: none; padding: 0; gap: 8pt; }
  main { padding: 0; overflow: visible; }
  .bloco, .secao { padding: 0; margin: 0 0 12pt; max-width: none; }
  .secao::before { display: none; }
  .js .revela { opacity: 1 !important; transform: none !important; }
  .titulo-secao { font-size: 14pt; padding-left: 0; break-after: avoid; }
  .titulo-secao::before { display: none; }
  .subtitulo { font-size: 12pt; break-after: avoid; }
  a { color: #000; }
  .edital-topo { margin: 0 0 10pt; }
  .cartao, .acordeao, .datas > div, .destaque-bf, .cartao-contato, .cartao-turma {
    background: #fff !important; color: #000 !important; border: 1px solid #999 !important; border-radius: 6pt; padding: 8pt;
  }
  .cartao-contato a:not(.btn), .subtitulo-bf, .destaque-bf { color: #000 !important; }
  .destaque-bf::after { display: none; }
  .contato-lista .ic { color: #000; }
  .contato-lista { padding-right: 0; }
  .check { background: #fff; color: #000; border: 1px solid #000; width: 16pt; height: 16pt; }
  .check svg { width: 11pt; height: 11pt; }
  .js .lista-check .check::after { display: none; }
  .acordeao summary { min-height: 0; padding: 0 0 6pt; }
  .acordeao .lista-check { padding: 0; }
  .passos li::before { display: none; }
  .passo-anel { width: 28pt; height: 28pt; }
  .passo-anel b { inset: 4pt; font-size: 11pt; }
  .tabela, .tabela-valores, .tabela-valores tbody, .tabela-valores tr { break-inside: avoid; }
  .tabela th, .tabela td { border: 1px solid #000 !important; color: #000; background: #fff !important; padding: 5pt 7pt; }
  .tabela thead th { background: #eee !important; color: #000; }
  .tabela-valores { display: table !important; }
  .tabela-valores thead { position: static !important; width: auto; height: auto; clip: auto; display: table-header-group !important; }
  .tabela-valores tbody { display: table-row-group !important; }
  .tabela-valores tr { display: table-row !important; }
  .tabela-valores th, .tabela-valores td { display: table-cell !important; }
  .tabela-valores td::before { content: none !important; }
  .rodape { background: #fff; color: #000; padding: 10pt 0 0; border-top: 1px solid #999; }
  .rodape-dados a { color: #000; }
}
