/* ==========================================================================
   CALCULE BRASIL — DESIGN SYSTEM SOVEREIGN PRECISION (calculebrasil.com.br) (A9 Executive Precision + A5 Warm Editorial)
   Os 6 Cortes da Costureira · WCAG AA/AAA Light & Dark · 0px Overflow 320-1440px
   ========================================================================== */

@view-transition {
  navigation: auto;
}

:root,
[data-theme="light"] {
  --ease-marca: cubic-bezier(0.19, 1, 0.22, 1);
  --bg-0: #F8F7F3;
  --bg-1: #EFECE5;
  --surface: #FFFFFF;
  --surface-subtle: #F4F1EA;
  --surface-glass: rgba(248, 247, 243, 0.88);
  --border: #DED8CB;
  --border-strong: #C7BFAF;
  --ink-0: #0C1219;
  --ink-1: #2F3B49;
  --ink-2: #596574;
  --accent: #046C4E;
  --accent-hover: #03543F;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(4, 108, 78, 0.10);
  --amber: #C46A1A;
  --amber-hover: #9F5211;
  --amber-text: #9A4E10;
  --amber-ink: #FFFFFF;
  --amber-soft: rgba(196, 106, 26, 0.12);
  --danger: #B91C1C;
  --danger-soft: rgba(185, 28, 28, 0.10);
  --success: #047857;
  --success-soft: rgba(4, 120, 87, 0.10);
  --bg-invert: #090E14;
  --ink-invert-0: #F8FAFC;
  --ink-invert-1: #CBD5E1;
  --border-invert: rgba(248, 250, 252, 0.14);
  --shadow-sm: 0 2px 10px rgba(12, 18, 25, 0.05);
  --shadow-md: 0 16px 38px -10px rgba(12, 18, 25, 0.10);
  --shadow-float: 0 28px 64px -18px rgba(4, 108, 78, 0.18), 0 8px 24px -10px rgba(12, 18, 25, 0.10);
  --shadow-accent: 0 12px 28px rgba(4, 108, 78, 0.24);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Space Grotesk", "Plus Jakarta Sans", -apple-system, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --container: 1240px;
}

[data-theme="dark"] {
  --bg-0: #060A0E;
  --bg-1: #0B1117;
  --surface: #101822;
  --surface-subtle: #16212E;
  --surface-glass: rgba(6, 10, 14, 0.88);
  --border: #223041;
  --border-strong: #324760;
  --ink-0: #F4F7FA;
  --ink-1: #CBD5E1;
  --ink-2: #90A0B4;
  --accent: #10B981;
  --accent-hover: #34D399;
  --accent-ink: #031B13;
  --accent-soft: rgba(16, 185, 129, 0.15);
  --amber: #F59E0B;
  --amber-hover: #FBBF24;
  --amber-text: #FBBF24;
  --amber-ink: #1C1102;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.15);
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.15);
  --bg-invert: #04070A;
  --ink-invert-0: #F8FAFC;
  --ink-invert-1: #CBD5E1;
  --border-invert: rgba(248, 250, 252, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.52);
  --shadow-float: 0 30px 70px -14px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(16, 185, 129, 0.16);
  --shadow-accent: 0 12px 30px rgba(16, 185, 129, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  position: relative;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
  transition: background-color 0.25s var(--ease-ui), color 0.25s var(--ease-ui);
}

/* ── Malha Viva Grid-Black-Wave + Auroras Cromáticas em Movimento (GPU) ── */
.prumo-ambient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.prumo-grid-wave {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(to right, rgba(11, 79, 74, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 79, 74, 0.065) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 92% 78% at 50% 24%, #000 35%, rgba(0, 0, 0, 0.28) 76%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 24%, #000 35%, rgba(0, 0, 0, 0.28) 76%, transparent 100%);
  animation: prumoGridDrift 28s linear infinite;
  will-change: transform;
}
[data-theme="dark"] .prumo-grid-wave {
  background-image:
    linear-gradient(to right, rgba(45, 212, 191, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 212, 191, 0.085) 1px, transparent 1px);
  background-size: 48px 48px;
}
.prumo-aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  will-change: transform, opacity;
}
.prumo-aurora-teal {
  width: 62vw;
  height: 52vh;
  top: -16vh;
  left: -12vw;
  background: radial-gradient(circle at 45% 45%, rgba(11, 79, 74, 0.14), rgba(16, 185, 129, 0.06) 55%, transparent 75%);
  animation: prumoAuroraTeal 18s ease-in-out infinite alternate;
}
.prumo-aurora-amber {
  width: 54vw;
  height: 48vh;
  top: 12vh;
  right: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(180, 83, 9, 0.11), rgba(245, 158, 11, 0.05) 55%, transparent 75%);
  animation: prumoAuroraAmber 22s ease-in-out infinite alternate;
}
.prumo-aurora-cyan {
  width: 58vw;
  height: 44vh;
  bottom: -18vh;
  left: 22vw;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08), rgba(45, 212, 191, 0.05) 55%, transparent 75%);
  animation: prumoAuroraCyan 26s ease-in-out infinite alternate;
}
[data-theme="dark"] .prumo-aurora-teal {
  background: radial-gradient(circle at 45% 45%, rgba(45, 212, 191, 0.24), rgba(16, 185, 129, 0.12) 52%, transparent 76%);
}
[data-theme="dark"] .prumo-aurora-amber {
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.19), rgba(217, 119, 6, 0.08) 54%, transparent 76%);
}
[data-theme="dark"] .prumo-aurora-cyan {
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.16), rgba(45, 212, 191, 0.08) 55%, transparent 76%);
}
@keyframes prumoGridDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(48px, 48px, 0); }
}
@keyframes prumoAuroraTeal {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
  50%  { transform: translate3d(9vw, 6vh, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(4vw, 12vh, 0) scale(0.96); opacity: 0.86; }
}
@keyframes prumoAuroraAmber {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  50%  { transform: translate3d(-10vw, 8vh, 0) scale(1.14); opacity: 0.98; }
  100% { transform: translate3d(-4vw, -6vh, 0) scale(0.95); opacity: 0.82; }
}
@keyframes prumoAuroraCyan {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50%  { transform: translate3d(-8vw, -9vh, 0) scale(1.1); opacity: 0.96; }
  100% { transform: translate3d(8vw, -4vh, 0) scale(0.94); opacity: 0.76; }
}
.transparency-bar,
.site-header,
main#conteudo-principal,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease-ui), opacity 0.18s var(--ease-ui);
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-0);
}
.transparency-bar code,
.band-invert code,
.band-diagonal code,
.site-footer code {
  background: rgba(248, 250, 252, 0.12);
  border-color: rgba(248, 250, 252, 0.22);
  color: #F8FAFC;
  padding: 1px 5px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Banner Permanente de Transparência Não-Governamental (Gate #1 Conclave) ── */
.transparency-bar {
  background: var(--bg-invert);
  color: var(--ink-invert-1);
  border-bottom: 1px solid var(--border-invert);
  font-size: 11.5px;
  line-height: 1.35;
  padding: 6px 0;
}
.transparency-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (min-width: 1025px) {
  .transparency-bar .wrap { flex-wrap: nowrap; }
}
.transparency-bar strong {
  color: var(--ink-invert-0);
  font-weight: 600;
}
.transparency-bar a {
  color: #5EEAD4;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 6px;
}

/* Ícones Light/Dark governados por CSS puro (zero flash / zero dessincronia) */
[data-theme="light"] .icon-moon { display: block !important; }
[data-theme="light"] .icon-sun { display: none !important; }
[data-theme="dark"] .icon-moon { display: none !important; }
[data-theme="dark"] .icon-sun { display: block !important; }

/* ── Header Compacto Glass com Headroom Direcional ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: transform 0.28s var(--ease-ui), background-color 0.25s var(--ease-ui);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-0);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: static;
  display: inline-flex;
  align-items: center;
}
.nav-links > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  color: var(--ink-1);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease-ui), background-color 0.16s var(--ease-ui);
}
.nav-links > a:hover,
.nav-links > a.active,
.nav-item > a:hover,
.nav-item > a.active,
.nav-item:hover > a,
.nav-item:focus-within > a {
  color: var(--ink-0);
  background: var(--accent-soft);
}
.nav-links > a.nav-plus,
.nav-item > a.nav-plus {
  color: var(--amber-text);
}
.nav-caret {
  width: 11px;
  height: 11px;
  opacity: 0.65;
  transition: transform 0.18s var(--ease-ui), opacity 0.18s var(--ease-ui);
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Mega-Menu Direcional (Estilo Stripe / Apple — Sempre centralizado no container) ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(760px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 18px 20px 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-ui), transform 0.18s var(--ease-ui), visibility 0.18s;
  z-index: 120;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mega-head strong {
  font-size: 0.94rem;
  color: var(--ink-0);
}
.mega-head span {
  font-size: 0.8rem;
  color: var(--ink-2);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mega-col-title {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px 8px;
}
.mega-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: background-color 0.15s var(--ease-ui);
}
.mega-link:hover,
.mega-link:focus-visible {
  background: var(--accent-soft);
}
.mega-link-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-0);
  line-height: 1.25;
}
.mega-link-desc {
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.35;
}
.mega-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mega-foot a {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.mega-foot a:hover { text-decoration: underline; }
.mega-foot span {
  font-size: 0.76rem;
  color: var(--ink-2);
}

/* ── Seção Direcional por Objetivo na Home ("O que você precisa resolver hoje?") ── */
.goal-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.goal-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.goal-pillar-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.goal-pillar-head h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin: 0;
}
.goal-pillar-head p {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.45;
}
.goal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.goal-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  text-decoration: none !important;
  transition: border-color 0.16s var(--ease-ui), background-color 0.16s var(--ease-ui), transform 0.16s var(--ease-ui);
}
.goal-item:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}
.goal-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.goal-item-top strong {
  font-size: 0.9rem;
  color: var(--ink-0);
}
.goal-item-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.goal-item-desc {
  font-size: 0.81rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.goal-item-live {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .goal-pillar-grid { grid-template-columns: 1fr; }
}

/* ── Pílulas de Atalho Rápido no Hero (Top PPS) ── */
.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-decoration: none !important;
  transition: transform 0.22s var(--ease-marca), border-color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui), color 0.18s var(--ease-ui);
}
.quick-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--ink-0);
  background: var(--accent-soft);
}
.quick-pill-hot {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-text);
}

/* ── Vitrine Visual de Ferramentas (Arte Exclusiva 640x360 + Motion Nível 1+) ── */
.tool-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tool-search-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 390px;
}
.tool-search-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.18s var(--ease-ui), box-shadow 0.18s var(--ease-ui);
}
.tool-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tool-visual-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-marca), border-color 0.22s var(--ease-ui), box-shadow 0.35s var(--ease-marca);
}
.tool-visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.tool-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B151D;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tool-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-marca);
}
.tool-visual-card:hover .tool-card-media img,
.tool-bento-ia:hover .tool-card-media img {
  transform: scale(1.038);
}

/* ── Identidade Cromática Distinta por Área nos Cards de Ferramentas (Opção B) ── */
.tool-visual-card[data-area="mei"]         { --card-area-accent: #10B981; --card-area-soft: rgba(16, 185, 129, 0.14); }
.tool-visual-card[data-area="trabalhista"] { --card-area-accent: #38BDF8; --card-area-soft: rgba(56, 189, 248, 0.14); }
.tool-visual-card[data-area="inss"]        { --card-area-accent: #F59E0B; --card-area-soft: rgba(245, 158, 11, 0.15); }
.tool-visual-card[data-area="irpf"]        { --card-area-accent: #818CF8; --card-area-soft: rgba(129, 140, 248, 0.15); }
.tool-visual-card[data-area="empresas"]    { --card-area-accent: #06B6D4; --card-area-soft: rgba(6, 182, 212, 0.15); }

[data-theme="light"] .tool-visual-card[data-area="mei"]         { --card-area-accent: #047857; }
[data-theme="light"] .tool-visual-card[data-area="trabalhista"] { --card-area-accent: #0369A1; }
[data-theme="light"] .tool-visual-card[data-area="inss"]        { --card-area-accent: #B45309; }
[data-theme="light"] .tool-visual-card[data-area="irpf"]        { --card-area-accent: #4338CA; }
[data-theme="light"] .tool-visual-card[data-area="empresas"]    { --card-area-accent: #0E7490; }

.tool-visual-card[data-area] .badge {
  color: var(--card-area-accent);
  background: var(--card-area-soft);
  border-color: color-mix(in srgb, var(--card-area-accent) 34%, transparent);
}
.tool-visual-card[data-area] .card-link {
  color: var(--card-area-accent);
}
.tool-visual-card[data-area]:hover {
  border-color: var(--card-area-accent);
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--card-area-accent) 26%, transparent);
}
.tool-bento-ia {
  overflow: hidden;
  border-color: var(--border-strong);
  padding: 0;
}
.curso-home-card {
  border-color: rgba(245, 158, 11, 0.36);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), transparent 55%), var(--surface);
}
[data-theme="dark"] .curso-home-card {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 58%), var(--surface);
}
.curso-home-card:hover {
  border-color: var(--amber);
}

/* Página /cursos — Hero Flagship + Vídeo @palitomotivado + Módulos */
.curso-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
  align-items: center;
}
.curso-kpi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.curso-video-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: #07090d;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}
.curso-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0e131d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}
.curso-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07090d;
}
.curso-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.curso-lvl-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.curso-lvl-card.is-featured {
  border-color: var(--amber);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), transparent 65%), var(--surface);
  box-shadow: var(--shadow-md);
}
.curso-pdf-banner {
  padding: 24px 28px;
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), transparent 60%), var(--surface);
}
@media (max-width: 980px) {
  .curso-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tool-bento-ia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
}
.tool-bento-ia-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.tool-bento-ia-media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tool-bento-ia-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease-marca);
}
.tool-bento-ia:hover .tool-bento-ia-media img {
  transform: scale(1.03);
}
.tool-bento-ia-grid .tool-card-media {
  border-bottom: 0;
  border-right: 1px solid var(--border);
  height: 100%;
}
.is-collapsed-extra {
  display: none !important;
}
.shortcut-card-compact {
  transition: transform 0.28s var(--ease-marca), border-color 0.18s var(--ease-ui);
}
.shortcut-card-compact:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .tool-bento-ia-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
    gap: 18px;
  }
  .tool-bento-ia-grid .tool-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .tool-search-wrap {
    max-width: 100%;
  }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botão Command Palette ⌘K (Arquétipo A12 Raycast / A3 Linear) */
.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-ui), color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui);
}
.cmd-trigger:hover {
  border-color: var(--accent);
  color: var(--ink-0);
  background: var(--surface);
}
.cmd-trigger kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-1);
}

/* Botão de Tema Claro/Escuro no Header (ao lado do Buscar) */
.header-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-1);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-ui), color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui), transform 0.18s var(--ease-ui);
}
.header-theme-btn:hover {
  border-color: var(--accent);
  color: var(--ink-0);
  background: var(--surface);
}
.header-theme-btn .icon-sun,
.header-theme-btn .icon-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
html[data-theme="dark"] .header-theme-btn .icon-moon { display: none !important; }
html[data-theme="dark"] .header-theme-btn .icon-sun { display: inline-flex !important; color: #FBBF24; }
html:not([data-theme="dark"]) .header-theme-btn .icon-sun { display: none !important; }
html:not([data-theme="dark"]) .header-theme-btn .icon-moon { display: inline-flex !important; }

/* Zona de Upload / Anexo de PDF e Foto (JPG/PNG/WebP) no Prumo IA */
.ai-upload-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-strong);
  background: var(--surface-subtle);
  transition: border-color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui);
  cursor: pointer;
}
.ai-upload-zone:hover,
.ai-upload-zone.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.ai-upload-zone-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.ai-upload-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.ai-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-upload-text strong {
  font-size: 0.88rem;
  color: var(--ink-0);
}
.ai-upload-text span {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.ai-upload-status {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.08);
  font-size: 0.84rem;
  color: var(--ink-0);
}
.ai-upload-status.is-visible {
  display: flex;
}

/* Barra de progresso de leitura no topo dos artigos */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-0);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui);
}
.icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mobile-toggle { display: none; }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 11px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.16s var(--ease-ui), background-color 0.18s var(--ease-ui), border-color 0.18s var(--ease-ui), box-shadow 0.18s var(--ease-ui);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-amber:hover { background: var(--amber-hover); }
.btn-outline {
  background: var(--surface);
  color: var(--ink-0);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-1);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--ink-0);
}
.btn-google {
  background: var(--surface);
  color: var(--ink-0);
  border: 1px solid var(--border-strong);
  width: 100%;
  font-weight: 700;
}
.btn-google:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }

/* ── Mobile Slide-Over Drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 15, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: flex-end;
}
.mobile-drawer.open { display: flex; }
.drawer-panel {
  width: min(330px, 88vw);
  background: var(--surface);
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
}
.drawer-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-0);
  font-weight: 600;
}
.drawer-panel a:hover { background: var(--accent-soft); text-decoration: none; }

/* ── Tipografia Editorial + Tabular Mono ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 99px;
}
.eyebrow-amber {
  color: var(--amber-text);
  background: var(--amber-soft);
}
.band-diagonal .eyebrow-amber,
.band-invert .eyebrow-amber,
.sponsor-banner .badge-ad {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(252, 211, 77, 0.35);
}
h1, .display-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.45vw, 2.5rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  padding-bottom: 0.04em;
}
.hero-band h1 {
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.125rem);
  line-height: 1.09;
  letter-spacing: -0.032em;
}
h2, .display-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.15rem + 1.15vw, 2.15rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.024em;
  margin: 0;
  text-wrap: balance;
}
h3, .card-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink-0);
}
.card-title a {
  color: var(--ink-0);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.card-desc {
  font-size: 0.885rem;
  line-height: 1.56;
  color: var(--ink-1);
  margin: 0;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}
.mono, .kpi-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.lead {
  font-size: clamp(1.01rem, 0.96rem + 0.25vw, 1.14rem);
  color: var(--ink-1);
  line-height: 1.62;
  margin: 0;
}
.muted { color: var(--ink-2); }

/* ── Ritmo de Seções (--bg-0 ↔ --bg-1 ↔ --bg-invert) ── */
.band { padding: 64px 0; background: transparent; }
.band-tight { padding: 36px 0; background: transparent; }
.page-hero {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-0) 74%, transparent);
}
.band-alt {
  background: color-mix(in srgb, var(--bg-1) 76%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-invert {
  background: var(--bg-invert);
  color: var(--ink-invert-0);
}
/* Banda Diagonal Azul-Noite (Arquétipo A2 Stripe) */
.band-diagonal {
  position: relative;
  padding: 92px 0;
  margin: 24px 0;
  background: transparent;
  color: var(--ink-invert-0);
}
.band-diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 85% 15%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(560px 280px at 12% 88%, rgba(245, 158, 11, 0.10), transparent 65%),
    var(--bg-invert);
  transform: skewY(-1.8deg);
  z-index: 0;
}
.band-diagonal > * {
  position: relative;
  z-index: 1;
}
.band-diagonal .lead,
.band-diagonal .muted { color: var(--ink-invert-1); }
.band-diagonal h2, .band-diagonal h3 { color: var(--ink-invert-0); }
.band-invert .lead,
.band-invert .muted { color: var(--ink-invert-1); }
.band-invert h2, .band-invert h3 { color: var(--ink-invert-0); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ── Hero Split 56/44 com Malha Atmosférica Viva (Grid-Wave + Aurora) ── */
.hero-band {
  padding: 28px 0 42px;
  background:
    radial-gradient(760px 400px at 84% 10%, var(--accent-soft), transparent 68%),
    radial-gradient(580px 320px at 12% 90%, var(--amber-soft), transparent 70%),
    color-mix(in srgb, var(--bg-0) 58%, transparent);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 32px;
  align-items: start;
}
.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}
.hero-grid-lapidado {
  align-items: center;
}
.hero-search-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease-ui), box-shadow 0.18s var(--ease-ui), color 0.18s var(--ease-ui);
}
.hero-search-trigger svg { flex-shrink: 0; }
.hero-search-trigger span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero-search-trigger:hover {
  border-color: var(--accent);
  color: var(--ink-0);
  box-shadow: var(--shadow-accent);
}
.situation-picker {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.situation-picker-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.situation-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  min-width: 0;
}
.situation-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-0);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.18s var(--ease-marca), transform 0.18s var(--ease-marca), background-color 0.18s var(--ease-ui), box-shadow 0.18s var(--ease-ui);
}
.situation-btn:last-child {
  grid-column: span 2;
}
.situation-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.situation-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm);
}
.situation-ico {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.situation-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.situation-text strong {
  font-size: 0.92rem;
  color: var(--ink-0);
  line-height: 1.25;
}
.situation-text span {
  font-size: 0.77rem;
  color: var(--ink-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.norm-ticker-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.home-more-bar {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.home-more-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}
.home-updates-strip {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.home-updates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.home-updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.home-updates-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.home-updates-list a {
  color: var(--ink-0);
  font-weight: 600;
}
.home-updates-list a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .situation-picker-grid,
  .home-updates-list { grid-template-columns: minmax(0, 1fr); }
  .situation-btn:last-child { grid-column: auto; }
  .situation-text span { white-space: normal; }
  .eyebrow { max-width: 100%; white-space: normal; line-height: 1.35; }
  .norm-ticker-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.hero-visual-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 22%, #0B1117);
  aspect-ratio: 16 / 8;
  max-height: 245px;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
}

/* Faixa Arquitetônica de Parâmetros Oficiais 2026 (Arquétipo A9 Ramp) */
.norm-ticker-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.norm-ticker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.norm-ticker-grid.norm-ticker-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) {
  .norm-ticker-grid.norm-ticker-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .norm-ticker-grid.norm-ticker-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.norm-ticker-cell {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none !important;
  transition: background-color 0.18s var(--ease-ui);
}
.norm-ticker-cell:hover {
  background: var(--surface-subtle);
}
.norm-ticker-cell span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.norm-ticker-cell strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  color: var(--ink-0);
}
.norm-ticker-cell em {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.hero-visual-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 17, 23, 0.82) 0%, rgba(11, 17, 23, 0.42) 55%, rgba(11, 17, 23, 0.12) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  color: #F8FAFC;
}
.hero-visual-scrim .kpi-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-visual-scrim .kpi-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.78);
}
.hero-visual-scrim .kpi-item strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #FFFFFF;
}

/* ── Cockpit Interativo do Hero (Janela de Produto A2 Stripe + A9 Ramp) ── */
.hero-cockpit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-float);
}
.cockpit-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cockpit-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cockpit-dots i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--border-strong);
  display: block;
}
.cockpit-dots i:first-child { background: var(--accent); }
.cockpit-dots i:nth-child(2) { background: var(--amber); }
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  background: var(--surface-subtle);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.profile-tab {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  transition: background-color 0.18s var(--ease-ui), color 0.18s var(--ease-ui);
}
.profile-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ── Grids Arquitetônicos (Corte #1: Zero card solto sem borda/estrutura) ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hairline-cell {
  background: var(--surface);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.18s var(--ease-ui);
}
.hairline-cell:hover { background: var(--surface-subtle); }
.hairline-cell .card-meta {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-height: 46px;
}
.hairline-cell-featured {
  background: color-mix(in srgb, var(--accent-soft) 75%, var(--surface)) !important;
}
.hairline-cell-featured:hover {
  background: var(--accent-soft) !important;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease-ui), transform 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-ui);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--accent) 22%, #0B1117);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.55s var(--ease-brand);
}
.card:hover .card-media img {
  transform: scale(1.04);
}

/* Split Sticky Editorial (Arquétipo A5 Anthropic) */
.split-sticky {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.sticky-pane {
  position: sticky;
  top: 96px;
}
.hub-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hub-bento-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.hub-bento-featured .card-media {
  aspect-ratio: auto;
  min-height: 240px;
  height: 100%;
}

/* Card Spotlight Radial seguindo o cursor (Arquétipo A3 Linear / A12 Raycast) */
.card-spotlight {
  position: relative;
  overflow: hidden;
}
.card-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 13%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-ui);
  pointer-events: none;
  z-index: 0;
}
.card-spotlight:hover::before {
  opacity: 1;
}
.card-spotlight > * {
  position: relative;
  z-index: 1;
}

/* Filter Chips WAI-ARIA (A2 Stripe / A9 Ramp) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-ui), color 0.18s var(--ease-ui), border-color 0.18s var(--ease-ui);
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--ink-0);
}
.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Command Palette Global ⌘K (Arquétipo A12 Raycast) */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(7, 11, 16, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(12vh, 96px) 16px 24px;
}
.cmd-backdrop[hidden] { display: none !important; }
.cmd-modal {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  color: var(--ink-0);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cmd-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}
.cmd-list {
  max-height: 410px;
  overflow-y: auto;
  padding: 8px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-0);
  text-decoration: none !important;
  transition: background-color 0.12s var(--ease-ui);
}
.cmd-item:hover,
.cmd-item.is-selected {
  background: var(--accent-soft);
}
.cmd-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-0);
}
.cmd-item-sub {
  font-size: 0.78rem;
  color: var(--ink-2);
}
.cmd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}

/* Revelação suave por scroll (Motion Engine Nível 1 — sem JS tudo fica visível) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-brand), transform 0.55s var(--ease-brand);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.card-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-amber { background: var(--amber-soft); color: var(--amber-text); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-ad {
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Formulários & Calculadoras (100% Client-Side, Acessível 44px+) ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-0);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
@media (min-width: 769px) {
  .calc-panel .grid-2 .field > label {
    min-height: 2.45em;
    align-items: flex-end;
  }
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
.field input[type="number"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
  cursor: pointer;
}
.field-hint { font-size: 0.8rem; color: var(--ink-2); }

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.calc-panel,
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
}
.calc-result {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-subtle) 100%);
}
.result-hero-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin: 6px 0;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.metric-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.metric-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  color: var(--ink-0);
  margin-top: 3px;
}
.bar-chart {
  display: flex;
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--border);
  margin: 14px 0 8px;
}
.bar-seg-a { background: var(--accent); transition: width 0.35s var(--ease-brand); }
.bar-seg-b { background: var(--amber); transition: width 0.35s var(--ease-brand); }
.bar-seg-c { background: var(--danger); transition: width 0.35s var(--ease-brand); }
.bar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-1);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 5px; }

.verdict-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--ink-0);
  font-size: 0.92rem;
}
.verdict-box.warn { background: var(--amber-soft); }
.verdict-box.danger { background: var(--danger-soft); }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 8px;
}

/* ── Zoneamento Estrito Google AdSense (CLS <= 0.05 via min-height reservado) ── */
.ad-zone {
  margin: 26px 0;
  padding: 12px 16px;
  min-height: 120px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.ad-zone-sidebar { min-height: 280px; }
@media (max-width: 768px) {
  .ad-zone { min-height: 280px; }
}
.ad-zone-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ad-zone-note {
  font-size: 0.82rem;
  color: var(--ink-2);
  max-width: 440px;
}

/* ── Artigo Editorial & Tabelas ── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: clamp(1.38rem, 1.15rem + 0.85vw, 1.8rem);
  margin: 34px 0 12px;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}
.prose p { margin: 0 0 16px; color: var(--ink-1); font-size: 1.03rem; line-height: 1.74; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-1); }
.prose li { margin-bottom: 8px; line-height: 1.66; }
.prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-subtle);
  border-radius: 0 12px 12px 0;
  color: var(--ink-0);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-subtle);
  font-weight: 700;
  color: var(--ink-0);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

.sidebar-sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

/* ── Vitrine Contextual Curso de IA & Parceiros ── */
.sponsor-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: var(--bg-invert);
  color: var(--ink-invert-0);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-invert);
}
.sponsor-banner-copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.sponsor-banner-media {
  position: relative;
  min-height: 260px;
  background: #06201E;
}
.sponsor-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Tabela de Planos Plus ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.plan-card {
  background: var(--surface);
  color: var(--ink-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-card.featured {
  border: 2px solid var(--amber);
  box-shadow: var(--shadow-md);
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.05;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ── FAQ Accordion ── */
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 10px;
}
details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { margin: 12px 0 0; color: var(--ink-1); font-size: 0.95rem; }

/* ── Newsletter Segmentada LGPD ── */
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.segment-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.segment-pill {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink-1);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.segment-pill.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.lgpd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin: 10px 0 14px;
  cursor: pointer;
}
.lgpd-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }

/* ── Footer Institucional Completo ── */
.site-footer {
  background: var(--bg-invert);
  color: var(--ink-invert-1);
  padding: 54px 0 32px;
  border-top: 1px solid var(--border-invert);
}
.site-footer a,
.footer-bottom a {
  color: #5EEAD4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4,
.footer-heading {
  color: var(--ink-invert-0);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a {
  color: var(--ink-invert-1);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-grid a:hover { color: #5EEAD4; }
.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--ink-invert-1);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer-link-btn:hover {
  color: #5EEAD4;
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border-invert);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* ── Cookie Consent CMP Banner ── */
.cmp-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  max-width: 760px;
  margin: 0 auto;
  z-index: 150;
  background: var(--surface);
  color: var(--ink-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cmp-bar.show { display: flex; }
@media (max-width: 768px) {
  .cmp-bar { padding: 10px 12px; gap: 8px; }
  .cmp-bar > div:first-child { font-size: 0.76rem !important; line-height: 1.4; }
}

/* ── Prumo IA Studio Grid (6 copilotos = 2x3 simétrico em desktop) ── */
.ai-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ai-mode-card {
  text-align: left;
  background: var(--surface);
  color: var(--ink-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.18s var(--ease-ui), background-color 0.18s var(--ease-ui), box-shadow 0.18s var(--ease-ui);
}
.ai-mode-card strong { font-size: 0.92rem; line-height: 1.3; }
.ai-mode-card:hover { border-color: var(--accent); background: var(--surface-subtle); }
.ai-mode-card.active {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-sm);
}
.ai-markdown-out h2, .ai-markdown-out h3 { font-family: var(--font-display); color: var(--ink-0); }
.ai-markdown-out code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
@media (max-width: 1024px) {
  .ai-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ai-mode-grid { grid-template-columns: 1fr; }
}

/* ── Feedback Toast ── */
.form-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-msg.ok { display: block; background: var(--success-soft); color: var(--success); }
.form-msg.err { display: block; background: var(--danger-soft); color: var(--danger); }

/* ── Responsividade Estrita (0px Horizontal Overflow em 320px–1440px) ── */
@media (max-width: 1180px) {
  .brand-tag,
  .cmd-trigger .cmd-label { display: none !important; }
  .nav-links > a,
  .nav-item > a { padding: 8px 8px; font-size: 0.84rem; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-desktop-only { display: none !important; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid,
  .calc-shell,
  .article-layout,
  .sponsor-banner,
  .newsletter-box,
  .split-sticky { grid-template-columns: minmax(0, 1fr); }
  .sticky-pane { position: static; }
  .norm-ticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .hairline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-sticky { position: static; }
}

@media (max-width: 768px) {
  .nav-links, .nav-desktop-only, .cmd-trigger .cmd-label, .cmd-trigger kbd { display: none !important; }
  .cmd-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .mobile-toggle { display: inline-flex; }
  .btn-sm,
  .filter-chip,
  .segment-pill,
  .profile-tab,
  .card-link,
  .footer-grid a,
  .footer-link-btn,
  .transparency-bar a,
  .card-meta a { min-height: 44px; }
  .hero-cta-row .btn { width: 100%; }
  .wrap { padding: 0 16px; }
  .band { padding: 44px 0; }
  .page-hero { padding: 20px 0 22px; }
  .band-diagonal { padding: 60px 0; }
  .hero-band { padding: 24px 0 36px; }
  .hero-cockpit, .calc-panel, .calc-result, .newsletter-box, .sponsor-banner-copy { padding: 18px; }
  .norm-ticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-bento-grid, .hub-bento-featured { grid-template-columns: 1fr; }
  .hub-bento-featured { grid-column: auto; }
  .grid-2, .grid-3, .grid-4, .grid-5, .hairline-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .profile-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-row { grid-template-columns: 1fr; }
  .transparency-bar { font-size: 11.5px; }
}

.metric-box .areas-quick-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.metric-box .areas-quick-links span {
  display: inline;
  width: auto;
}
.metric-box .areas-quick-links a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.45);
  text-underline-offset: 4px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.metric-box .areas-quick-links a:hover,
.metric-box .areas-quick-links a:focus-visible {
  color: var(--accent, #10b981);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .transparency-bar, .site-header, .ad-zone, .site-footer, .cmp-bar, .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .calc-panel, .calc-result { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   CALCULE BRASIL — SOVEREIGN PRECISION SIGNATURE LAYER (2027)
   ========================================================================== */
.brand {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-mark {
  background: linear-gradient(135deg, #046C4E 0%, #022C22 100%) !important;
  box-shadow: 0 4px 14px rgba(4, 108, 78, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .brand-mark {
  background: linear-gradient(135deg, #059669 0%, #022C22 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.brand-name-accent {
  color: var(--accent);
}
.eyebrow, .badge, .btn, .nav-links a, .situation-picker-label, .profile-tab {
  font-family: var(--font-ui);
}
h1, h2, .card-title, .section-head h2 {
  font-variation-settings: "opsz" 72, "SOFT" 35;
}
.site-header {
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
[data-theme="dark"] .card,
[data-theme="dark"] .hero-cockpit,
[data-theme="dark"] .calc-panel,
[data-theme="dark"] .calc-result {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .hero-cockpit {
  border-color: rgba(16, 185, 129, 0.26);
  background: linear-gradient(180deg, rgba(16, 24, 34, 0.96) 0%, rgba(11, 17, 23, 0.98) 100%);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: var(--shadow-accent);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hover) 100%);
}
.hero-search-trigger:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.situation-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
