:root {
  /* Paleta AgenciaLink — visual claro/minimal (base de conhecimento) */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-deep: #0f172a;
  --brand-navy: #1e293b;
  --brand-ink: #0f172a;
  --brand-soft: #f1f5f9;
  --brand-mist: #f8fafc;
  --accent: #6366f1;
  --accent-teal: #14b8a6;
  --ink: #0f172a;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;
  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --success: #14b8a6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(14, 165, 233, 0.12);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:not(.admin-body) {
  display: flex;
  flex-direction: column;
}

body:not(.admin-body) > main {
  flex: 1 0 auto;
}

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

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.container--wide {
  width: min(100% - 2rem, 1280px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px) saturate(1.1);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.35rem;
  color: var(--ink);
}

.brand__icon {
  display: none;
}

.brand__logo {
  height: 42px;
  width: 152px;
  max-width: 160px;
  display: block;
  background: url(/assets/logo.webp) left center / contain no-repeat;
}
img.brand__logo {
  width: auto;
  height: 42px;
  object-fit: contain;
  background: none;
}

.brand__wordmark {
  display: none;
}

.brand__agencia {
  color: var(--brand-deep);
}

.brand__link {
  color: var(--brand);
}

.brand__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--ink-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.site-header__search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-header__search:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: none;
}

.btn-primary:hover {
  color: white;
  background: var(--brand-hover);
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hero-brand-row__icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: url('/assets/icon.png') center / cover no-repeat;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  filter: brightness(1.05);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-elevated);
}

.hero--home {
  padding: 4.5rem 0 3.5rem;
  border-bottom: none;
  background: var(--surface-elevated);
  text-align: center;
}

.hero--home .hero__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.hero--home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--brand-deep);
  margin: 0 0 0.85rem;
  max-width: none;
  white-space: nowrap;
}

.hero--home .hero__lead {
  margin: 0 auto 2rem;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero::before,
.hero::after,
.hero__orb {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero__logo {
  height: clamp(42px, 7vw, 64px);
  width: auto;
  margin-bottom: 1.1rem;
  animation: rise 0.75s var(--ease) 0.05s both;
  filter: drop-shadow(0 10px 24px rgba(33, 50, 91, 0.12));
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: var(--brand-deep);
  animation: rise 0.8s var(--ease) 0.08s both;
}

.hero__brand .accent {
  color: var(--brand);
  position: relative;
}

.hero__brand .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--brand);
  border-radius: 2px;
  opacity: 0.9;
}

.hero__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.65rem;
  max-width: 28ch;
  animation: rise 0.8s var(--ease) 0.14s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  max-width: 48ch;
  font-size: 1.05rem;
  animation: rise 0.8s var(--ease) 0.2s both;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-bar--hero {
  max-width: 100%;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.search-bar__icon {
  flex-shrink: 0;
  color: var(--ink-faint);
}

.search-bar--hero .btn-primary {
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
}

.search-bar:focus-within {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
  font-size: 1rem;
}

.search-bar .btn,
.search-bar__submit {
  flex-shrink: 0;
}

.search-bar__submit-icon {
  display: none;
}

.search-hero .hero__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.search-hero .search-bar {
  margin-left: auto;
  margin-right: auto;
}

.search-suggest {
  margin-top: 1.25rem;
}

.search-suggest__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.search-suggest__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.search-suggest__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft, #eff6ff);
  color: var(--brand, #2563eb);
  font-size: 0.86rem;
  font-weight: 600;
}

.search-suggest__chip:hover {
  background: #dbeafe;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.posts-list .post-card {
  width: 100%;
}

.app-tabbar {
  display: none;
}

.section {
  padding: 2.5rem 0;
}

.section--products {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.section--faq {
  padding: 3rem 0 4rem;
  background: var(--surface);
}

.container--narrow {
  max-width: 720px;
}

.section__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.section__link:hover {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section__title--center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  padding-left: 0;
}

.section__title::before {
  display: none;
}

.section__sub {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Product cards (home) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
  color: var(--ink);
}

.product-card__blob {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02) 70%);
  pointer-events: none;
}

.product-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--brand);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.product-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  position: relative;
  z-index: 1;
}

.product-card__desc {
  flex: 1;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  position: relative;
  z-index: 1;
}

.product-card__cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  position: relative;
  z-index: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

.tool-tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tool-tile::before {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.18), transparent 70%);
  transition: transform 0.45s var(--ease);
}

.tool-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 255, 0.35);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.tool-tile:hover::before {
  transform: scale(1.5) translate(-10px, -10px);
}

.tool-tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #00a8ff, #0086e0);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 18px rgba(0, 168, 255, 0.3);
  transition: transform 0.3s var(--ease);
}

.tool-tile:hover .tool-tile__icon {
  transform: scale(1.08) rotate(-3deg);
}

.tool-tile__name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-acc {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-acc.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-acc__trigger:hover {
  background: rgba(37, 99, 235, 0.03);
}

.faq-acc__q {
  display: none;
}

.faq-acc__title {
  flex: 1;
}

.faq-acc__chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
}

.faq-acc.is-open .faq-acc__chevron {
  transform: rotate(180deg);
  background: #eff6ff;
  color: var(--brand);
}

.faq-acc__panel {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-acc.is-open .faq-acc__panel {
  display: block;
  animation: rise 0.35s var(--ease) both;
}

.faq-acc__answer {
  margin: 0 0 0.85rem;
  color: #2a3441;
}

.faq-acc__refs-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.faq-acc__refs {
  display: grid;
  gap: 0.35rem;
}

.faq-acc__refs a {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

.faq-acc__refs a:hover {
  text-decoration: underline;
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.channel {
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-deep) 50%, #1a4a7a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 14px 30px rgba(33, 50, 91, 0.25);
}

.channel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 168, 255, 0.25), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.channel:hover {
  transform: translateY(-6px) scale(1.02);
  color: white;
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.28);
}

.channel:hover::after {
  transform: translateX(120%);
}

.channel__icon {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  opacity: 0.9;
  font-family: var(--font-display);
  color: var(--brand);
}

.channel__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.post-card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.post-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.post-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 168, 255, 0.12);
  color: #0077b8;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip-private {
  background: rgba(237, 76, 120, 0.12);
  color: #c23a60;
}

.post-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--brand-deep);
}

.post-card__title a:hover {
  color: var(--brand);
}

.post-card__excerpt {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.article {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: none;
  max-width: 48rem;
  margin-inline: auto;
}

.post-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr) 15.5rem;
  gap: 1.75rem;
  align-items: start;
}

.post-layout .article {
  max-width: none;
  margin-inline: 0;
  min-width: 0;
}

.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem 0 0.25rem;
}

.post-aside__block + .post-aside__block {
  margin-top: 1.75rem;
}

.post-aside__title {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.post-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-aside__list li + li {
  border-top: 1px solid var(--line);
}

.post-aside__list a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
}

.post-aside__list a:hover,
.post-aside__list a[aria-current='page'] {
  color: var(--brand);
}

.post-aside__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
  color: var(--ink);
}

.article__content {
  font-size: 1rem;
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.7;
}

.article__content h1,
.article__content h2,
.article__content h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 1.75rem;
  color: var(--brand-deep);
}

.article__content [style*='color'],
.article__content font[color] {
  /* cores inline do editor/WP prevalecem sobre o tema */
}

.article__content img,
.article__content video,
.article__content iframe,
.article__content embed,
.article__content object {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.article__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
}

.article__content figure,
.article__content .wp-block-video,
.article__content .wp-block-embed,
.article__content .wp-block-image,
.article__content .wp-block-media-text,
.article__content .wp-block-columns {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.article__content figure video,
.article__content figure img,
.article__content figure iframe {
  margin-left: auto;
  margin-right: auto;
}

.article__content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article__content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__content blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
  color: #334155;
}

/* Callouts, código e embeds (editor + site) */
.kb-callout {
  margin: 1.35rem 0;
  padding: 1.05rem 1.2rem 1.05rem 1.35rem;
  border-radius: var(--radius, 10px);
  border: 1px solid transparent;
  overflow: hidden;
}

.kb-callout__inner {
  padding: 0;
}

.kb-callout--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left: 4px solid #2563eb;
}

.kb-callout--warn {
  background: #fef2f2;
  border-color: #fecaca;
  border-left: 4px solid #dc2626;
}

.kb-callout p {
  margin: 0 0 0.5rem;
}

.kb-callout p:last-child {
  margin-bottom: 0;
}

.kb-callout strong {
  color: var(--brand-deep);
}

.kb-callout--warn strong {
  color: #991b1b;
}

.kb-code {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius, 10px);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.kb-code code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.kb-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1rem 0;
  border-radius: var(--radius, 10px);
  overflow: hidden;
  background: #0f172a;
}

.kb-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.site-footer {
  margin-top: auto;
  padding: 2.75rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(33, 50, 91, 0.04));
  border-top: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer--home {
  margin-top: auto;
  padding: 3rem 0 2.25rem;
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
}

.site-footer__centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.site-footer--home .site-footer__logo {
  margin-bottom: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.35rem;
  margin: 0.5rem 0 0.85rem;
}

.site-footer__nav a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--brand);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 0.6rem;
  object-fit: contain;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer__contacts a {
  color: var(--brand-deep);
  font-weight: 600;
}

.site-footer__contacts a:hover {
  color: var(--brand);
}

.channel small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.78rem;
}

.empty-state,
.loading-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  animation: spin 0.7s linear infinite;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.note-banner {
  background: rgba(0, 168, 255, 0.08);
  border: 1px solid rgba(0, 168, 255, 0.25);
  color: var(--brand-deep);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.05);
  }
}

@keyframes aurora {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(20px) scale(1.05);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 168, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 168, 255, 0);
  }
}

@keyframes underline-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-aside {
    position: static;
    padding: 0;
  }

  .post-layout .article {
    order: -1;
  }

  .post-aside--right {
    order: 0;
  }

  .post-aside--left {
    order: 1;
  }
}

@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero--home .hero__title {
    white-space: normal;
  }
}

@media (max-width: 800px) {
  .channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .app-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    backdrop-filter: blur(12px);
  }

  .app-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.2rem;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 12px;
  }

  .app-tabbar__item.is-active {
    color: var(--brand);
    background: var(--brand-soft);
  }

  body {
    padding-bottom: 4.75rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero--home {
    padding: 3rem 0 2.5rem;
  }
}

@media (max-width: 520px) {
  .channels {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: row;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  }

  .search-bar--hero {
    align-items: center;
  }

  .search-bar__icon {
    display: block;
  }

  .search-bar .btn,
  .search-bar__submit {
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .search-bar__submit-text {
    display: none;
  }

  .search-bar__submit-icon {
    display: block;
  }

  .app-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    backdrop-filter: blur(12px);
  }

  .app-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.2rem;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 12px;
  }

  .app-tabbar__item.is-active {
    color: var(--brand);
    background: var(--brand-soft);
  }

  body {
    padding-bottom: 4.75rem;
  }
}

.error-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
}

.error-404[hidden] {
  display: none !important;
}

body.error-404-pending .error-404 {
  display: none !important;
}

.error-404__box {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
}

.error-404__code {
  margin: 0 0 0.35rem;
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
}

.error-404__box .hero__title {
  max-width: none;
  margin: 0 auto 0.65rem;
  text-align: center;
}

.error-404__box .hero__lead {
  max-width: none;
  margin: 0 auto 0;
  text-align: center;
}

.error-404__box .search-bar {
  width: 100%;
  max-width: 36rem;
  margin: 1.5rem auto 0;
}

.error-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin: 1.5rem auto 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
