/* Claude Hub LP — Chat Jurídico */

:root {
  --ch-bg: #0a0a0f;
  --ch-surface: rgba(255, 255, 255, 0.04);
  --ch-border: rgba(255, 255, 255, 0.08);
  --ch-text: #e4e4e7;
  --ch-muted: #a1a1aa;
  --ch-claude: #d97757;
  --ch-claude-dim: rgba(217, 119, 87, 0.2);
  --ch-green: #22c55e;
  --ch-blue: #2563eb;
  --ch-purple: #a855f7;
  --ch-radius: 18px;
}

.ch-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ch-bg);
  color: var(--ch-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero */
.ch-hero {
  position: relative;
  padding: 80px 20px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(217, 119, 87, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    var(--ch-bg);
}

.ch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ch-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-claude);
  background: var(--ch-claude-dim);
  border: 1px solid rgba(217, 119, 87, 0.35);
  margin-bottom: 22px;
}

.ch-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ch-claude);
  box-shadow: 0 0 10px var(--ch-claude);
  animation: ch-pulse 2s ease-in-out infinite;
}

@keyframes ch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ch-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}

.ch-hero h1 span {
  color: var(--ch-claude);
}

.ch-hero .ch-lead {
  font-size: 1.1rem;
  color: var(--ch-muted);
  line-height: 1.55;
  margin: 0 auto 32px;
  max-width: 560px;
}

/* CTA row + buttons */
.ch-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.ch-btn:hover {
  transform: translateY(-1px);
}

.ch-btn-primary {
  background: linear-gradient(135deg, var(--ch-claude), #c2410c);
  color: #fff;
}

.ch-btn-primary:hover {
  filter: brightness(1.08);
}

.ch-btn-ghost {
  background: transparent;
  color: var(--ch-muted);
  border-color: var(--ch-border);
}

.ch-btn-ghost:hover {
  color: var(--ch-text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Section scaffolding */
.ch-section {
  padding: 48px 20px 64px;
  max-width: 1100px;
  margin: 0 auto;
}

#pilares {
  scroll-margin-top: 88px;
}

.ch-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.ch-section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ch-claude);
  margin-bottom: 10px;
}

.ch-section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ch-section-sub {
  color: var(--ch-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* Pillars grid */
.ch-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.ch-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  border-radius: var(--ch-radius);
  background: var(--ch-surface);
  border: 1px solid var(--ch-border);
  text-decoration: none;
  color: var(--ch-text);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ch-pillar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.7;
}

.ch-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.ch-pillar-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--ch-border);
}

.ch-pillar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ch-pillar-tag {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ch-border);
  color: var(--ch-muted);
}

.ch-pillar-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ch-muted);
  letter-spacing: 0.01em;
}

.ch-pillar h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
}

.ch-pillar p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ch-muted);
  margin: 0 0 18px;
  flex: 1;
}

.ch-pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ch-text);
}

.ch-pillar-cta svg {
  transition: transform 0.2s ease;
}

.ch-pillar:hover .ch-pillar-cta svg {
  transform: translateX(3px);
}

/* Per-pillar colors */
.ch-pillar-cowork::after { background: linear-gradient(90deg, var(--ch-claude), #c2410c); }
.ch-pillar-cowork .ch-pillar-icon { background: rgba(217, 119, 87, 0.12); border-color: rgba(217, 119, 87, 0.3); color: var(--ch-claude); }
.ch-pillar-cowork:hover { background: rgba(217, 119, 87, 0.05); border-color: rgba(217, 119, 87, 0.35); }

.ch-pillar-skills::after { background: linear-gradient(90deg, var(--ch-green), #16a34a); }
.ch-pillar-skills .ch-pillar-icon { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }
.ch-pillar-skills:hover { background: rgba(34, 197, 94, 0.04); border-color: rgba(34, 197, 94, 0.35); }

.ch-pillar-masterclass::after { background: linear-gradient(90deg, var(--ch-purple), #7c3aed); }
.ch-pillar-masterclass .ch-pillar-icon { background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.3); color: #c084fc; }
.ch-pillar-masterclass:hover { background: rgba(168, 85, 247, 0.04); border-color: rgba(168, 85, 247, 0.35); }

.ch-pillar-mcp::after { background: linear-gradient(90deg, var(--ch-blue), #1d4ed8); }
.ch-pillar-mcp .ch-pillar-icon { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.3); color: #60a5fa; }
.ch-pillar-mcp:hover { background: rgba(37, 99, 235, 0.04); border-color: rgba(37, 99, 235, 0.35); }

/* Posts section */
.ch-section-posts {
  padding-top: 24px;
}

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

.ch-post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--ch-radius);
  background: var(--ch-surface);
  border: 1px solid var(--ch-border);
  text-decoration: none;
  color: var(--ch-text);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ch-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.ch-post-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.ch-post-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-claude);
  opacity: 0.55;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(217, 119, 87, 0.12), transparent);
}

.ch-post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ch-post-date {
  font-size: 0.78rem;
  color: var(--ch-muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.ch-post-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 10px;
}

.ch-post-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ch-muted);
  margin: 0 0 14px;
  flex: 1;
}

.ch-post-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ch-claude);
}

.ch-post-link svg {
  transition: transform 0.2s ease;
}

.ch-post-card:hover .ch-post-link svg {
  transform: translateX(3px);
}

.ch-posts-more {
  text-align: center;
  margin: 32px 0 0;
  font-size: 0.95rem;
}

.ch-posts-more a {
  color: var(--ch-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--ch-border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.ch-posts-more a:hover {
  color: var(--ch-text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Final CTA */
.ch-cta-final {
  padding: 24px 20px 96px;
  max-width: 780px;
  margin: 0 auto;
}

.ch-cta-final-inner {
  text-align: center;
  padding: 44px 28px;
  border-radius: var(--ch-radius);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(217, 119, 87, 0.14) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ch-border);
}

.ch-cta-final-inner h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.ch-cta-final-inner p {
  color: var(--ch-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 480px;
}

@media (max-width: 520px) {
  .ch-hero { padding: 60px 20px 48px; }
  .ch-section { padding: 32px 20px 48px; }
  .ch-cta-final-inner { padding: 32px 22px; }
}

/* ===========================================================
   Hub Claude — layout com sidebar (adicionado em 2026-04-17)
   =========================================================== */

/* Chat Jurídico Academy: dark em toda a página (sem flash claro, scrollbars nativas escuras) */
html {
  color-scheme: dark;
  background-color: #0d0d0f;
}

.claude-hub {
  /* Claude Academy: tema escuro em todo o hub */
  color-scheme: dark;
  --ch-hub-bg: #0d0d0f;
  --ch-hub-surface: #18181b;
  --ch-hub-surface-elevated: #202024;
  --ch-hub-border: #2a2a30;
  --ch-hub-text: #ededf0;
  --ch-hub-text-dim: #9a9aa2;
  --ch-hub-accent: #d97757;
  --ch-hub-accent-hover: #e58a6d;
  --ch-sidebar-width: 280px;
  --ch-topbar-height: 56px;

  background: var(--ch-hub-bg);
  color: var(--ch-hub-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
}

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

.claude-hub a { color: inherit; text-decoration: none; }

.ch-layout {
  display: grid;
  grid-template-columns: var(--ch-sidebar-width) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.ch-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ch-hub-surface);
  border-right: 1px solid var(--ch-hub-border);
  overflow-y: auto;
}
.ch-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 16px 16px;
}
.ch-sidebar-head { margin-bottom: 24px; }
.ch-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ch-hub-text);
  margin-bottom: 6px;
}
.ch-sidebar-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ch-sidebar-back {
  display: inline-block;
  font-size: 12px;
  color: var(--ch-hub-text-dim);
  padding: 2px 0;
}
.ch-sidebar-back:hover { color: var(--ch-hub-text); }

.ch-sidebar-nav { flex: 1; }
.ch-nav-group { margin-bottom: 22px; }
.ch-nav-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ch-hub-text-dim);
  padding: 0 10px 8px;
}
.ch-nav-list, .ch-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ch-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ch-hub-text-dim);
  border-radius: 6px;
  transition: background 120ms, color 120ms;
}
.ch-nav-link:hover {
  background: var(--ch-hub-surface-elevated);
  color: var(--ch-hub-text);
}
.ch-nav-item.is-active > .ch-nav-link {
  background: var(--ch-hub-surface-elevated);
  color: var(--ch-hub-text);
  box-shadow: inset 2px 0 0 var(--ch-hub-accent);
}
.ch-nav-link .ch-nav-ext { margin-left: auto; opacity: .6; }
.ch-nav-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ch-nav-item.has-nav-logo .ch-nav-link {
  align-items: flex-start;
}
.ch-nav-item.has-nav-logo .ch-nav-logo-img {
  margin-top: 2px;
}
/* Ícone WhatsApp (comunidade) — marca reconhecível */
.ch-nav-link[href*="chat.whatsapp.com"] .ch-nav-icon {
  color: #25d366;
}
.ch-nav-link[href*="chat.whatsapp.com"]:hover .ch-nav-icon {
  color: #128c7e;
}
.ch-nav-sublist {
  margin: 2px 0 2px 26px;
  padding-left: 10px;
  border-left: 1px solid var(--ch-hub-border);
}
.ch-nav-sublink {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ch-hub-text-dim);
  border-radius: 6px;
}
.ch-nav-sublink:hover { color: var(--ch-hub-text); }
.ch-nav-sublink.is-external::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.65;
}
.ch-nav-subitem.is-active > .ch-nav-sublink {
  color: var(--ch-hub-text);
  background: var(--ch-hub-surface-elevated);
}

.ch-sidebar-cta {
  margin-top: auto;
  padding: 14px;
  background: var(--ch-hub-surface-elevated);
  border: 1px solid var(--ch-hub-border);
  border-radius: 8px;
}
.ch-sidebar-cta-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ch-sidebar-cta-body { font-size: 12px; color: var(--ch-hub-text-dim); margin: 0 0 10px; }
.ch-sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--ch-hub-accent);
  border-radius: 6px;
  transition: background 120ms;
}
.ch-sidebar-cta-btn:hover { background: var(--ch-hub-accent-hover); }

/* Topbar mobile */
.ch-topbar { display: none; }

/* Main content area */
.ch-main {
  min-width: 0;
  padding: 40px 48px 80px;
  background: var(--ch-hub-bg);
  color: var(--ch-hub-text);
}

/* Conteúdos com wrapper próprio: mesmo fundo do shell (evita #0a0a0f vs #0d0d0f) */
.claude-hub .cs-page,
.claude-hub .cowork-page,
.claude-hub .mc-page {
  background-color: var(--ch-hub-bg);
}
.claude-hub .cs-page {
  --cs-bg: var(--ch-hub-bg);
}

/* Skills (e outras LPs .cs-page): evita overflow horizontal no grid do layout */
.claude-hub .ch-main > .cs-page {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.claude-hub .ch-page {
  background: var(--ch-hub-bg);
}

.ch-page-head { margin-bottom: 28px; }
.ch-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ch-hub-accent);
  margin-bottom: 8px;
}
.ch-page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ch-hub-text);
}
.ch-lead { color: var(--ch-hub-text-dim); font-size: 16px; margin: 0; max-width: 640px; }

/* Filtros de ideias */
.ch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
  align-items: center;
}
.ch-filter-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ch-hub-text-dim);
  background: var(--ch-hub-surface);
  border: 1px solid var(--ch-hub-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms;
  font-family: inherit;
  flex-shrink: 0;
}
.ch-filter-btn:hover { color: var(--ch-hub-text); }
.ch-filter-btn.is-active {
  color: var(--ch-hub-bg);
  background: var(--ch-hub-text);
  border-color: var(--ch-hub-text);
}

@media (max-width: 640px) {
  .ch-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 4px 2px 12px;
    margin: 16px -4px 20px;
    gap: 8px;
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 119, 87, 0.45) transparent;
  }
  .ch-filters::-webkit-scrollbar { height: 5px; }
  .ch-filters::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
  .ch-filters::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 87, 0.4);
    border-radius: 4px;
  }
  .ch-filter-btn { scroll-snap-align: start; }
}

/* Grid de ideias */
.ch-ideas-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.ch-idea-card {
  padding: 20px;
  background: var(--ch-hub-surface);
  border: 1px solid var(--ch-hub-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.ch-idea-card:hover {
  border-color: rgba(217, 119, 87, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 40px -16px rgba(0, 0, 0, 0.55);
}
.ch-idea-card[hidden] { display: none; }
.ch-idea-badge {
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ch-hub-accent);
  background: rgba(217, 119, 87, 0.12);
  border-radius: 999px;
}
.ch-idea-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--ch-hub-text); line-height: 1.35; }
.ch-idea-desc { font-size: 13px; color: var(--ch-hub-text-dim); margin: 0; line-height: 1.5; }

.ch-idea-prompt-block {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.ch-idea-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ch-idea-prompt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-hub-text-dim);
}

/* Shell: área de scroll do prompt (altura generosa + máscara de continuação) */
.ch-idea-prompt-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 156px;
  height: min(280px, 42vh);
  max-height: min(280px, 42vh);
  border-radius: 8px;
  background: var(--ch-hub-bg);
  border: 1px solid var(--ch-hub-border);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.ch-idea-prompt-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 36px;
  border-radius: 0 0 7px 7px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--ch-hub-bg) 12%,
    rgba(13, 13, 15, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 1;
}
.ch-idea-prompt-shell.is-scrollable:not(.is-scrolled-end)::after {
  opacity: 1;
}

.ch-idea-prompt {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 14px 10px 16px 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, 'Cascadia Code', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ch-hub-text);
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 var(--ch-hub-bg);
}
.ch-idea-prompt::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.ch-idea-prompt::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 6px 6px 0;
  margin: 4px 0;
}
.ch-idea-prompt::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3f3f46 0%, #2a2a30 100%);
  border-radius: 4px;
  border: 2px solid var(--ch-hub-bg);
}
.ch-idea-prompt::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #52525b 0%, #3f3f46 100%);
}

.ch-idea-actions { display: flex; gap: 8px; margin-top: 2px; }
.ch-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ch-hub-text-dim);
  background: transparent;
  border: 1px solid var(--ch-hub-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 120ms;
  font-family: inherit;
}
.ch-copy-btn:hover { color: var(--ch-hub-text); border-color: var(--ch-hub-text-dim); }
.ch-copy-btn.is-copied { color: #4ade80; border-color: #4ade80; }

/* Grid de posts (blog) */
.ch-posts-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.ch-post-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px;
  background: var(--ch-hub-surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow: 0 0.125rem 0.25rem rgba(15, 23, 42, 0.06);
  color: var(--ch-hub-text);
  transition: border-color 120ms, box-shadow 160ms ease, transform 160ms ease;
}
.ch-post-row:hover {
  border-color: rgba(194, 65, 12, 0.35);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
}
.ch-post-row-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #27272a;
  border-radius: 8px;
}

.ch-post-row-title {
  margin: 4px 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ch-hub-text);
}

.ch-post-row-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ch-hub-text-dim);
}

.ch-post-row .ch-post-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ch-hub-text-dim);
  margin-bottom: 0;
}

.ch-blog-empty {
  padding: 40px 28px;
  background: var(--ch-hub-surface);
  border: 1px dashed var(--ch-hub-border);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0.125rem 0.25rem rgba(15, 23, 42, 0.04);
}

.ch-blog-empty p {
  color: var(--ch-hub-text-dim);
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Home pilares (grid 5) */
.ch-pillars-5 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 24px 0 48px;
}
.ch-pillars-5 .ch-pillar {
  padding: 18px;
  background: var(--ch-hub-surface);
  border: 1px solid var(--ch-hub-border);
  border-radius: 10px;
  color: var(--ch-hub-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 120ms, transform 160ms;
}
.ch-pillars-5 .ch-pillar:hover {
  border-color: var(--ch-hub-accent);
  transform: translateY(-2px);
}
.ch-pillars-5 .ch-pillar-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 87, 0.12);
  color: var(--ch-hub-accent);
  border-radius: 8px;
  margin-bottom: 4px;
}
.ch-pillars-5 .ch-pillar-icon--cowork-logo {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.ch-pillars-5 .ch-pillar-icon--cowork-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.ch-pillars-5 .ch-pillar h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ch-pillars-5 .ch-pillar p { margin: 0; font-size: 13px; color: var(--ch-hub-text-dim); line-height: 1.5; }
.ch-pillars-5 .ch-pillar-cta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ch-hub-accent); }

/* Mobile */
@media (max-width: 959px) {
  .ch-layout { grid-template-columns: 1fr; }
  .ch-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--ch-topbar-height);
    padding: 0 16px;
    background: var(--ch-hub-surface);
    border-bottom: 1px solid var(--ch-hub-border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .ch-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--ch-hub-border);
    border-radius: 6px;
    color: var(--ch-hub-text);
    cursor: pointer;
  }
  .ch-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ch-hub-text);
  }
  .ch-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 30;
  }
  .ch-sidebar.is-open { transform: translateX(0); }
  .ch-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms;
    z-index: 25;
  }
  .ch-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .ch-main { padding: 24px 20px 60px; }
  .ch-post-row { grid-template-columns: 120px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-sidebar, .ch-sidebar-backdrop, .ch-nav-link, .ch-filter-btn, .ch-copy-btn, .ch-sidebar-cta-btn, .ch-pillars-5 .ch-pillar,
  .ch-idea-prompt-shell::after {
    transition: none !important;
  }
}

/* ===========================================================
   Ajustes: topbar universal, sidebar fixa, scrollbar webkit,
   branding Claude Academy, remoção da lista "Relacionado"
   =========================================================== */

.claude-hub {
  --ch-topbar-height: 48px;
  padding-top: var(--ch-topbar-height);
}

/* Topbar visível em TODAS as telas (fixa, dark) */
.ch-topbar {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(18, 18, 21, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ch-hub-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  height: var(--ch-topbar-height);
}
.ch-topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
  max-width: 100%;
  min-width: 0;
}
.ch-topbar-cj {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ch-hub-text);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.ch-topbar-cj-logo {
  display: block;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.ch-topbar-cj-text { color: var(--ch-hub-text); }
.ch-topbar-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ch-hub-text-dim);
  font-size: 13px;
  min-width: 0;
}
.ch-topbar-sep { color: var(--ch-hub-text-dim); flex-shrink: 0; }
.ch-topbar-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ch-hub-accent);
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
}
.ch-topbar-hub span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-topbar-academy-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ch-topbar-hub:hover { color: var(--ch-hub-accent-hover); }
.ch-topbar-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--ch-hub-border);
  border-radius: 6px;
  color: var(--ch-hub-text);
  cursor: pointer;
}

/* Sidebar fixa + layout ajustado */
.ch-layout {
  grid-template-columns: var(--ch-sidebar-width) 1fr;
  min-height: calc(100vh - var(--ch-topbar-height));
}
.ch-sidebar {
  position: fixed;
  top: var(--ch-topbar-height);
  left: 0;
  width: var(--ch-sidebar-width);
  height: calc(100vh - var(--ch-topbar-height));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ch-hub-surface);
  border-right: 1px solid var(--ch-hub-border);
  z-index: 30;
}
/* Reserva a coluna do sidebar no grid (para o main não sobrepor) */
.ch-layout::before {
  content: '';
  display: block;
  grid-column: 1;
}

/* Scrollbar webkit dark */
.ch-sidebar::-webkit-scrollbar { width: 8px; }
.ch-sidebar::-webkit-scrollbar-track { background: transparent; }
.ch-sidebar::-webkit-scrollbar-thumb {
  background: #333338;
  border-radius: 8px;
  border: 2px solid var(--ch-hub-surface);
}
.ch-sidebar::-webkit-scrollbar-thumb:hover { background: #44444a; }
.ch-sidebar { scrollbar-width: thin; scrollbar-color: #333338 transparent; }

/* Branding atualizado no sidebar */
.ch-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  margin-bottom: 0;
}
.ch-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.ch-sidebar-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ch-hub-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ch-sidebar-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ch-hub-text);
}

/* Mobile */
@media (max-width: 959px) {
  .ch-layout { grid-template-columns: 1fr; }
  .ch-layout::before { display: none; }
  /* Sanduíche com margin-left: auto (só um auto) → colado à direita da barra */
  .ch-topbar-menu {
    display: inline-flex;
    margin-left: auto;
  }
  .ch-topbar-breadcrumb {
    flex: 1 1 auto;
    min-width: 0;
  }
  .ch-sidebar {
    top: var(--ch-topbar-height);
    height: calc(100vh - var(--ch-topbar-height));
    transform: translateX(-100%);
    transition: transform 220ms ease;
    max-width: 85vw;
  }
  .ch-sidebar.is-open { transform: translateX(0); }
  .ch-sidebar-backdrop {
    top: var(--ch-topbar-height);
    height: calc(100vh - var(--ch-topbar-height));
  }
  .ch-main { padding: 24px 20px 60px; }
}

@media (max-width: 520px) {
  .ch-topbar-cj-text { display: none; }
  .ch-topbar-breadcrumb { font-size: 13px; }
}

/* Ações do topbar (Planos + Entrar) */
.ch-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (min-width: 960px) {
  .ch-topbar-actions {
    margin-left: auto;
  }
}
.claude-hub .ch-topbar-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-hub-text);
  border-radius: 6px;
  transition: background 120ms;
}
.claude-hub .ch-topbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.claude-hub .ch-topbar-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border-radius: 6px;
  transition: background 120ms, transform 160ms;
}
.claude-hub .ch-topbar-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.ch-topbar-menu:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
  .claude-hub .ch-topbar-link { display: none; }
  .claude-hub .ch-topbar-btn { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 520px) {
  .ch-topbar-breadcrumb { display: none; }
}

