/* ═══════════════════════════════════════════════════════════════════
   X-HUB · hub.x-id.ai — página de vendas mestre da X-ID
   Laranja = cor de venda/ação. Hero studio premium + grade catálogo.
   Prefixo: hb-   ·   tints em alpha pra sobreviver ao dark mode.
   ═══════════════════════════════════════════════════════════════════ */

.hb-page {
  --hub: oklch(0.69 0.19 48);
  --hub-strong: oklch(0.62 0.21 45);
  --hub-deep: oklch(0.45 0.14 50);
  --hub-tint: oklch(0.69 0.19 48 / 0.12);
  --hub-tint-soft: oklch(0.69 0.19 48 / 0.06);
  --hub-line: oklch(0.69 0.19 48 / 0.28);
  --wa: oklch(0.58 0.18 155);
  background: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
}
.hb-embed .xsf { display: none; }
.hb-embed .hb-ap-back { display: none; }
.hb-embed { min-height: 0; }
html:has(.hb-embed), body:has(.hb-embed) { scrollbar-width: thin; scrollbar-color: color-mix(in oklch, var(--text-dim) 60%, transparent) transparent; }
body:has(.hb-embed)::-webkit-scrollbar { width: 10px; }
body:has(.hb-embed)::-webkit-scrollbar-thumb { background: color-mix(in oklch, var(--text-dim) 55%, transparent); border-radius: 99px; border: 2px solid var(--bg-base); }
body:has(.hb-embed)::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }
body:has(.hb-embed)::-webkit-scrollbar-track { background: transparent; }
.theme-dark .hb-page {
  --hub: oklch(0.74 0.17 52);
  --hub-strong: oklch(0.78 0.16 55);
  --hub-tint: oklch(0.74 0.17 52 / 0.16);
  --hub-tint-soft: oklch(0.74 0.17 52 / 0.09);
  --hub-line: oklch(0.74 0.17 52 / 0.32);
}

.hb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hb-hero {
  position: relative;
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hb-hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 130%;
  background: radial-gradient(closest-side, var(--hub-tint), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hb-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hub-strong);
  margin-bottom: 24px;
}
.hb-hero-eyebrow::before {
  content: "";
  width: 26px; height: 1px; background: var(--hub);
}
.hb-hero-headline {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.hb-hero-headline .hb-accent { color: var(--hub-strong); font-style: italic; }
.hb-hero-dek {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.58;
  color: var(--text-mute);
  margin: 26px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.hb-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hb-hero-cta-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* WhatsApp / primary button (laranja = ação) */
.hb-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: oklch(0.99 0 0);
  background: var(--hub-strong);
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px -12px var(--hub);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hb-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px var(--hub); }
.hb-cta:active { transform: translateY(0); }
.hb-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hb-cta-ghost:hover { border-color: var(--hub); background: var(--hub-tint-soft); }

/* proof strip */
.hb-proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hb-proof-item { display: flex; flex-direction: column; gap: 4px; }
.hb-proof-v {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hb-proof-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Faixa white-label (valores) ────────────────────────────── */
.hb-values {
  padding: clamp(40px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--border);
}
.hb-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 880px) { .hb-values-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .hb-values-grid { grid-template-columns: 1fr; } }
.hb-value-k {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hb-value-k::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hub);
  margin-top: 7px;
}
.hb-value-v {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
  padding-left: 18px;
  text-wrap: pretty;
}

/* ── Section head genérico ──────────────────────────────────── */
.hb-section { padding: clamp(48px, 6vw, 84px) 0; border-bottom: 1px solid var(--border); }
.hb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(30px, 4vw, 48px);
  flex-wrap: wrap;
}
.hb-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hub-strong);
  margin-bottom: 14px;
}
.hb-section-title {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.hb-section-note {
  font-size: 14px;
  color: var(--text-mute);
  max-width: 38ch;
  text-align: right;
  text-wrap: pretty;
}
@media (max-width: 620px) { .hb-section-note { text-align: left; } }

/* ── O catálogo ─────────────────────────────────────────────── */
.hb-cat-group { margin-bottom: clamp(40px, 5vw, 64px); }
.hb-cat-group:last-child { margin-bottom: 0; }
.hb-cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hb-cat-name {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hb-cat-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-left: auto;
}
.hb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .hb-cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .hb-cat-grid { grid-template-columns: 1fr; } }

.hb-service {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 18px 18px 16px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  min-height: 168px;
}
.hb-service:hover {
  border-color: var(--hub-line);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -22px var(--hub);
}
.hb-service.is-featured {
  background: var(--hub-tint-soft);
  border-color: var(--hub-line);
}
.hb-service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.hb-service-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hb-service-live {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wa);
  background: oklch(0.58 0.18 155 / 0.12);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.hb-service-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--wa);
  animation: hb-blink 2s ease-in-out infinite;
}
@keyframes hb-blink { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hb-service-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0 0 auto;
  text-wrap: pretty;
}
.hb-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.hb-service-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 3px 7px;
}
.hb-service-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--hub-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.15s ease;
}
.hb-service-action:hover { gap: 8px; }

/* ── Banda "hub infinito" ───────────────────────────────────── */
.hb-infinite {
  position: relative;
  padding: clamp(52px, 7vw, 96px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 160% at 100% 0%, var(--hub-tint), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--hub-line);
  text-align: center;
  margin: clamp(48px, 6vw, 84px) 0;
  overflow: hidden;
}
.hb-infinite-glyph {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--hub-strong);
}
.hb-infinite-title {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 18ch;
}
.hb-infinite-dek {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 auto 30px;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ── Processo ───────────────────────────────────────────────── */
.hb-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 820px) { .hb-process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .hb-process-grid { grid-template-columns: 1fr; } }
.hb-process-cell {
  background: var(--bg-base);
  padding: 26px 22px 24px;
}
.hb-process-n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--hub-strong);
  margin-bottom: 16px;
}
.hb-process-k {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.hb-process-v {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
  text-wrap: pretty;
}

/* ── CTA final ──────────────────────────────────────────────── */
.hb-final {
  padding: clamp(56px, 8vw, 112px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hb-final-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hub-strong);
  margin-bottom: 20px;
}
.hb-final-title {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hb-final-sub {
  font-size: 16px;
  color: var(--text-mute);
  margin: 0 0 32px;
  max-width: 46ch;
}

/* ═══ LOJA DE APPS (protagonista) ═══════════════════════════════ */

/* link discreto de contratar no hero */
.hb-hero-hire {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-mute); text-decoration: none;
  padding: 8px 4px; transition: color 0.15s ease;
}
.hb-hero-hire:hover { color: var(--wa); }

/* tile de ícone do app (única superfície colorida por app) */
.hb-app-tile {
  flex: none; display: grid; place-items: center;
  color: oklch(0.99 0 0);
  box-shadow: 0 8px 20px -10px oklch(0.2 0.02 280 / 0.5), inset 0 1px 0 oklch(1 0 0 / 0.25);
}
.hb-app-tile-img { object-fit: cover; display: block; padding: 0; background: none; }

/* faísca sintética (IA generativa) — desenhada DENTRO do tile, camada do glifo */
.hb-app-tile { position: relative; }
.hb-synth-spark {
  position: absolute; color: oklch(0.99 0 0);
  filter: drop-shadow(0 1px 1.5px oklch(0.2 0.02 280 / 0.45));
  pointer-events: none;
}
.hb-app-glyph {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-weight: 400; line-height: 1; color: oklch(0.99 0 0);
  transform: translateY(0.02em); user-select: none;
  text-shadow: 0 1px 2px oklch(0.2 0.02 280 / 0.35);
}

/* chips */
.hb-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.02em; border-radius: 6px; padding: 3px 8px;
  white-space: nowrap;
}
.hb-chip-price { color: var(--hub-strong); background: var(--hub-tint); }
.hb-chip-price.is-free { color: var(--wa); background: oklch(0.58 0.18 155 / 0.12); }
.hb-chip-bolt { font-size: 10px; }
.hb-chip-scope { color: var(--text-mute); background: var(--bg-base); border: 1px solid var(--border-soft); }

/* featured (Produthor) */
.hb-feat {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px); width: 100%; text-align: left;
  border: 1px solid var(--hub-line); border-radius: var(--radius-xl);
  background: radial-gradient(130% 150% at 0% 0%, var(--hub-tint-soft), transparent 55%), var(--bg-elev);
  padding: clamp(28px, 4vw, 48px); cursor: pointer; overflow: hidden;
  font-family: inherit; color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hb-feat:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -34px var(--hub); border-color: var(--hub); }
.hb-feat-glow { position: absolute; top: -40%; right: -12%; width: 55%; height: 150%; background: radial-gradient(closest-side, var(--hub-tint), transparent 72%); pointer-events: none; }
.hb-feat-left { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; z-index: 1; }
.hb-feat-kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hub-strong); }
.hb-feat-name { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.hb-feat-hero { font-family: "Instrument Serif", var(--font-display); font-style: italic; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.2; color: var(--text); }
.hb-feat-tag { font-size: 14.5px; line-height: 1.5; color: var(--text-mute); text-wrap: pretty; }
.hb-feat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hb-feat-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--hub-strong); transition: gap 0.15s ease; }
.hb-feat:hover .hb-feat-cta { gap: 11px; }
.hb-feat-hl { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.hb-feat-hl-row { display: flex; gap: 13px; align-items: flex-start; }
.hb-feat-hl-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--hub-strong); background: var(--hub-tint); }
.hb-feat-hl-txt { display: flex; flex-direction: column; gap: 2px; }
.hb-feat-hl-txt b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.hb-feat-hl-txt small { font-size: 12.5px; line-height: 1.45; color: var(--text-mute); }
@media (max-width: 760px) {
  .hb-feat { grid-template-columns: 1fr; gap: 26px; }
  .hb-feat-hl { border-top: 1px solid var(--border); padding-top: 22px; }
}

/* barra de categorias */
.hb-catbar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.hb-catchip {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--text-mute); background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all 0.14s ease;
}
.hb-catchip:hover { border-color: var(--hub); color: var(--text); }
.hb-catchip.on { background: var(--hub-strong); border-color: var(--hub-strong); color: oklch(0.99 0 0); }

/* grid de apps */
.hb-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .hb-app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .hb-app-grid { grid-template-columns: 1fr; } }

.hb-app {
  display: flex; gap: 15px; align-items: flex-start; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev); padding: 18px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.hb-app:hover { transform: translateY(-2px); border-color: var(--hub-line); box-shadow: 0 18px 34px -24px var(--hub); }
.hb-app-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.hb-app-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hb-app-tag { font-size: 12.5px; line-height: 1.45; color: var(--text-mute); text-wrap: pretty; }
.hb-app-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.hb-app-cat { font-size: 10px; letter-spacing: 0.05em; color: var(--text-dim); text-transform: uppercase; }

/* ═══ Pulso de uso (execuções) ════════════════════════════════ */
/* card: linha compacta 30d */
.hb-app-pulse {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 12px; color: var(--text-mute); white-space: nowrap;
}
.hb-app-pulse svg { color: var(--hub-strong); flex: none; transform-origin: center; animation: hbBeat 2.4s ease-in-out infinite; }
@keyframes hbBeat {
  0%, 45%, 100% { transform: scale(1); opacity: 0.78; }
  8% { transform: scale(1.24); opacity: 1; }
  16% { transform: scale(1); opacity: 0.85; }
  24% { transform: scale(1.14); opacity: 1; }
  32% { transform: scale(1); opacity: 0.78; }
}
.hb-app-pulse b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-app-pulse-u { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--text-dim); }
/* card: cápsula de obra (Hub em construção → sem contador de execuções).
   width fit-content: a cápsula termina onde o texto termina (não estica). */
.hb-app-pulse-bld { gap: 5px; padding: 2px 8px 2px 7px; border: 1px solid oklch(0.62 0.14 275 / 0.35); border-radius: 999px; background: oklch(0.62 0.14 275 / 0.1); width: fit-content; align-self: flex-start; }
.hb-app-pulse-bld svg { color: #7B8CFF; animation: none; opacity: 1; }
.hb-app-pulse-bld .hb-app-pulse-u { color: #9AA6E8; text-transform: uppercase; letter-spacing: 0.08em; }
.hb-app-pulse-bld b { color: #C3CBF5; font-family: var(--font-mono); font-size: 11px; }
.hb-app-pulse-dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #7B8CFF; animation: hbBldDot 2.2s ease-in-out infinite; }
@keyframes hbBldDot { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hb-app-pulse-dot { animation: none; } }

/* detalhe: painel completo */
.hb-metrics { --app: var(--hub); }
.hb-metrics-seg {
  display: inline-flex; gap: 2px; margin: 10px 0 16px;
  background: var(--bg-base); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 3px;
}
.hb-metrics-segb {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.01em;
  color: var(--text-mute); padding: 5px 11px; border-radius: 6px;
  transition: background 0.14s ease, color 0.14s ease;
}
.hb-metrics-segb:hover { color: var(--text); }
.hb-metrics-segb.is-on { background: var(--app); color: oklch(0.99 0 0); }
.hb-metrics-figure {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.hb-metrics-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-metrics-big {
  font-size: clamp(34px, 6vw, 52px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; color: var(--text); font-variant-numeric: tabular-nums;
}
.hb-metrics-meta { display: flex; flex-direction: column; gap: 1px; }
.hb-metrics-runs { font-size: 13px; font-weight: 600; color: var(--text); }
.hb-metrics-win { font-size: 11.5px; color: var(--text-dim); }
.hb-metrics-live {
  display: inline-flex; align-items: center; gap: 5px; align-self: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--st, var(--wa));
}
.hb-metrics-livedot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--st, var(--wa));
  box-shadow: 0 0 0 0 var(--st, var(--wa));
}
/* pulso por estado: live = rápido, degraded = lento, manutenção/fora/offline = parado */
.hb-metrics-live.hb-st-fast .hb-metrics-livedot { animation: hbPulseDot 1.8s ease-out infinite; }
.hb-metrics-live.hb-st-slow .hb-metrics-livedot { animation: hbPulseDot 3.2s ease-out infinite; }
.hb-metrics-live.hb-st-none .hb-metrics-livedot { animation: none; box-shadow: none; }
@keyframes hbPulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--st, var(--wa)) 50%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--st, var(--wa)) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--st, var(--wa)) 0%, transparent); }
}

/* ── Banner de status do workflow (só aparece quando NÃO está ao vivo) ──
   Grade limpa: ícone | rótulo na 1ª linha; descrição alinhada sob o rótulo. */
.hb-status {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 11px; row-gap: 5px;
  align-items: center;
  margin: 0 0 20px; padding: 14px 16px; border-radius: 12px;
  background: color-mix(in oklab, var(--st) 10%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--st) 34%, transparent);
}
.hb-status-ic { color: var(--st); justify-self: center; }
.hb-status.hb-st-fast .hb-status-ic { animation: hbPulseDot 1.8s ease-out infinite; }
.hb-status.hb-st-slow .hb-status-ic { animation: hbPulseDot 3.2s ease-out infinite; }
.hb-status-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--st); font-weight: 700;
}
.hb-status-desc { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--text-mute); text-wrap: pretty; }
.hb-spark { width: clamp(140px, 40%, 240px); height: 40px; overflow: visible; }
.hb-metrics-counts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.hb-metrics-counts-h { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.hb-metrics-counts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hb-metrics-counts-list li {
  display: flex; gap: 11px; align-items: baseline;
  font-size: 13.5px; line-height: 1.5; color: var(--text-mute); text-wrap: pretty;
}
.hb-metrics-counts-n { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--app); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .hb-metrics-livedot { animation: none; } .hb-app-pulse svg { animation: none; opacity: 1; } }

/* ── Soluções (secundário) ── */
.hb-solutions { background: var(--bg-alt, var(--bg-base)); }

/* ── Faixa contratar (discreta) ── */
.hb-hireband {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--bg-elev); margin: clamp(40px, 5vw, 64px) 0;
}
.hb-hireband-txt { display: flex; flex-direction: column; gap: 4px; }
.hb-hireband-txt b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hb-hireband-txt span { font-size: 13.5px; color: var(--text-mute); text-wrap: pretty; }
.hb-cta-sm { padding: 12px 20px; font-size: 14px; }

/* ── Detalhe do app (modal) ── */
.hb-detail-veil {
  position: fixed; inset: 0; z-index: 1000;
  background: oklch(0.15 0.02 280 / 0.55); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(12px, 4vw, 48px); overflow-y: auto;
  animation: hb-veil 0.2s ease;
}
@keyframes hb-veil { from { opacity: 0; } to { opacity: 1; } }
.hb-detail {
  position: relative; width: 100%; max-width: 840px;
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 40px 90px -30px oklch(0.15 0.02 280 / 0.6);
  animation: hb-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes hb-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.hb-detail-x {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-base);
  color: var(--text-mute); display: grid; place-items: center; cursor: pointer;
  transition: all 0.14s ease;
}
.hb-detail-x:hover { color: var(--text); border-color: var(--text-dim); }
.hb-detail-hero {
  position: relative; display: flex; gap: 20px; align-items: center;
  padding: clamp(28px, 4vw, 40px); overflow: hidden;
  background: radial-gradient(120% 150% at 0% 0%, color-mix(in oklab, var(--app) 14%, transparent), transparent 60%), var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.hb-detail-glow { position: absolute; top: -50%; right: -10%; width: 50%; height: 180%; background: radial-gradient(closest-side, color-mix(in oklab, var(--app) 20%, transparent), transparent 70%); pointer-events: none; }
.hb-detail-hero-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; }
.hb-detail-name { font-family: "Instrument Serif", var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: -0.01em; }
.hb-detail-tag { font-size: 14.5px; color: var(--text-mute); margin: 0; }
.hb-detail-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.hb-detail-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 4vw, 40px); }
@media (max-width: 700px) { .hb-detail-body { grid-template-columns: 1fr; } }
.hb-detail-hero-line { font-family: "Instrument Serif", var(--font-display); font-style: italic; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.25; color: var(--text); margin-bottom: 22px; }
.hb-detail-block { margin-bottom: 26px; }
.hb-detail-block:last-child { margin-bottom: 0; }
.hb-detail-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hub-strong); margin-bottom: 12px; }
.hb-detail-p { font-size: 14px; line-height: 1.6; color: var(--text-mute); margin: 0 0 10px; text-wrap: pretty; }
.hb-detail-opssub { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); margin: 0 0 14px; }
.hb-detail-hls { display: flex; flex-direction: column; gap: 14px; }
.hb-detail-hl { display: flex; gap: 12px; align-items: flex-start; }
.hb-detail-hl-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--app); background: color-mix(in oklab, var(--app) 12%, transparent); }
.hb-detail-hl b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.hb-detail-hl small { font-size: 12.5px; line-height: 1.45; color: var(--text-mute); }

/* ── Novidades / releases ── */
.hb-rel-cur { border-left: 2px solid color-mix(in oklab, var(--app) 55%, transparent); padding-left: 14px; }
.hb-rel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-rel-v { font-size: 14px; font-weight: 600; color: var(--hub-strong); letter-spacing: -0.01em; }
.hb-rel-now { white-space: nowrap; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--app); padding: 2px 7px; border-radius: 999px; background: color-mix(in oklab, var(--app) 12%, transparent); }
.hb-rel-date { white-space: nowrap; font-size: 11.5px; color: var(--text-dim); margin-left: auto; }
.hb-rel-notes { margin: 9px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hb-rel-notes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--text-mute); text-wrap: pretty; }
.hb-rel-notes li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in oklab, var(--app) 60%, transparent); }
.hb-rel-toggle { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 0; font-size: 12px; letter-spacing: 0.04em; color: var(--app); font-family: inherit; }
.hb-rel-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-rel-chev { transition: transform 0.2s ease; }
.hb-rel-chev.open { transform: rotate(180deg); }
.hb-rel-hist { margin-top: 14px; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.hb-rel-past { border-left: 2px solid var(--border-soft); padding-left: 14px; }
.hb-rel-past .hb-rel-v { color: var(--text-mute); font-weight: 500; }

/* operações */
.hb-ops { display: flex; flex-direction: column; }
.hb-op { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.hb-op:first-child { border-top: 0; }
.hb-op-name { font-size: 13.5px; color: var(--text); }
.hb-op-price { flex: none; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text); display: inline-flex; align-items: baseline; gap: 5px; }
.hb-op-price small { font-size: 10.5px; color: var(--text-dim); font-weight: 400; }
.hb-op-tag { flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; border-radius: 6px; padding: 3px 9px; }
.hb-op-passthrough { color: var(--wa); background: oklch(0.58 0.18 155 / 0.12); }
.hb-op-free { color: var(--text-mute); background: var(--bg-elev); border: 1px solid var(--border-soft); }
.hb-op-houseCut { color: var(--hub-strong); background: var(--hub-tint); }

/* info */
.hb-detail-info { align-self: start; }
.hb-info-list { margin: 0; display: flex; flex-direction: column; }
.hb-info-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.hb-info-list > div:first-child { border-top: 0; }
.hb-info-list dt { font-size: 12px; color: var(--text-dim); flex: none; }
.hb-info-list dd { margin: 0; font-size: 12.5px; color: var(--text); text-align: right; font-weight: 500; text-wrap: pretty; }
.hb-info-scopetip { font-size: 12px; line-height: 1.5; color: var(--text-mute); margin: 16px 0 0; padding: 12px 14px; background: var(--hub-tint-soft); border-radius: var(--radius-sm, 10px); text-wrap: pretty; }

/* ── Mobile ─────────────────────────────────────────────────── */
.mobile-frame .hb-hero { padding-top: 40px; }
.mobile-frame .hb-section-note { text-align: left; }

/* ═══ Faixa COMERCIAL (o porquê — servir clientes) ═════════════ */
.hb-commercial {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--hub-tint-soft), transparent 55%),
    var(--bg-elev);
  overflow: hidden;
}
.hb-commercial-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 52px); }
.hb-commercial-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hub-strong); margin-bottom: 18px;
}
.hb-commercial-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--hub); }
.hb-commercial-title {
  font-family: "Instrument Serif", var(--font-display);
  font-weight: 400; font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.06; letter-spacing: -0.02em; margin: 0;
  text-wrap: balance;
}
.hb-commercial-dek {
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1.58;
  color: var(--text-mute); margin: 20px 0 0; max-width: 60ch; text-wrap: pretty;
}
.hb-commercial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
@media (max-width: 820px) { .hb-commercial-grid { grid-template-columns: 1fr; gap: 16px; } }
.hb-pillar {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-base); padding: 24px 22px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.hb-pillar:hover { border-color: var(--hub-line); transform: translateY(-2px); }
.hb-pillar-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; color: var(--hub-strong); background: var(--hub-tint);
  margin-bottom: 16px;
}
.hb-pillar-t { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.hb-pillar-d { font-size: 13.5px; line-height: 1.55; color: var(--text-mute); margin: 0; text-wrap: pretty; }
.hb-commercial-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(28px, 3.5vw, 42px);
}
.hb-commercial-cta-note { font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }

/* ═══ Link de desenvolvedor (detalhe) ═════════════════════════ */
.hb-devlink {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 12px; color: var(--text-dim);
  transition: color 0.14s ease; width: fit-content;
}
.hb-devlink b { color: var(--app, var(--hub-strong)); font-weight: 600; }
.hb-devlink:hover b { text-decoration: underline; }
.hb-devlink-badge { display: inline-flex; color: var(--app, var(--hub-strong)); }
.hb-info-devlink {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  color: var(--hub-strong);
}
.hb-info-devlink:hover { text-decoration: underline; }
.hb-info-devlink svg { color: var(--hub-strong); }

/* ═══ Perfil do desenvolvedor (modal) ═════════════════════════ */
.hb-dev {
  position: relative; width: 100%; max-width: 620px;
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 40px 90px -30px oklch(0.15 0.02 280 / 0.6);
  animation: hb-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hb-dev-hero {
  display: flex; gap: 18px; align-items: center;
  padding: clamp(28px, 4vw, 38px) clamp(24px, 4vw, 38px) 22px;
  background: radial-gradient(120% 150% at 0% 0%, var(--hub-tint), transparent 62%), var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.hb-dev-avatar {
  flex: none; width: 76px; height: 76px; border-radius: 20px;
  display: grid; place-items: center; color: oklch(0.99 0 0);
  background: linear-gradient(145deg, var(--hub-strong), var(--hub-deep));
  box-shadow: 0 10px 24px -12px var(--hub), inset 0 1px 0 oklch(1 0 0 / 0.25);
}
.hb-dev-initials { font-family: "Instrument Serif", var(--font-display); font-size: 34px; }
.hb-dev-hero-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hb-dev-nameline { display: flex; align-items: center; gap: 8px; }
.hb-dev-name { font-family: "Instrument Serif", var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 36px); margin: 0; letter-spacing: -0.01em; }
.hb-dev-badge { display: inline-flex; color: var(--hub-strong); }
.hb-dev-handle { font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.hb-dev-tagline { font-size: 14px; color: var(--text-mute); margin: 5px 0 0; text-wrap: pretty; }
.hb-dev-verified {
  display: flex; align-items: center; gap: 8px;
  padding: 11px clamp(24px, 4vw, 38px);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--hub-strong); background: var(--hub-tint-soft);
  border-bottom: 1px solid var(--border);
}
.hb-dev-verified::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hub); }
.hb-dev-body { padding: clamp(22px, 4vw, 32px); }
.hb-dev-bio { font-size: 14px; line-height: 1.6; color: var(--text-mute); margin: 0 0 22px; text-wrap: pretty; }
.hb-dev-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.hb-dev-meta > div { display: flex; flex-direction: column; gap: 3px; }
.hb-dev-meta dt { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.hb-dev-meta dd { margin: 0; font-size: 14px; color: var(--text); font-weight: 500; }
.hb-dev-appsh { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-strong); margin-bottom: 14px; }
.hb-dev-apps { display: flex; flex-direction: column; gap: 8px; }
.hb-dev-app {
  display: flex; align-items: center; gap: 13px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev); padding: 12px 14px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hb-dev-app:hover { border-color: var(--hub-line); transform: translateX(2px); }
.hb-dev-app-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hb-dev-app-meta b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.hb-dev-app-meta small { font-size: 12px; color: var(--text-mute); text-wrap: pretty; }
.hb-dev-app > svg { flex: none; color: var(--text-dim); }

/* ═══ Página de perfil do app (App Store product page) ═══════ */
.hb-ap { --app: var(--hub-strong); position: relative; }
.hb-ap-back {
  display: inline-flex; align-items: center; gap: 4px; margin: 16px 0 2px;
  background: transparent; border: 0; padding: 6px 12px 6px 4px; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; color: var(--text-mute);
  border-radius: 8px; transition: color 0.14s ease;
}
.hb-ap-back:hover { color: var(--app); }

/* barra fixa de GET */
.hb-ap-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg-base) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}
.hb-ap-sticky.show { transform: none; opacity: 1; }
.hb-ap-sticky-in { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.hb-ap-sticky-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hb-ap-sticky .hb-get { margin-left: auto; }

/* hero */
.hb-ap-hero-sec { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hb-ap-hero { position: relative; display: flex; gap: clamp(16px, 3vw, 26px); align-items: center; padding-top: clamp(18px, 3vw, 30px); padding-bottom: clamp(22px, 3.5vw, 34px); }
.hb-ap-glow { position: absolute; top: -60%; left: -6%; width: 44%; height: 200%; background: radial-gradient(closest-side, color-mix(in oklab, var(--app) 22%, transparent), transparent 72%); pointer-events: none; }
.hb-ap-hero-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.hb-ap-name { font-family: "Instrument Serif", var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); margin: 0; letter-spacing: -0.01em; line-height: 1.02; }
.hb-ap-tag { font-size: clamp(14px, 1.8vw, 16px); color: var(--text-mute); margin: 0; text-wrap: pretty; }
.hb-ap-get-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.hb-ap-cat { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }

/* pílula GET */
.hb-get {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--app); color: oklch(0.99 0 0); border: 0; letter-spacing: 0.01em;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--app) 34%, transparent);
}
.hb-get-sm { padding: 7px 16px; font-size: 12px; }
.hb-get-building { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in oklab, var(--app) 14%, var(--bg-elev)); color: var(--app); border: 1px solid color-mix(in oklab, var(--app) 40%, transparent); box-shadow: none; }

/* blocos + colunas */
.hb-ap-block { padding-top: clamp(24px, 3vw, 34px); }
.hb-ap-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hub-strong); margin-bottom: 6px; }
.hb-ap-hsub { font-size: 12.5px; color: var(--text-dim); margin: 0 0 16px; }
.hb-ap-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 52px); padding-top: clamp(24px, 3vw, 34px); }
.hb-ap-main { min-width: 0; }
.hb-ap-aside { align-self: start; }
/* Desktop: a coluna de Informações acompanha a rolagem (não deixa vazio à direita).
   Abaixo de 820px vira 1 coluna — sem sticky. */
@media (min-width: 821px) {
  .hb-ap-aside { position: sticky; top: 84px; }
}
.hb-ap-heroline { font-family: "Instrument Serif", var(--font-display); font-style: italic; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.25; color: var(--text); margin-bottom: 18px; }

/* screenshots (moldura de telefone + image-slot) */
.hb-shots-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hb-shots-scroll::-webkit-scrollbar { display: none; }
.hb-shots-row { display: flex; gap: 16px; padding-bottom: 6px; align-items: flex-start; }
.hb-shot { flex: none; display: flex; flex-direction: column; gap: 10px; margin: 0; width: 216px; }
.hb-shot-frame {
  width: 216px; height: 468px; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-elev); position: relative;
  box-shadow: 0 10px 30px oklch(0.2 0.02 280 / 0.12), inset 0 0 0 3px oklch(1 0 0 / 0.04);
}
.hb-shot-frame image-slot { width: 100%; height: 100%; display: block; }
.hb-shot-cap { font-size: 12.5px; color: var(--text-mute); text-align: center; }

/* 1º shot = CLIP: play sobreposto (glifo do Flow) sobre o vídeo vertical */
.hb-shot-frame.is-clip { cursor: pointer; }
.hb-shot-play {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 46%, oklch(0 0 0 / 0.30), oklch(0 0 0 / 0.10) 62%);
}
.hb-shot-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: oklch(1 0 0 / 0.16); border: 1.5px solid oklch(1 0 0 / 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 24px oklch(0 0 0 / 0.32);
  transition: transform 0.18s ease, background 0.18s ease;
}
.hb-shot-play-btn svg { margin-left: 3px; }
.hb-shot-frame.is-clip:hover .hb-shot-play-btn { transform: scale(1.08); background: oklch(1 0 0 / 0.24); }

/* callout de capability */
.hb-cap {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: color-mix(in oklab, var(--cap) 7%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--cap) 24%, var(--border));
}
.hb-cap-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: oklch(0.99 0 0); background: linear-gradient(145deg, var(--cap), color-mix(in oklab, var(--cap) 68%, #000)); }
.hb-cap-txt { min-width: 0; }
.hb-cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.hb-cap-head b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hb-cap-badge { font-size: 10px; letter-spacing: 0.04em; color: var(--cap); background: color-mix(in oklab, var(--cap) 14%, transparent); padding: 3px 8px; border-radius: 6px; }
.hb-cap-txt p { font-size: 13px; line-height: 1.55; color: var(--text-mute); margin: 0; text-wrap: pretty; }

/* mais do dev */
.hb-ap-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }

/* selo de pacote / capability no card */
.hb-app-suite { font-size: 10px; letter-spacing: 0.03em; color: var(--hub-strong); background: var(--hub-tint); padding: 3px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hb-app-suite.is-cap { color: oklch(0.66 0.24 5); background: color-mix(in oklab, oklch(0.66 0.24 5) 12%, transparent); }

/* badge no hero da página */
.hb-ap-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 11px; letter-spacing: 0.02em; color: var(--app); background: color-mix(in oklab, var(--app) 12%, transparent); padding: 4px 10px; border-radius: 7px; margin-top: 2px; }
.hb-ap-badge.is-cap { color: oklch(0.66 0.24 5); background: color-mix(in oklab, oklch(0.66 0.24 5) 12%, transparent); }

@media (max-width: 820px) {
  .hb-ap-cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .hb-ap-hero { flex-wrap: wrap; }
  .hb-ap-get-col { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; order: 3; }
  .hb-shot, .hb-shot-frame { width: 178px; }
  .hb-shot-frame { height: 386px; }
}

/* ═══════════════════════════════════════════════════════════════════
   ABAS do detalhe (Visão geral / Documentação da API) + doc consumidor
   Uma doc por PACOTE, renderizada em chrome da loja (hb-doc-*).
   ═══════════════════════════════════════════════════════════════════ */
/* tile do pacote (página de suite) + badge clicável + crumb da doc */
.hb-suite-tile {
  width: 112px; height: 112px; border-radius: 26px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--app), var(--app2));
  box-shadow: 0 12px 34px -12px var(--app);
}
.hb-ap-badge.is-link {
  border: none; cursor: pointer; background: var(--hub-tint);
  transition: background .14s;
}
.hb-ap-badge.is-link:hover { background: var(--hub-tint-soft); }
.hb-doc-crumb {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: clamp(18px, 2.2vw, 24px);
}
.hb-doc-crumb > span {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.hb-doc-crumb-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--hub-strong);
  background: none; border: none; cursor: pointer;
}
.hb-doc-crumb-link:hover { text-decoration: underline; }

.hb-rel-now.is-pre { color: oklch(0.72 0.14 280); background: oklch(0.72 0.14 280 / 0.14); }

/* ── Diário do Hub: eventos de status na linha do tempo ───────── */
.hb-ev {
  --ev: oklch(0.65 0.02 260);
  padding: 12px 0 12px 14px;
  border-left: 2px solid var(--ev);
  margin: 10px 0;
}
.hb-ev-maintenance { --ev: oklch(0.75 0.15 85); }   /* âmbar */
.hb-ev-live        { --ev: oklch(0.68 0.17 155); }  /* verde */
.hb-ev-degraded    { --ev: oklch(0.70 0.17 55); }   /* laranja */
.hb-ev-offline     { --ev: oklch(0.62 0.21 25); }   /* vermelho */
.hb-ev-building    { --ev: oklch(0.66 0.16 280); }  /* violeta — em desenvolvimento */
.hb-ev-deprecated  { --ev: oklch(0.65 0.02 260); }  /* cinza-azulado — descontinuado */
.hb-ev-suspended   { --ev: oklch(0.52 0.17 25); }   /* vermelho-escuro — suspenso (governança) */
.hb-ev-archived    { --ev: oklch(0.55 0.01 260); }  /* cinza — memorial */
.hb-ev-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--ev);
}
.hb-ev-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ev); flex-shrink: 0;
}
/* onda: anel que nasce na bolinha e se expande até sumir */
.hb-ev-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ev);
}
@media (prefers-reduced-motion: no-preference) {
  .hb-ev-dot::after { animation: hbEvWave 2s ease-out infinite; }
}
@keyframes hbEvWave {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
.hb-ev-msg {
  margin: 8px 0 0; font-size: 13.5px; line-height: 1.55;
  color: var(--text-mute); font-style: italic; text-wrap: pretty;
}
.hb-ev-pinned {
  border-left-width: 3px;
  background: color-mix(in oklch, var(--ev) 7%, transparent);
  border-radius: 0 10px 10px 0;
  padding-right: 14px;
}
.hb-ev-now {
  white-space: nowrap;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ev); border: 1px solid color-mix(in oklch, var(--ev) 55%, transparent);
  border-radius: 20px; padding: 2px 9px;
}

/* ── seção PACOTES (banners editoriais — futurista minimal) ──────
   Arte full-bleed, texto sobreposto em scrim, hairlines brancas,
   zoom lento na arte + varredura de brilho no hover. */
.hb-suites-band { padding-top: clamp(30px, 4vw, 52px); }
.hb-suite-tile-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.hb-suite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 30px;
}
.hb-suite-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  --suite-bg: color-mix(in oklch, var(--app) 14%, oklch(0.14 0.015 275));
  background: var(--suite-bg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hb-suite-banner:hover {
  transform: translateY(-2px);
  border-color: var(--app);
  box-shadow: 0 26px 64px -30px var(--app);
}
.hb-suite-banner.is-feat { grid-column: 1 / -1; }

/* varredura de brilho (sheen) no hover */
.hb-suite-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, oklch(1 0 0 / 0.09) 50%, transparent 58%);
  transform: translateX(-130%);
}
@media (prefers-reduced-motion: no-preference) {
  .hb-suite-banner:hover::after { transform: translateX(130%); transition: transform .9s ease; }
}

/* arte full-bleed — imagem em FLUXO (inteira, sem corte), esmaecendo na
   base via mask de alfa pra fundir no fundo tingido do card. Só o título
   invade a zona esmaecida; dek + rodapé sentam no sólido. */
.hb-suite-banner-art {
  position: relative;
  overflow: hidden;
}
.hb-suite-banner-art:has(image-slot) {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(110% 130% at 82% -10%, color-mix(in oklch, var(--app) 46%, transparent), transparent 62%),
    radial-gradient(90% 110% at 10% 110%, color-mix(in oklch, var(--app2) 22%, transparent), transparent 60%),
    oklch(0.15 0.02 275);
}
.hb-suite-banner.is-feat .hb-suite-banner-art:has(image-slot) { aspect-ratio: 21 / 9; }
.hb-suite-banner-art image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* ── anúncio rotativo (airdrop) — intercala com o CARD INTEIRO ──
   Cobre arte + título + descrição (sem corte no mobile). Ciclo de 14s:
   card ~7s → fade → anúncio ~6s → fade. Só opacity (GPU). */
.hb-suite-banner { position: relative; overflow: hidden; }
.hb-suite-air {
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px; padding: 6% 8%; text-align: left;
  background:
    radial-gradient(90% 130% at 12% 50%, oklch(0.32 0.09 75 / 0.94), transparent 70%),
    linear-gradient(115deg, oklch(0.14 0.03 75), oklch(0.19 0.05 70 / 0.98) 55%, oklch(0.13 0.03 75 / 0.96));
  opacity: 0; pointer-events: none;
  animation: hbAirCycle 14s ease-in-out infinite;
}
@keyframes hbAirCycle {
  0%, 46% { opacity: 0; }
  53%, 93% { opacity: 1; }
  100% { opacity: 0; }
}
.hb-suite-air-icon {
  width: clamp(52px, 6vw, 76px); height: auto;
  border-radius: 22%;
  box-shadow: 0 10px 30px -8px oklch(0.6 0.14 75 / 0.7), 0 0 0 1px oklch(0.6 0.11 75 / 0.4);
  margin-bottom: 2px;
}
.hb-suite-air-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  color: oklch(0.85 0.13 85);
  border: 1px solid oklch(0.6 0.11 75 / 0.6); border-radius: 999px;
  padding: 4px 11px; background: oklch(0.3 0.08 75 / 0.5);
}
.hb-suite-air-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
  color: oklch(0.97 0.02 90); max-width: 22ch; text-wrap: balance;
}
.hb-suite-air-title::first-line { color: inherit; }
.hb-suite-air-sub {
  font-size: clamp(12px, 1.3vw, 14.5px); line-height: 1.45;
  color: oklch(0.82 0.04 85); max-width: 52ch; text-wrap: pretty;
}
.hb-suite-air-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  color: oklch(0.9 0.1 85);
}
@media (prefers-reduced-motion: reduce) { .hb-suite-air { animation: none; opacity: 0; } }
@media (max-width: 640px) { .hb-suite-air { gap: 7px; padding: 8% 7%; } .hb-suite-air-icon { width: 46px; } }
/* ── card de detalhes do airdrop (página do pacote) ── */
.hb-air-card {
  border: 1px solid oklch(0.5 0.1 75 / 0.45); border-radius: 20px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(120% 160% at 8% 0%, oklch(0.3 0.08 75 / 0.5), transparent 60%),
    linear-gradient(150deg, oklch(0.17 0.03 75), oklch(0.13 0.02 75));
  display: flex; flex-direction: column; gap: 18px;
}
.hb-air-head { display: flex; gap: 16px; align-items: flex-start; }
.hb-air-ic { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 10px 26px -8px oklch(0.6 0.14 75 / 0.6); }
.hb-air-head-tx { display: flex; flex-direction: column; gap: 6px; }
.hb-air-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: oklch(0.85 0.13 85); }
.hb-air-title { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: oklch(0.97 0.02 90); margin: 0; text-wrap: balance; }
.hb-air-intro { font-size: 14px; line-height: 1.55; color: oklch(0.8 0.04 85); margin: 0; max-width: 68ch; text-wrap: pretty; }
.hb-air-lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-air-lot {
  border: 1px solid oklch(0.45 0.08 75 / 0.4); border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
  background: oklch(0.16 0.02 75 / 0.6); opacity: 0.66;
}
.hb-air-lot.is-on {
  opacity: 1; border-color: oklch(0.7 0.14 80 / 0.7);
  background: linear-gradient(160deg, oklch(0.28 0.07 75 / 0.7), oklch(0.18 0.04 75 / 0.7));
  box-shadow: 0 12px 30px -14px oklch(0.6 0.14 75 / 0.8);
}
.hb-air-lot-n { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: oklch(0.75 0.09 80); }
.hb-air-lot-ping { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 800; color: oklch(0.92 0.09 88); }
.hb-air-lot-sub, .hb-air-lot-spots { font-size: 10.5px; color: oklch(0.72 0.05 80); }
.hb-air-lot.is-on .hb-air-lot-n::after { content: " · AGORA"; color: oklch(0.88 0.13 85); }
.hb-air-taskh { font-size: 10px; font-weight: 800; letter-spacing: 0.13em; color: oklch(0.72 0.08 80); margin-bottom: -8px; }
.hb-air-ref {
  border: 1px solid oklch(0.55 0.13 130 / 0.5); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(150deg, oklch(0.22 0.06 135 / 0.55), oklch(0.15 0.03 120 / 0.5));
}
.hb-air-ref b { font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 20px); font-weight: 800; color: oklch(0.88 0.15 130); }
.hb-air-ref span { font-size: 13px; line-height: 1.5; color: oklch(0.82 0.05 120); max-width: 70ch; text-wrap: pretty; }
.hb-air-steps { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; color: oklch(0.85 0.03 85); }
.hb-air-steps li::marker { color: oklch(0.8 0.12 82); font-weight: 700; }
.hb-air-note { font-size: 12.5px; color: oklch(0.68 0.05 80); margin: 0; max-width: 70ch; }
.hb-air-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hb-air-more { background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: oklch(0.85 0.11 85); display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }
.hb-air-more:hover { color: oklch(0.93 0.09 88); }
@media (max-width: 640px) { .hb-air-lots { grid-template-columns: 1fr; } .hb-air-head { flex-direction: column; } }
.hb-suite-banner-img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 98%);
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 98%);
}
@media (prefers-reduced-motion: no-preference) {
  .hb-suite-banner-art image-slot, .hb-suite-banner-img { transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .hb-suite-banner:hover .hb-suite-banner-art image-slot,
  .hb-suite-banner:hover .hb-suite-banner-img { transform: scale(1.045); }
}

/* scrim aposentado — a mask da imagem faz a fusão */
.hb-suite-banner-scrim { display: none; }

/* chip-CTA — mora no rodapé do card, fora da arte */
.hb-suite-banner-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
  border: 1px solid oklch(1 0 0 / 0.26);
  border-radius: 30px; padding: 6px 13px;
}
.hb-suite-banner:hover .hb-suite-banner-chip { border-color: oklch(1 0 0 / 0.5); }

.hb-suite-banner-chip svg:last-child { transition: transform .2s ease; }
.hb-suite-banner:hover .hb-suite-banner-chip svg:last-child { transform: translateX(3px); }

/* conteúdo — em fluxo; só o título sobe pra zona esmaecida da arte.
   flex:1 + margin-top:auto no rodapé = rodapés alinhados entre cards
   da mesma linha, com dek de 1 ou 2 linhas. */
.hb-suite-banner-ov {
  position: relative; z-index: 2; pointer-events: none;
  flex: 1;
  margin-top: clamp(-64px, -4.5vw, -30px);
  padding: 0 clamp(18px, 2.4vw, 30px) clamp(16px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 5px;
}
.hb-suite-banner-title {
  font-family: "Instrument Serif", var(--font-display);
  font-size: clamp(27px, 3.6vw, 46px);
  line-height: 1.0;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 18px oklch(0 0 0 / 0.35);
}
.hb-suite-banner-dek {
  font-size: 13.5px; line-height: 1.5;
  color: oklch(0.86 0.012 280);
  margin: 2px 0 0; max-width: 58ch; text-wrap: pretty;
}
.hb-suite-banner-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
  padding-top: 12px; border-top: 1px solid oklch(1 0 0 / 0.16);
}
.hb-suite-banner-dek { margin-bottom: 10px; }
.hb-suite-banner-count {
  font-size: 10.5px; letter-spacing: 0.18em;
  color: oklch(0.78 0.02 280);
}
.hb-suite-banner-go {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  transition: gap .2s ease;
}
.hb-suite-banner:hover .hb-suite-banner-go { gap: 11px; }

@media (max-width: 720px) {
  .hb-suite-grid { grid-template-columns: 1fr; }
  .hb-suite-banner-ov { margin-top: -30px; padding: 0 18px 18px; }
  .hb-suite-banner-title { font-size: 28px; text-shadow: none; }
}
.hb-tabs {
  display: flex;
  gap: 4px;
  margin-top: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--border);
}
.hb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px 13px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .14s, border-color .14s;
}
.hb-tab:hover { color: var(--text); }
.hb-tab.on { color: var(--hub-strong); border-bottom-color: var(--hub); }

/* ── doc ─────────────────────────────────────────────────────── */
.hb-doc { padding-top: clamp(24px, 3vw, 34px); padding-bottom: 20px; }
.hb-doc-intro {
  font-family: "Instrument Serif", var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.5vw, 26px);
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 760px;
  text-wrap: pretty;
}

/* faixa de conexão */
.hb-doc-conn {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  padding: clamp(16px, 2vw, 22px);
  margin-bottom: 30px;
}
.hb-doc-conn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-doc-conn-k {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); flex-shrink: 0;
}
.hb-doc-base {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 8px 12px; cursor: pointer;
  transition: border-color .14s, color .14s;
}
.hb-doc-base:hover { border-color: var(--hub-line); }
.hb-doc-base svg { color: var(--text-dim); flex-shrink: 0; }
.hb-doc-base.ok { color: var(--wa); border-color: var(--wa); }
.hb-doc-base.ok svg { color: var(--wa); }
.hb-doc-conn-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin-top: 16px; font-size: 13px; color: var(--text-mute);
}
.hb-doc-conn-meta b {
  display: block; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 2px;
}
.hb-doc-auth {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.6;
}
.hb-doc-auth code {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 2px 7px; color: var(--text-mute); font-size: 12px;
}
.hb-doc-vault {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12.5px; color: var(--text-mute);
}
.hb-doc-vault > svg { color: var(--hub-strong); flex-shrink: 0; }
.hb-doc-vault-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--hub-strong); font-weight: 600; text-decoration: none;
}
.hb-doc-vault-link:hover { text-decoration: underline; }

/* grupos = Hubs-membros */
.hb-doc-group { margin-bottom: 34px; }
.hb-doc-group-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.hb-doc-group-ic {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
}
.hb-doc-group-ic img { display: block; border-radius: 9px; }
.hb-doc-group-name {
  font-family: "Instrument Serif", var(--font-display);
  font-size: 24px; margin: 0 0 2px; color: var(--text);
}
.hb-doc-group-blurb { font-size: 13px; color: var(--text-mute); margin: 0; line-height: 1.5; }

/* operação */
.hb-doc-op {
  border: 1px solid var(--border);
  border-left: 3px solid var(--g);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--bg-elev);
}
.hb-doc-op-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hb-doc-method {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; padding: 4px 9px; border-radius: 6px; color: #fff;
}
.m-get { background: oklch(0.58 0.15 165); }
.m-post { background: oklch(0.56 0.16 250); }
.m-delete { background: oklch(0.58 0.2 25); }
.m-put, .m-patch { background: oklch(0.62 0.16 60); }
.hb-doc-path { font-size: 14px; color: var(--text); font-weight: 600; }
.hb-doc-free {
  margin-left: auto; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--wa); background: oklch(0.58 0.18 155 / 0.12);
  border-radius: 20px; padding: 3px 10px;
}
.hb-doc-op-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-mute); margin: 10px 0 0; text-wrap: pretty; }
.hb-doc-noparams { font-size: 12px; color: var(--text-dim); margin: 12px 0 0; }

/* tabela de params */
.hb-doc-params { margin-top: 14px; border-top: 1px solid var(--border-soft); }
.hb-doc-params-head, .hb-doc-param {
  display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(110px, 1fr) 2.2fr;
  gap: 14px; padding: 9px 0;
}
.hb-doc-params-head {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--border-soft);
}
.hb-doc-param { border-bottom: 1px solid var(--border-soft); font-size: 13px; align-items: baseline; }
.hb-doc-param:last-child { border-bottom: none; }
.hb-doc-param-n { color: var(--text); font-weight: 600; }
.hb-doc-req { color: var(--accent); font-style: normal; margin-left: 2px; }
.hb-doc-param-t { color: var(--hub-strong); font-size: 12px; }
.hb-doc-param-d { color: var(--text-mute); line-height: 1.5; }

/* exemplos de código */
.hb-doc-samples { margin-top: 8px; }
.hb-doc-code {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: oklch(0.19 0.02 275); margin-top: 4px;
}
.hb-doc-code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px 6px; border-bottom: 1px solid oklch(1 0 0 / 0.08);
  background: oklch(0.22 0.02 275);
}
.hb-doc-code-tabs { display: flex; gap: 2px; }
.hb-doc-code-tab {
  font-family: var(--font-mono); font-size: 12px; color: oklch(0.68 0.02 280);
  background: none; border: none; padding: 6px 12px; border-radius: 7px; cursor: pointer;
  transition: background .12s, color .12s;
}
.hb-doc-code-tab:hover { color: oklch(0.9 0.01 280); }
.hb-doc-code-tab.on { color: #fff; background: oklch(1 0 0 / 0.1); }
.hb-doc-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: oklch(0.72 0.02 280);
  background: none; border: 1px solid oklch(1 0 0 / 0.14); border-radius: 7px;
  padding: 5px 10px; cursor: pointer; transition: color .12s, border-color .12s;
}
.hb-doc-copy:hover { color: #fff; border-color: oklch(1 0 0 / 0.3); }
.hb-doc-copy.ok { color: oklch(0.8 0.15 155); border-color: oklch(0.8 0.15 155 / 0.5); }
.hb-doc-pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  font-size: 12.5px; line-height: 1.65; color: oklch(0.88 0.015 280);
  white-space: pre; tab-size: 2;
}
.hb-doc-pre code { font-family: var(--font-mono); }

@media (max-width: 640px) {
  .hb-doc-params-head { display: none; }
  .hb-doc-param { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  .hb-doc-param-t { font-size: 11.5px; }
}

/* ── MAPA VIVO DA MALHA (grafo-neurônio, overlay fullscreen) ───── */
.hb-hero-mesh {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-mute); background: none;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.hb-hero-mesh:hover { color: var(--hub-strong); border-color: var(--hub); box-shadow: 0 0 22px -8px var(--hub); }
.hb-hero-mesh-glyph { color: var(--hub-strong); }

.hb-mesh-ov {
  position: fixed; inset: 0; z-index: 1000;
  background: oklch(0.11 0.02 275);
  display: flex; flex-direction: column;
}
.hb-mesh-canvas { flex: 1; width: 100%; height: 100%; display: block; touch-action: none; }
.hb-mesh-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 34px);
  pointer-events: none;
}
.hb-mesh-title {
  font-family: "Instrument Serif", var(--font-display);
  font-size: clamp(24px, 3vw, 34px); color: #fff; margin: 0;
}
.hb-mesh-sub { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.65 0.02 275); margin: 6px 0 0; }
.hb-mesh-x {
  pointer-events: auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: oklch(1 0 0 / 0.07);
  border: 1px solid oklch(1 0 0 / 0.16); cursor: pointer;
  transition: background .15s;
}
.hb-mesh-x:hover { background: oklch(1 0 0 / 0.16); }
.hb-mesh-info {
  position: absolute; left: clamp(18px, 3vw, 34px); bottom: 52px; z-index: 2;
  max-width: 320px; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
  background: oklch(0.16 0.02 275 / 0.9); backdrop-filter: blur(10px);
  border: 1px solid oklch(1 0 0 / 0.14); border-radius: 14px;
  padding: 14px 16px;
}
.hb-mesh-info > b { color: #fff; font-size: 15px; }
.hb-mesh-info span { color: oklch(0.75 0.015 275); font-size: 12.5px; line-height: 1.45; }
.hb-mesh-info-meta { color: var(--hub-strong) !important; font-size: 11px !important; letter-spacing: 0.06em; }
.hb-mesh-info .hbld-eyebrow { font-size: 9.5px; padding: 4px 10px 4px 8px; gap: 6px; margin: 2px 0; pointer-events: none; }
.hb-mesh-info .hbld-beacon { width: 6px; height: 6px; }
.hb-mesh-hint {
  position: absolute; right: clamp(18px, 3vw, 34px); bottom: 20px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.08em; color: oklch(0.55 0.02 275); margin: 0;
  pointer-events: none;
}
@media (max-width: 640px) { .hb-mesh-hint { display: none; } .hb-mesh-info { bottom: 20px; } }

.hb-mesh-legend { font-size: 10px; letter-spacing: 0.06em; color: oklch(0.6 0.02 275); margin: 8px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hb-mesh-lg-dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.65 0.12 255); display: inline-block; }
.hb-mesh-lg-dot.is-gold { background: oklch(0.82 0.15 85); }


/* ── ego-grafo na página do Hub (mesh inline) ─────────────────── */
.hb-ap-mesh {
  position: relative;
  height: clamp(280px, 34vw, 380px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: oklch(0.11 0.02 275);
}
.hb-mesh-inline { position: absolute; inset: 0; display: flex; }
.hb-mesh-inline .hb-mesh-canvas { flex: 1; width: 100%; height: 100%; }
.hb-mesh-inline .hb-mesh-info { left: 14px; bottom: 14px; max-width: 260px; padding: 11px 13px; }
.hb-ap-mesh-full {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.2); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}
.hb-ap-mesh-full:hover { background: oklch(1 0 0 / 0.16); border-color: oklch(1 0 0 / 0.4); }
@media (max-width: 720px) {
  /* tela vertical: o grafo ganha um canva 9:16 em vez do recorte curto e largo */
  .hb-ap-mesh { width: 100%; aspect-ratio: 9 / 16; height: auto; }
  /* botão sobe pro topo pra não brigar com o card de legenda (bottom-left) */
  .hb-ap-mesh-full { top: 14px; bottom: auto; right: 14px; }
}
