/* 30 dias te entregando o ouro da carteira — base das duas páginas (calendário e conteúdo).
   Zroo, público corretor (azul). Toda cor e medida de marca vem de assets/zroo-tokens.css. */

@font-face { font-family: 'Effra'; src: url('assets/fonts/effra-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Effra'; src: url('assets/fonts/effra-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Effra'; src: url('assets/fonts/effra-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --lp-ease: var(--zr-easing);
  --lp-ease-out: cubic-bezier(.22, 1, .36, 1);
  --lp-ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --lp-lateral: 1rem;
  --lp-largura: 76rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--zr-font-family);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--zr-color-text);
  background: var(--zr-color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: var(--zr-accent-strong); }
:focus-visible { outline: 3px solid var(--zr-accent); outline-offset: 3px; }

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  border-radius: var(--zr-radius-pill);
  background: var(--zr-color-text);
  color: var(--zr-white);
  font-weight: 700;
}
.pular:focus { top: 1rem; }

/* ---------- topo: pílula flutuante, como na home ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(.75rem + env(safe-area-inset-top, 0px)) var(--lp-lateral) .75rem;
  background: linear-gradient(var(--zr-color-bg) 70%, transparent);
}
.topo__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--lp-largura);
  min-height: 3.75rem;
  margin-inline: auto;
  padding: .5rem .5rem .5rem 1.25rem;
  background: var(--zr-color-surface);
  border: 1px solid var(--zr-color-border);
  border-radius: var(--zr-radius-pill);
  box-shadow: var(--zr-shadow-md);
}
.topo__logo img { height: 2.125rem; width: auto; }
.topo__entrar, .topo__ola, .topo__voltar {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 0;
  border-radius: var(--zr-radius-pill);
  background: var(--zr-color-surface-muted);
  font-size: 1rem;
  font-weight: 700;
  color: var(--zr-color-text);
  text-decoration: none;
  cursor: pointer;
}
.topo__ola { background: var(--zr-accent-soft); color: var(--zr-accent-strong); cursor: default; }
.topo__voltar svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .topo__entrar:hover, .topo__voltar:hover { background: var(--zr-color-surface-sunken); }
}

/* ---------- botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--zr-radius-pill);
  background: var(--zr-accent);
  color: var(--zr-accent-contrast);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--zr-accent-ring);
  touch-action: manipulation;
  transition: transform .3s var(--lp-ease-out), background .2s var(--lp-ease), box-shadow .3s var(--lp-ease);
}
.btn svg { flex: none; width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--lp-ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { background: var(--zr-accent-strong); }
  .btn:hover svg { transform: translateX(.25rem); }
}
.btn--grande { min-height: 4rem; padding: 0 2rem; font-size: 1.25rem; }
.btn--contorno { background: var(--zr-color-surface); color: var(--zr-accent-strong); border: 2px solid var(--zr-accent); box-shadow: none; }
@media (hover: hover) { .btn--contorno:hover { background: var(--zr-accent-soft); } }

.btn__giro {
  position: absolute;
  width: 1.625rem;
  height: 1.625rem;
  border: 3px solid var(--zr-accent-contrast);
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: gira .8s linear infinite;
}
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] > :not(.btn__giro) { opacity: 0; }
.btn[aria-busy="true"] .btn__giro { opacity: 1; }
@keyframes gira { to { transform: rotate(1turn); } }

.link { padding: 0; border: 0; background: none; color: var(--zr-accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- rodapé ---------- */

.rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: var(--lp-largura);
  margin: 0 auto;
  padding: 2.5rem var(--lp-lateral) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--zr-color-border);
}
.rodape img { height: 2rem; width: auto; }
.rodape__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 1rem; }
.rodape__links a { color: var(--zr-color-text-subtle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media (min-width: 48rem) {
  :root { --lp-lateral: 2rem; }
}
