/* ============================================================
   /claude-code · hub "Claude Code em português" (B1 do plano de SEO/GEO)
   Carrega DEPOIS do style.css (body.tg-dark-page dá a base escura),
   então aqui só entra o que é da página.

   Namespace: hub-  (registrado em docs/css-namespaces.md)
   Não reaproveita o vbc- do /vibe-coding de propósito: são páginas
   diferentes, e importar o CSS de uma na outra é colisão esperando
   acontecer. A folha copia o vocabulário visual (coluna de leitura,
   painel, tabela, FAQ) para as duas parecerem da mesma família.

   Raízes desta folha:
     hub-page   hub-wrap    hub-hero   hub-eyebrow  hub-lead
     hub-toc    hub-body    hub-steps  hub-tablewrap hub-table
     hub-video  hub-faq     hub-conferido  hub-offer
   ============================================================ */

.hub-page {
    --hub-col: 1280px;
    /* coluna de leitura: ~72 caracteres, o alvo de conforto do corpo de texto */
    --hub-read: 760px;
    --hub-ink: #f3f5f7;
    --hub-dim: rgba(255, 255, 255, .72);
    --hub-faint: rgba(255, 255, 255, .48);
    --hub-line: rgba(255, 255, 255, .13);
    --hub-panel: #131619;
    --hub-accent: #3ea7ec;
    background-color: #08090b;
}

.hub-wrap {
    width: 100%;
    max-width: var(--hub-col);
    margin: 0 auto;
    padding-inline: 24px;
}

/* ------------------------------------------------------------
   hero
   A capa é a foto cinematográfica da home (sujeito à direita), então
   a copy fica na metade esquerda e o degradê protege o texto sem
   apagar a pessoa.
   ------------------------------------------------------------ */
.hub-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 140px 0 72px;
    overflow: hidden;
    background-color: #050607;
}

.hub-hero-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hub-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hub-hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #050607 14%, rgba(5, 6, 7, .84) 44%, rgba(5, 6, 7, .1) 70%);
}

.hub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: min(60ch, 55%);
}

.hub-hero h1 {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.04;
}

.hub-hero h1 strong {
    display: block;
    color: var(--hub-accent);
    font-weight: 600;
}

.hub-hero-sub {
    margin-top: 20px;
    color: var(--hub-dim);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
}

.hub-eyebrow {
    /* inline-block, e não inline-flex: o <time> dentro viraria item de flex e
       cairia sozinho na linha de baixo no celular */
    display: inline-block;
    padding: 7px 15px;
    border: 1px solid rgba(62, 167, 236, .35);
    border-radius: 999px;
    background: rgba(62, 167, 236, .1);
    color: var(--hub-accent);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   corpo de leitura
   ------------------------------------------------------------ */
.hub-body {
    padding-top: 56px;
    padding-bottom: 96px;
}

.hub-body > *,
.hub-body [data-editorial] > * {
    max-width: var(--hub-read);
    margin-inline: auto;
}

.hub-body p {
    margin-bottom: 20px;
    color: var(--hub-dim);
    font-size: 17px;
    line-height: 1.72;
}

.hub-body h2 {
    /* `auto` no eixo inline: este shorthand vem DEPOIS da regra de coluna e
       zeraria a centralização se fosse 0 */
    margin: 62px auto 20px;
    color: #fff;
    font-size: clamp(26px, 3.3vw, 36px);
    line-height: 1.12;
    scroll-margin-top: 96px;
}

.hub-body a:not(.hub-offer-card) {
    color: var(--hub-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.hub-body a:not(.hub-offer-card):hover {
    color: #8cd0f8;
}

.hub-body strong {
    color: var(--hub-ink);
    font-weight: 600;
}

.hub-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: var(--hub-ink);
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .92em;
}

/* bloco de código do exemplo de SKILL.md (/skills-do-claude-code); rola na horizontal
   no celular em vez de estourar a coluna */
.hub-code {
    margin-top: 8px;
    margin-bottom: 32px;
    padding: 20px 22px;
    overflow-x: auto;
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    background: var(--hub-panel);
    line-height: 1.6;
}

.hub-code code {
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
    white-space: pre;
}

/* answer-first: a resposta citável, logo abaixo do H1 */
.hub-lead {
    padding: 28px 30px;
    border-left: 3px solid var(--hub-accent);
    border-radius: 0 12px 12px 0;
    background: var(--hub-panel);
}

.hub-lead p {
    margin-bottom: 0;
    color: var(--hub-ink);
    font-size: 18px;
}

.hub-toc {
    margin-top: 36px;
    padding: 24px 28px;
    border: 1px solid var(--hub-line);
    border-radius: 14px;
}

.hub-toc-label {
    margin-bottom: 14px;
    color: var(--hub-faint);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hub-toc ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.hub-toc li {
    color: var(--hub-faint);
    font-size: 15px;
}

.hub-toc a {
    color: var(--hub-dim);
    text-decoration: none;
}

.hub-toc a:hover {
    color: var(--hub-accent);
}

/* passos do tutorial */
.hub-steps {
    display: grid;
    gap: 16px;
    margin: 30px auto 34px;
    padding: 0;
    /* o style.css zera a marca só de <ul>; sem isto o <ol> soma a numeração
       nativa ao contador do ::before e o passo aparece numerado duas vezes */
    list-style: none;
    counter-reset: hub-step;
}

.hub-steps li {
    position: relative;
    padding: 20px 24px 20px 66px;
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    background: var(--hub-panel);
    color: var(--hub-dim);
    font-size: 16px;
    line-height: 1.65;
    counter-increment: hub-step;
}

.hub-steps li::before {
    content: counter(hub-step, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 24px;
    color: var(--hub-accent);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.hub-steps li strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
}

/* tabelas de dado próprio */
.hub-tablewrap {
    margin: 26px auto 34px;
    overflow-x: auto;
}

.hub-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
}

.hub-table caption {
    margin-bottom: 12px;
    color: var(--hub-faint);
    font-size: 13px;
    text-align: left;
}

.hub-table th,
.hub-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--hub-line);
    color: var(--hub-dim);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.hub-table thead th {
    color: #fff;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hub-table tbody th {
    color: var(--hub-ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
}

/* placeholder do vídeo, até o CSP liberar o youtube-nocookie */
.hub-video {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    margin: 28px auto 36px;
    padding: 24px;
    border: 1px dashed rgba(62, 167, 236, .45);
    border-radius: 14px;
    background: var(--hub-panel);
    text-align: center;
}

.hub-video p {
    margin-bottom: 0;
    max-width: 44ch;
    font-size: 16px;
}

/* FAQ visível, fonte única do FAQPage */
.hub-faq {
    display: grid;
    gap: 12px;
    margin: 28px auto 0;
}

.hub-faq details {
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    background: var(--hub-panel);
}

.hub-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 24px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.hub-faq summary::-webkit-details-marker {
    display: none;
}

.hub-faq summary::after {
    content: '+';
    flex: none;
    color: var(--hub-accent);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.hub-faq details[open] summary::after {
    /* sinal de menos (U+2212), não travessão: aqui é ícone de recolher */
    content: '\2212';
}

.hub-faq-body {
    padding: 0 24px 20px;
}

.hub-faq-body p {
    margin-bottom: 0;
    font-size: 16px;
}

.hub-conferido {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hub-line);
    color: var(--hub-faint);
    font-size: 14px;
}

/* ------------------------------------------------------------
   oferta, fora do wrapper editorial, na ordem da home
   ------------------------------------------------------------ */
.hub-offer {
    max-width: var(--hub-col);
    margin-top: 72px;
    scroll-margin-top: 96px;
    padding-top: 48px;
    border-top: 1px solid var(--hub-line);
}

.hub-offer h2 {
    margin-top: 0;
    text-align: center;
}

.hub-offer > p {
    text-align: center;
}

.hub-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin-top: 28px;
}

.hub-offer-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 26px 24px;
    border: 1px solid var(--hub-line);
    border-radius: 16px;
    background: var(--hub-panel);
    color: var(--hub-dim);
    font-size: 15.5px;
    line-height: 1.55;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.hub-offer-card:hover {
    border-color: rgba(62, 167, 236, .6);
    transform: translateY(-2px);
}

.hub-offer-card strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.25;
}

.hub-offer-tag {
    color: var(--hub-accent);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hub-offer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    color: #fff;
    font-weight: 600;
}

.hub-offer-cta svg {
    width: 18px;
    height: 18px;
}

/* ------------------------------------------------------------
   responsivo
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .hub-offer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hub-hero {
        min-height: 0;
        padding: 120px 0 56px;
    }

    .hub-hero-cover::after {
        background: linear-gradient(180deg, rgba(5, 6, 7, .55) 0%, rgba(5, 6, 7, .92) 60%, #050607 100%);
    }

    .hub-hero-inner {
        max-width: none;
    }

    .hub-body {
        padding-top: 40px;
    }

    .hub-body p,
    .hub-steps li {
        font-size: 16px;
    }

    .hub-lead,
    .hub-toc {
        padding: 20px;
    }

    .hub-steps li {
        padding-left: 56px;
    }

    .hub-steps li::before {
        left: 18px;
    }
}
