/* Tipografia do site (redesign mobile first).
   Referencia: escala editorial de SaaS premium. Cores ficam em tema-premium.css.
   Carregado depois do tema, em todas as paginas que usam tema-premium.css.
   O seletor :not(#_t) so aumenta a especificidade para vencer regras legadas
   de tamanho (ex.: .hero h1, html:not([data-fonte])), sem mexer no HTML. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --t-display: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-h1-size: clamp(40px, 13.75vw, 56px);
  --t-h1-lh: 1.08;
  --t-h1-track: -0.065em;
  --t-h2-size: clamp(36px, 9.5vw, 42px);
  --t-h2-lh: 1.12;
  --t-h2-track: -0.045em;
  --t-h3-size: clamp(24px, 6vw, 28px);
  --t-h3-track: -0.035em;
  --t-body-size: 16px;
  --t-body-lh: 1.7;
}

html body h1:not(#_t):not(.hn-titulo) {
  font-family: var(--t-display) !important;
  font-weight: 400 !important;
  font-stretch: 100% !important;
  font-size: var(--t-h1-size) !important;
  line-height: var(--t-h1-lh) !important;
  letter-spacing: var(--t-h1-track) !important;
  text-transform: none !important;
  text-wrap: balance;
}

html body h2:not(#_t) {
  font-family: var(--t-display) !important;
  font-weight: 500 !important;
  font-stretch: 100% !important;
  font-size: var(--t-h2-size) !important;
  line-height: var(--t-h2-lh) !important;
  letter-spacing: var(--t-h2-track) !important;
  text-transform: none !important;
  text-wrap: balance;
}

html body h3:not(#_t) {
  font-family: var(--t-display) !important;
  font-weight: 500 !important;
  font-stretch: 100% !important;
  font-size: var(--t-h3-size) !important;
  line-height: 1.2 !important;
  letter-spacing: var(--t-h3-track) !important;
  text-transform: none !important;
}

html body main p:not([class]):not(#_t),
html body main li:not([class]):not(#_t) {
  font-family: var(--t-body) !important;
  font-stretch: 100% !important;
  font-size: var(--t-body-size) !important;
  line-height: var(--t-body-lh) !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
}

html body main .eyebrow:not(#_t),
html body main [class*="eyebrow"]:not(#_t) {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

html body :is(.pill, .cta, .hn-cta, .dio-btn, .btn):not(#_t) {
  font-family: var(--t-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  min-height: 52px;
}

/* Titulo da hero (San Francisco, hero.css): a regra legada de h1 tem especificidade maior, entao o peso e o tracking
   da hero sao reafirmados aqui. A familia continua sendo a San Francisco (--hn-sf). */
html body h1.hn-titulo:not(#_t) {
  font-weight: 400 !important;
  letter-spacing: -0.065em !important;
  line-height: 1.08 !important;
}

@media (min-width: 768px) {
  html body h1:not(#_t):not(.hn-titulo) { font-size: clamp(56px, 7.6vw, 110px) !important; }
  html body h2:not(#_t) { font-size: clamp(56px, 5.2vw, 72px) !important; }
  html body h3:not(#_t) { font-size: clamp(28px, 2.8vw, 36px) !important; }
}

@media (min-width: 1024px) {
  html body h3:not(#_t) { font-size: clamp(32px, 2.8vw, 40px) !important; }
  html body main p:not([class]):not(#_t),
  html body main li:not([class]):not(#_t) { font-size: clamp(18px, 1.25vw, 20px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body :is(h1, h2, h3, p):not(#_t) { transition: none !important; }
}
