/* Tokens, reset, tipografia, botão, topo, container, foco e reduzir movimento */

/* Outfit própria (OFL), só o subconjunto latin; uma fonte variável cobre 400 a 800 */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/outfit-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;
}

:root {
  --marinho: #00306B;
  --ciano: #02D2F8;
  --agua: #24E3C6;
  --branco: #FFFFFF;

  --texto: #0d1b33;
  --texto-suave: #4a5f7a;
  --linha: #dfe8f1;
  --borda: #7b91aa;
  --fundo-claro: #eef7fb;

  --fonte: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topo: 60px;
  /* a margem lateral também desvia do entalhe do iPhone deitado (viewport-fit=cover) */
  --margem: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --largura: 1200px;
  --raio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

/* foco e rolagem até uma seção param fora do topo fixo e da barra fixa (--barra vem de js/rolagem.js) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--topo); scroll-padding-bottom: var(--barra, 0px); }

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font: 400 16px/1.5 var(--fonte);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

h1, h2, h3 { color: var(--marinho); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.subtitulo { margin-top: 8px; color: var(--texto-suave); font-size: 1rem; }

.container { width: min(100% - 2 * var(--margem), var(--largura)); margin-inline: auto; }
.container--estreito { max-width: 760px; }
.secao { padding-block: 48px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* botão de ação: verde-água, texto marinho em negrito, cantos de 14 px */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 20px;
  border: 0; border-radius: var(--raio);
  background: var(--agua); color: var(--marinho);
  font: 800 1.0625rem/1.2 var(--fonte); text-align: center; text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(36, 227, 198, .8);
  transition: transform .15s var(--ease);
}
.btn__ico { flex: none; width: 22px; height: 22px; }

/* topo fixo: logo à esquerda, WhatsApp à direita, sem menu */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--topo);
  padding-inline: max(var(--margem), (100% - var(--largura)) / 2);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--linha);
}
.topo__logo { width: auto; height: 32px; }
.topo__wa {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--agua); color: var(--marinho);
  box-shadow: 0 6px 14px -6px rgba(36, 227, 198, .9);
  transition: transform .15s var(--ease);
}
.topo__wa svg { width: 22px; height: 22px; }

/* resposta ao toque */
.btn:active, .topo__wa:active, .viz__filtros button:active, .faq__pergunta:active, .faixa__pausa:active { transform: scale(.97); }

@media (hover: hover) {
  .btn:hover { box-shadow: 0 16px 32px -12px rgba(36, 227, 198, 1); }
}

/* anel duplo (ciano + marinho): visível no fundo branco e no marinho */
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 2px; box-shadow: 0 0 0 2px var(--marinho); }
/* o brilho do hover não apaga a metade marinho do anel */
.btn:focus-visible { box-shadow: 0 0 0 2px var(--marinho); }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

@media (min-width: 768px) {
  :root { --topo: 68px; --margem: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .topo__logo { height: 36px; }
  .secao { padding-block: 80px; }
}

/* reduzir movimento: nada se mexe sozinho e as trocas são instantâneas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
