/* /assets/css/main.css */
/* ==========================================================================
   Studio Artemis — main.css
   Figma: i23qiP70wQhTOjyhYLT9LM · Home desktop 8160:163
   ========================================================================== */

:root {
  /* Cores — variáveis do Figma (get_variable_defs 8160:163) */
  --gray-0: #ffffff;
  --gray-200: #cecece;
  --gray-300: #b5b5b5;
  --gray-400: #9d9d9d;
  --gray-500: #848485;
  --gray-800: #3a3a3c;
  --gray-900: #212123;
  --black-100: #111111;
  --black-200: #09090b;
  --blue-300: #87baff;
  --blue-400: #5499ff;
  --green-300: #93ffd0;
  --green-400: #5dffb8;
  --magenta-300: #e88fff;
  --orange-200: #ffd5c0;
  --orange-300: #ffb48e;
  --orange-400: #ff8c53;

  /* Tipografia */
  --font-display: "Exo", sans-serif;
  --font-body: "Cabin", sans-serif;
  --font-serif: "Instrument Serif", serif;

  /* Tokens estruturais — extraídos do Figma deste projeto (Fase 0.5) */
  --frame-w: 1440px;
  --content-w: 1376px;
  --section-px: clamp(16px, calc(32 / 1440 * 100vw), 32px); /* 32px exatos no frame 1440 */
  --section-py: 120px;
  --content-gap: 32px;

  /* Header fixo: 80px no topo (8165:2338), 60px após o scroll (8165:2339) */
  --header-h: 80px;
  --header-h-scrolled: 60px;
}

/* Mobile (frame 8635:1583, 375 de largura) — vale até 767px.
   Seções: respiro lateral 16 (o clamp de --section-px já dá 16) e vertical 60;
   header de 60 (8635:3579) também no estado inicial. */
@media (max-width: 767px) {
  :root {
    --section-py: 60px;
    --header-h: 60px;
  }
  .page-post { --header-h: 64px; } /* post: header com selo (8693:2102) */
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } } /* âncoras (#estudos, abas do Blog) */

body {
  margin: 0;
  background: var(--black-200);
  color: var(--gray-0);
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty; /* sem palavra viúva no site todo (pedido do cliente); herdado por todo texto. Firefox: reforço no main.js */
}

main { padding-top: var(--header-h); overflow-x: clip; } /* altura do header fixo (estado inicial) · clip: rede contra rolagem lateral das entradas (não cria contêiner de rolagem, sticky continua) */
section[id] { scroll-margin-top: var(--header-h-scrolled); } /* âncoras (#estudos, abas do Blog) param logo abaixo do header fixo */
.is-preview main { padding-top: 0; } /* preview isolado de seção (tools/build.py --preview) */

p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--content-w) + 2 * var(--section-px));
  margin-inline: auto;
  padding-inline: var(--section-px);
}

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

/* --------------------------------------------------------------------------
   Componentes de seção compartilhados (padrão recorrente no Figma)
   - .eyebrow       → Instrument Serif italic 20/1.3 (ex.: 8183:975, 8195:1067)
   - .section-title → Exo SemiBold 40/1.2, trecho em <em> cinza (ex.: 8183:309, 8294:503)
   - .section-head  → coluna eyebrow + título, gap 16 (ex.: 8213:369, 8195:1064)
   - .body-lg       → Cabin 18/1.5 gray-300 (ex.: 8294:505)
   -------------------------------------------------------------------------- */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--gray-300);
}
.eyebrow--400 { color: var(--gray-400); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--gray-0);
  text-wrap: pretty;
}
.section-title em { font-style: normal; color: var(--gray-500); }
.section-title--em-300 em { color: var(--gray-300); }
.section-title--em-400 em { color: var(--gray-400); }

.body-lg { font-size: 18px; line-height: 1.5; color: var(--gray-300); }

/* --------------------------------------------------------------------------
   Botão — componente (8160:172 / 8160:173)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 23px; /* 18/24 do Figma − 1px do stroke inside */
  border: 1px solid var(--gray-800);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--gray-0);
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--gray-500); }
.btn--primary { background: var(--gray-0); color: var(--black-200); }
.btn--primary:hover { background: var(--gray-200); border-color: var(--gray-800); }

/* --------------------------------------------------------------------------
   Header (8165:2338) · versão scroll (8165:2339)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--black-200);
  box-shadow: inset 0 -1px 0 var(--gray-900); /* stroke inside 1px */
  transition: height .25s ease, box-shadow .25s ease;
}
/* Após o scroll: fixo, sem stroke, logo e padding menores (py 16, logo 120×28) */
.site-header.is-scrolled { height: var(--header-h-scrolled); box-shadow: none; }
/* Barra: container (8165:2315 / 8635:3289) + botão "Menu" do mobile (8635:3577) */
.site-header__bar { display: flex; align-items: center; }
.site-header__inner {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { width: 137px; height: 32px; transition: width .25s ease, height .25s ease; }
.site-header.is-scrolled .site-header__logo img { width: 120px; height: 28px; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a,
.site-header__cta {
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--gray-0);
  transition: color .2s ease;
}
.site-nav a { font-weight: 400; }
.site-nav a:hover { color: var(--gray-300); }
.site-header__sep { width: 4px; height: 4px; background: var(--gray-500); }
.site-header__cta { font-weight: 600; }
.site-header__cta:hover { color: var(--gray-300); }

/* Variante Blog (8340:2124): logo sem ™ 125×32 + selo "BLOG" (8314:2527, gap 24); nav com "Início" */
.site-header__brand { display: flex; align-items: center; gap: 24px; }
.site-header__logo picture { display: block; }
.site-header--blog .site-header__logo img { width: 125px; height: 32px; }
.site-header--blog.is-scrolled .site-header__logo img { width: 109.375px; height: 28px; } /* mesma escala 32 → 28 da versão scroll (8165:2339) */
/* 8314:2542 · Tag: p 2/6, blue-300 · texto 8314:2526 Cabin Bold 12/1.3 maiúsculo black-200 */
.site-header__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: var(--blue-300);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black-200);
}
.site-header__tag span { display: block; }

/* 768–1023: com a MktOps no menu (5 links; 6 no Blog, com "Início") os gaps de 24 não cabem — 16 em todas as variantes */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__brand,
  .site-header__actions,
  .site-nav { gap: 16px; }
  /* texto do botão editável (Dados do site): se não couber, encolhe com reticências em vez de passar da tela */
  .site-header__actions { min-width: 0; }
  .site-header__cta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* 768–899 no Blog: logo + selo (192) + 6 links não cabem — o selo sai, como no celular */
@media (min-width: 768px) and (max-width: 899px) {
  .site-header--blog .site-header__tag { display: none; }
}
@media (min-width: 768px) and (max-width: 819px) {
  .site-header--blog .site-nav { gap: 12px; } /* 6 links: com 16 sobravam 5 px entre o logo e o menu em 768 */
}

/* Botão "Menu" e gaveta só existem no mobile (≤767) */
.site-header__toggle,
.site-header__drawer { display: none; }

/* Gaveta aberta: trava a rolagem da página */
html.has-menu-open,
html.has-menu-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   Header mobile (≤767) · 8635:3579 (375×60) · scroll 8662:2937 · menu 8662:2946
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* 8635:3579: p 16, logo 120×28 nos dois estados; stroke inferior só no topo (8662:2937 sem stroke) */
  .site-header__logo img,
  .site-header--blog .site-header__logo img,
  .site-header.is-scrolled .site-header__logo img { width: 120px; height: 28px; }
  .site-header__actions { display: none; } /* 8635:3291 (hidden) */
  /* Blog mobile 8673:4443 = instância do header da Home: logo com ™ (<source> do <picture>), sem selo */
  .site-header__tag { display: none; }

  /* Post mobile 8693:2102 "Header blog" (375×64): logo sem ™ 125×32 + selo, gap 16; rolando volta aos 60 do 8662:2937 */
  .site-header--tag-m .site-header__tag { display: flex; }
  .site-header--tag-m .site-header__brand { gap: 16px; }
  .site-header--tag-m:not(.is-scrolled) .site-header__logo img { width: 125px; height: 32px; }

  /* 8635:3577 / 8635:3568 · "Menu" Cabin Regular 18/1.5 */
  .site-header__toggle,
  .site-header__close {
    position: relative;
    display: block;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-variation-settings: "wdth" 100;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--gray-0);
    cursor: pointer;
    transition: color .2s ease;
  }
  .site-header__toggle { min-width: 44px; text-align: right; transition: color .2s ease, opacity .3s ease; } /* caixa de texto 44×27 do Figma (texto à direita) */
  html.has-menu-open .site-header__toggle { opacity: 0; } /* com a gaveta aberta, "Fechar" substitui "Menu" (não vaza ao lado do painel) */
  .site-header__close { min-width: 51px; text-align: right; }  /* 8662:2952 · 51×27 */
  .site-header__toggle span { display: block; }
  .site-header__toggle::after,
  .site-header__close::after { content: ""; position: absolute; inset: -9px -8px; } /* área de toque ≥ 44px */
  .site-header__toggle:hover,
  .site-header__close:hover { color: var(--gray-300); }

  /* Gaveta (8662:2946): overlay cobrindo a altura da tela, entra da esquerda para a direita */
  .site-header__drawer {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    visibility: hidden;
    transition: visibility 0s linear .3s;
  }
  .site-header__drawer.is-open { visibility: visible; transition-delay: 0s; }
  .site-header__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--black-200) 60%, transparent);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .site-header__drawer.is-open .site-header__backdrop { opacity: 1; }
  .site-header__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(325px, calc(100% - 50px)); /* 325 no frame de 375 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--black-100);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .site-header__drawer.is-open .site-header__panel { transform: none; }

  /* 8662:2947 · Close Button 325×60: p 16 + stroke inferior de 1 (no layout), "Fechar" à direita (8662:2952) */
  .site-header__panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid var(--gray-900);
  }

  /* 8662:2938 / 8662:2939 · links Cabin 16/1.5, gap 24, à direita */
  .site-header__menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
  }
  .site-header__menu a {
    position: relative;
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    color: var(--gray-0);
    transition: color .2s ease;
  }
  .site-header__menu a::after { content: ""; position: absolute; inset: -10px 0; } /* área de toque 44px */
  .site-header__menu a:hover { color: var(--gray-300); }

  /* 8662:2965 · Email and Description: p 16, gap 8, stroke superior inside */
  .site-header__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    box-shadow: inset 0 1px 0 var(--gray-900);
    text-align: right;
  }
  .site-header__contact-label { /* 8662:2966 · Instrument Serif Italic 18/1.3 */
    height: 23px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: var(--gray-300);
  }
  .site-header__contact-email { /* 8662:2967 · Exo SemiBold 16/1.2 — clique copia o e-mail */
    position: relative;
    display: block;
    min-height: 23px; /* 23 do Figma; e-mail longo do Customizer quebra em vez de estourar a gaveta (320 → 238 úteis) */
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--gray-0);
    transition: color .2s ease;
  }
  .site-header__contact-email::after { content: ""; position: absolute; inset: -11px 0; } /* área de toque 45px */
  .site-header__contact-email:hover { color: var(--gray-300); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__logo img,
  .site-header__toggle,
  .site-header__drawer,
  .site-header__backdrop,
  .site-header__panel { transition: none; }
}

/* Formulários: campo isca anti-spam (server/forms.py) — fora da tela e da leitura, robô preenche */
.form-isca { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* /assets/css/motion.css */
/* Studio Artemis — motion.css: estados e animações da biblioteca assets/js/motion.js (catálogo em MODEL.md › Motion).
   Tudo que esconde fica atrás de html.motion-on (ligado no <head> só com prefers-reduced-motion: no-preference)
   e some com .is-done: em repouso, sem JS, com movimento reduzido e na impressão a página é a do Figma.
   Só transform-like (translate/scale), opacity e clip-path; nada muda o tamanho da caixa (sem CLS). */

:root { --motion-ease: cubic-bezier(.25, .6, .3, 1); }

/* --------------------------------------------------------------------------
   Entradas — data-reveal (estado inicial só enquanto não entrou)
   -------------------------------------------------------------------------- */
.motion-on [data-reveal]:not(.is-in):not(.is-done) { opacity: 0; }
.motion-on [data-reveal="rise"]:not(.is-in):not(.is-done) { opacity: 1; translate: 0 32px; }
.motion-on [data-reveal="grow-x"]:not(.is-in):not(.is-done) { opacity: 1; scale: 0 1; }
.motion-on [data-reveal="grow-y"]:not(.is-in):not(.is-done) { opacity: 1; scale: 1 0; }

.motion-on [data-reveal].is-in { animation: m-up .9s var(--motion-ease) var(--m-delay, 0ms) both; }
.motion-on [data-reveal="diag"].is-in { animation-name: m-diag; }
.motion-on [data-reveal="fade"].is-in { animation-name: m-fade; animation-duration: .7s; }
.motion-on [data-reveal="pop"].is-in { animation-name: m-pop; animation-duration: .8s; }
.motion-on [data-reveal="rise"].is-in { animation-name: m-rise; animation-duration: 1.1s; }
.motion-on [data-reveal="grow-x"].is-in { animation-name: m-grow-x; }
.motion-on [data-reveal="grow-y"].is-in { animation-name: m-grow-y; }

[data-reveal="grow-x"] { transform-origin: left center; }
[data-reveal="grow-x"][data-origin="right"] { transform-origin: right center; }
[data-reveal="grow-x"][data-origin="center"] { transform-origin: center; }
[data-reveal="grow-y"] { transform-origin: center top; }
[data-reveal="grow-y"][data-origin="bottom"] { transform-origin: center bottom; }
[data-reveal="grow-y"][data-origin="center"] { transform-origin: center; }

@keyframes m-up { from { opacity: 0; translate: 0 24px; } }
@keyframes m-diag { from { opacity: 0; translate: -32px 24px; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; scale: .9; } }
@keyframes m-rise { from { translate: 0 32px; } }
@keyframes m-grow-x { from { scale: 0 1; } }
@keyframes m-grow-y { from { scale: 1 0; } }

/* --------------------------------------------------------------------------
   Título por linhas — data-split="lines" (o JS fixa as quebras do repouso e devolve o HTML no fim)
   -------------------------------------------------------------------------- */
.motion-on [data-split]:not(.is-split):not(.is-done) { opacity: 0; }
.m-w {
  display: inline-block;
  vertical-align: top;
  overflow: clip;
  padding-bottom: .12em; /* respiro para os descendentes (g, p, ç) dentro da máscara */
  margin-bottom: -.12em;
}
.m-w__i { display: inline-block; }
.motion-on [data-split].is-split:not(.is-in) .m-w__i { translate: 0 110%; }
.motion-on [data-split].is-in .m-w__i {
  animation: m-line .9s var(--motion-ease) both;
  animation-delay: calc(var(--m-delay, 0ms) + var(--m-line, 0) * 80ms);
}
@keyframes m-line { from { translate: 0 110%; } }

/* --------------------------------------------------------------------------
   Topo da página — data-motion-start="load" sem esperar o motion.js
   O <head> liga html.motion-boot junto com o motion-on: a entrada do topo toca só com CSS desde a 1ª pintura.
   Antes, o topo ficava escondido até o motion.js (defer, depois de todo o HTML e CSS) e as fontes chegarem —
   3,5 a 4,5 s de tela preta numa 1ª visita. O motion.js marca esses itens como prontos e tira o motion-boot
   quando estas animações terminam; a repetição ao voltar à tela continua com o JS.
   Keyframes com "to" explícito: o estado escondido (opacity 0 etc.) é o valor de base durante a animação.
   -------------------------------------------------------------------------- */
.motion-boot [data-motion-start="load"] :is([data-reveal], [data-split]),
.motion-boot :is([data-reveal], [data-split])[data-motion-start="load"] {
  animation: m-load-up .8s var(--motion-ease) var(--m-load-delay, 120ms) both;
}
.motion-boot [data-motion-start="load"] [data-split],
.motion-boot [data-split][data-motion-start="load"] { --m-load-delay: 0ms; animation-duration: .9s; }
.motion-boot [data-motion-start="load"] [data-reveal="fade"],
.motion-boot [data-reveal="fade"][data-motion-start="load"] { --m-load-delay: 0ms; animation-name: m-load-fade; animation-duration: .7s; }
.motion-boot [data-motion-start="load"] [data-reveal="pop"],
.motion-boot [data-reveal="pop"][data-motion-start="load"] { animation-name: m-load-pop; }
.motion-boot [data-motion-start="load"] [data-reveal="rise"],
.motion-boot [data-reveal="rise"][data-motion-start="load"] { animation-name: m-load-rise; animation-duration: 1.1s; }
.motion-boot [data-motion-start="load"] [data-reveal="grow-x"],
.motion-boot [data-reveal="grow-x"][data-motion-start="load"] { animation-name: m-load-grow-x; }
.motion-boot [data-motion-start="load"] [data-reveal="grow-y"],
.motion-boot [data-reveal="grow-y"][data-motion-start="load"] { animation-name: m-load-grow-y; }
.motion-boot [data-motion-start="load"] [data-wipe],
.motion-boot [data-wipe][data-motion-start="load"] { animation: m-wipe 1s var(--motion-ease) var(--m-load-delay, 200ms) both; }

@keyframes m-load-up { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes m-load-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-load-pop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes m-load-rise { from { opacity: 1; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes m-load-grow-x { from { opacity: 1; scale: 0 1; } to { opacity: 1; scale: 1 1; } }
@keyframes m-load-grow-y { from { opacity: 1; scale: 1 0; } to { opacity: 1; scale: 1 1; } }

/* --------------------------------------------------------------------------
   Cortina — data-wipe (máscara que abre na direção pedida) · data-wipe-zoom assenta a 1ª imagem
   Máscara, não clip-path: no Chrome a IntersectionObserver aplica o clip-path do próprio alvo — com o recorte
   fechado o elemento contava como fora da tela e, depois de voltar ao início (repetição), nunca mais tocava.
   -------------------------------------------------------------------------- */
.motion-on [data-wipe] { --m-mpos: 0 0; --m-mfrom: 0% 100%; }        /* right: abre da esquerda para a direita */
.motion-on [data-wipe="left"] { --m-mpos: 100% 0; }
.motion-on [data-wipe="up"] { --m-mpos: 0 100%; --m-mfrom: 100% 0%; } /* abre de baixo para cima */
.motion-on [data-wipe="down"] { --m-mfrom: 100% 0%; }
.motion-on [data-wipe="out"] { --m-mpos: 50% 0; }                    /* abre do centro para as bordas */
.motion-on [data-wipe]:not(.is-done) {
  -webkit-mask: linear-gradient(#000, #000) var(--m-mpos) / var(--m-mfrom) no-repeat;
  mask: linear-gradient(#000, #000) var(--m-mpos) / var(--m-mfrom) no-repeat;
}
.motion-on [data-wipe].is-in { animation: m-wipe 1s var(--motion-ease) var(--m-delay, 0ms) both; }
.motion-on [data-wipe-zoom].is-in img { animation: m-settle 1.3s var(--motion-ease) var(--m-delay, 0ms) both; }

@keyframes m-wipe { to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes m-settle { from { scale: 1.06; } }

/* --------------------------------------------------------------------------
   Contador e digitação
   -------------------------------------------------------------------------- */
/* Contém o .m-sr (absolute): sem ancestral posicionado ele escapa do clip do main e alarga a página no celular */
[data-type], [data-count] { position: relative; }
.m-count { display: inline-block; text-align: right; }
.m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.motion-on [data-type].is-typing-ready:not(.is-in) .m-c { opacity: 0; }
.motion-on [data-type].is-in .m-c {
  animation: m-fade .12s linear both;
  animation-delay: calc(var(--m-delay, 0ms) + var(--m-i, 0) * 18ms);
}

/* --------------------------------------------------------------------------
   Hover só em link e botão (Regra de hover)
   -------------------------------------------------------------------------- */
/* Botão: o rótulo sobe e a cópia (text-shadow) ocupa o lugar. A máscara tem a altura da linha do .btn (1,5em). */
.m-roll { display: inline-block; vertical-align: top; height: 1.5em; overflow: clip; }
.m-roll__in { display: block; text-shadow: 0 1.5em currentColor; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .m-roll__in { transition: translate .45s var(--motion-ease); }
  .btn:hover .m-roll__in,
  .btn:focus-visible .m-roll__in { translate: 0 -1.5em; }
}

/* Link de texto: sublinhado que cresce da esquerda (o link atual, aria-current, fica como no Figma) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.site-nav a, .site-header__cta, .site-footer__legal-links a, [data-hover="line"]):not([aria-current]) {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s var(--motion-ease), color .2s ease;
  }
  :is(.site-nav a, .site-header__cta, .site-footer__legal-links a, [data-hover="line"]):not([aria-current]):hover {
    background-size: 100% 1px;
  }
}

/* --------------------------------------------------------------------------
   Menu do celular: os links chegam um por vez ao abrir a gaveta
   -------------------------------------------------------------------------- */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .site-header__drawer.is-open .site-header__menu a,
  .site-header__drawer.is-open .site-header__contact {
    animation: m-drawer .3s var(--motion-ease) both;
  }
  .site-header__drawer.is-open .site-header__menu a:nth-child(1) { animation-delay: .12s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(2) { animation-delay: .16s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(3) { animation-delay: .2s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(4) { animation-delay: .24s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(5) { animation-delay: .28s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(6) { animation-delay: .32s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(7) { animation-delay: .36s; }
  .site-header__drawer.is-open .site-header__contact { animation-delay: .4s; }
}
@keyframes m-drawer { from { opacity: 0; translate: -12px 0; } }

/* --------------------------------------------------------------------------
   Loops com tempo (data-loop): as seções ligam a animação infinita só com .is-looping
   -------------------------------------------------------------------------- */
.cta__status:not(.is-looping) .cta__led,
.newsletter__status:not(.is-looping) .newsletter__led { animation: none; } /* LED aceso (quadro do Figma) fora do tempo */
.cta__pattern.is-live:not(.is-looping) .cta__dash-row path:not(.is-lit) { animation: none; }

/* --------------------------------------------------------------------------
   Transição entre páginas (View Transitions entre documentos) — header parado, conteúdo em fade curto
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: m-vt-out .18s ease both; }
  ::view-transition-new(root) { animation: m-vt-in .26s var(--motion-ease) both; }
}
@keyframes m-vt-out { to { opacity: 0; } }
@keyframes m-vt-in { from { opacity: 0; translate: 0 8px; } }

/* --------------------------------------------------------------------------
   Impressão: tudo no repouso
   -------------------------------------------------------------------------- */
@media print {
  .motion-on [data-reveal],
  .motion-on [data-split],
  .motion-on [data-wipe],
  .motion-on [data-wipe] img,
  .motion-on .m-w__i,
  .motion-on .m-c { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; -webkit-mask: none !important; mask: none !important; animation: none !important; }
}
/* /assets/css/sections/blog-03-categoria.css */
/* Blog — seção de categoria (Figma 8314:1689 · repetida 5×: 8314:1689, 1768, 1795, 1822, 1849)
   Card de post (.post-card) = Article Content 8314:1710 — também usado por artemis_blog_card() no tema */

.blog-cat { background: var(--black-200); }

/* Da 2ª categoria em diante (8314:1768…1849): stroke superior de 1px no layout — 807 = 806 + 1 (título em y 121) */
.blog-cat + .blog-cat { border-top: 1px solid var(--gray-900); }

/* 8314:1689: px 32 (container) · py 120 · gap 80 entre título e conteúdo */
.blog-cat__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  padding-block: var(--section-py);
}

/* Main Description 8314:1706 · Cabin SemiBold 40/1.2 (min-w-full → 1376) */
.blog-cat__title {
  align-self: stretch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--gray-0);
  text-wrap: pretty;
  overflow-wrap: break-word;
}
/* 8314:1769 · 1796 · 1823 · 1850: da 2ª categoria em diante o título está em Exo SemiBold no Figma desktop
   (só a 1ª, 8314:1706, em Cabin) — implementado literalmente, a confirmar com o designer */
.blog-cat + .blog-cat .blog-cat__title { font-family: var(--font-display); }

/* Content Container 8325:2695: cards + botão centralizado, gap 32 */
.blog-cat__content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Article Card 8314:1709: 3 colunas iguais, gap 0, stroke 1px inside gray-900 */
.blog-cat__grid {
  align-self: stretch;
  display: flex;
  box-shadow: inset 0 0 0 1px var(--gray-900);
}

/* "Ver todos os artigos" (8325:2696): .btn com stroke gray-900 — 183×60 */
.blog-cat__more { border-color: var(--gray-900); }

/* Páginas da lista: um número por página, quebra em linhas; sem Figma, segue o .btn (stroke gray-900, pílula) */
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--gray-900);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--gray-0);
  transition: border-color .2s ease;
}
a.blog-pager__item:hover { border-color: var(--gray-500); }
.blog-pager__item.is-current { background: var(--gray-0); border-color: var(--gray-0); color: var(--black-200); }

/* --------------------------------------------------------------------------
   Card de post — Article Content 8314:1710: p 32; Article Text 8314:1711: gap 24
   -------------------------------------------------------------------------- */
.post-card {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
}
/* 8314:1928: strokes inside à esquerda e à direita */
.post-card:nth-child(2) { box-shadow: inset 1px 0 0 var(--gray-900), inset -1px 0 0 var(--gray-900); }

.post-card__text {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-wrap: break-word;
}

/* Meta Information 8314:1726 · Cabin SemiBold 16/1.3 (Figma arredonda 20,8 → 21) · gap 8 */
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: var(--gray-500);
}
.post-card__cat,
.post-card__dot,
.post-card__date { white-space: nowrap; }
.post-card__cat { color: var(--gray-0); }

/* Article Info 8314:1927: gap 16 */
.post-card__info { display: flex; flex-direction: column; gap: 16px; }

/* 8314:1713 · Exo SemiBold 24/1.3 com reticências (Figma arredonda a entrelinha 31,2 → 31: 3 linhas = 93) */
.post-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 31px;
  color: var(--gray-0);
  transition: color .2s ease;
}
/* O card inteiro é clicável (link do título esticado) */
.post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__link:focus-visible { outline: none; }
.post-card:has(.post-card__link:focus-visible) { outline: 2px solid var(--blue-400); outline-offset: -2px; }
.post-card:hover .post-card__title { color: var(--gray-300); }

/* Blog (fora do "Continue lendo" do artigo, .blog-cat--related): o card aumenta com o cursor ou o foco do teclado —
   ganha fundo black-100 e stroke gray-800 próprios e passa por cima dos vizinhos e do stroke da grade.
   Só com mouse (hover: hover): no toque o tap não deixa o card preso aumentado. */
.blog-cat:not(.blog-cat--related) .post-card {
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .blog-cat:not(.blog-cat--related) .post-card:hover {
    z-index: 2;
    transform: scale(1.04);
    background: var(--black-100);
    box-shadow: inset 0 0 0 1px var(--gray-800);
  }
}
.blog-cat:not(.blog-cat--related) .post-card:has(.post-card__link:focus-visible) {
  z-index: 2;
  transform: scale(1.04);
  background: var(--black-100);
  box-shadow: inset 0 0 0 1px var(--gray-800);
}

/* 8314:1925 · Cabin Regular 16/1.5 gray-300 */
.post-card__excerpt { font-size: 16px; line-height: 1.5; color: var(--gray-300); }

/* Author Info 8314:1918: avatar 56 + gap 16, centralizado; fica no rodapé do card se a coluna vizinha for mais alta */
.post-card__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Avatar 8314:1919: círculo 56 com fundo primary/blue/1000 por trás da foto */
.post-card__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--blue-1000, #001240); /* primary/blue/1000 do Figma — token ainda fora do :root */
}
/* Author Details 8314:1920: nome Exo Bold 18/1.5 + cargo Cabin 16/1.5 gray-300 */
.post-card__author-details {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.5;
}
.post-card__author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-0);
}
.post-card__author-role { font-size: 16px; color: var(--gray-300); }

/* --------------------------------------------------------------------------
   768–1023: 3 colunas ficam estreitas demais (título cortado em poucas palavras) — os cards empilham
   como no Mobile, com o respiro e a tipografia do desktop
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .blog-cat__grid { flex-direction: column; }
  .post-card { flex: none; }
  .post-card:nth-child(2) { box-shadow: inset 0 1px 0 var(--gray-900), inset 0 -1px 0 var(--gray-900); }
}

@media (prefers-reduced-motion: reduce) {
  .post-card__title,
  .blog-cat:not(.blog-cat--related) .post-card { transition: none; }
  .blog-cat:not(.blog-cat--related) .post-card:hover,
  .blog-cat:not(.blog-cat--related) .post-card:has(.post-card__link:focus-visible) { transform: none; }
}

/* --------------------------------------------------------------------------
   Mobile (≤767) · categoria 8673:3920 (375×900) · da 2ª em diante 8673:4790…4937 (901)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* 8673:4790: stroke superior gray-800 no Mobile */
  .blog-cat + .blog-cat { border-top-color: var(--gray-800); }

  /* 8673:3920: px 16 · py 60 (--section-py) · gap 40 */
  .blog-cat__inner { gap: 40px; }

  /* 8673:3921 · Cabin SemiBold 28/1.2 (Figma arredonda 33,6 → 34) — Cabin em todas (8673:4791 · 4840 · 4889 · 4938) */
  .blog-cat__title,
  .blog-cat + .blog-cat .blog-cat__title { font-family: var(--font-body); font-size: 28px; line-height: 34px; }

  /* 8673:3923: 2 artigos empilhados (o 3º não existe no frame Mobile) */
  .post-card:nth-child(n+3) { display: none; }

  /* 8673:3924: p 20 · 8673:3938: strokes em cima e embaixo */
  .post-card { padding: 20px; }

  /* 8673:3931 · Exo SemiBold 20/1.3 */
  .post-card__title { font-size: 20px; line-height: 1.3; }

  /* 8673:3966: botão na largura total (343) */
  .blog-cat__more { align-self: stretch; }
}

/* --------------------------------------------------------------------------
   Lista (Artigos recentes, páginas /blog/pagina/N/ e /blog/categoria/…): linhas de 3 cards, cada card com o
   próprio stroke (a grade de 1 px faz as linhas entre eles); no Mobile todos aparecem, empilhados
   -------------------------------------------------------------------------- */
.blog-cat--list .blog-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--gray-900);
  box-shadow: none;
}
.blog-cat--list .post-card,
.blog-cat--list .post-card:nth-child(2) { background: var(--black-200); box-shadow: none; }
/* página de lista: sem topo próprio, a seção desce do header */
.blog-cat--page .blog-cat__inner { padding-top: calc(var(--section-py) + 64px); }

@media (max-width: 1023px) {
  .blog-cat--list .blog-cat__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .blog-cat--list .post-card:nth-child(n+3) { display: flex; }
  .blog-cat--list .blog-cat__grid { background: var(--gray-800); }
}
/* /assets/css/sections/post-01-hero.css */
/* Post — topo do artigo (Figma 8331:338 · mobile 8673:5779)
   Meta (categoria · data) e autor = componente .post-card__* (blog-03-categoria.css) */

/* 8331:338: px 32 · py 120 · stroke inferior 1px gray-900 no layout (691 = 690 + 1) */
.post-hero {
  padding-block: var(--section-py);
  border-bottom: 1px solid var(--gray-900);
  background: var(--black-200);
}

/* Article 8331:341: 859 de largura, gap 32 */
.post-hero__article {
  max-width: 859px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Heading 8331:342: meta + título, gap 24 */
.post-hero__heading { display: flex; flex-direction: column; gap: 24px; }

/* No post a categoria leva à seção dela no Blog */
.post-hero__cat { transition: color .2s ease; }
.post-hero__cat:hover { color: var(--gray-300); }

/* 8331:344 · Exo SemiBold 62/1.1 (Figma arredonda a caixa: 3 × 68,2 → 204, entrelinha 68) */
.post-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 62px;
  line-height: 68px;
  color: var(--gray-0);
  text-wrap: pretty;
}

/* O autor não fica no rodapé (o margin-top: auto é do card) */
.post-hero .post-card__author { margin-top: 0; }

/* 768–1023: o título de 62 quebra em palavras soltas */
@media (max-width: 1023px) {
  .post-hero__title { font-size: 48px; line-height: 1.1; }
}

/* --------------------------------------------------------------------------
   Mobile (≤767) · 8673:5779 (375×611): px 16 · py 60 · gap 24 · título Exo 32/1.2 (caixa 4 × 38,4 → 152: entrelinha 38)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .post-hero__article { gap: 24px; }
  .post-hero__title { font-size: 32px; line-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-hero__cat { transition: none; }
}
/* /assets/css/sections/post-02-conteudo.css */
/* Post — conteúdo (Figma 8331:1178 · mobile 8673:5795)
   .post-body = texto do post em fluxo plano: as mesmas classes que o editor de blocos gera no WordPress
   (wp-block-heading, wp-block-list, wp-block-image + estilos de bloco is-style-destaque / is-style-recorte). */

/* 8331:1178: px 32 · py 120 · linha: texto 859 + gap 80 + índice 437 = 1376 */
.post-content {
  padding-block: var(--section-py);
  background: var(--black-200);
}
/* O reset global só zera p/h1–h3: listas, figura e lista de definição daqui partem do zero */
.post-content :where(ol, ul, dl, dd, figure) { margin: 0; padding: 0; }

.post-content__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* Container 8331:1230: texto + chamada, gap 80 */
.post-content__main {
  flex: 0 1 859px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* --------------------------------------------------------------------------
   Índice "Neste artigo" (8331:1264) — à direita, texto alinhado à direita, acompanha a rolagem
   -------------------------------------------------------------------------- */
.post-toc {
  order: 2;
  flex: 1 1 437px;
  min-width: 0;
  align-self: stretch;
}
.post-toc__nav {
  position: sticky;
  top: calc(var(--header-h-scrolled) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 120px; /* pb 120 do frame */
  text-align: right;
}
/* 8331:1262 · Cabin SemiBold 24/1.215 (caixa 29) */
.post-toc__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: var(--gray-0);
}
/* Subheadings 8331:1272: gap 8 · 8331:1266 Cabin 18/1.5 gray-300; a seção em leitura fica branca.
   O link é inline (a caixa do Figma, na largura toda, é o <li>): o sublinhado do hover (data-hover="line",
   motion.css) acompanha o texto alinhado à direita, inclusive quando quebra em duas linhas. */
.post-toc__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-300);
}
.post-toc__link {
  color: var(--gray-300);
  transition: color .2s ease;
}
.post-toc__link:hover,
.post-toc__link[aria-current] { color: var(--gray-0); }

/* --------------------------------------------------------------------------
   Texto do post — Page 8436:1612: blocos com gap 32; dentro de cada bloco, parágrafos com 16
   e 24 entre o título e o texto (8331:1184)
   -------------------------------------------------------------------------- */
.post-body {
  --post-block: 32px;
  --post-head: 24px;
  overflow-wrap: break-word;
  text-wrap: pretty; /* textWrapStyle PRETTY do Figma em todo o texto do post (8331:1180…1260) — evita a última linha curta */
}
.post-body > * + * { margin-top: 16px; }
.post-body > h2,
.post-body > h3,
.post-body > figure,
.post-body > .post-numeros,
.post-body > figure + *,
.post-body > .post-numeros + * { margin-top: var(--post-block); }
.post-body > :is(h2, h3) + * { margin-top: var(--post-head); }

/* 8331:1180 · Cabin Regular 18/1.5 gray-300 */
.post-body > p,
.post-body li {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-300);
}
.post-body a { color: var(--gray-0); text-decoration: underline; text-underline-offset: .15em; }
.post-body strong { font-weight: 600; color: var(--gray-0); }

/* 8331:1188 · Exo SemiBold 32/1.2 (caixa 38); estilo "Destaque" 8331:1185 · 40/1.2 (fora do índice) */
.post-body > h2,
.post-body > h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  color: var(--gray-0);
  text-wrap: pretty;
}
.post-body > h2.is-style-destaque { font-size: 40px; line-height: 48px; }
.post-body > h3 { font-size: 24px; line-height: 1.3; }
.post-body > :is(h2, h3)[id] { scroll-margin-top: calc(var(--header-h-scrolled) + 32px); }

/* Listas (8331:1189): recuo 28; numerada com 8 entre itens, com marcador sem espaço extra */
.post-body > ol,
.post-body > ul { padding-left: 28px; }
.post-body > ol { list-style: decimal; }
.post-body > ul { list-style: disc; }
.post-body > ol > li + li { margin-top: 8px; }
.post-body li::marker { color: var(--gray-300); }

/* Imagem 8331:1213: 859×600 — estilo "Recorte do layout" corta como o FILL do Figma (cover, centro) */
.post-body > figure img {
  display: block;
  width: 100%;
  height: auto;
}
.post-body > figure.is-style-recorte img {
  aspect-ratio: 859 / 600;
  object-fit: cover;
}
.post-body > figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   Números (8331:1248) — strokes gray-900 em cima e embaixo no layout (242 = 240 + 2), py 32, gap 32
   -------------------------------------------------------------------------- */
.post-numeros {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 32px;
  border-block: 1px solid var(--gray-900);
}
.post-numeros__label { align-self: flex-start; }
/* Container 8331:1250: 3 × 265, gap 32 */
.post-numeros__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
/* Statistic 8331:1251: gap 16 — o número vem antes da descrição */
.post-numeros__item { display: flex; flex-direction: column; gap: 16px; }
/* 8331:1252 · Exo SemiBold 40/1.2; "R$" e "/MÊS" em 24 */
.post-numeros__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  color: var(--gray-0);
}
.post-numeros__value small { font-size: 24px; line-height: 1; } /* sem aumentar a linha de 48 */
/* 1024–1199: coluna estreita — em 40 o "/MÊS" ficaria sozinho na linha (sem palavra viúva) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .post-numeros__value { font-size: 34px; }
  .post-numeros__value small { font-size: 20px; }
}
/* 8331:1253 · Cabin 18/1.5 gray-300 */
.post-numeros__desc { font-size: 18px; line-height: 1.5; color: var(--gray-300); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Chamada final (8435:1493) — bg black-100, p 56, gap 56; conteúdo 8435:1588 gap 16; botões gap 16
   -------------------------------------------------------------------------- */
.post-cta {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 56px;
  background: var(--black-100);
}
.post-cta__content { display: flex; flex-direction: column; gap: 16px; }
/* 8435:1590 · Exo SemiBold 40/1.2 */
.post-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--gray-0);
  text-wrap: pretty;
}
.post-cta__actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 16px; } /* 8435:1592: 432 (hug) */

/* --------------------------------------------------------------------------
   768–1023: índice volta para cima do texto, como no Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .post-content__inner { flex-direction: column; gap: 40px; }
  .post-toc { order: 0; flex: none; align-self: stretch; }
  .post-toc__nav { position: static; padding-bottom: 0; text-align: left; }
  .post-content__main { flex: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   Mobile (≤767) · 8673:5795 (375×4913): px 16 · py 60 · índice + gap 40 + texto
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Page 8673:5797: blocos com gap 40; título → texto 16 (8673:5800) */
  .post-body { --post-block: 40px; --post-head: 16px; }

  /* 8673:5804 · Exo SemiBold 28/1.2 (caixa 34 por linha) */
  .post-body > h2,
  .post-body > h2.is-style-destaque { font-size: 28px; line-height: 34px; }

  /* Image 8673:5806: 343×292 */
  .post-body > figure.is-style-recorte img { aspect-ratio: 343 / 292; }

  /* Statistics 8673:5813: números empilhados, gap 32 · "Números" 18/1.3 (caixa 23) · número Exo 24/1.2 (caixa 29) */
  .post-numeros__label { font-size: 18px; line-height: 23px; }
  .post-numeros__grid { grid-template-columns: 1fr; }
  .post-numeros__value { font-size: 24px; line-height: 29px; }

  /* call to action 8673:5826: p 32/20, gap 32; título 28 (caixa 34 por linha); botões na largura toda, gap 16 */
  .post-cta { gap: 32px; padding: 32px 20px; }
  .post-cta__title { font-size: 28px; line-height: 34px; }
  .post-cta__actions { align-self: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .post-toc__link { transition: none; }
}

/* --------------------------------------------------------------------------
   Capa do artigo (posts do LeadLoop: capa_no_corpo) — antes do texto, no recorte das imagens do corpo;
   fica fora do .post-body para os CTAs do topo (data-artemis-convert) entrarem depois dela
   -------------------------------------------------------------------------- */
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 859 / 600;
  object-fit: cover;
}
.post-content__main > .post-cover + .post-body { margin-top: -48px; } /* gap 80 do container → 32 (--post-block) */

@media (max-width: 767px) {
  .post-cover img { aspect-ratio: 343 / 292; }
  .post-content__main > .post-cover + .post-body { margin-top: 0; } /* gap 40 no Mobile = --post-block */
}

/* Tabelas e citações do texto gerado no LeadLoop (o Figma não tem): mesma régua de cor e tipo do texto */
.post-body > table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; color: var(--gray-300); }
.post-body > table :is(th, td) { padding: 12px 16px; border: 1px solid var(--gray-800); text-align: left; vertical-align: top; }
.post-body > table th { color: var(--gray-0); font-weight: 600; }
.post-body > blockquote { margin: 0; padding-left: 24px; border-left: 2px solid var(--gray-800); color: var(--gray-200); }
.post-body > table,
.post-body > blockquote,
.post-body > table + *,
.post-body > blockquote + * { margin-top: var(--post-block); }
@media (max-width: 767px) {
  .post-body > table { display: block; overflow-x: auto; }
}

/* Vídeos incorporados nos posts importados do WordPress (bloco Incorporar / YouTube): largura do texto, 16:9 */
.post-body > .wp-block-embed { margin-top: var(--post-block); }
.post-body > .wp-block-embed + * { margin-top: var(--post-block); }
.post-body .wp-block-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.post-body > p > img,
.post-body figure.wp-block-image img { max-width: 100%; height: auto; }
/* /assets/css/sections/post-03-relacionados.css */
/* Post — "Continue lendo" (Figma 8331:1587 · mobile 8673:6757)
   Grade e cards = .blog-cat / .post-card (blog-03-categoria.css); aqui só o que muda */

/* 8331:1587: stroke superior gray-800 no layout (715 = 714 + 1) */
.blog-cat--related { border-top: 1px solid var(--gray-800); }

/* 8331:1588 · Exo SemiBold 40/1.2 */
.blog-cat--related .blog-cat__title { font-family: var(--font-display); }

/* 8331:1590: stroke da grade e laterais do card do meio em gray-800 */
.blog-cat--related .blog-cat__grid { box-shadow: inset 0 0 0 1px var(--gray-800); }
.blog-cat--related .post-card:nth-child(2) { box-shadow: inset 1px 0 0 var(--gray-800), inset -1px 0 0 var(--gray-800); }

@media (max-width: 1023px) {
  .blog-cat--related .post-card:nth-child(2) { box-shadow: inset 0 1px 0 var(--gray-800), inset 0 -1px 0 var(--gray-800); }
}

/* Mobile 8673:6757: título Cabin 28 (8673:6758) · grade e card do meio voltam ao gray-900 (8673:6760 / 8673:6775) */
@media (max-width: 767px) {
  .blog-cat--related .blog-cat__title { font-family: var(--font-body); }
  .blog-cat--related .blog-cat__grid { box-shadow: inset 0 0 0 1px var(--gray-900); }
  .blog-cat--related .post-card:nth-child(2) { box-shadow: inset 0 1px 0 var(--gray-900), inset 0 -1px 0 var(--gray-900); }
}
/* /assets/css/sections/newsletter.css */
/* Newsletter (componente) — símbolo 8436:2153 (Blog) · mobile 8673:4986 */

.newsletter {
  --newsletter-led: #6f7277; /* 8314:2135 — fora da paleta (mesmo LED do CTA da Home) */
  background: var(--black-100);
}

/* --------------------------------------------------------------------------
   Barra de status (8314:2133) — stroke top inside, pt 24, gap 32
   -------------------------------------------------------------------------- */
.newsletter__status { box-shadow: inset 0 1px 0 var(--gray-900); }

.newsletter__status-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
}

.newsletter__status-item { flex: none; display: flex; align-items: center; gap: 10px; } /* 8314:2134 */

.newsletter__led { /* 8314:2135 · 7×9 */
  flex: none;
  width: 7px;
  height: 9px;
  background: var(--newsletter-led);
  animation: newsletter-led 2.4s ease-in-out infinite;
}
@keyframes newsletter-led {
  0%, 60%, 100% { opacity: 1; }
  80%           { opacity: .2; }
}

.newsletter__status-text { /* 8314:2136 · Instrument Serif Italic 20/1.3 caixa alta */
  flex: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gray-500);
}

/* Icon group (8314:2137) — ícones nas pontas + 20 traços distribuídos */
.newsletter__signal {
  flex: 1 0 0;
  min-width: 1px;
  height: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.newsletter__signal-icon { flex: none; position: relative; width: 36px; height: 13.5px; } /* 8314:2138 */
.newsletter__signal-icon--wide { width: 54px; } /* 8314:2169 */
.newsletter__signal-icon img { position: absolute; top: 0; left: -0.5px; width: calc(100% + 1px); height: 100%; }
.newsletter__signal-line { flex: none; width: 1px; height: 13.5px; margin-inline: -0.5px; } /* vetor de largura 0, stroke 1px */

/* --------------------------------------------------------------------------
   Main container (8314:2225) — py 120, gap 32, conteúdo e formulário alinhados embaixo
   -------------------------------------------------------------------------- */
.newsletter__main {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding-block: var(--section-py);
}

.newsletter__content { flex: 1 0 0; min-width: 1px; } /* 8314:2630 */
.newsletter__heading { /* 8314:2629 · 694, gap 16 */
  width: 694px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Formulário (8314:2508) — 437: campo flexível + botão, gap 8; strokes inside (border-box) */
.newsletter__form {
  position: relative;
  flex: none;
  width: 437px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.newsletter__input { /* 8314:2509 · 56 de altura, p 16/24 */
  flex: 1 0 0;
  min-width: 1px;
  margin: 0;
  padding: 15px 23px; /* 16/24 do Figma − 1px do stroke */
  border: 1px solid var(--gray-800);
  border-radius: 999px;
  background: transparent;
  -webkit-appearance: none; /* iOS: sem sombra interna nativa */
  appearance: none;
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-overflow: ellipsis;
  color: var(--gray-0);
  transition: border-color .2s ease;
}
.newsletter__input::placeholder { color: var(--gray-500); opacity: 1; } /* 8314:2510 */
/* Preenchimento automático do navegador — mantém o fundo escuro da seção */
.newsletter__input:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 100px var(--black-100);
  -webkit-text-fill-color: var(--gray-0);
  caret-color: var(--gray-0);
}
.newsletter__input:hover,
.newsletter__input:focus { border-color: var(--gray-500); }
.newsletter__input:focus { outline: none; }
.newsletter__input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.newsletter__submit { flex: none; margin: 0; padding: 15px 23px; cursor: pointer; } /* 8314:2511 · 91×56 — py 16 (menor que o .btn padrão) */

/* Aviso do formulário (newsletter não configurada) — fora do fluxo, logo abaixo do campo */
.newsletter__msg {
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  right: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-400);
}

/* Leitores de tela */
.newsletter__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .newsletter__led { animation: none; }
  .newsletter__input { transition: none; }
}

/* --------------------------------------------------------------------------
   Tablet (768–1100) — barra de status encurta, como no CTA (o desktop segue fluido até 1440)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1100px) {
  .newsletter__status-inner { gap: 20px; }
  .newsletter__status-inner > :nth-child(n+4) { display: none; } /* 2º ícone + último status */
}

/* 768–1023: o texto ficaria estreito ao lado do formulário de 437 — formulário desce para baixo do texto */
@media (min-width: 768px) and (max-width: 1023px) {
  .newsletter__main { flex-direction: column; align-items: flex-start; }
  .newsletter__content { flex: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   Mobile (≤767) · frame Mobile 8673:4986 (375×560)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Container 8673:5466 — pt 24, px 16, gap 20: a linha inteira segue além da tela e é cortada */
  .newsletter__status { overflow: hidden; overflow: clip; } /* hidden = fallback de Safari < 16 */
  .newsletter__status-inner { gap: 20px; }
  /* Icon group 8673:5470 / 8673:5514 — 342 fixos (ícones nas pontas + 20 traços a cada 12) */
  .newsletter__signal { flex: none; width: 342px; }

  /* main container 8673:5079 — coluna, py 60, gap 32, alinhado embaixo */
  .newsletter__main { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .newsletter__content { flex: none; } /* 8673:5080 · largura total */
  .newsletter__heading { width: 100%; }

  /* Main Heading 8673:5083 — Exo SemiBold 28/1.2; Figma arredonda cada linha: 33.6 → 34 (caixa 136 em 4 linhas) */
  .newsletter__title { font-size: 28px; line-height: round(1.2em, 1px); }

  /* Input and Submit Container 8673:5085 — largura total (campo 244 + 8 + botão 91 em 375) */
  .newsletter__form { width: 100%; }
}
/* /assets/css/sections/footer.css */
/* Footer (Figma 8165:2501 — símbolo "Footer container") */

.site-footer { background: var(--black-200); }

/* Content Container (8193:512) — pt 120, pb 32, gap 56 */
.site-footer__content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: var(--section-py);
  padding-bottom: 32px;
}

/* Navigation and Contact (8165:2341) */
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }

.site-footer__intro { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.site-footer__logo { transition: opacity .2s ease; }
.site-footer__logo:hover { opacity: .8; }
.site-footer__logo img { width: 137px; height: 32px; }

.site-footer__title {
  width: 445px;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  line-height: round(1.2em, 1px); /* Figma arredonda cada linha: 28.8 → 29 (caixa 87 em 3 linhas) */
  color: var(--gray-0);
}
.site-footer__title em { font-style: normal; color: var(--gray-400); }

/* Newsletter (8165:2346) — input + botão, gap 8; strokes inside (border-box) */
.site-footer__form { position: relative; align-self: stretch; display: flex; align-items: flex-start; gap: 8px; }
.site-footer__input {
  flex: 1 0 0;
  min-width: 1px;
  margin: 0;
  padding: 15px 23px; /* 16/24 do Figma − 1px do stroke */
  border: 1px solid var(--gray-800);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-0);
  transition: border-color .2s ease;
}
.site-footer__input::placeholder { color: var(--gray-500); opacity: 1; }
.site-footer__input:hover,
.site-footer__input:focus { border-color: var(--gray-500); }
.site-footer__input:focus { outline: none; }
.site-footer__input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.site-footer__submit { flex: none; padding: 15px 23px; cursor: pointer; } /* 8165:2349 — py 16 (botão menor que o .btn padrão) */
.site-footer__form-msg {
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-400);
}

/* Colunas de links e contato (8165:2351) — 740 de largura, gap 32 */
.site-footer__cols { flex: none; width: 740px; display: flex; align-items: flex-start; gap: 32px; }
.site-footer__col { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }

.site-footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-0);
}

.site-footer__link,
.site-footer__label,
.site-footer__totop-label,
.site-footer__legal {
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-300);
}
.site-footer__link { display: block; transition: color .2s ease; }
.site-footer__link:hover { color: var(--gray-0); }

/* Contato (8165:2365) — largura = e-mail (nowrap); demais textos quebram */
.site-footer__contact {
  flex: none;
  width: min-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  font-style: normal;
}
.site-footer__contact-item { display: flex; flex-direction: column; gap: 16px; }
.site-footer__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  line-height: round(1.2em, 1px); /* idem: 29 por linha, como no Figma */
  color: var(--gray-0);
  transition: color .2s ease;
}
.site-footer__value--nowrap { white-space: nowrap; }
.site-footer__value:hover { color: var(--gray-300); }

/* Social + voltar ao topo (8165:2375) */
.site-footer__middle { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer__social { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__social .site-footer__label { align-self: stretch; }
.site-footer__icons { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* Ícone redondo 48 (8165:2379) — stroke inside via border-box */
.site-footer__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-800);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-footer__icon svg { flex: none; overflow: visible; }
a.site-footer__icon:hover,
.site-footer__totop:hover .site-footer__icon { border-color: var(--gray-500); background: var(--gray-900); }

.site-footer__glyph { position: relative; flex: none; overflow: clip; }
/* mingcute:dribbble-fill (8165:2392) — grupo com inset 8.33% 8.34% 0.77% 8.34% */
.site-footer__glyph--dribbble { width: 24px; height: 24px; }
.site-footer__glyph--dribbble svg { position: absolute; top: 8.33%; left: 8.34%; width: 83.32%; height: 90.9%; }
/* prime:twitter (8165:2397) — 14×14, grupo com inset 4.69% 0 */
.site-footer__glyph--x { width: 14px; height: 14px; }
.site-footer__glyph--x svg { position: absolute; top: 4.69%; left: 0; width: 100%; height: 90.62%; }

/* Voltar ao topo (8165:2404) — texto 95×23 alinhado à direita, gap 16 */
.site-footer__totop { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.site-footer__totop-label { display: block; width: 95px; height: 23px; text-align: right; white-space: nowrap; transition: color .2s ease; }
.site-footer__totop:hover .site-footer__totop-label { color: var(--gray-0); }

/* Copyright (8165:2493) */
.site-footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; white-space: nowrap; }
.site-footer__legal-links { display: flex; align-items: flex-start; gap: 24px; margin: 0; padding: 0; list-style: none; }

/* Pattern (8193:599) — stroke top inside; 83 diagonais, justify-between, mr −6.561 */
.site-footer__pattern {
  display: flex;
  justify-content: center;
  height: 64px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--gray-900);
}
.site-footer__pattern-track {
  flex: none;
  width: max(100%, var(--frame-w));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Caixa do vetor 24×64 com o SVG em inset −0.27% −1.95% (22×64: −0.25% −2.15%) e mr −6.561.
   Valores em múltiplos de 1/64 px (unidade de layout do Chrome): 24.936 → 24.9375, −0.468 → −0.46875 etc.
   Com decimais "soltos" o arredondamento somava ~0.013px por vetor (+1px na ponta direita). Passo = 17.4375 (Figma 17.439). */
.site-footer__diag { flex: none; overflow: visible; width: 24.9375px; height: 64.34375px; margin: 0 -7.03125px 0 -0.46875px; }
.site-footer__diag--22 { width: 22.9375px; height: 64.3125px; }
.site-footer__diag:last-child { margin-right: -0.46875px; }

/* Ícones e diagonais vêm do sprite inline no início do footer (<use href="#ft-…">) — sem requisição por SVG */
.site-footer__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Leitores de tela */
.site-footer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Telas menores que o frame
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .site-footer__top { flex-direction: column; gap: 64px; }
  .site-footer__cols { width: 100%; }
}

/* --------------------------------------------------------------------------
   Mobile (≤767) · frame Mobile 8641:1595 (símbolo "Footer container", 375×1459)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Content Container 8635:3302 — pt 60 (--section-py), px 16, pb 16, gap 40 */
  .site-footer__content { gap: 40px; padding-bottom: 16px; }

  /* Navigation and Contact 8635:3303 — tudo em coluna, gap 40 */
  .site-footer__top { align-items: stretch; gap: 40px; }

  /* Main Heading 8635:3307 — Exo SemiBold 20/1.2, largura total */
  .site-footer__title { align-self: stretch; width: auto; font-size: 20px; }

  /* Campo 8635:3309 — texto com reticências quando não cabe (text-ellipsis no Figma) */
  .site-footer__input { text-overflow: ellipsis; }

  /* Links and Contact Sections 8635:3313 — coluna, gap 32 */
  .site-footer__cols { width: auto; flex-direction: column; align-items: stretch; }
  .site-footer__col { flex: none; }

  /* Contact Information 8635:3325 — largura total; valores Exo SemiBold 20/1.2 */
  .site-footer__contact { width: auto; }
  .site-footer__value { font-size: 20px; }
  .site-footer__value--nowrap { white-space: normal; overflow-wrap: anywhere; } /* e-mail longo em telas estreitas */

  /* Container 8635:3335 — Social (8635:3336) e Voltar ao topo (8635:3364) em coluna, gap 40 */
  .site-footer__middle { flex-direction: column; align-items: stretch; gap: 40px; }
  .site-footer__social { align-items: stretch; }
  .site-footer__icons { flex-wrap: wrap; }
  .site-footer__totop { align-items: flex-start; } /* rótulo 95×23 e ícone à esquerda */

  /* Copyright Notice 8635:3369 — coluna, gap 32; links lado a lado (gap 24) */
  .site-footer__legal { flex-direction: column; align-items: stretch; gap: 32px; white-space: normal; }
  .site-footer__legal-links { flex-wrap: wrap; white-space: nowrap; }

  /* Área de toque sem mexer no layout: links de 24 com gap 16 → ±8 (40); valores e links legais → 44 */
  .site-footer__link,
  .site-footer__value { position: relative; }
  .site-footer__link::after,
  .site-footer__value::after { content: ""; position: absolute; inset: -10px 0; }
  .site-footer__links .site-footer__link::after { inset: -8px 0; }
  .site-footer__legal-links .site-footer__link::after { inset: -10px -12px; }
  /* Logo 8635:3306 (137×32) → alvo de 44 (pt 60 acima, gap 24 abaixo) */
  .site-footer__logo { position: relative; }
  .site-footer__logo::after { content: ""; position: absolute; inset: -6px 0; }

  /* Pattern 8635:3374 — h 32; diagonais 24/22×64 centradas (y −16) com mr −12: passo 12, faixa de 994.
     Mesmo inset do desktop (−0.46875 de cada lado) → mr da imagem = −12 − 0.46875 */
  .site-footer__pattern { height: 32px; align-items: center; }
  .site-footer__pattern-track { width: auto; justify-content: flex-start; }
  .site-footer__diag { margin-right: -12.46875px; }
  .site-footer__diag:last-child { margin-right: -0.46875px; }
}
