/*
Theme Name: D.Solutions (Astra Child)
Template: astra
Description: Identidade visual D.Solutions — violeta tech dominante, com modo claro/escuro
Version: 0.4.0
*/

/* ============ TOKENS ============ */
:root, html[data-theme="light"] {
  --ds-primary: #735DFF;
  --ds-primary-deep: #4F3DD9;
  --ds-orange: #FF5A29;
  --ds-ink: #0B0B16;

  --ds-bg: #F7F7FC;
  --ds-surface: #FFFFFF;
  --ds-border: #E7E7F2;
  --ds-text: #222F36;
  --ds-text-soft: #5A6474;
  --ds-hero-grad: linear-gradient(135deg, #16122E 0%, #2A1E66 45%, #4F3DD9 100%);
  --ds-card-shadow: 0 14px 34px rgba(79, 61, 217, .10);
}

html[data-theme="dark"] {
  --ds-bg: #0A0A14;
  --ds-surface: #141422;
  --ds-border: #26263A;
  --ds-text: #E8E8F4;
  --ds-text-soft: #A8A8C0;
  --ds-hero-grad: linear-gradient(135deg, #07070F 0%, #1B1442 45%, #3A2BA8 100%);
  --ds-card-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

/* ============ BASE ============ */
body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--ds-bg) !important;
  color: var(--ds-text);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}

/* ============ AURORA — fundo vivo em todas as páginas ============ */
body::before {
  content: "";
  position: fixed; inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(115,93,255,.13), transparent 65%),
    radial-gradient(32% 28% at 82% 70%, rgba(255,90,41,.09), transparent 65%),
    radial-gradient(42% 36% at 68% 12%, rgba(115,93,255,.10), transparent 65%),
    radial-gradient(30% 26% at 30% 85%, rgba(201,192,255,.10), transparent 65%);
  animation: dsAurora 42s ease-in-out infinite alternate;
  will-change: transform;
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(115,93,255,.22), transparent 65%),
    radial-gradient(32% 28% at 82% 70%, rgba(255,90,41,.13), transparent 65%),
    radial-gradient(42% 36% at 68% 12%, rgba(115,93,255,.16), transparent 65%),
    radial-gradient(30% 26% at 30% 85%, rgba(201,192,255,.12), transparent 65%);
}
@keyframes dsAurora {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(3%, -2%) scale(1.08) rotate(1.2deg); }
  100% { transform: translate(-3%, 2%) scale(1.04) rotate(-1.2deg); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ds-text);
}

/* Astra: header e footer acompanham o tema */
.site-header, .main-header-bar, .ast-above-header, .ast-primary-header-bar {
  background: var(--ds-surface) !important;
  border-bottom: 1px solid var(--ds-border);
}
.main-header-menu .menu-link, .site-header a { color: var(--ds-text) !important; }
.main-header-menu .current-menu-item > .menu-link { color: var(--ds-primary) !important; }
.site-footer, .ast-footer-copyright { background: var(--ds-surface) !important; color: var(--ds-text-soft); }
.site-footer * { color: var(--ds-text-soft) !important; }
html[data-theme="dark"] .custom-logo { filter: brightness(0) invert(1); }

/* ===== LOGO: estático no claro, vídeo (blend) no escuro ===== */
.ds-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.ds-logo-img  { height: 46px; width: auto; display: block; }
.ds-logo-video { display: none; height: 56px; width: auto; cursor: pointer; mix-blend-mode: screen; }
html[data-theme="dark"] .ds-logo-img  { display: none; }
html[data-theme="dark"] .ds-logo-video { display: block; }
/* Navegador sem suporte ao vídeo → logo estático branco no escuro */
html.ds-no-video[data-theme="dark"] .ds-logo-video { display: none; }
html.ds-no-video[data-theme="dark"] .ds-logo-img {
  display: block;
  filter: brightness(0) invert(1);
}
@media (max-width: 640px) {
  .ds-logo-img { height: 38px; }
  .ds-logo-video { height: 46px; }
}

/* ===== CABEÇALHO COMPACTO E REFINADO ===== */
.ast-primary-header-bar, .main-header-bar {
  min-height: 70px !important;
  padding: 0 !important;
  box-shadow: 0 1px 0 var(--ds-border);
}
.site-header .site-branding { padding: 0 !important; }
.site-header .ast-builder-grid-row,
.main-header-bar .ast-builder-grid-row { align-items: center; }

.main-header-menu { align-items: center; }
.main-header-menu .menu-item { display: flex; align-items: center; }
.main-header-menu .menu-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .005em;
  color: var(--ds-text) !important;
  padding: 6px 13px !important;
  transition: color .15s ease;
}
.main-header-menu .menu-link:hover { color: var(--ds-primary) !important; }
.main-header-menu .current-menu-item > .menu-link { color: var(--ds-primary) !important; font-weight: 600; }

/* Botão CTA — hairline elegante: contorno fino, pílula, hover contido */
.main-header-menu .ds-menu-cta { align-self: center; }
.main-header-menu .ds-menu-cta > .menu-link {
  background: transparent;
  color: var(--ds-primary) !important;
  border: 1px solid var(--ds-primary);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .03em;
  line-height: 1;
  padding: 10px 22px !important;
  margin-left: 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.main-header-menu .ds-menu-cta > .menu-link:hover {
  background: rgba(115, 93, 255, .07);
  border-color: var(--ds-primary-deep);
  color: var(--ds-primary-deep) !important;
}
html[data-theme="dark"] .main-header-menu .ds-menu-cta > .menu-link {
  color: #C9C0FF !important;
  border-color: rgba(201, 192, 255, .55);
}
html[data-theme="dark"] .main-header-menu .ds-menu-cta > .menu-link:hover {
  background: rgba(115, 93, 255, .16);
  border-color: #C9C0FF;
}

/* Menu — sublinhado fino que desliza no hover */
.main-header-menu .menu-link { position: relative; }
.main-header-menu .menu-item:not(.ds-menu-cta) > .menu-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--ds-primary);
  transition: right .22s ease;
}
.main-header-menu .menu-item:not(.ds-menu-cta) > .menu-link:hover::after,
.main-header-menu .current-menu-item:not(.ds-menu-cta) > .menu-link::after {
  right: 13px;
}

/* Dark: vence a especificidade do Astra em títulos e textos */
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5,
html[data-theme="dark"] .entry-content h1, html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3, html[data-theme="dark"] .entry-content h4 {
  color: var(--ds-text) !important;
}
html[data-theme="dark"] body, html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p, html[data-theme="dark"] .entry-content li {
  color: var(--ds-text);
}
html[data-theme="dark"] .ds-hero h1, html[data-theme="dark"] .ds-case blockquote { color: #fff !important; }
html[data-theme="dark"] .ds-card h3 { color: var(--ds-text) !important; }
html[data-theme="dark"] .ds-card p, html[data-theme="dark"] .ds-lead, html[data-theme="dark"] .ds-stat .l { color: var(--ds-text-soft) !important; }

/* ============ TOGGLE CLARO/ESCURO ============ */
.ds-theme-toggle {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-size: 1.35rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.ds-theme-toggle:hover { transform: scale(1.08); }

/* ============ HERO — compacto, foco no conteúdo ============ */
.ds-hero {
  background: var(--ds-hero-grad);
  color: #fff;
  padding: 42px 24px 38px;
  text-align: center;
  position: relative; overflow: hidden;
}
.ds-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem) !important; margin-bottom: 12px !important; }
.ds-hero p.ds-sub { font-size: clamp(.95rem, 1.5vw, 1.05rem) !important; margin-bottom: 22px !important; max-width: 640px !important; }
.ds-hero .ds-btn { padding: 10px 24px; font-size: 14px; }

/* sem barra horizontal fantasma; scrollbar NATIVA na borda da janela (padrão Patrimonial) */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* full-bleed garantido (sem moldura de container) */
.page .site-content .ast-container,
.home .site-content .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page .entry-content, .home .entry-content { margin: 0; }

/* ============ SCROLL REVEAL — surge ao rolar e FICA ============ */
.ds-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.2,.65,.3,1), transform .65s cubic-bezier(.2,.65,.3,1);
}
.ds-rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ds-rv { opacity: 1; transform: none; transition: none; }
}

/* Arte de fundo (nano-banana) com movimento lento Ken Burns */
.ds-hero--industrial   { --ds-hero-img: url("assets/hero_industrial_ai.webp"); }
.ds-hero--robot        { --ds-hero-img: url("assets/hero_robotic_code.webp"); }
.ds-hero--real-robot   { --ds-hero-img: url("assets/hero_real_robot.webp"); }
.ds-hero--real-control { --ds-hero-img: url("assets/hero_real_controlroom.webp"); }
.ds-hero--real-factory { --ds-hero-img: url("assets/hero_real_factory.webp"); }

/* Hero 3D (Three.js): canvas atrás do texto; com .ds-no-3d cai pra imagem */
.ds-hero--3d .ds-robot-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
}
.ds-hero--3d .ds-robot-canvas canvas { display: block; width: 100%; height: 100%; }
.ds-hero--3d > h1, .ds-hero--3d > p, .ds-hero--3d > .ds-cta-row { position: relative; z-index: 2; }
.ds-hero--3d.ds-no-3d .ds-robot-canvas { display: none; }
.ds-hero--3d.ds-no-3d { --ds-hero-img: url("assets/hero_robotic_code.webp"); }
.ds-hero--3d.ds-no-3d::before {
  content: "";
  position: absolute; inset: -6%;
  background-image:
    linear-gradient(180deg, rgba(11,10,30,.46) 0%, rgba(11,10,30,.20) 45%, rgba(11,10,30,.62) 100%),
    var(--ds-hero-img);
  background-size: cover;
  background-position: center;
}

.ds-hero--industrial::before, .ds-hero--robot::before,
.ds-hero--real-robot::before, .ds-hero--real-control::before, .ds-hero--real-factory::before {
  content: "";
  position: absolute; inset: -6%;
  background-image:
    linear-gradient(180deg, rgba(11,10,30,.46) 0%, rgba(11,10,30,.20) 45%, rgba(11,10,30,.62) 100%),
    var(--ds-hero-img);
  background-size: cover;
  /* parallax do mouse via variáveis (não conflita com o Ken Burns no transform) */
  background-position: calc(50% + var(--ds-px, 0px)) calc(50% + var(--ds-py, 0px));
  animation: dsKenBurns 38s ease-in-out infinite alternate;
  will-change: transform, background-position;
}
@keyframes dsKenBurns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}

/* Brilhos que respiram por cima da arte */
.ds-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 82% 8%, rgba(255,90,41,.26), transparent 60%),
    radial-gradient(ellipse 50% 38% at 12% 92%, rgba(115,93,255,.32), transparent 60%);
  pointer-events: none;
  animation: dsGlow 9s ease-in-out infinite alternate;
}
@keyframes dsGlow {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* Partículas de dados subindo (pontos de luz) */
.ds-sparks {
  position: absolute; inset: 0;
  pointer-events: none;
  display: block;
}
.ds-sparks::before, .ds-sparks::after {
  content: "";
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: transparent;
  bottom: -12px; left: 0;
}
.ds-sparks::before {
  box-shadow:
    12vw  -6vh 0 0 rgba(115,93,255,.85), 28vw -22vh 0 1px rgba(255,90,41,.65),
    41vw -10vh 0 0 rgba(201,192,255,.8), 55vw -30vh 0 0 rgba(115,93,255,.6),
    67vw  -4vh 0 1px rgba(255,90,41,.5), 80vw -26vh 0 0 rgba(201,192,255,.75),
    91vw -14vh 0 0 rgba(115,93,255,.7);
  animation: dsRise 14s linear infinite;
}
.ds-sparks::after {
  box-shadow:
    7vw -18vh 0 0 rgba(201,192,255,.6), 22vw  -3vh 0 0 rgba(115,93,255,.7),
    35vw -27vh 0 1px rgba(255,90,41,.55), 49vw -15vh 0 0 rgba(201,192,255,.7),
    62vw -32vh 0 0 rgba(115,93,255,.55), 75vw  -8vh 0 0 rgba(255,90,41,.6),
    87vw -24vh 0 1px rgba(201,192,255,.65);
  animation: dsRise 19s linear infinite;
  animation-delay: -7s;
}
@keyframes dsRise {
  from { transform: translateY(0);      opacity: 1; }
  to   { transform: translateY(-105vh); opacity: 0; }
}

/* Acessibilidade: usuário que prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .ds-hero--industrial::before, .ds-hero--robot::before,
  .ds-hero::after, .ds-sparks::before, .ds-sparks::after { animation: none; }
}
.ds-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1; margin: 0 auto 18px; max-width: 880px;
  position: relative; z-index: 1;
}
.ds-hero p.ds-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .94;
  max-width: 720px; margin: 0 auto 36px;
  position: relative; z-index: 1;
}
.ds-hero .ds-cta-row { position: relative; z-index: 1; }

/* ============ BOTÕES — linguagem hairline ============ */
.ds-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  margin: 6px 8px;
  border: 1px solid transparent;
}
.ds-btn-primary {
  background: var(--ds-orange);
  border-color: var(--ds-orange);
  color: #fff !important;
}
.ds-btn-primary:hover { background: #E64A1D; border-color: #E64A1D; }
.ds-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.55);
}
.ds-btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.ds-btn-navy {
  background: transparent;
  color: var(--ds-primary) !important;
  border: 1px solid var(--ds-primary);
}
.ds-btn-navy:hover { background: rgba(115,93,255,.08); color: var(--ds-primary-deep) !important; border-color: var(--ds-primary-deep); }

/* ============ NÚMEROS ============ */
.ds-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 28px; padding: 44px 16px;
  background: color-mix(in srgb, var(--ds-surface) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ds-border);
}
.ds-stat { text-align: center; min-width: 170px; }
.ds-stat .n {
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(110deg, var(--ds-primary), var(--ds-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1.15;
}
.ds-stat .l { font-size: .95rem; color: var(--ds-text-soft); }

/* ============ SEÇÕES ============ */
.ds-section { padding: 76px 24px; }
.ds-section.alt { background: transparent; }
.ds-section .ds-kicker {
  color: var(--ds-primary); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .85rem; display: block; margin-bottom: 8px;
  text-align: center;
}
.ds-section h2 { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin-bottom: 14px; }
.ds-section .ds-lead { text-align: center; max-width: 740px; margin: 0 auto 46px; color: var(--ds-text-soft); font-size: 1.08rem; }

/* ============ CARDS ============ */
.ds-grid {
  display: grid; gap: 22px; max-width: 1140px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ds-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 16px; padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.ds-card:hover { transform: translateY(-4px); box-shadow: var(--ds-card-shadow); border-color: var(--ds-primary); }
.ds-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(115,93,255,.18), rgba(255,90,41,.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.ds-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.ds-card p { font-size: .96rem; color: var(--ds-text-soft); margin: 0; }

/* ============ CASE ============ */
.ds-case {
  background: var(--ds-hero-grad);
  color: #fff; border-radius: 20px;
  max-width: 1140px; margin: 0 auto;
  padding: 54px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.ds-case::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 45% at 85% 15%, rgba(255,90,41,.25), transparent 60%);
  pointer-events: none;
  animation: dsGlow 9s ease-in-out infinite alternate;
}

/* Banner do case com Curva S viva (desenhada em canvas pelo ds-scurve.js) */
.ds-scurve-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ds-case--scurve { min-height: 240px; }
.ds-case blockquote {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600;
  border: 0; margin: 0 auto 12px; max-width: 820px; color: #fff;
  position: relative; z-index: 1;
}
.ds-case .src { opacity: .85; font-size: .95rem; position: relative; z-index: 1; }

/* ============ CTA FINAL ============ */
.ds-final { text-align: center; }

@media (max-width: 640px) {
  .ds-hero { padding: 64px 18px 56px; }
  .ds-section { padding: 52px 18px; }
  .ds-theme-toggle { bottom: 16px; right: 16px; width: 46px; height: 46px; }
}

/* ============ BLOG — cards vivos no padrão da casa ============ */
.blog .site-main article, .archive .site-main article {
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
  padding: 26px 26px 22px;
  margin-bottom: 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.blog .site-main article:hover, .archive .site-main article:hover {
  transform: translateY(-3px);
  box-shadow: var(--ds-card-shadow);
  border-color: var(--ds-primary);
}
.blog .entry-title a, .archive .entry-title a { color: var(--ds-text) !important; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--ds-primary) !important; }
.blog .post-thumb img, .archive .post-thumb img { border-radius: 12px; }

/* Post individual: leitura confortável nos dois temas */
.single-post .entry-content { font-size: 1.05rem; line-height: 1.75; }
.single-post .entry-content a { color: var(--ds-primary); font-weight: 600; }
.single-post .entry-content h2 { margin-top: 2.2rem; }
.single-post .entry-content ul li { margin-bottom: .5rem; }
html[data-theme="dark"] .single-post .entry-content,
html[data-theme="dark"] .blog .entry-content p { color: var(--ds-text-soft); }
html[data-theme="dark"] .ast-pagination a,
html[data-theme="dark"] .entry-meta, html[data-theme="dark"] .entry-meta a { color: var(--ds-text-soft) !important; }

/* ============ BLOG v2 — anatomia tipo Patrimonial, identidade nossa ============ */
.blog .site-main article, .archive .site-main article {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* capa sangrando até a borda */
.blog article .ast-blog-featured-section, .archive article .ast-blog-featured-section { margin: 0; }
.blog article .ast-blog-featured-section img, .archive article .ast-blog-featured-section img,
.blog article .post-thumb img, .archive article .post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
  transition: transform .35s ease;
}
.blog article:hover .ast-blog-featured-section img, .archive article:hover .ast-blog-featured-section img { transform: scale(1.04); }
/* conteúdo com respiro */
.blog article .post-content, .archive article .post-content { padding: 18px 24px 22px; display: flex; flex-direction: column; flex: 1; }
/* pílula de categoria */
.ds-cat-pill {
  display: inline-block;
  align-self: flex-start;
  background: rgba(115, 93, 255, .10);
  color: var(--ds-primary);
  border: 1px solid rgba(115, 93, 255, .25);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 13px;
  margin: 4px 0 12px;
}
html[data-theme="dark"] .ds-cat-pill { background: rgba(115,93,255,.18); color: #C9C0FF; border-color: rgba(201,192,255,.3); }
.blog .entry-title, .archive .entry-title { font-size: 1.22rem; line-height: 1.35; margin: 0 0 10px; }
/* esconder meta padrão (autor/data duplicada) */
.blog .entry-meta, .archive .entry-meta { display: none; }
/* rodapé do card */
.ds-card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ds-readmore { color: var(--ds-primary) !important; font-weight: 600; font-size: .95rem; text-decoration: none; }
.ds-readmore:hover { color: var(--ds-primary-deep) !important; }
.ds-post-date { color: var(--ds-text-soft); font-size: .85rem; }

/* pílula vira badge sobre a capa */
.blog .site-main article, .archive .site-main article { position: relative; }
.blog .ds-cat-pill, .archive .ds-cat-pill {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  margin: 0;
  background: rgba(13, 10, 32, .55);
  color: #E9E4FF;
  border-color: rgba(233, 228, 255, .35);
  backdrop-filter: blur(6px);
}
/* esconder taxonomia/categoria duplicada do Astra */
.blog .ast-blog-meta-container, .archive .ast-blog-meta-container,
.blog .ast-taxonomy-container, .archive .ast-taxonomy-container { display: none; }

/* ============ REVEAL v2 (padrão Interligamed): re-anima nas duas direções ============ */
.ds-rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.65,.3,1), transform .6s cubic-bezier(.2,.65,.3,1);
}
.ds-rv.in-view { opacity: 1; transform: none; }
.ds-rvf { opacity: 0; transition: opacity .65s ease; }
.ds-rvf.in-view { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ds-rv, .ds-rvf { opacity: 1; transform: none; transition: none; }
}

/* Brilho que segue o mouse nos cards (tilt 3D via JS) */
.ds-card {
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(115, 93, 255, .07), transparent 45%);
  will-change: transform;
}
html[data-theme="dark"] .ds-card {
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(143, 109, 255, .12), transparent 45%);
}

/* Cabeçalho inteligente */
.site-header { transition: transform .28s ease; }
body.ds-hdr-hidden .site-header { transform: translateY(-100%); }

/* FIX: camadas de canvas são overlay absoluto (não empurram a altura do hero) */
.ds-live-canvas, .ds-scurve-canvas, .ds-robot-canvas {
  position: absolute !important;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ds-hero > h1, .ds-hero > p, .ds-hero > .ds-cta-row { position: relative; z-index: 2; }
.ds-case > * { position: relative; z-index: 1; }

/* ============ FAQ (GEO/AEO) ============ */
.ds-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ds-faq-item {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 4px 20px;
  transition: border-color .15s ease;
}
.ds-faq-item[open] { border-color: var(--ds-primary); }
.ds-faq-item summary {
  list-style: none; cursor: pointer;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.02rem;
  color: var(--ds-text);
  padding: 14px 0; position: relative; padding-right: 28px;
}
.ds-faq-item summary::-webkit-details-marker { display: none; }
.ds-faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--ds-primary); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease;
}
.ds-faq-item[open] summary::after { content: "−"; }
.ds-faq-a { color: var(--ds-text-soft); padding: 0 0 16px; line-height: 1.65; }
