/* ================================================================
   BAD MONKEY · Design System V1.3 (Out 2026) para as páginas web
   Carregado DEPOIS do <style> de cada página, por isso sobrepõe-se.
   - Inter Tight no texto e UI; Anybody só em títulos e wordmark.
   - Raios moderados: cards 14px, controlos 10px, chips em pílula.
   - Molas em linear() (modelo Apple): damping 1.0 por defeito,
     0.8 só para confirmações. Resposta ao toque no pointer-down.
   Fonte da verdade: Design System/index.html (V1.3).
   ================================================================ */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Anybody", "Inter Tight", system-ui, sans-serif;

  --r-sm: 6px;
  --r-control: 10px;
  --r-card: 14px;
  --r-sheet: 20px;

  --spring: linear(0, 0.0229, 0.0788, 0.1531, 0.2359, 0.3206, 0.4028, 0.48, 0.5507, 0.6144, 0.6709, 0.7205, 0.7636, 0.8008, 0.8327, 0.86, 0.8831, 0.9026, 0.919, 0.9328, 0.9444, 0.954, 0.9621, 0.9687, 0.9743, 0.9789, 0.9826, 0.9858, 0.9883, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9965, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --spring-bounce: linear(0, 0.0139, 0.0508, 0.1039, 0.1679, 0.2384, 0.312, 0.386, 0.4583, 0.5273, 0.5921, 0.6519, 0.7064, 0.7554, 0.799, 0.8372, 0.8705, 0.8991, 0.9234, 0.9438, 0.9607, 0.9745, 0.9857, 0.9945, 1.0013, 1.0064, 1.0101, 1.0126, 1.0141, 1.015, 1.0152, 1.0149, 1.0143, 1.0135, 1.0125, 1.0115, 1.0103, 1.0092, 1.0081, 1.0071, 1.0061, 1.0052, 1.0044, 1.0037, 1.003, 1.0024, 1.0019, 1.0015, 1.0011, 1.0008, 1);
  --t-enter: 620ms;
  --t-fast: 380ms;
}

/* ---------- Tipografia ---------- */
body {
  font-family: var(--font-ui);
  font-variation-settings: "wght" 400;
}
h1, h2,
.display, .display-lg, .display-md, .display-sm,
.wordmark, .hero__wordmark, .tagline__line, .closer__line, .closer__wordmark,
.link__title, .cta-primary__title,
.op__num, .op__title, .plan__name, .plan__price {
  font-family: var(--font-display);
}
/* Números e códigos de UI em Inter Tight, alinhados */
.mono, .plan__stat-value, .cta-primary__stat-value,
.briefing-meta__value, .pay-method__value {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.lead, .hero__lead, .section-head__sub, .cta-primary__sub, .method__intro,
.plans-intro, .op__body, .faq__answer, .pillar__text {
  line-height: 1.5;
}

/* ---------- Raios ---------- */
.link, .cta-primary, .plan, .op, .pillar, .roster, .manifest,
.pay-method, .closer__seal {
  border-radius: var(--r-card);
  overflow: hidden;
}
.btn, .btn-hero, .btn-primary, .cta-primary__arrow, .op__num,
.manifest__seal, .faq__toggle {
  border-radius: var(--r-control);
}
.op__phase, .pay-method__copy, .plan__ribbon-tag, .roster__tag {
  border-radius: 9999px;
}
.faq details[open] {
  border-radius: var(--r-card);
}

/* ---------- Toque: afunda no pointer-down, volta numa mola ---------- */
a, button, summary, .btn, .btn-hero, .link, .cta-primary, .pay-method__copy {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.link, .cta-primary, .btn, .btn-hero, .btn-primary, .pay-method__copy, .faq summary {
  transition:
    transform var(--t-fast) var(--spring),
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 220ms ease;
}
.link:active, .cta-primary:active, .btn:active, .btn-hero:active,
.btn-primary:active, .pay-method__copy:active, .faq summary:active {
  transform: scale(0.97);
  transition-duration: 90ms, 160ms, 160ms, 160ms, 220ms;
  transition-timing-function: ease-out;
}
.link:active, .cta-primary:active { transform: scale(0.985); }
.link__arrow, .cta-primary__arrow svg, .chevron {
  transition: transform var(--t-fast) var(--spring);
}
/* Confirmação de cópia: o selo entra com um ligeiro bounce */
@keyframes v12-copiado { from { transform: scale(0.85); } to { transform: scale(1); } }
.pay-method__copy.copied { animation: v12-copiado 520ms var(--spring-bounce); }

/* ---------- Reveal: posição numa mola, foco em paralelo ---------- */
html.has-reveal .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 340ms ease-out,
    filter 340ms ease-out,
    transform var(--t-enter) var(--spring);
}
html.has-reveal .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Escada a acelerar (60 → 24ms entre passos) */
html.has-reveal .reveal-d1, html.has-reveal .reveal-delay-1 { transition-delay: 60ms; }
html.has-reveal .reveal-d2, html.has-reveal .reveal-delay-2 { transition-delay: 110ms; }
html.has-reveal .reveal-d3, html.has-reveal .reveal-delay-3 { transition-delay: 152ms; }
html.has-reveal .reveal-d4, html.has-reveal .reveal-delay-4 { transition-delay: 188ms; }
html.has-reveal .reveal-d5 { transition-delay: 218ms; }

/* Entrada do hero do /alistar: mesmas keyframes, agora numa mola */
html.has-reveal .hero-anim .tagline__line,
html.has-reveal .hero-anim .hero__lead,
html.has-reveal .hero-anim .hero__cta-row {
  animation-duration: var(--t-enter);
  animation-timing-function: var(--spring);
}

/* Foco visível */
:focus-visible { outline: 2px solid var(--vermelho-alerta); outline-offset: 3px; border-radius: var(--r-control); }

@media (prefers-reduced-motion: reduce) {
  html.has-reveal .reveal { transform: none; filter: none; transition: opacity 200ms ease; transition-delay: 0ms !important; }
  .link:active, .cta-primary:active, .btn:active, .btn-hero:active,
  .btn-primary:active, .pay-method__copy:active, .faq summary:active { transform: none; }
}
