/* =========================================================
   Glaucio · tema Ghost mobile first
   Base: celular. Ampliações em min-width 640 / 900 / 1200.
   ========================================================= */

/* ---------- Fonte (Inter variável, servida pelo próprio site) ---------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --navy: #0E1A2B;
    --navy-2: #16263D;
    --navy-3: #1F3352;
    --gold: #D9952B;
    --gold-strong: #C5841C;
    --gold-soft: rgba(217, 149, 43, .14);

    --bg: #F7F5F0;
    --surface: #FFFFFF;
    --surface-alt: #EFEBE2;
    --ink: #0E1A2B;
    --ink-2: #3A4556;
    --muted: #667080;
    --line: #E2DDD2;
    --code-bg: #F3E6CF;
    --code-ink: #7A4A08;

    --font-heading: var(--gh-font-heading, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --font: var(--gh-font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --gutter: 20px;
    --container: 1180px;
    --main: 720px;
    --wide: 1040px;
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 64px;
    --shadow: 0 1px 2px rgba(14, 26, 43, .05), 0 8px 24px rgba(14, 26, 43, .06);
    --shadow-lg: 0 2px 4px rgba(14, 26, 43, .06), 0 18px 40px rgba(14, 26, 43, .12);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not(.theme-light) {
        --bg: #0A1320;
        --surface: #111E31;
        --surface-alt: #0E192A;
        --ink: #E9EDF3;
        --ink-2: #C3CBD7;
        --muted: #8E99AA;
        --line: #213149;
        --code-bg: rgba(217, 149, 43, .16);
        --code-ink: #F1C27A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}
:root.theme-dark {
    --bg: #0A1320;
    --surface: #111E31;
    --surface-alt: #0E192A;
    --ink: #E9EDF3;
    --ink-2: #C3CBD7;
    --muted: #8E99AA;
    --line: #213149;
    --code-bg: rgba(217, 149, 43, .16);
    --code-ink: #F1C27A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .4);
    color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn .i-arrow { transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E5A443; box-shadow: 0 8px 22px rgba(217, 149, 43, .35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--gold-strong); }
.link-arrow:hover .i-arrow { transform: translateX(3px); }
.link-arrow .i-arrow { transition: transform .2s var(--ease); }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eyebrow--gold { color: var(--gold); }
.eyebrow-link { display: inline-block; text-decoration: none; color: var(--gold-strong); }
.eyebrow-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 26, 43, .92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    color: #fff;
    transition: box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); background: rgba(14, 26, 43, .97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--gold); color: var(--navy); font-size: .875rem; font-weight: 800; letter-spacing: 0;
}
.brand-name { font-size: 1.0625rem; }
.brand-logo { max-height: 36px; width: auto; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-cta { display: none; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 0; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.burger { position: relative; width: 22px; height: 14px; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger::before { top: 0; }
.burger span { top: 6px; }
.burger::after { top: 12px; }
.menu-open .burger::before { top: 6px; transform: rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { top: 6px; transform: rotate(-45deg); }

/* Drawer (menu do celular) */
.drawer {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 45;
    background: var(--navy); color: #fff;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.drawer-inner { padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; min-height: 100%; }
.drawer-nav .nav { list-style: none; margin: 0; padding: 0; }
.drawer-nav .nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-nav .nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 1.375rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.drawer-nav .nav a::after { content: "→"; color: var(--gold); opacity: .8; }
.drawer-nav .nav-current a { color: var(--gold); }
.menu-open .drawer-nav .nav li { animation: slideIn .4s var(--ease) both; }
.menu-open .drawer-nav .nav li:nth-child(2) { animation-delay: .04s; }
.menu-open .drawer-nav .nav li:nth-child(3) { animation-delay: .08s; }
.menu-open .drawer-nav .nav li:nth-child(4) { animation-delay: .12s; }
.menu-open .drawer-nav .nav li:nth-child(5) { animation-delay: .16s; }
.menu-open .drawer-nav .nav li:nth-child(6) { animation-delay: .2s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.drawer-actions { display: grid; gap: 12px; }
.drawer-social { display: flex; gap: 8px; margin-top: auto; }
.drawer-social a, .footer-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; }
.drawer-social a:hover, .footer-social a:hover { background: var(--gold); color: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 56px 0 64px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-orb--1 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(217, 149, 43, .55), transparent 70%); top: -80px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.hero-orb--2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(64, 120, 200, .45), transparent 70%); bottom: -120px; left: -100px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-gridlines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.15); } }
.hero-inner { position: relative; }
.hero-title { font-size: clamp(2.125rem, 9vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; max-width: 15ch; }
.hero-sub { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 36rem; }
.hero-actions { display: grid; gap: 12px; margin-top: 28px; }
.hero-tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }

/* ---------- Seções ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 28px 0 56px; }
.section--alt { background: var(--surface-alt); }
.section-head { margin-bottom: 28px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.section-title { font-size: clamp(1.625rem, 6vw, 2.5rem); max-width: 22ch; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* Cartões de prova */
.proof-grid { display: grid; gap: 14px; }
.proof {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
    overflow: hidden;
}
.proof::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.proof:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.proof:hover::before { transform: scaleX(1); }
.proof-num { font-size: .8125rem; font-weight: 800; color: var(--gold-strong); letter-spacing: .08em; }
.proof-title { font-size: 1.375rem; }
.proof p { color: var(--ink-2); font-size: 1rem; }
.proof-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; }
.proof:hover .i-arrow { transform: translateX(3px); }
.proof .i-arrow { transition: transform .2s var(--ease); }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.step-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; box-shadow: 0 0 0 6px var(--gold-soft); }
.step-time { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-strong); }
.step-title { font-size: 1.25rem; margin: 4px 0 6px; }
.step-body p:last-child { color: var(--ink-2); font-size: 1rem; }

/* ---------- Cards de post ---------- */
.card-grid { display: grid; gap: 18px; }
.card { height: 100%; }
.card-link {
    display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-media--empty { display: grid; place-items: end start; padding: 18px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); position: relative; }
.card-media--empty::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.card-media--empty span { position: relative; z-index: 1; color: var(--gold); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-strong); }
.card--noimg .card-tag { display: none; }
.card-title { font-size: 1.25rem; line-height: 1.25; }
.card-excerpt { color: var(--ink-2); font-size: .975rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: .8125rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.pagination-info { font-size: .875rem; color: var(--muted); }

/* ---------- Hero de páginas ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding: 44px 0 48px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 90% 0%, rgba(217, 149, 43, .28), transparent 70%); }
.page-hero .page-title::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 18px; background: var(--gold); border-radius: 4px; }
.page-hero .container { max-width: calc(var(--main) + var(--gutter) * 2); }
.page-hero--compact .container { max-width: var(--container); }
.page-title { font-size: clamp(2rem, 8vw, 3.25rem); letter-spacing: -.03em; }
.page-lead { margin-top: 14px; font-size: 1.125rem; color: rgba(255, 255, 255, .78); max-width: 40rem; }
.page-image { margin: 32px 0 0; }
.page-image img { border-radius: var(--radius); }
.page-content { padding: 40px 0 64px; }
.author-hero { display: flex; flex-direction: column; gap: 16px; }
.author-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }

/* ---------- Grade de conteúdo (cards do Ghost) ---------- */
.gh-canvas {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wide) - var(--main)) / 2))
        [main-start] min(var(--main), calc(100% - var(--gutter) * 2)) [main-end]
        minmax(0, calc((var(--wide) - var(--main)) / 2)) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
}
.gh-canvas > * { grid-column: main; }
.kg-width-wide, .gh-canvas > .kg-width-wide { grid-column: wide; }
.kg-width-full, .gh-canvas > .kg-width-full { grid-column: full; }
.kg-width-full img { width: 100%; }
.article-image, .page-image { grid-column: wide; }
.article-image > *, .page-image > * { grid-column: wide; }

/* ---------- Tipografia do conteúdo ---------- */
.gh-content { font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.gh-content > * + * { margin-top: 1.25em; }
.gh-content > h2 { margin-top: 2em; font-size: clamp(1.5rem, 5.5vw, 2rem); position: relative; }
.gh-content > h3 { margin-top: 1.6em; font-size: 1.3rem; }
.gh-content > h2 + *, .gh-content > h3 + * { margin-top: .6em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; }
.gh-content a:hover { color: var(--gold-strong); }
.gh-content strong { font-weight: 700; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .5em; }
.gh-content ul li::marker { color: var(--gold); }
.gh-content ol li::marker { color: var(--gold-strong); font-weight: 700; }
.gh-content blockquote:not([class]) { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-size: 1.2rem; font-weight: 500; color: var(--ink-2); }
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.gh-content code { font-family: var(--mono); font-size: .85em; background: var(--code-bg); color: var(--code-ink); padding: .12em .4em; border-radius: 5px; word-break: break-word; }
.gh-content pre { overflow-x: auto; background: var(--navy); color: #E9EDF3; padding: 18px; border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.6; }
.gh-content pre code { background: none; color: inherit; padding: 0; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption, .article-image figcaption, .page-image figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }
.gh-content img { border-radius: var(--radius-sm); }
.gh-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gh-content table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 480px; }
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gh-content th { font-weight: 700; background: var(--surface-alt); }
.gh-content .gb-cta-p { margin-top: 1.6em; }
.gh-content a.gb-cta {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
    border-radius: 999px; background: var(--gold); color: var(--navy); text-decoration: none; font-weight: 700;
    transition: background-color .2s, box-shadow .2s;
}
.gh-content a.gb-cta::after { content: "→"; }
.gh-content a.gb-cta:hover { background: #E5A443; color: var(--navy); box-shadow: 0 8px 22px rgba(217, 149, 43, .35); }

/* Formulário de contato (card HTML) no tema escuro */
.gh-content .gb-contato input, .gh-content .gb-contato textarea { width: 100%; font-size: 16px; }
.gh-content .gb-contato button { min-height: 48px; border-radius: 999px !important; padding: 12px 22px !important; }

/* ---------- Artigo ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.article-header { padding: 36px 0 8px; }
.article-title { font-size: clamp(2rem, 8.5vw, 3.25rem); letter-spacing: -.03em; line-height: 1.08; }
.article-lead { margin-top: 16px; font-size: 1.1875rem; color: var(--ink-2); line-height: 1.55; }
.article-meta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .9rem; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.author-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); }
.author-chip img, .author-chip-initials { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-chip-initials { display: inline-grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 800; font-size: .8125rem; }
.article-meta-info { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.article-image { margin: 28px 0 0; }
.article-image img { width: 100%; border-radius: 0; }
.article-body { position: relative; padding: 32px 0 8px; }

/* Sumário */
.toc { padding: 0 var(--gutter); max-width: calc(var(--main) + var(--gutter) * 2); margin: 0 auto 28px; }
.toc-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-box summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-strong); transition: transform .2s; }
.toc-box[open] summary::after { transform: rotate(45deg); }
.toc-list { list-style: none; margin: 0; padding: 0 18px 16px; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--ink-2); font-size: .95rem; line-height: 1.4; border-left: 2px solid transparent; transition: color .2s; }
.toc-list a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--gold-strong); font-size: .8rem; padding-top: 2px; }
.toc-list a:hover, .toc-list a.is-active { color: var(--ink); }
.toc-list a.is-active { font-weight: 700; }

.article-footer { padding: 16px 0 56px; }
.article-footer-inner { display: grid; gap: 28px; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); position: relative; }
.share-label { font-weight: 700; margin-right: 6px; }
.share-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.share-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-btn[hidden] { display: none; }
.share-toast { font-size: .875rem; color: var(--gold-strong); font-weight: 600; opacity: 0; transition: opacity .2s; }
.share-toast.is-on { opacity: 1; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.cta-box { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 22px; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 200px at 100% 0%, rgba(217, 149, 43, .35), transparent 70%); }
.cta-box-title { font-size: 1.5rem; line-height: 1.2; }
.cta-box p:not(.eyebrow) { margin: 12px 0 20px; color: rgba(255, 255, 255, .8); }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box-name { font-weight: 800; }
.author-box-name a { text-decoration: none; }
.author-box-bio { color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
.article-comments { padding-bottom: 56px; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0 0 56px; }
.home-template .newsletter { padding-top: 0; }
.newsletter-inner { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 28px 22px; box-shadow: var(--shadow); max-width: calc(var(--container) - var(--gutter) * 2); }
.newsletter-title { font-size: clamp(1.5rem, 6vw, 2rem); }
.newsletter-text { margin-top: 8px; color: var(--ink-2); }
.subscribe-row { display: grid; gap: 10px; }
.subscribe-input { width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.subscribe-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.subscribe-btn { min-height: 52px; }
.subscribe-loading { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.subscribe.loading .subscribe-label { display: none; }
.subscribe.loading .subscribe-loading { display: inline-block; }
.subscribe-msg { display: none; margin-top: 10px; font-size: .9rem; font-weight: 600; }
.subscribe.success .subscribe-msg--ok { display: block; color: #2E8B57; }
.subscribe.error .subscribe-msg--err { display: block; color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 32px; }
.brand--light { color: #fff; }
.footer-tagline { margin-top: 14px; max-width: 26rem; font-size: .975rem; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-title { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.footer-nav .nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-nav .nav a { display: inline-block; padding: 6px 0; text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer-nav .nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-top { text-decoration: none; color: inherit; }
.footer-top:hover { color: var(--gold); }

/* ---------- Botão fixo no celular ---------- */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 60%, transparent);
    transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { box-shadow: 0 10px 24px rgba(14, 26, 43, .25); }
.page-contato .mobile-cta, .menu-open .mobile-cta { display: none; }

/* ---------- Erro ---------- */
.error-page { padding: 72px 0; text-align: left; }
.error-code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--gold); letter-spacing: -.04em; }
.error-page .page-lead { color: var(--ink-2); }
.error-page .page-title { margin-top: 8px; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(2), .proof-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid .reveal:nth-child(3), .proof-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(2) { transition-delay: .06s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; }
.hero .reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   ≥ 640px · celular grande / tablet em pé
   ========================================================= */
@media (min-width: 640px) {
    :root { --gutter: 32px; }
    .hero { padding: 80px 0 88px; }
    .hero-actions { display: flex; flex-wrap: wrap; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .card-grid--feed > .card:first-child { grid-column: 1 / -1; }
    .card-grid--feed > .card:first-child .card-link { display: grid; grid-template-columns: 1.2fr 1fr; }
    .card-grid--feed > .card:first-child .card-media { aspect-ratio: auto; min-height: 100%; }
    .card-grid--feed > .card:first-child .card-title { font-size: 1.625rem; }
    .card-grid--feed > .card:first-child .card-body { padding: 28px; justify-content: center; }
    .newsletter-inner { padding: 36px; }
    .subscribe-row { grid-template-columns: 1fr auto; gap: 8px; }
    .cta-box { padding: 36px; }
    .author-hero { flex-direction: row; align-items: center; gap: 24px; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .page-hero { padding: 64px 0 64px; }
    .article-header { padding-top: 56px; }
    .article-image img { border-radius: var(--radius); }
}

/* =========================================================
   ≥ 900px · tablet deitado / notebook
   ========================================================= */
@media (min-width: 900px) {
    :root { --header-h: 76px; }
    .nav-desktop { display: block; }
    .nav-desktop .nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
    .nav-desktop .nav a { position: relative; display: inline-block; padding: 8px 12px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: rgba(255, 255, 255, .82); transition: color .2s; }
    .nav-desktop .nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
    .nav-desktop .nav a:hover, .nav-desktop .nav-current a { color: #fff; }
    .nav-desktop .nav a:hover::after, .nav-desktop .nav-current a::after { transform: scaleX(1); }
    .header-cta { display: inline-flex; margin-left: 8px; }
    .menu-toggle { display: none; }
    .drawer { display: none; }
    .mobile-cta { display: none; }

    .hero { padding: 120px 0 128px; }
    .hero-orb--1 { width: 560px; height: 560px; top: -160px; right: -120px; }
    .hero-orb--2 { width: 460px; height: 460px; }
    .hero-sub { font-size: 1.25rem; }
    .section { padding: 96px 0; }
    .section--tight { padding: 40px 0 96px; }
    .section-head { margin-bottom: 44px; }

    .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .proof { padding: 30px; }

    .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .step { grid-template-columns: 1fr; padding-bottom: 0; gap: 18px; }
    .step:not(:last-child)::before { left: 56px; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line)); }

    .card-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
    .card-grid--feed > .card:first-child .card-title { font-size: 2rem; }
    .card-grid--feed > .card:first-child .card-body { padding: 40px; }

    .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }

    .newsletter { padding-bottom: 96px; }
    .newsletter-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 48px; }

    .page-hero { padding: 88px 0 80px; }
    .page-content { padding: 56px 0 96px; }
    .article-header { padding-top: 72px; }
    .article-footer { padding-bottom: 96px; }
    .footer-bottom { margin-top: 48px; }
    .site-footer { padding-top: 72px; }
}

/* =========================================================
   ≥ 1200px · desktop: sumário fixo ao lado do texto
   ========================================================= */
@media (min-width: 1200px) {
    .toc { position: absolute; top: 32px; bottom: 0; left: calc(50% - var(--main) / 2 - 280px); width: 240px; padding: 0; margin: 0; }
    .toc-box { position: sticky; top: calc(var(--header-h) + 24px); border: 0; background: transparent; }
    .toc-box summary { padding: 0 0 12px; pointer-events: none; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
    .toc-box summary::after { display: none; }
    .toc-list { padding: 0; max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; }
    .toc-list a { padding: 6px 0 6px 12px; border-left: 2px solid var(--line); font-size: .9rem; }
    .toc-list a.is-active { border-left-color: var(--gold); }
    .toc-list a::before { display: none; }
}
