/*
  Klicai — visual 2026 (preto e laranja, com o mascote), comum a todas as páginas do /klictube/
  e de todos os idiomas. Carregado DEPOIS do <style> de cada página: troca fontes, botões, granulado e
  mascote. As cores de cada página foram trocadas no próprio <style> pelo ferramentas/visual_klictube.py.
*/
:root { --kv-sinal: #FF5B1F; --kv-sinal-2: #ff7a45; --kv-display: "Space Grotesk", system-ui, sans-serif; --kv-texto: "IBM Plex Sans", system-ui, sans-serif; }

body { font-family: var(--kv-texto); }
h1, h2, h3, h4, .logo, .btn, .eyebrow, .nav-links, .doc-hero h1, .hero h1 { font-family: var(--kv-display); }
h1, h2 { letter-spacing: -.025em; }

/* granulado de filme (fica no html para não brigar com o ::before/::after das páginas) */
html::after { content: ""; position: fixed; inset: -50%; z-index: 9999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: kv-grao 1s steps(4) infinite; }
:root[data-theme="light"]::after { opacity: .035; }
@keyframes kv-grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* botões em pílula, laranja */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: -.005em; }
.btn-primary { background: var(--kv-sinal); box-shadow: 0 14px 34px -12px rgb(255 91 31 / .75), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-primary:hover { background: #ff6c33; box-shadow: 0 18px 40px -12px rgb(255 91 31 / .9); }

/* mascote */
.kt-mascote { position: absolute; z-index: 5; pointer-events: none; height: auto; filter: drop-shadow(0 22px 28px rgb(0 0 0 / .5));
  animation: kv-flutua 4.6s ease-in-out infinite; }
.kt-mascote-hero { width: clamp(120px, 15cqi, 200px); left: -2%; bottom: -8%; }
.kt-mascote-final { position: relative; display: block; width: 140px; margin: 0 auto 10px; animation-duration: 5s; }
.kt-mascote-doc { position: relative; float: right; width: clamp(90px, 12vw, 150px); margin: -10px 0 10px 18px; animation-duration: 5.2s; }
[dir="rtl"] .kt-mascote-doc { float: left; margin: -10px 18px 10px 0; }
[dir="rtl"] .kt-mascote-hero { left: auto; right: -2%; }
@keyframes kv-flutua { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-1.2deg); } }
@media (max-width: 640px) { .kt-mascote-hero { width: 96px; bottom: -4%; } .kt-mascote-doc { width: 84px; } }

/* cartões de plano montados pelo site.js */
.kt-plano.top { border-color: var(--kv-sinal) !important; box-shadow: 0 30px 70px -30px rgb(255 91 31 / .55) !important; }
.kt-plano .selo { background: var(--kv-sinal) !important; }

/* celular: o topo (idioma + tema + botão) não cabia e alargava a página; o botão de compra já está no topo da página */
@media (max-width: 560px) {
  .nav .nav-right .btn, .top .btn, header .nav-cta { display: none; }
  .nav .wrap { gap: 8px; }
  span.ui, kbd { white-space: normal; overflow-wrap: anywhere; }
}
html, body { overflow-x: clip; }
.table-wrap { max-width: 100%; overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { html::after, .kt-mascote { animation: none; } }
