:root {
  --verde-escuro: #0d2818;
  --verde: #0a7a55;
  --verde-claro: #12b981;
  --verde-fundo: #f3faf6;
  --texto: #14231b;
  --texto-suave: #4a5d52;
  --borda: #d6e6dc;
  --branco: #ffffff;
  --raio: 16px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--texto);
  background: var(--branco);
}
img { max-width: 100%; height: auto; }
a { color: var(--verde); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
  border-radius: 6px;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--branco);
  color: var(--verde-escuro); padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--verde-claro); color: var(--verde-escuro); }
.btn-primary:hover { background: var(--verde); color: var(--branco); }
.btn-ghost { background: transparent; color: var(--branco); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

/* Cabeçalho */
.site-header { background: var(--verde-escuro); color: var(--branco); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--branco); text-decoration: none; font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img { border-radius: 50%; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--verde-escuro) 0%, #115a3c 100%);
  color: var(--branco); padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero .container { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 1.125rem; margin: 0 0 28px; max-width: 34em; color: #e3f4ea; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo { justify-self: center; }
.hero-logo img { width: min(60vw, 256px); border-radius: 50%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }

/* Seções */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--texto-suave); max-width: 40em; margin: 0 0 32px; }
.alt { background: var(--verde-fundo); }

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: passo; }
.passos li {
  counter-increment: passo; background: var(--branco); border: 1px solid var(--borda);
  border-radius: var(--raio); padding: 24px 20px 20px; position: relative;
}
.passos li::before {
  content: counter(passo); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--verde); color: var(--branco);
  font-weight: 800; margin-bottom: 10px;
}
.passos h3, .beneficios h3 { margin: 0 0 6px; font-size: 1.1rem; }
.passos p, .beneficios p { margin: 0; color: var(--texto-suave); }

.modalidades { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.modalidades li {
  background: var(--branco); border: 1px solid var(--borda); border-radius: 12px;
  padding: 14px 12px; font-weight: 600; text-align: center;
}
.modalidades-grupo { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--verde); }

.beneficios { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.beneficios li { border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; background: var(--branco); }

.aviso { margin-top: 24px; font-size: 0.95rem; color: var(--texto-suave); }

.cta { background: var(--verde-escuro); color: var(--branco); text-align: center; }
.cta p { color: #e3f4ea; margin: 0 auto 24px; max-width: 32em; }

/* Rodapé */
.site-footer { background: #091d11; color: #cfe3d6; padding: 32px 0; font-size: 0.95rem; }
.site-footer a { color: #9ee6c4; }
.site-footer .container { display: grid; gap: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (min-width: 640px) {
  .modalidades { grid-template-columns: repeat(3, 1fr); }
  .passos, .beneficios { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .hero { padding: 88px 0 96px; }
  .hero .container { grid-template-columns: 1.4fr 1fr; }
  .modalidades { grid-template-columns: repeat(4, 1fr); }
  .beneficios { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Movimento: bolas desenhadas em SVG (autorais), flutuação do logo e revelação ao rolar */
.bolas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bola { position: absolute; width: 56px; height: 56px; opacity: 0.22; }
.b1 { left: 6%;  top: 62%; animation: quica 3.2s ease-in-out infinite; }
.b2 { left: 46%; top: 8%;  width: 72px; height: 72px; animation: quica 4.1s ease-in-out -1s infinite, gira 12s linear infinite; }
.b3 { right: 8%; top: 70%; width: 64px; height: 64px; animation: quica 3.6s ease-in-out -2s infinite; }
.b4 { right: 30%; top: 14%; width: 40px; height: 40px; animation: quica 2.8s ease-in-out -0.5s infinite, gira 9s linear infinite reverse; }
@keyframes quica { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }
@keyframes gira { from { rotate: 0deg; } to { rotate: 360deg; } }

.hero-logo img { animation: flutua 5s ease-in-out infinite; }
@keyframes flutua { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

.btn { transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visivel { opacity: 1; transform: none; }
.js .reveal .modalidades li, .js .reveal .passos li, .js .reveal .beneficios li {
  opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease;
}
.js .reveal.visivel .modalidades li, .js .reveal.visivel .passos li, .js .reveal.visivel .beneficios li {
  opacity: 1; transform: none;
}
.reveal.visivel li:nth-child(1) { transition-delay: 0.05s; } .reveal.visivel li:nth-child(2) { transition-delay: 0.1s; }
.reveal.visivel li:nth-child(3) { transition-delay: 0.15s; } .reveal.visivel li:nth-child(4) { transition-delay: 0.2s; }
.reveal.visivel li:nth-child(5) { transition-delay: 0.25s; } .reveal.visivel li:nth-child(6) { transition-delay: 0.3s; }
.reveal.visivel li:nth-child(7) { transition-delay: 0.35s; } .reveal.visivel li:nth-child(8) { transition-delay: 0.4s; }
.reveal.visivel li:nth-child(n+9) { transition-delay: 0.45s; }
.modalidades li { transition: background-color 0.2s ease, border-color 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .bola, .hero-logo img { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
  .js .reveal, .js .reveal li, .js .reveal.visivel li { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Modalidades: card branco neutro; a cor do esporte fica só no círculo do pictograma
   (paleta final de app_colors.dart). O nome usa sempre texto escuro. */
.modalidades li.esp {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 14px; background: var(--branco);
  border: 1px solid var(--borda); border-radius: 16px; box-shadow: none; overflow: hidden;
}
.esp-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--cor);
  transition: transform 0.2s ease;
}
.ico { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modalidades li.esp:hover { border-color: #9db8a9; background: var(--branco); }
.modalidades li.esp:hover .esp-ico { transform: scale(1.06); }
.esp-nome { font-size: 0.95rem; line-height: 1.25; color: var(--texto); }
@media (prefers-reduced-motion: reduce) {
  .modalidades li.esp:hover .esp-ico { transform: none; }
}

/* Acessibilidade: onde o ícone branco não atinge 3:1 sobre o HEX oficial da modalidade,
   o HEX é mantido e o traço do ícone passa para o verde institucional escuro. */
.modalidades li.esp-ink .ico { stroke: #0d2818; }

/* Foco por teclado: anel claro (5,7:1 ou mais) sobre as áreas escuras, anel verde (5,0:1 ou mais) sobre as claras. */
.site-header a:focus-visible, .hero a:focus-visible, .cta a:focus-visible, .site-footer a:focus-visible {
  outline-color: #9ee6c4;
}

/* Modalidades: carrossel com as 16 (sem JS, os grupos ficam visíveis em lista) */
.mod-titulo { margin: 24px 0 10px; font-size: 1rem; color: var(--texto-suave); }
.mod-titulo:first-child { margin-top: 0; }
.mod-grupo + .mod-grupo { margin-top: 8px; }
.mod-js .mod-grupo { display: none; }
.car { position: relative; }
.car-trilho {
  list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.car-trilho:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 12px; }
.car-card {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px; padding: 20px; background: var(--branco);
  border: 1px solid var(--borda); border-radius: 16px;
}
.car-ico { width: 72px; height: 72px; }
.car-ico .ico { width: 48px; height: 48px; }
.car-card.esp-ink .ico { stroke: #0d2818; }
.car-grupo { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--verde); }
.car-card h3 { margin: 0; font-size: 1.25rem; }
.car-card p { margin: 0 0 6px; color: var(--texto-suave); flex: 1; }
.car-seta {
  position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center; background: var(--branco);
  border: 1px solid var(--borda); box-shadow: 0 2px 8px rgba(13, 40, 24, 0.15); color: var(--verde-escuro);
}
.car-seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-seta:disabled { opacity: 0.35; cursor: default; }
.car-seta:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.car-ant { left: -10px; }
.car-prox { right: -10px; }
.car-cont { margin: 6px 0 0; text-align: center; font-size: 0.9rem; color: var(--texto-suave); }
@media (min-width: 640px) { .car-card { flex-basis: 280px; } .car-seta { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .car-trilho { scroll-behavior: auto; } }

/* Compartilhar PlayBola: discreto, sem competir com o CTA principal */
.indicar { margin-top: 18px; color: #e3f4ea; }
.indicar summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 2px;
  cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.5);
}
.indicar summary::-webkit-details-marker { display: none; }
.indicar summary:hover { color: var(--branco); text-decoration-color: var(--branco); }
.indicar .ico-share { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.indicar summary:focus-visible, .indicar .btn:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
.indicar-opcoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.indicar-opcoes [hidden] { display: none; }
.indicar-aviso { margin: 8px 0 0; min-height: 1.4em; font-size: 0.95rem; color: var(--verde-claro); }
