/* ==========================================================================
   Duo Play IPTV — Design System Editorial & Conversão
   Paleta: Grafite (#0E1017 / #151823) + Azul Elétrico (#2563EB) + Violeta (#8B5CF6)
   ========================================================================== */

:root {
  /* Superfícies claras (alternância editorial) */
  --paper: #F4F6FA;
  --surface: #E9EDF5;
  --surface-2: #DCE2EF;
  --white: #FFFFFF;
  --line: #D4DCEB;

  /* Superfícies escuras (Grafite sofisticado) */
  --dark-0: #0D0F16;
  --dark: #141824;
  --dark-2: #1D2233;
  --dark-line: rgba(148, 163, 184, 0.16);

  /* Textos WCAG AA/AAA */
  --ink: #111625;
  --ink-2: #2D3548;
  --muted: #59637A;
  --on-dark: #F4F7FC;
  --on-dark-2: #CBD5E1;
  --on-dark-muted: #94A3B8;

  /* Marca Duo Play: Azul Elétrico + Violeta */
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-soft: rgba(37, 99, 235, 0.12);
  --accent: #8B5CF6;
  --accent-deep: #6D28D9;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --grad-brand: linear-gradient(135deg, #3B82F6 0%, #2563EB 42%, #8B5CF6 100%);
  --grad-text: linear-gradient(95deg, #60A5FA 0%, #818CF8 48%, #C084FC 100%);

  /* CTA WhatsApp exclusivo */
  --cta-bg: #22C55E;
  --cta-hover: #16A34A;
  --cta-ink: #052E16;
  --cta-dark: #15803D;

  /* Semânticas */
  --ok: #15803D;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --err: #B91C1C;
  --err-bg: #FEE2E2;

  /* Tipografia */
  --ff-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.05rem, 1.35rem + 2.75vw, 3.35rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem);
  --fs-h3: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem);
  --fs-base: 1.03125rem;

  /* Raios, sombras e layout */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --pill: 999px;
  --shadow-sm: 0 4px 16px rgba(13, 15, 22, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 15, 22, 0.10);
  --shadow-dark: 0 22px 54px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --container-max: 1220px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: inherit;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--brand);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #FFFFFF; }

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header Sticky (Regra crítica: SEM backdrop-filter/filter/transform no header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #0D0F16;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 0;
}
.brand-link img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.62rem;
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(59, 130, 246, 0.16);
}
.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: var(--dark-2);
  color: #FFFFFF;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile Drawer (movido para body pelo main.js) */
.mobile-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  z-index: 9999;
  background: #0D0F16;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1.25rem 1.25rem 2.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-drawer.is-open { display: flex; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  color: #E2E8F0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.02rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.4);
}
.mobile-drawer-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  padding: 0.85rem 1.45rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--wa {
  background: var(--cta-bg);
  color: #052E16;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}
.btn--wa:hover {
  background: var(--cta-hover);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.36);
}

.btn--brand {
  background: var(--grad-brand);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}
.btn--brand:hover {
  color: #FFFFFF;
  filter: brightness(1.08);
}

.btn--outline-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
  border-color: rgba(148, 163, 184, 0.32);
}
.btn--outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(167, 139, 250, 0.65);
}

.btn--outline-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline-light:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #F8FAFF;
}

.btn--sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.86rem;
}
.btn--block { width: 100%; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-bar {
  padding: 0.85rem 0;
  font-size: 0.875rem;
}
.breadcrumb-bar--dark {
  background: var(--dark-0);
  color: var(--on-dark-muted);
  border-bottom: 1px solid var(--dark-line);
}
.breadcrumb-bar--light {
  background: var(--paper);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; opacity: 0.55; }
.breadcrumb-bar--dark a { color: #93C5FD; }
.breadcrumb-bar--dark a:hover { color: #FFFFFF; }
.breadcrumb-bar--light a { color: var(--brand); }

/* ==========================================================================
   Heroes (Dark Home, Dark Landing, Light Hub/Article/Page)
   ========================================================================== */
.hero--dark {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.22), transparent 44%),
    radial-gradient(circle at 86% 24%, rgba(139, 92, 246, 0.24), transparent 46%),
    linear-gradient(180deg, #0D0F16 0%, #141824 100%);
  color: var(--on-dark);
  padding: clamp(2.5rem, 4.5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.75rem);
  overflow: hidden;
}
.hero--landing {
  padding: clamp(2.2rem, 3.5vw, 3.4rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(2rem, 3.5vw, 3.4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.eyebrow--dark {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #BFDBFE;
}
.eyebrow--light {
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--brand);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-bg);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.hero-title-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.18rem);
  color: var(--on-dark-2);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.45rem;
}
.hero-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  color: #E2E8F0;
  font-size: 0.92rem;
}
.hero-checks li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-checks li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #4ADE80;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
}

/* Composição Visual Autoral da Coluna Direita do Hero */
.hero-stage {
  position: relative;
  min-width: 0;
}
.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  padding: 0.85rem;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(139, 92, 246, 0.18) 55%, rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(129, 140, 248, 0.34);
  box-shadow: var(--shadow-dark), 0 0 70px rgba(37, 99, 235, 0.22);
}
.hero-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem 0.75rem;
  flex-wrap: wrap;
}
.hero-stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: #E2E8F0;
}
.hero-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 0.22rem 0.62rem;
  border-radius: var(--pill);
}
.hero-stage-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60A5FA;
}
.hero-media-wrap {
  position: relative;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  background: #0B0E17;
  aspect-ratio: 16 / 10;
}
.hero-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 22, 0) 56%, rgba(13, 15, 22, 0.86) 100%);
  pointer-events: none;
}
.hero-stage-overlay {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-scene-info {
  background: rgba(13, 15, 22, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  max-width: 310px;
}
.hero-scene-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 0.15rem;
}
.hero-scene-title {
  font-family: var(--ff-head);
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}
.hero-scene-sub {
  font-size: 0.8rem;
  color: #CBD5E1;
  margin: 0.15rem 0 0;
}
.hero-float-chip {
  background: rgba(13, 15, 22, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.8rem;
  text-align: right;
}
.hero-float-chip strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  color: #FFFFFF;
}
.hero-float-chip span {
  font-size: 0.75rem;
  color: #93C5FD;
}

.hero-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.hero-tab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(13, 15, 22, 0.75);
  color: #CBD5E1;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.58rem 0.5rem;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.hero-tab:hover {
  color: #FFFFFF;
  border-color: rgba(96, 165, 250, 0.5);
}
.hero-tab.is-active,
.hero-tab[aria-selected="true"] {
  background: var(--grad-brand);
  color: #FFFFFF;
  border-color: transparent;
}

/* Hero Claro (Hubs, Artigos, Páginas Internas) */
.hero--light {
  position: relative;
  background: var(--paper);
  padding: clamp(2.2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero--light::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.hero--light::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(37, 99, 235, 0.06) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.hero--light .hero-lead {
  color: var(--ink-2);
  max-width: 66ch;
}

/* ==========================================================================
   Ticker Horizontal
   ========================================================================== */
.ticker {
  background: #101420;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  padding: 0.85rem 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #CBD5E1;
  font-family: var(--ff-head);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.ticker-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Seções & Ritmo Claro/Escuro
   ========================================================================== */
.section {
  padding: clamp(3rem, 5.5vw, 4.8rem) 0;
  background: var(--paper);
}
.section--alt {
  background: var(--surface);
}
.section--white {
  background: var(--white);
}
.section--dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.16), transparent 44%),
    var(--dark);
  color: var(--on-dark);
}

.sec-head {
  max-width: 740px;
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.sec-num {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.section--dark .sec-num { color: #93C5FD; }
.sec-desc {
  color: var(--ink-2);
  font-size: 1.04rem;
  margin: 0;
}
.section--dark .sec-desc { color: var(--on-dark-2); }

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.card--dark {
  background: var(--dark-2);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--on-dark);
  box-shadow: none;
}
.card--dark p { color: var(--on-dark-2); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
}
.card-icon--accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.card--dark .card-icon {
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}
.card p:last-child { margin-bottom: 0; }
.card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Passos Numerados */
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  min-width: 0;
}
.step-card--highlight {
  background: linear-gradient(145deg, #141824 0%, #1E2540 100%);
  color: var(--on-dark);
  border-color: rgba(129, 140, 248, 0.45);
}
.step-card--highlight p { color: var(--on-dark-2); }
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #FFFFFF;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Chips de Compatibilidade */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.9rem;
  border-radius: var(--pill);
  font-size: 0.87rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.section--dark .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.22);
  color: #E2E8F0;
}

/* ==========================================================================
   Planos e Preços (Trimestral Destacado como Mais Popular)
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: rgba(29, 34, 51, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.45rem;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  min-width: 0;
}
.plan-card--popular {
  background: linear-gradient(170deg, #1B2547 0%, #1F1B3A 100%);
  border: 2px solid #818CF8;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.28);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #FFFFFF;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: var(--pill);
  white-space: nowrap;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.plan-cycle {
  font-size: 0.88rem;
  color: var(--on-dark-muted);
  margin-bottom: 1.15rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.plan-currency {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: #93C5FD;
}
.plan-amount {
  font-family: var(--ff-head);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--on-dark-2);
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.plan-list li::before {
  content: "✓";
  color: #4ADE80;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Faixa de Conversão (CTA Band)
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.25), transparent 45%),
    linear-gradient(135deg, #0E1322 0%, #161E35 100%);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border: 1px solid rgba(129, 140, 248, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band-copy { max-width: 620px; }
.cta-band-copy p { color: var(--on-dark-2); margin-bottom: 0; }
.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.cta-micro {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

/* ==========================================================================
   Tabelas Comparativas
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94rem;
}
thead {
  background: var(--dark);
  color: #FFFFFF;
}
thead th {
  text-align: left;
  padding: 1rem 1.15rem;
  font-family: var(--ff-head);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
}
tbody td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #F8FAFD; }
.tag-ok {
  display: inline-block;
  padding: 0.2rem 0.62rem;
  border-radius: var(--pill);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   Blocos Editoriais, Resumo Rápido, Continuar Lendo, Transparência
   ========================================================================== */
.quick-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 1.45rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.quick-summary h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--brand);
}
.transparency-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 1.65rem;
}
.expandable-content[data-collapsed="true"] {
  display: none;
}
.prose h2 { margin-top: 2.1rem; }
.prose h3 { margin-top: 1.5rem; }
.prose figure {
  margin: 1.75rem 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.prose figure img { width: 100%; height: auto; }
.prose figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.author-box {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Blog Cards & Filtros
   ========================================================================== */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--ff-head);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: var(--pill);
  cursor: pointer;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}
.blog-search {
  min-width: 240px;
  padding: 0.58rem 1rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--ink);
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.post-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.65rem;
  border-radius: var(--pill);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.65rem;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: 0.93rem; }

/* ==========================================================================
   FAQ com Abas e Acordeões
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
}
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.faq-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.52rem 1rem;
  border-radius: var(--pill);
  cursor: pointer;
}
.faq-tab.is-active,
.faq-tab[aria-selected="true"] {
  background: var(--dark);
  color: #FFFFFF;
  border-color: var(--dark);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.faq-item[hidden] { display: none; }
.faq-q {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 1.1rem 1.25rem;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-q::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.faq-a[hidden] { display: none; }

.faq-aside {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r);
  padding: 1.6rem;
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.faq-aside p { color: var(--on-dark-2); font-size: 0.94rem; }

/* ==========================================================================
   Leia Também & Fontes
   ========================================================================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.related-link {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--ff-head);
  font-weight: 600;
}
.related-link span {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.related-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer Multi-Colunas
   ========================================================================== */
.site-footer {
  background: var(--dark-0);
  color: var(--on-dark-2);
  border-top: 1px solid var(--dark-line);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
  max-width: 34ch;
}
.footer-col h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin: 0 0 0.48rem; }
.footer-col a {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--on-dark-muted);
}
.footer-disclaimer {
  margin-top: 1.25rem;
  padding: 0.95rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card--popular { transform: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-actions .btn--header-cta { display: none; }
  .grid-2, .grid-3, .grid-4, .plans-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    white-space: normal;
    text-align: center;
    padding: 0.82rem 1.2rem;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stage-overlay { position: static; margin-top: 0.65rem; }
  .hero-scene-info { max-width: 100%; width: 100%; }
  .hero-float-chip { width: 100%; text-align: left; }
  .hero-stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-band { padding: 1.5rem; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
