/* =====================================================================
   Jeito Gazin — folha de estilo única (sem build, sem framework)
   Paleta: roxo/violeta da marca + magenta de destaque
   ===================================================================== */

:root {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --brand-light: #8b5cf6;
  --brand-50: #f5f3ff;
  --brand-100: #ede9fe;
  --accent: #cc3366;
  --accent-dark: #a62953;
  --ink: #333333;
  --ink-soft: #5b5b5b;
  --ink-strong: #1f1147;
  --line: #e7e5ee;
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(31, 17, 71, .06);
  --shadow: 0 2px 6px rgba(31, 17, 71, .05), 0 10px 30px -8px rgba(31, 17, 71, .12);
  --shadow-lg: 0 18px 50px -12px rgba(31, 17, 71, .22);
  --shadow-brand: 0 16px 40px -12px rgba(109, 40, 217, .45);
  --gradient: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, #f7f5ff 0%, #fdf2f8 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", var(--font);
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-strong); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
::selection { background: var(--brand-light); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #cdc9dd; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 760px; }
.band { padding-block: clamp(44px, 6vw, 80px); }
.band--brand { background: var(--gradient); color: #fff; }
.band--brand h1, .band--brand h2 { color: #fff; }
.band--soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }

/* Cabeçalho de página interna — compacto, com brilho e padrão sutil */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--gradient); color: #fff;
  padding-top: calc(var(--header-h) + 34px); padding-bottom: 42px;
}
.page-hero::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero h2 { color: #fff; margin: 0; text-shadow: 0 2px 20px rgba(31,17,71,.3); }
.page-hero p { color: rgba(255,255,255,.88); max-width: 40rem; margin: .7rem 0 0; }
.page-hero .eyebrow { color: #f0abfc; }

/* variante do artigo: mais respiro, título proporcional */
.page-hero--article { padding-top: calc(var(--header-h) + 40px); padding-bottom: 50px; }
.page-hero--article h1 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.22; max-width: 720px; text-shadow: 0 2px 16px rgba(31,17,71,.25); }
.page-hero--article .article__meta { max-width: 720px; }
.page-hero--article .article__meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero--article .article__meta a:hover { color: #f0abfc; }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; font-family: var(--font); line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .18s, border-color .18s, color .18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg, .btn .ico { transition: transform .2s var(--ease-out); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(204, 51, 102, .6); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 16px 34px -12px rgba(204, 51, 102, .7); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: .5rem 1.05rem; font-size: .85rem; }
.btn--danger { background: #dc2626; color: #fff; border-radius: var(--radius-sm); }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ---------- Header inteligente ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
  transition: background-color .3s var(--ease), box-shadow .3s, backdrop-filter .3s, color .3s;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-solid {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 4px 24px rgba(31, 17, 71, .1);
  color: var(--ink-strong);
}
.site-header.is-solid .site-header__bar { height: 62px; }
.site-header.is-solid .brand-logo img { content: url("/assets/img/logo-jeitogazin-roxo.png"); }
.site-header.is-solid .site-nav a { color: var(--ink-strong); }
.site-header.is-solid .site-nav a::after { background: var(--accent); }
.site-header.is-solid .icon-social { color: var(--ink-soft); }
.site-header.is-solid .burger span { background: var(--ink-strong); }

/* header transparente sobre o hero */
.site-header:not(.is-solid) { background: linear-gradient(180deg, rgba(31,17,71,.5), transparent); }

/* Conteúdo começa abaixo do header fixo. Heros/bandas roxas no topo "sobem"
   sob o header (negativo) e recompõem o espaço com padding interno, então o
   roxo passa por baixo do header transparente. */
main { padding-top: var(--header-h); }
body.has-hero main { padding-top: 0; }
body:not(.has-hero) main > .page-hero:first-child,
body:not(.has-hero) main > .band--brand:first-child,
body:not(.has-hero) main > article > .page-hero:first-child {
  margin-top: calc(-1 * var(--header-h));
}
body:not(.has-hero) main > .band--brand:first-child { padding-top: calc(var(--header-h) + clamp(30px, 5vw, 56px)); }

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo:hover { text-decoration: none; }
.brand-logo img { height: 34px; width: auto; display: block; transition: opacity .3s; }

.site-nav { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: .92rem; }
.site-nav a { color: #fff; position: relative; padding: 6px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: #fff; transition: right .28s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a:hover { text-decoration: none; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.icon-social { color: rgba(255, 255, 255, .82); display: inline-grid; place-items: center; transition: transform .2s var(--ease-out), color .2s; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.icon-social:hover { color: #fff; transform: translateY(-2px); text-decoration: none; }
.icon-social svg { width: 19px; height: 19px; }
.site-header.is-solid .icon-social { color: var(--ink-soft); }
.site-header.is-solid .icon-social:hover { color: var(--brand); }

.burger { display: none; width: 30px; height: 22px; background: none; border: 0; cursor: pointer; position: relative; padding: 0; }
.burger span { position: absolute; left: 0; right: 0; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s; }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
body.menu-open .burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 49; visibility: hidden; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(31, 17, 71, .5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
  background: var(--gradient); color: #fff; padding: 90px 28px 28px;
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.drawer__panel a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer__panel a:hover { text-decoration: none; color: rgba(255,255,255,.75); }
.drawer__social { display: flex; gap: 18px; margin-top: auto; padding-top: 20px; }
body.menu-open .drawer { visibility: visible; }
body.menu-open .drawer__overlay { opacity: 1; }
body.menu-open .drawer__panel { transform: none; }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .site-nav, .site-header__actions .icon-social, .site-header__actions .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Barra de progresso de scroll + voltar ao topo ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 60; transition: width .1s linear; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-dark); }

/* ---------- Hero rotador (contido) ---------- */
.hero-rotator { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(24px, 5vw, 56px)); padding-bottom: clamp(28px, 5vw, 60px); }
.hero-rotator::before { content: ""; position: absolute; top: -30%; right: -8%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
/* transição suave pro fundo claro da próxima seção — só a faixa de baixo (mesma altura do padding-bottom, nunca invade o texto/nav) */
.hero-rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(28px, 5vw, 60px); background: linear-gradient(to bottom, rgba(250, 249, 252, 0), var(--bg-soft)); pointer-events: none; }
.hero-rotator__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; min-height: 340px; }

/* coluna de texto — slides empilhados */
.hero-rotator__text { position: relative; min-height: 300px; display: grid; }
.hero-tslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; pointer-events: none; }
.hero-tslide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-tslide__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-light); margin-bottom: .9rem; }
.hero-tslide__title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; color: #fff; margin: 0 0 1rem; }
.hero-tslide__text { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.88); max-width: 32rem; margin: 0 0 1.8rem; }
.hero-tslide__cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* animação de entrada dos elementos do slide ativo */
.hero-tslide.is-active .hero-tslide__kicker { animation: heroIn .6s var(--ease) .05s both; }
.hero-tslide.is-active .hero-tslide__title { animation: heroIn .6s var(--ease) .14s both; }
.hero-tslide.is-active .hero-tslide__text { animation: heroIn .6s var(--ease) .22s both; }
.hero-tslide.is-active .hero-tslide__cta { animation: heroIn .6s var(--ease) .3s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* coluna de imagem — crossfade */
.hero-rotator__media { position: relative; aspect-ratio: 4 / 3; }
.hero-mslide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.hero-mslide.is-active { opacity: 1; }
.hero-mslide__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* navegação */
.hero-rotator__nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; margin-top: clamp(20px, 4vw, 34px); }
.hero-dots { display: flex; gap: 9px; }
.hero-dots button { width: 30px; height: 4px; border-radius: 3px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; position: relative; padding: 0; }
.hero-dots button.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: heroProg var(--hero-delay, 6s) linear forwards; }
@keyframes heroProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { margin-left: auto; display: flex; gap: 10px; }
.hero-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .2s var(--ease-out); }
.hero-arrows button:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: scale(1.08); }
@media (max-width: 900px) {
  .hero-rotator__inner { grid-template-columns: 1fr; }
  .hero-rotator__text { min-height: 0; }
  .hero-rotator__media { order: -1; margin-bottom: 8px; }
  .hero-arrows { display: none; }
}

/* legado hero lado-a-lado (fallback quando não há banners) */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: var(--header-h); }
.hero__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.hero__text { font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 26rem; margin-bottom: 2rem; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__media--placeholder { border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .45); font-family: var(--font-display); font-weight: 700; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* ---------- Links rápidos ---------- */
.quicklinks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quicklinks a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 18px 16px; font-family: var(--font-display);
  font-weight: 700; font-size: .92rem; color: var(--brand-dark);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .2s, background-color .2s;
}
.quicklinks a svg { color: var(--accent); transition: transform .22s var(--ease-out); }
.quicklinks a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; background: var(--gradient-soft); text-decoration: none; }
.quicklinks a:hover svg { transform: translateX(3px); }
@media (max-width: 1000px) { .quicklinks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .quicklinks { grid-template-columns: repeat(2, 1fr); } }

/* Números / contadores */
.numbers { text-align: center; }
.number-card__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--brand); line-height: 1; }
.number-card__label { margin-top: .4rem; color: var(--ink-soft); font-size: .95rem; }

/* Link com seta */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow svg { transition: transform .2s var(--ease-out); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Badges de app */
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.app-badge { display: inline-flex; border-radius: 8px; overflow: hidden; transition: transform .2s var(--ease-out), box-shadow .2s; }
.app-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); text-decoration: none; }
.app-badge svg { display: block; }
.site-footer .app-badge { border: 1px solid rgba(255,255,255,.22); }
.site-footer .app-badges { margin-top: .8rem; flex-wrap: nowrap; gap: 8px; }
.site-footer .app-badge svg { width: 118px; height: auto; }
@media (max-width: 900px) { .site-footer .app-badges { flex-wrap: wrap; } }

/* CTA do app na home */
.app-cta {
  border-radius: var(--radius-lg); background: var(--gradient); color: #fff;
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
}
.app-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%); }
.app-cta h2 { color: #fff; margin: 0 0 .4rem; }
.app-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 30rem; }
.app-cta__text { position: relative; z-index: 1; }
.app-cta__art { display: grid; place-items: center; position: relative; z-index: 1; }
.app-cta__phone {
  width: 130px; height: 130px; border-radius: 30px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center;
  transform: rotate(-6deg); box-shadow: 0 20px 50px -10px rgba(0,0,0,.4);
}
.app-cta__phone img { width: 84px; border-radius: 20px; }
@media (max-width: 720px) { .app-cta { grid-template-columns: 1fr; } .app-cta__art { display: none; } }

/* Painel de CTA */
.cta-panel {
  border-radius: var(--radius-lg); background: var(--gradient); color: #fff;
  padding: clamp(28px, 5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-brand);
}
.cta-panel h2 { color: #fff; margin: 0 0 .3rem; }
.cta-panel p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Card de artigo ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card__img { aspect-ratio: 16 / 10; background: #efeef4; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
.post-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.post-card__title a { color: var(--ink-strong); }
.post-card__title a:hover { color: var(--brand); text-decoration: none; }
.post-card__excerpt { font-size: .9rem; color: var(--ink-soft); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__date { margin-top: 16px; font-size: .78rem; color: #9891ad; }

/* ---------- Filtros / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink-soft); }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Paginação ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink-soft); }
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Artigo ---------- */
.article__header { background: var(--gradient); color: #fff; }
.article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: rgba(255, 255, 255, .82); margin-top: 1rem; }
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.article__cover { width: 100%; border-radius: var(--radius-lg); margin: -60px 0 2.8rem; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
@media (max-width: 700px) { .article__cover { margin-top: -32px; } }
.article__lead { font-size: 1.28rem; color: var(--ink-strong); line-height: 1.6; margin: 0 0 1.8rem; padding-bottom: 1.8rem; border-bottom: 2px solid var(--brand-100); font-weight: 600; font-style: normal; font-family: var(--font-display); }

.breadcrumb { font-size: .84rem; color: rgba(255, 255, 255, .72); margin-bottom: 1rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: rgba(255, 255, 255, .72); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }
.breadcrumb .is-current { color: #fff; opacity: 1; }

/* Barra de progresso de leitura do artigo */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.read-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Compartilhar — barra em destaque no fim do artigo */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 3.2rem; padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.share__label { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); font-size: 1rem; margin-right: 4px; width: 100%; }
@media (min-width: 560px) { .share__label { width: auto; } }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.share__btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.share__btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share__btn--in:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-copy.is-done { background: #16a34a; color: #fff; border-color: #16a34a; }

/* Texto rico vindo do banco — tipografia editorial */
.prose { font-size: 1.125rem; line-height: 1.78; color: #2b2b33; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink-strong); line-height: 1.28; scroll-margin-top: 90px; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .7em; padding-top: .3em; }
.prose h3 { font-size: 1.32rem; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.4em; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: .55em; padding-left: .3em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: transparent; }
.prose strong { color: var(--ink-strong); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 2em 0; box-shadow: var(--shadow); }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: .7rem; font-size: .88rem; color: #7a7a86; text-align: center; font-style: italic; }
.prose blockquote {
  margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--accent);
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.5;
  color: var(--ink-strong); font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); margin: 2em 0; border: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7em .9em; text-align: left; }
.prose th { background: var(--brand-50); font-family: var(--font-display); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

/* ---------- Layout artigo + sumário ---------- */
.article-shell { max-width: 1100px; margin-inline: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.article-main { min-width: 0; max-width: 730px; margin-inline: auto; }
@media (min-width: 1120px) {
  .article-layout.has-toc { grid-template-columns: 230px minmax(0, 730px); justify-content: center; gap: 64px; }
  .article-layout.has-toc .article-main { margin-inline: 0; }
  .article-layout.has-toc .toc { order: -1; }
}
.toc { position: sticky; top: 104px; align-self: start; font-size: .88rem; }
.toc__title { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 .8rem; }
.toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc nav a { color: var(--ink-soft); padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; transition: color .18s, border-color .18s; }
.toc nav a:hover { color: var(--ink-strong); text-decoration: none; }
.toc nav a.is-active { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.toc nav a.toc__sub { padding-left: 26px; font-size: .84rem; }
.toc__share { display: flex; gap: 8px; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.toc__share a, .toc__share button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: color .2s, border-color .2s, transform .2s var(--ease-out); }
.toc__share a:hover, .toc__share button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 1119px) {
  .toc { position: static; top: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 2.4rem; }
  .toc nav { border: 0; }
  .toc nav a { border: 0; padding-left: 0; }
  .toc__share { display: none; }
}

/* ---------- Bloco do autor ---------- */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 3rem; padding: 24px; background: var(--gradient-soft); border-radius: var(--radius); }
.author-box__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__avatar--initial { display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.author-box__name { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); margin: 0 0 .3rem; }
.author-box__bio { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .6rem; }

/* ---------- Artigo em destaque no blog ---------- */
.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; box-shadow: var(--shadow); }
.featured-post__img { overflow: hidden; min-height: 320px; }
.featured-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.featured-post:hover .featured-post__img img { transform: scale(1.04); }
.featured-post__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.featured-post__tag { align-self: flex-start; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; margin-bottom: 1rem; }
.featured-post__title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: .4rem 0 .8rem; }
.featured-post__title a { color: var(--ink-strong); }
.featured-post__title a:hover { color: var(--brand); text-decoration: none; }
.featured-post__excerpt { color: var(--ink-soft); flex: 1; }
.featured-post__meta { display: flex; gap: 8px; font-size: .82rem; color: #9891ad; margin: 1rem 0 1.2rem; }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } .featured-post__img { min-height: 220px; aspect-ratio: 16/9; } }

/* ---------- Busca ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(31,17,71,.65); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
.search-overlay__close { position: absolute; top: 24px; right: 30px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.search-overlay__form { display: flex; gap: 10px; width: min(640px, 100%); }
.search-overlay__form input { flex: 1; padding: 1.1rem 1.3rem; border: 0; border-radius: 999px; font-size: 1.1rem; }
.search-overlay__form button { padding: 0 1.8rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.search-inline { display: flex; gap: 8px; margin-top: 1rem; max-width: 460px; }
.search-inline input { flex: 1; padding: .8rem 1.1rem; border: 0; border-radius: 999px; font-size: 1rem; }
.search-inline button { width: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Embed do Instagram (widget de terceiros) ---------- */
.instagram-embed { min-height: 120px; }
.instagram-embed iframe { max-width: 100%; border: 0; }

/* ---------- Grid / cards de vídeo ---------- */
.video-card { display: flex; flex-direction: column; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.video-card__thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out), opacity .3s; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); opacity: .85; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .25s var(--ease-out); }
.video-card:hover .video-card__play { transform: scale(1.12); }
.video-card__title { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); line-height: 1.3; }

.video-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 5, 30, .92); display: grid; place-items: center; padding: 24px; animation: fadeIn .2s ease; }
.video-overlay__frame { width: min(1000px, 94vw); aspect-ratio: 16 / 9; }
.video-overlay__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.video-overlay__close { position: absolute; top: 20px; right: 30px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15, 8, 40, .93); display: grid; place-items: center; padding: 40px; animation: fadeIn .18s ease; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 20px; right: 30px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2.4rem; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; transition: background-color .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__prev { left: 24px; } .lightbox__next { right: 24px; }
@media (max-width: 640px) { .lightbox__nav { display: none; } }

/* ---------- Accordion / FAQ (details nativo) ---------- */
.faq details, details.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq summary, details.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker, details.faq-item summary::-webkit-details-marker { display: none; }
.faq summary::after, details.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after, details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary), details.faq-item > :not(summary) { padding: 0 22px 20px; color: var(--ink-soft); }
.prose details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 1.5em 0; padding: 0; }
.prose details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink-strong); }
.prose details[open] summary { border-bottom: 1px solid var(--line); }
.prose details > :not(summary) { padding: 14px 18px; }

/* ---------- Abas ---------- */
.tabs__list { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 1.6rem; overflow-x: auto; }
.tabs__list [role="tab"] { padding: 12px 20px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--brand); border-color: var(--brand); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); }
.timeline__item { position: relative; padding-bottom: 32px; }
.timeline__item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline__year { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.timeline__item h3 { margin: .2rem 0 .4rem; }

/* ---------- Guias / cards de download ---------- */
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .26s var(--ease-out), box-shadow .26s var(--ease-out); }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-card__cover { aspect-ratio: 3 / 4; background: #efeef4; }
.guide-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Dimensões / cards com ícone (página GPTW) ---------- */
.dim-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 2.2rem 0; }
.dim-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: left; transition: transform .26s var(--ease-out), box-shadow .26s var(--ease-out), border-color .2s; }
.dim-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dim-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gradient-soft); color: var(--brand); margin-bottom: 16px; }
.dim-card h3 { margin: 0 0 .5rem; font-size: 1.08rem; color: var(--ink-strong); }
.dim-card p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.6; }
.dim-lead { max-width: 44rem; color: var(--ink-soft); font-size: 1.05rem; }

/* faixa de números de destaque (fora da home) */
.stat-strip { margin-block: clamp(40px, 6vw, 64px); }
.stat-strip .number-card { background: var(--bg-soft); border-radius: var(--radius); padding: 30px 18px; }
.stat-strip .number-card__value { margin-bottom: .3rem; }
.stat-strip .number-card__label { margin-top: 0; font-size: .86rem; line-height: 1.4; }

/* painel de citação em destaque */
.quote-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--gradient); color: #fff; padding: clamp(36px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-brand); }
.quote-panel::after { content: ""; position: absolute; left: -60px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.quote-panel p { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto 1.1em; font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,.92); }
.quote-panel p:last-child { margin-bottom: 0; }
.quote-panel__final { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important; color: #fff !important; }

/* ---------- Formulários ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid #cfcadd; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---------- CTA box ---------- */
.cta-box { border-radius: 24px; background: var(--brand-50); border: 1px solid var(--brand-100); padding: clamp(24px, 5vw, 48px); text-align: center; }
.cta-box h2 { color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .75); margin-top: 110px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 60px; }
.site-footer__brand p { font-size: .92rem; line-height: 1.7; max-width: 24rem; }
.site-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.site-footer h3 { color: #fff; font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.site-footer__cta p { font-size: .9rem; margin-bottom: 1rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.site-footer__bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 404 ---------- */
.error-page { position: relative; text-align: center; padding-block: clamp(80px, 14vw, 150px); overflow: hidden; }
.error-page .wrap { position: relative; z-index: 1; max-width: 560px; }
.error-page h1 { margin-bottom: .6rem; }
.error-page p { color: var(--ink-soft); max-width: 30rem; margin-inline: auto; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.error-page__bg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(14rem, 42vw, 34rem);
  line-height: 1; color: var(--brand-50); z-index: 0; user-select: none; pointer-events: none;
}
.error-page__code { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--brand); margin-bottom: .5rem; }

/* ---------- Animações de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal--left { transform: translateX(-32px); }
  .reveal--right { transform: translateX(32px); }
  .reveal--zoom { transform: scale(.94); }
  /* cascata: filhos diretos de [data-stagger] entram em sequência */
  [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-stagger].is-visible > * { opacity: 1; transform: none; }
  [data-stagger].is-visible > *:nth-child(1) { transition-delay: .05s; }
  [data-stagger].is-visible > *:nth-child(2) { transition-delay: .12s; }
  [data-stagger].is-visible > *:nth-child(3) { transition-delay: .19s; }
  [data-stagger].is-visible > *:nth-child(4) { transition-delay: .26s; }
  [data-stagger].is-visible > *:nth-child(5) { transition-delay: .33s; }
  [data-stagger].is-visible > *:nth-child(6) { transition-delay: .40s; }
  [data-stagger].is-visible > *:nth-child(n+7) { transition-delay: .46s; }

  /* transição suave entre páginas */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fadeOut .18s ease both; }
  ::view-transition-new(root) { animation: fadeIn .32s var(--ease) both; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* contador animado */
.counter { font-variant-numeric: tabular-nums; }

/* =====================================================================
   PAINEL ADMINISTRATIVO
   ===================================================================== */
.admin { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; background: #f4f2f8; }
.admin__side { background: var(--brand-dark); color: rgba(255, 255, 255, .82); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin__brand { margin-bottom: 28px; padding-left: 6px; }
.admin__nav { display: grid; gap: 2px; }
.admin__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255, 255, 255, .82); font-size: .9rem; font-weight: 500; }
.admin__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin__nav a.is-active { background: var(--accent); color: #fff; }
.admin__nav .sep { margin: 14px 0 6px; padding-left: 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .4); }
.admin__main { display: flex; flex-direction: column; min-width: 0; }
.admin__top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin__top h1 { font-size: 1.15rem; margin: 0; }
.admin__body { padding: 28px; }
.admin__logout { font-size: .85rem; color: var(--ink-soft); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__pad { padding: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: block; transition: .12s; }
a.stat:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.stat__num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.stat__label { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.dash-cols { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { background: #faf9fc; font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.table tr:last-child td { border-bottom: 0; }
.table td .row-actions { display: flex; gap: 8px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge--ok { background: #ecfdf5; color: #065f46; }
.badge--draft { background: #f3f4f6; color: #4b5563; }

.admin-form { max-width: 820px; }
.admin-form .field-row--thirds { grid-template-columns: repeat(3, 1fr); }
.admin-form__actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.help { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.media-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.media-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.media-grid figcaption { padding: 6px 8px; font-size: .72rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Campo de imagem com abas --- */
.midia-field__preview { margin: 8px 0; }
.midia-field__preview img { max-height: 150px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.midia-field__tabs { display: inline-flex; gap: 2px; background: #ece9f4; padding: 3px; border-radius: 8px; margin-bottom: 8px; }
.midia-field__tabs button { padding: 5px 12px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.midia-field__tabs button.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.midia-field select, .midia-field input[type=file] { width: 100%; padding: .55rem .7rem; border: 1px solid #cfcadd; border-radius: 8px; font: inherit; background: #fff; }

/* --- Barra de ferramentas / abas / filtros --- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar__tabs { display: flex; gap: 4px; background: #ece9f4; padding: 4px; border-radius: 10px; }
.toolbar__tabs a { padding: 7px 14px; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.toolbar__tabs a:hover { color: var(--ink-strong); text-decoration: none; }
.toolbar__tabs a.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.toolbar__tabs .count { display: inline-block; margin-left: 6px; font-size: .72rem; background: rgba(0,0,0,.08); padding: 0 6px; border-radius: 999px; }
.toolbar__tabs a.is-active .count { background: var(--brand-100); }

.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.filters input[type=search], .filters select { padding: .5rem .75rem; border: 1px solid #cfcadd; border-radius: 8px; font: inherit; background: #fff; }
.filters input[type=search] { min-width: 220px; }
.filters__clear { font-size: .85rem; color: var(--ink-soft); }

.ico { vertical-align: -2px; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.row-title { font-weight: 600; color: var(--ink-strong); }
.row-title:hover { color: var(--brand); text-decoration: none; }
.row-sub { font-size: .76rem; color: #9891ad; margin-top: 2px; }

.row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row-actions form { display: inline-flex; margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: .12s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.icon-btn--danger:hover { border-color: #dc2626; color: #dc2626; }

.pager { display: flex; gap: 5px; justify-content: center; margin-top: 20px; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Form do artigo: layout 2 colunas + barra de salvar fixa --- */
.editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.editor-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.editor-side .card__pad { padding: 16px; }
.editor-side h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 1080px) { .editor-grid { grid-template-columns: 1fr; } .editor-side { position: static; } }
.savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 24px -28px -28px; padding: 14px 28px; display: flex; gap: 10px; align-items: center; z-index: 5; }
.savebar .spacer { flex: 1; }
.char-count { font-size: .75rem; color: var(--ink-soft); margin-top: 3px; }
.char-count.over { color: #dc2626; }

/* --- Preview do Google --- */
.serp { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.serp__url { color: #202124; font-size: .8rem; }
.serp__title { color: #1a0dab; font-size: 1.05rem; line-height: 1.3; margin: 2px 0; }
.serp__desc { color: #4d5156; font-size: .82rem; line-height: 1.5; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--gradient); padding: 20px; }
.login-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 380px; }
.login-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 1.5rem; }

@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin__nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin__nav .sep { display: none; }
}
