/* ==========================================================================
   Numax — Página de Atualizações (/updates/)
   Visual premium. Usa as variáveis de cor de tokens.css.
   CSS próprio (sem utilities Tailwind escapadas) para não esbarrar no
   minificador da build Cloudflare.
   ========================================================================== */

/* ========== Reset enxuto ========== */
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-charcoal, #111E36);
  background: #eef3fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(90,180,255,.5); border-radius: 8px; }

.upd-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .upd-container { padding: 0 32px; } }

/* ========== Header ========== */
.upd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,38,82,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.upd-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.upd-header__logo img { height: 20px; width: auto; filter: brightness(0) invert(1); }
.upd-nav { display: none; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.upd-nav a { color: #E4E4E4; transition: color .2s ease; }
.upd-nav a:hover { color: #fff; }
.upd-header__actions { display: flex; align-items: center; gap: 12px; }
.upd-login { display: none; font-size: 14px; font-weight: 500; color: #E4E4E4; }
.upd-login:hover { color: #fff; }
.upd-cta {
  background: #0056B7; color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 0 15px rgba(0,86,183,.5); transition: background .2s ease, transform .15s ease;
}
.upd-cta:hover { background: #004a9e; transform: translateY(-1px); }
@media (min-width: 1024px) { .upd-nav { display: flex; } .upd-login { display: block; } }

/* ========== Hero ========== */
.upd-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #002652 0%, #001a3a 100%);
  color: #fff; padding: 96px 0 80px; text-align: center;
}
.upd-hero__glow {
  position: absolute; border-radius: 9999px; filter: blur(140px);
  pointer-events: none; mix-blend-mode: screen; z-index: 0;
}
.upd-hero__glow--a { top: -20%; left: -10%; width: 600px; height: 600px; background: #0056B7; opacity: .45; }
.upd-hero__glow--b { bottom: -30%; right: -10%; width: 680px; height: 680px; background: #5AB4FF; opacity: .28; }
.upd-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.upd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 9999px;
  background: rgba(0,86,183,.18); border: 1px solid rgba(90,180,255,.35);
  color: #5AB4FF; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.upd-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 18px; text-wrap: balance;
}
.upd-hero h1 .grad {
  background: linear-gradient(90deg, #5AB4FF, #ffffff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.upd-hero__lead { font-size: clamp(1rem, 2.2vw, 1.22rem); color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto; }

/* Stats */
.upd-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px;
  margin-top: 38px;
}
.upd-stat { text-align: center; }
.upd-stat__num { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.upd-stat__num .plus { color: #5AB4FF; }
.upd-stat__label { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 6px; }

/* ========== Section base ========== */
.upd-section { padding: 64px 0; }
.upd-section__head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.upd-section__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #0056B7;
}
.upd-section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; margin-top: 10px; color: #002652;
  text-wrap: balance;
}
.upd-section__intro { color: #5a6b85; margin-top: 12px; font-size: 1.02rem; text-wrap: balance; }

/* ========== Featured grid ========== */
.upd-featured-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px) { .upd-featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .upd-featured-grid { grid-template-columns: repeat(3, 1fr); } }

.upd-feat {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(0,38,82,.07); border-radius: 22px; padding: 26px;
  box-shadow: 0 2px 20px rgba(0,38,82,.05), 0 16px 44px rgba(0,38,82,.05);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
  overflow: hidden;
}
.upd-feat:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,38,82,.10), 0 24px 60px rgba(0,38,82,.10); }
.upd-feat__media {
  margin: -26px -26px 20px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eaf1fb, #dbe7f8);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.upd-feat__media img, .upd-feat__media video { width: 100%; height: 100%; object-fit: cover; }
.upd-feat__media iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Banner de ícone pra cards SEM vídeo/imagem — mantém todos os cards uniformes */
.upd-feat__media--icon { background: linear-gradient(135deg, #eef4fc, #d9e6f8); display: flex; align-items: center; justify-content: center; }
.upd-feat__media--icon.is-ia { background: linear-gradient(135deg, #e3f1ff, #cfe6ff); }
.upd-feat__mediaicon { font-size: 58px; color: #0056B7; opacity: .92; }
.upd-feat__media--icon.is-ia .upd-feat__mediaicon { color: #2f8fe0; }
.upd-yt { position: relative; cursor: pointer; }
.upd-yt__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; background: rgba(0,38,82,.30); transition: background .2s ease;
}
.upd-yt:hover .upd-yt__play { background: rgba(0,38,82,.14); }
.upd-yt__play iconify-icon { filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.upd-feat__icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0056B7, #002652); color: #fff; font-size: 26px; margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,86,183,.28);
}
.upd-feat__badge {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: linear-gradient(135deg, #FFB020, #FF7A00); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 13px; border-radius: 9999px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(255,122,0,.5);
}
/* Selo "Em breve" — mesmo rosa dos botoes da Antenada IA (#FF2E7E -> #FF7A2F). */
.upd-feat__badge--soon {
  background: linear-gradient(90deg, #FF2E7E, #FF7A2F);
  box-shadow: 0 8px 22px rgba(255,60,120,.32);
}

/* Acento de identidade da Antenada IA (azul-claro #5AB4FF) */
.upd-feat--ia { border-color: rgba(90,180,255,.45); box-shadow: 0 2px 20px rgba(90,180,255,.12), 0 16px 44px rgba(90,180,255,.18); }
.upd-feat--ia::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #5AB4FF, #2f8fe0); z-index: 4; }
.upd-feat--ia .upd-feat__icon { background: linear-gradient(135deg, #5AB4FF, #2f8fe0); box-shadow: 0 8px 20px rgba(90,180,255,.45); }
.upd-feat--ia .upd-tag { background: rgba(90,180,255,.18); color: #1f77c9; }
.upd-feat__title { font-size: 1.2rem; font-weight: 700; color: #002652; margin-bottom: 8px; letter-spacing: -.01em; }
.upd-feat__desc { font-size: .95rem; color: #51637e; line-height: 1.55; flex: 1; }
.upd-feat__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.upd-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 9999px; background: rgba(0,86,183,.08); color: #0056B7;
}
.upd-feat__date { font-size: 12px; color: #64748b; }

/* ========== Timeline section (light) ========== */
.upd-section--timeline { background: #fff; border-top: 1px solid rgba(0,38,82,.06); }

/* Filter bar */
.upd-filters {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,38,82,.08); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 36px;
  box-shadow: 0 8px 24px rgba(0,38,82,.06);
}
.upd-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.upd-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9999px;
  font-size: 13.5px; font-weight: 600; color: #51637e; background: #eef3fa; border: 1px solid transparent;
  transition: all .15s ease;
}
.upd-chip:hover { background: #e3ecf8; }
.upd-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.upd-chip[data-active="true"] { color: #fff; background: #002652; border-color: #002652; }
.upd-chip__count { font-size: 11.5px; opacity: .7; font-weight: 600; }
.upd-spacer { flex: 1 1 auto; }
.upd-select, .upd-search {
  height: 40px; border: 1px solid rgba(0,38,82,.14); border-radius: 10px; background: #fff;
  padding: 0 12px; font-size: 13.5px; color: #2a3a55;
}
.upd-search { min-width: 180px; }
.upd-search-wrap { position: relative; }
.upd-search-wrap iconify-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8a98ad; font-size: 18px; }
.upd-search-wrap .upd-search { padding-left: 34px; }

/* Filtros no mobile/tablet — empilha limpo: chips | 2 selects | busca */
@media (max-width: 900px) {
  .upd-filters { position: static; padding: 12px; }
  .upd-filters__row { gap: 8px; }
  .upd-chips { width: 100%; }
  .upd-spacer { display: none; }
  .upd-select { flex: 1 1 0; min-width: 0; }
  .upd-search-wrap { flex: 1 1 100%; }
  .upd-search { width: 100%; box-sizing: border-box; }
}

/* category dot colors */
.dot-novidade { background: #0056B7; }
.dot-melhoria { background: #1f9d6a; }
.dot-correcao { background: #d18a2e; }

/* Timeline list */
.upd-month { margin-bottom: 8px; }
.upd-month__label {
  position: sticky; top: 132px; z-index: 10;
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #0056B7; background: #eaf1fb; padding: 6px 14px; border-radius: 9999px; margin: 26px 0 14px;
}
.upd-timeline { position: relative; padding-left: 26px; }
.upd-timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(0,38,82,.08);
}
.upd-entry {
  position: relative; padding: 14px 18px; margin-bottom: 10px;
  background: #fff; border: 1px solid rgba(0,38,82,.07); border-radius: 14px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.upd-entry:hover { box-shadow: 0 8px 22px rgba(0,38,82,.07); border-color: rgba(0,86,183,.25); }
.upd-entry::before {
  content: ""; position: absolute; left: -26px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid #0056B7;
}
.upd-entry[data-cat="novidade"]::before { border-color: #0056B7; }
.upd-entry[data-cat="melhoria"]::before { border-color: #1f9d6a; }
.upd-entry[data-cat="correcao"]::before { border-color: #d18a2e; }
.upd-entry__body { flex: 1; min-width: 0; }
.upd-entry__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; }
.upd-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 9999px;
}
.badge-novidade { background: rgba(0,86,183,.10); color: #0056B7; }
.badge-melhoria { background: rgba(31,157,106,.12); color: #137a4f; }
.badge-correcao { background: rgba(209,138,46,.14); color: #a6671c; }
.upd-entry__area { font-size: 12px; font-weight: 600; color: #5a6b85; }
.upd-entry__title { font-size: 1rem; font-weight: 600; color: #1c2c47; line-height: 1.45; }
.upd-entry__desc { margin-top: 4px; font-size: 13.5px; color: #5a6b85; line-height: 1.55; max-width: 62ch; }
.upd-entry__meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 2px; }
.upd-entry__date { font-size: 12.5px; color: #64748b; white-space: nowrap; }
.upd-entry__ver { font-size: 11px; color: #aab4c4; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .upd-entry { flex-direction: column; gap: 6px; }
  .upd-entry__meta { padding-top: 0; }
}

.upd-empty { text-align: center; padding: 48px 0; color: #8a98ad; }
.upd-note {
  margin-top: 28px; text-align: center; font-size: 13px; color: #64748b;
}

/* ========== CTA ========== */
.upd-final {
  background: linear-gradient(135deg, #0056B7, #002652); color: #fff; text-align: center;
}
.upd-final h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.upd-final p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 28px; }
.upd-btn-white {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #0056B7;
  font-weight: 700; padding: 14px 28px; border-radius: 9999px; transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.upd-btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.28); }

/* ========== Footer ========== */
.upd-footer { background: #002652; color: #fff; padding: 56px 0 28px; }
.upd-footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .upd-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.upd-footer__logo { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.upd-footer p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 320px; }
.upd-footer h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.upd-footer li { margin-bottom: 10px; }
.upd-footer a { color: rgba(255,255,255,.62); font-size: 14px; transition: color .2s ease; }
.upd-footer a:hover { color: #fff; }
.upd-socials { display: flex; gap: 10px; margin-top: 16px; }
.upd-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: background .2s ease; }
.upd-socials a:hover { background: rgba(255,255,255,.2); }
.upd-copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.4); text-align: center; }

/* ========== Reveal animation ========== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } .upd-header, .upd-filters { position: static; } }

/* ========== Embed mode (iframe dentro do sistema Numax) ========== */
body.is-embed { background: #fff; }
body.is-embed .upd-header,
body.is-embed .upd-hero,
body.is-embed .upd-final,
body.is-embed .upd-footer { display: none; }
body.is-embed .upd-section { padding: 28px 0; }

/* Month label NÃO-sticky no mobile/tablet.
   Precisa vir DEPOIS da regra base `.upd-month__label{position:sticky}` pra vencer a
   cascata (mesma especificidade → última vence). Corrige o rótulo do mês sobrepondo
   os cards no mobile. */
@media (max-width: 900px) {
  .upd-month__label { position: static; top: auto; z-index: auto; }
}
