/* ==========================================================================
   HubBackoffice — Home v4
   Self-contained stylesheet. Inspired by Stripe Docs, Linear, Substack, DEV.to.
   Prefix .hb4 keeps everything isolated from legacy layout.css.
   ========================================================================== */

.hb4 {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F4F4F2;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;

  --ink: #0B1220;
  --ink-2: #1F2937;
  --muted: #64748B;
  --muted-2: #94A3B8;

  --accent: #2563EB;
  --accent-ink: #1D4ED8;
  --accent-soft: #EFF4FF;

  --emerald: #10B981;
  --violet: #7C3AED;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --slate: #475569;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -16px rgba(15, 23, 42, 0.18);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.hb4 a:not(.hb4-btn) {
  color: inherit;
  text-decoration: none;
}
.hb4 a.hb4-btn { text-decoration: none; }

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

.hb4 .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hb4-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 9999;
}
.hb4-skip:focus { left: 0.5rem; top: 0.5rem; }

.hb4-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------- Buttons ------------------------- */
.hb4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease),
              border-color 150ms var(--ease), transform 150ms var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.hb4-btn--primary {
  background: var(--ink);
  color: #fff;
}
.hb4-btn--primary:hover { background: #000; }
.hb4-btn--primary:active { transform: translateY(1px); }

.hb4-btn--lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

/* ------------------------- Announcement ------------------------- */
.hb4-announce {
  background: linear-gradient(90deg, #0B1220 0%, #1E293B 100%);
  color: #E2E8F0;
  font-size: 0.875rem;
}
.hb4-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 24px;
  flex-wrap: wrap;
}
.hb4-announce__pill {
  background: var(--emerald);
  color: #062A22;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.hb4-announce__text { color: #CBD5E1; }
.hb4-announce__link {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hb4-announce__link:hover { color: #93C5FD; }

/* ------------------------- Navbar ------------------------- */
.hb4-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.hb4-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.hb4-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hb4-nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0B1220, #2563EB);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hb4-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}
.hb4-nav__links a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.hb4-nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.hb4-nav__links a.is-active { color: var(--accent-ink); background: var(--accent-soft); }
.hb4-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hb4-nav__search {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.hb4-nav__search:hover { border-color: var(--border-strong); }
.hb4-nav__search kbd {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--muted);
}
.hb4-nav__burger {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ------------------------- Hero ------------------------- */
.hb4-hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(16, 185, 129, 0.07), transparent 55%);
}
.hb4-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hb4-hero__eyebrow i { color: var(--accent); }
.hb4-hero__title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 1.25rem;
  max-width: 880px;
  color: var(--ink);
}
.hb4-hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hb4-hero__lead {
  max-width: 700px;
  margin: 0 auto 2.25rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}
.hb4-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  box-shadow: var(--shadow);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.hb4-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}
.hb4-search__icon { color: var(--muted); font-size: 1.1rem; }
.hb4-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.25rem;
  outline: none;
  color: var(--ink);
}
.hb4-search input::placeholder { color: var(--muted-2); }

.hb4-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.hb4-hero__chips-label { color: var(--muted); margin-right: 0.25rem; }
.hb4-hero__chips a {
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color 120ms var(--ease), color 120ms var(--ease);
}
.hb4-hero__chips a:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------- Ad slots ------------------------- */
.hb4-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  min-height: 96px;
  margin: 32px auto;
  padding: 0 24px;
  overflow: hidden;
}

.hb4-ad--ads-top-banner,
.hb4-ad--ads-news-feed,
.hb4-ad--ads-category-feed {
  min-height: 112px;
}

.hb4-ad--ads-in-article,
.hb4-ad--ads-end-article {
  min-height: 152px;
  margin: 40px auto;
  padding: 0;
}

.hb4-ad .adsbygoogle {
  width: 100%;
  min-height: inherit;
}

.hb4-ad--placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(100, 116, 139, 0.06),
      rgba(100, 116, 139, 0.06) 10px,
      rgba(100, 116, 139, 0.02) 10px,
      rgba(100, 116, 139, 0.02) 20px
    );
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ------------------------- Section primitives ------------------------- */
.hb4-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hb4-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.hb4-section__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.hb4-section__link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 120ms var(--ease);
}
.hb4-section__link:hover { color: var(--accent); }

/* ------------------------- Featured editorial ------------------------- */
.hb4-featured { padding: 40px 0 32px; }
.hb4-feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.hb4-feat:hover { box-shadow: var(--shadow-lg); }
.hb4-feat__media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.2), transparent 60%),
    linear-gradient(135deg, #0B1220 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hb4-feat__media-inner i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.9);
}
.hb4-feat__body { padding: 2.25rem 2.5rem 2.25rem 0; }
.hb4-feat__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hb4-feat__dot { color: var(--muted-2); }
.hb4-feat__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.hb4-feat__excerpt {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.hb4-feat__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hb4-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.hb4-feat__authorname { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.hb4-feat__authorrole { color: var(--muted); font-size: 0.8125rem; }

/* ------------------------- Tags ------------------------- */
.hb4-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border);
}
.hb4-tag--tributario { background: #EEF2FF; color: #3730A3; border-color: #E0E7FF; }
.hb4-tag--fiscal     { background: #ECFDF5; color: #065F46; border-color: #D1FAE5; }
.hb4-tag--contabil   { background: #FEF3C7; color: #78350F; border-color: #FDE68A; }
.hb4-tag--financeiro { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.hb4-tag--importacao { background: #FFE4E6; color: #9F1239; border-color: #FECDD3; }

/* ------------------------- Categorias ------------------------- */
.hb4-cats { padding: 48px 0; }
.hb4-cats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hb4-cat {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease),
              box-shadow 180ms var(--ease);
}
.hb4-cat:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hb4-cat__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.hb4-cat__icon--blue    { background: #DBEAFE; color: #1D4ED8; }
.hb4-cat__icon--violet  { background: #EDE9FE; color: #6D28D9; }
.hb4-cat__icon--emerald { background: #D1FAE5; color: #047857; }
.hb4-cat__icon--amber   { background: #FEF3C7; color: #B45309; }
.hb4-cat__icon--rose    { background: #FFE4E6; color: #BE123C; }
.hb4-cat__icon--slate   { background: #E2E8F0; color: #334155; }
.hb4-cat__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.hb4-cat__text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.hb4-cat__count {
  font-size: 0.8125rem;
  color: var(--muted-2);
  font-weight: 500;
}

/* ------------------------- Lista de artigos ------------------------- */
.hb4-latest { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hb4-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.hb4-item { border-bottom: 1px solid var(--border); }
.hb4-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0;
  transition: padding 150ms var(--ease);
}
.hb4-item__link:hover { padding-left: 0.5rem; }
.hb4-item__link:hover .hb4-item__title { color: var(--accent); }
.hb4-item__link:hover .hb4-item__arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.hb4-item__body { flex: 1; min-width: 0; }
.hb4-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.hb4-item__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  transition: color 120ms var(--ease);
}
.hb4-item__excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.hb4-item__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}

/* ------------------------- Trilhas ------------------------- */
.hb4-tracks { padding: 56px 0; }
.hb4-tracks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hb4-track {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.hb4-track:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.hb4-track__num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hb4-track__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--ink);
}
.hb4-track__text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
  flex: 1;
}
.hb4-track__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.hb4-track__footer a {
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 120ms var(--ease);
}
.hb4-track__footer a:hover { color: var(--accent); }

/* ------------------------- Newsletter ------------------------- */
.hb4-news { padding: 48px 0 72px; }
.hb4-news__card {
  background: linear-gradient(135deg, #0B1220 0%, #1E293B 100%);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hb4-news__card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  pointer-events: none;
}
.hb4-news__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.hb4-news__lead {
  color: #CBD5E1;
  font-size: 1.0625rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.hb4-news__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: #E2E8F0;
}
.hb4-news__bullets li { display: flex; align-items: center; gap: 0.6rem; }
.hb4-news__bullets i { color: var(--emerald); font-size: 1.05rem; }
.hb4-news__form { position: relative; z-index: 1; }
.hb4-news__form input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.hb4-news__form input::placeholder { color: #94A3B8; }
.hb4-news__form input:focus { border-color: #93C5FD; background: rgba(255, 255, 255, 0.12); }
.hb4-news__form button { width: 100%; }
.hb4-news__form .hb4-btn--primary { background: #fff; color: var(--ink); }
.hb4-news__form .hb4-btn--primary:hover { background: #F1F5F9; }
.hb4-news__form small { display: block; margin-top: 0.75rem; color: #94A3B8; font-size: 0.8125rem; }

/* ------------------------- Footer ------------------------- */
.hb4-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 48px;
}
.hb4-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 24px 2rem;
}
.hb4-footer__brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.55;
}
.hb4-footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.hb4-footer__col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 120ms var(--ease);
}
.hb4-footer__col a:hover { color: var(--ink); }
.hb4-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

/* ------------------------- Page hero (sobre/contato) ------------------------- */
.hb4-pagehero {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.05), transparent 55%);
}
.hb4-pagehero__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 1rem;
  max-width: 820px;
  color: var(--ink);
}
.hb4-pagehero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hb4-pagehero__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ------------------------- Prose (about) ------------------------- */
.hb4-prose { padding: 32px 0 72px; }
.hb4-prose__container { max-width: 760px; }
.hb4-prose p,
.hb4-prose ul,
.hb4-prose ol {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.hb4-prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  color: var(--ink);
}
.hb4-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.hb4-prose__dropcap::first-letter {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 600;
  float: left;
  line-height: 1;
  margin: 0.1rem 0.6rem 0 0;
  color: var(--accent);
}
.hb4-prose__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 1.5rem 0 1rem;
}
.hb4-prose__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.hb4-prose__card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.hb4-prose__card .hb4-cat__icon {
  margin-bottom: 0.75rem;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}
.hb4-prose__principles {
  list-style: none;
  counter-reset: hb4p;
  padding: 0;
  margin: 1.25rem 0;
}
.hb4-prose__principles li {
  counter-increment: hb4p;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.5rem;
}
.hb4-prose__principles li::before {
  content: counter(hb4p, decimal-leading-zero);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}
.hb4-prose__principles strong { color: var(--ink); }
.hb4-prose__note {
  background: var(--surface-2);
  border-left: 3px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
}
.hb4-prose__cta {
  margin-top: 3.5rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.hb4-prose__cta h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.hb4-prose__cta p { color: var(--muted); margin: 0 0 1.25rem; }

/* ------------------------- Contact ------------------------- */
.hb4-contact { padding: 32px 0 72px; }
.hb4-contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.hb4-formcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.hb4-formcard__head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.hb4-formcard__head p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}
.hb4-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.hb4-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.hb4-field input,
.hb4-field select,
.hb4-field textarea {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.hb4-field input:focus,
.hb4-field select:focus,
.hb4-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hb4-field input:disabled,
.hb4-field select:disabled,
.hb4-field textarea:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}
.hb4-field textarea { resize: vertical; min-height: 120px; }
.hb4-field__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.hb4-formcard .hb4-btn { width: 100%; }
.hb4-formcard .hb4-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hb4-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hb4-contact__channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 150ms var(--ease);
}
.hb4-contact__channel:hover { border-color: var(--border-strong); }
.hb4-contact__channel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.hb4-contact__channel p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  line-height: 1.5;
}
.hb4-contact__channel a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}
.hb4-contact__channel a:hover { color: var(--accent-ink); }
.hb4-contact__icon { flex-shrink: 0; }

/* ------------------------- Responsive ------------------------- */
@media (max-width: 992px) {
  .hb4-feat { grid-template-columns: 1fr; }
  .hb4-feat__body { padding: 1.75rem; }
  .hb4-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .hb4-tracks__grid { grid-template-columns: 1fr; }
  .hb4-news__card { grid-template-columns: 1fr; padding: 2rem; }
  .hb4-footer__inner { grid-template-columns: 1fr 1fr; }
  .hb4-contact__grid { grid-template-columns: 1fr; }
}

/* Tipografia das publicações foi movida para article-typography.css
   (incluído por article.html via {% block extra_css %}). */

@media (max-width: 768px) {
  .hb4-announce__text { display: none; }
  .hb4-nav__links { display: none; }
  .hb4-nav__search span { display: none; }
  .hb4-nav__search kbd { display: none; }
  .hb4-nav__actions .hb4-btn--primary { display: none; }
  .hb4-nav__burger { display: inline-flex; }
  .hb4-hero { padding: 48px 0 40px; }
  .hb4-ad {
    min-height: 88px;
    margin: 24px auto;
    padding: 0 16px;
  }
  .hb4-ad--ads-in-article,
  .hb4-ad--ads-end-article {
    min-height: 120px;
    margin: 32px auto;
  }
  .hb4-search { flex-direction: column; align-items: stretch; padding: 0.75rem; }
  .hb4-search .hb4-btn { width: 100%; padding: 0.85rem; }
  .hb4-cats__grid { grid-template-columns: 1fr; }
  .hb4-prose__grid { grid-template-columns: 1fr; }
  .hb4-formcard { padding: 1.5rem; }
  .hb4-item__link { gap: 1rem; padding: 1.25rem 0; }
  .hb4-item__title { font-size: 1.125rem; }
  .hb4-item__arrow { width: 36px; height: 36px; }
  .hb4-section__head { flex-direction: column; align-items: flex-start; }
  .hb4-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 24px 1.5rem; }
}
