:root {
    --kb-primary: #00003D;
    --kb-white: #FFFFFF;
    --kb-purple: #903BFB;
    --kb-cyan: #00FFFF;
    --kb-ink-soft: #54546f;
    --kb-line: #e8e7f1;
    --kb-surface: #f7f7fc;
    --kb-font-title: Korolev, Helvetica, Arial, sans-serif;
    --kb-font-body: Helvetica, Arial, sans-serif, monolog-black;
    --kb-shadow: 0 18px 50px rgba(0, 0, 61, .1);
    --kb-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--kb-primary);
    background: var(--kb-white);
    font-family: var(--kb-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, .kb-button { cursor: pointer; }
.kb-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.kb-sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kb-skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; color: #fff; background: var(--kb-primary); transform: translateY(-150%); }
.kb-skip-link:focus { transform: none; }

.kb-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--kb-line); backdrop-filter: blur(14px); }
.kb-header-main { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.kb-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.kb-brand-icon { width: 43px; height: 43px; object-fit: contain; border-radius: 9px; background: var(--kb-primary); }
.kb-brand-word { width: 160px; height: 38px; object-fit: contain; }
.kb-brand-tag { padding-left: 12px; border-left: 1px solid #d5d4e1; color: var(--kb-purple); font-weight: 800; }
.kb-header-actions { display: flex; align-items: center; gap: 12px; }
.kb-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.kb-button:hover { transform: translateY(-2px); }
.kb-button-primary { color: #fff; background: linear-gradient(110deg, #230080, var(--kb-purple)); box-shadow: 0 10px 24px rgba(144,59,251,.24); }
.kb-button-soft { border-color: #d9d5e8; background: #f6f2ff; }
.kb-button-cyan { color: var(--kb-primary); background: var(--kb-cyan); }
.kb-button-outline-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.kb-navigation { border-top: 1px solid #f0eff5; }
.kb-nav-inner { min-height: 62px; display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.kb-nav-inner > a { position: relative; padding: 19px 0 17px; font-weight: 800; white-space: nowrap; }
.kb-nav-inner > a::after { position: absolute; right: 0; bottom: 12px; left: 0; height: 3px; border-radius: 2px; background: var(--kb-purple); content: ''; opacity: 0; transform: scaleX(.4); transition: .2s; }
.kb-nav-inner > a:hover::after, .kb-nav-inner > a.is-active::after { opacity: 1; transform: scaleX(1); }
.kb-mobile-actions, .kb-menu-toggle { display: none; }

.kb-blog-hero { position: relative; overflow: hidden; background: linear-gradient(105deg, #f0ebff 0%, #fff 52%, #cfffff 100%); }
.kb-blog-hero::before { position: absolute; width: 480px; height: 480px; right: -260px; top: -240px; border: 90px solid rgba(144,59,251,.08); border-radius: 50%; content: ''; }
.kb-hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; padding-block: 90px; }
.kb-eyebrow { display: block; margin-bottom: 16px; color: var(--kb-purple); font-size: 13px; font-weight: 900; letter-spacing: .11em; }
h1, h2, h3 { margin: 0; font-family: var(--kb-font-title); letter-spacing: -.035em; line-height: 1.04; }
.kb-blog-hero h1 { max-width: 740px; font-size: clamp(48px, 6vw, 78px); font-weight: 500; }
.kb-blog-hero p { max-width: 690px; margin: 26px 0 30px; color: var(--kb-ink-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.kb-hero-actions { display: flex; align-items: center; gap: 28px; }
.kb-text-link, .kb-read-more { color: var(--kb-primary); font-weight: 800; }
.kb-text-link span, .kb-read-more span { display: inline-block; margin-left: 5px; color: var(--kb-purple); transition: transform .2s; }
.kb-text-link:hover span, .kb-read-more:hover span { transform: translateX(5px); }
.kb-hero-visual { position: relative; min-height: 390px; }
.kb-orbit { position: absolute; border: 1px solid rgba(0,0,61,.13); border-radius: 50%; }
.kb-orbit-one { inset: 10px 10px 60px 20px; }
.kb-orbit-two { inset: 58px 58px 105px 68px; border-color: rgba(144,59,251,.3); }
.kb-visual-card { position: absolute; border-radius: 24px; box-shadow: var(--kb-shadow); }
.kb-visual-card-main { top: 82px; left: 48px; width: min(330px, 80%); padding: 34px; color: #fff; background: var(--kb-primary); transform: rotate(-3deg); }
.kb-card-label { display: block; margin-bottom: 28px; color: var(--kb-cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.kb-visual-card-main strong { font-family: var(--kb-font-title); font-size: 32px; line-height: 1.1; }
.kb-progress { height: 8px; margin-top: 32px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.18); }
.kb-progress span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--kb-cyan), var(--kb-purple)); }
.kb-visual-card-small { right: 0; bottom: 36px; padding: 18px 22px; background: var(--kb-cyan); font-weight: 900; transform: rotate(5deg); }
.kb-visual-card-small span { margin-left: 35px; }

.kb-filter-section, .kb-related { padding: 92px 0; }
.kb-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.kb-section-heading h2, .kb-newsletter h2, .kb-product-cta h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 500; }
.kb-search { width: min(360px, 100%); display: flex; margin: 0; border: 1px solid #d9d8e4; border-radius: 999px; background: #fff; overflow: hidden; }
.kb-search input { width: 100%; height: 48px; padding: 0 8px 0 20px; border: 0; outline: 0; }
.kb-search button { width: 52px; border: 0; color: var(--kb-primary); background: transparent; font-size: 27px; }
.kb-topic-list { display: flex; gap: 10px; margin-bottom: 38px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.kb-topic-list a { padding: 8px 17px; border: 1px solid #dedce9; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.kb-topic-list a:hover, .kb-topic-list a.is-active { color: #fff; border-color: var(--kb-purple); background: var(--kb-purple); }
.kb-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kb-article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.kb-article-card:hover { transform: translateY(-6px); box-shadow: var(--kb-shadow); }
.kb-card-image { height: 220px; display: block; overflow: hidden; background: #eeeaff; }
.kb-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kb-article-card:hover .kb-card-image img { transform: scale(1.035); }
.kb-image-placeholder { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--kb-primary), #32129b 62%, var(--kb-purple)); }
.kb-image-placeholder i { position: absolute; width: 170px; height: 170px; right: -28px; top: -55px; border: 28px solid var(--kb-cyan); border-radius: 50%; opacity: .85; }
.kb-image-placeholder b { position: relative; font-family: var(--kb-font-title); font-size: 68px; }
.kb-card-content { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.kb-card-meta { display: flex; min-height: 24px; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #79768e; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kb-card-meta span { color: var(--kb-purple); }
.kb-card-content h3 { margin-bottom: 14px; font-size: 25px; line-height: 1.18; }
.kb-card-content h3 a:hover { color: var(--kb-purple); }
.kb-card-content p { margin: 0 0 22px; color: var(--kb-ink-soft); font-size: 15px; line-height: 1.65; }
.kb-read-more { margin-top: auto; font-size: 14px; }
.kb-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.kb-pagination a, .kb-pagination span { min-width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--kb-line); border-radius: 10px; font-weight: 700; }
.kb-pagination .active a, .kb-pagination a:hover { color: #fff; background: var(--kb-primary); }
.kb-pagination .disabled { display: none; }
.kb-empty-state { padding: 72px 24px; border: 1px dashed #cbc8dc; border-radius: var(--kb-radius); text-align: center; background: var(--kb-surface); }
.kb-empty-state > span { font-size: 54px; color: var(--kb-purple); }
.kb-empty-state h3 { margin: 8px 0; font-size: 30px; }
.kb-empty-state p { margin: 0 0 24px; color: var(--kb-ink-soft); }

.kb-newsletter { padding: 75px 0; background: linear-gradient(105deg, #f0ebff, #eaffff); }
.kb-newsletter-inner { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; }
.kb-newsletter h2 { margin-bottom: 16px; }
.kb-newsletter p { margin: 0; color: var(--kb-ink-soft); font-size: 18px; }
.kb-newsletter-form { margin: 0; padding: 28px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--kb-radius); background: rgba(255,255,255,.82); box-shadow: var(--kb-shadow); }
.kb-form-row { display: grid; grid-template-columns: .8fr 1.2fr auto; gap: 10px; }
.kb-form-row input { width: 100%; min-width: 0; height: 48px; padding: 0 15px; border: 1px solid #d7d4e3; border-radius: 999px; outline: none; }
.kb-form-row input:focus { border-color: var(--kb-purple); box-shadow: 0 0 0 3px rgba(144,59,251,.12); }
.kb-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; color: #66637a; font-size: 12px; }
.kb-consent input { margin-top: 3px; accent-color: var(--kb-purple); }
.kb-honeypot { position: absolute; left: -9999px; }
.kb-product-cta { padding: 82px 0; color: #fff; background: var(--kb-primary); }
.kb-product-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.kb-product-cta h2 { max-width: 720px; }
.kb-product-cta p { max-width: 700px; color: #c9c8db; font-size: 18px; }
.kb-product-actions { display: flex; flex: 0 0 auto; flex-direction: column; gap: 12px; }

.kb-article-header { padding: 65px 0 55px; background: linear-gradient(115deg, #f2edff, #fff 55%, #d5ffff); }
.kb-article-header-inner { max-width: 900px; }
.kb-breadcrumb { display: flex; gap: 9px; margin-bottom: 35px; color: #77748c; font-size: 14px; }
.kb-breadcrumb a:hover { color: var(--kb-purple); }
.kb-topic-pill { display: inline-flex; margin-bottom: 20px; padding: 6px 13px; border-radius: 999px; color: var(--kb-purple); background: #eee6ff; font-size: 13px; font-weight: 800; }
.kb-article-header h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 500; }
.kb-article-lead { margin: 24px 0; color: var(--kb-ink-soft); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; }
.kb-byline { display: flex; flex-wrap: wrap; gap: 9px; color: #6c697d; font-size: 14px; }
.kb-byline > :first-child { color: var(--kb-primary); font-weight: 800; }
.kb-featured-image { margin-top: 55px; }
.kb-featured-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--kb-radius); }
.kb-featured-image figcaption { margin-top: 9px; color: #77748c; font-size: 13px; text-align: center; }
.kb-article-layout { display: grid; grid-template-columns: 90px minmax(0, 780px); justify-content: center; gap: 38px; padding-block: 68px 90px; }
.kb-share { position: sticky; top: 180px; height: max-content; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kb-share > span { color: #77748c; font-size: 11px; font-weight: 800; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.kb-share a, .kb-share button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--kb-line); border-radius: 50%; color: var(--kb-primary); background: #fff; font-weight: 900; }
.kb-share a:hover, .kb-share button:hover { color: #fff; border-color: var(--kb-purple); background: var(--kb-purple); }
.kb-article-body { color: #272645; font-size: 18px; line-height: 1.82; }
.kb-article-body h2 { margin: 1.6em 0 .6em; color: var(--kb-primary); font-size: 38px; }
.kb-article-body h3 { margin: 1.5em 0 .5em; color: var(--kb-primary); font-size: 28px; }
.kb-article-body a { color: #6e22d9; text-decoration: underline; text-underline-offset: 3px; }
.kb-article-body img { height: auto; margin: 35px auto; border-radius: 16px; }
.kb-article-body blockquote { margin: 35px 0; padding: 24px 30px; border-left: 5px solid var(--kb-cyan); color: var(--kb-primary); background: #f4f2ff; font-size: 21px; }
.kb-article-body code { padding: 2px 6px; border-radius: 5px; background: #f0eff5; font-size: .9em; }
.kb-article-body pre { overflow-x: auto; padding: 22px; border-radius: 14px; color: #fff; background: var(--kb-primary); }
.kb-inline-cta { margin: 55px 0 15px; padding: 36px; border-radius: var(--kb-radius); background: linear-gradient(135deg, #eee8ff, #e8ffff); }
.kb-inline-cta h2 { margin: 0 0 12px; font-size: 36px; }
.kb-inline-cta p { margin: 0 0 22px; }
.kb-inline-cta a { color: #fff; text-decoration: none; }
.kb-related { background: var(--kb-surface); }

.message { width: min(1180px, calc(100% - 48px)); margin: 18px auto; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.message.success { color: #075b3a; background: #dff8ec; }
.message.error { color: #8a1730; background: #ffe6ec; }
.message.hidden { display: none; }

.kb-footer { padding: 65px 0 25px; color: #d2d2e1; background: #060629; }
.kb-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 55px; }
.kb-brand-footer { filter: brightness(0) invert(1); }
.kb-footer-grid p { max-width: 370px; color: #aaa9c0; }
.kb-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.kb-footer-grid strong { margin-bottom: 8px; color: #fff; }
.kb-footer-grid a:hover { color: var(--kb-cyan); }
.kb-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8c8ba5; font-size: 13px; }

/* CRUD administrativo gerado pelo Bake */
.kb-admin-page .kb-main { min-height: 70vh; padding: 44px 0 80px; background: var(--kb-surface); }
.kb-admin-page .kb-main > .row, .kb-admin-page .kb-main > .content, .kb-admin-page .kb-main > div:not(.message) { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.kb-admin-page .row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
.kb-admin-page .row .column-80 { min-width: 0; }
.kb-admin-page .content { padding: 28px; border: 1px solid var(--kb-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,61,.05); }
.kb-admin-page h3, .kb-admin-page h4, .kb-admin-page legend { font-family: var(--kb-font-title); color: var(--kb-primary); }
.kb-admin-page h3 { font-size: 32px; }
.kb-admin-page .side-nav { padding: 22px; border-radius: 16px; background: var(--kb-primary); }
.kb-admin-page .side-nav .heading { margin: 0 0 12px; color: var(--kb-cyan); }
.kb-admin-page .side-nav-item { display: block; padding: 9px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.kb-admin-page .button, .kb-admin-page button[type=submit], .kb-admin-page input[type=submit] { display: inline-flex; padding: 10px 18px; border: 0; border-radius: 999px; color: #fff; background: var(--kb-purple); font-weight: 800; }
.kb-admin-page .float-right { float: right; }
.kb-admin-page .table-responsive { width: 100%; overflow-x: auto; }
.kb-admin-page table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kb-admin-page th, .kb-admin-page td { padding: 11px 12px; border-bottom: 1px solid var(--kb-line); text-align: left; vertical-align: top; white-space: nowrap; }
.kb-admin-page th { background: #f2efff; }
.kb-admin-page td.actions { display: flex; gap: 8px; }
.kb-admin-page td.actions a { color: #6f27d2; font-weight: 700; }
.kb-admin-page fieldset { border: 0; padding: 0; }
.kb-admin-page label { display: block; margin: 14px 0 5px; font-weight: 700; }
.kb-admin-page input:not([type=checkbox]):not([type=radio]), .kb-admin-page select, .kb-admin-page textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d6d4e1; border-radius: 9px; background: #fff; }
.kb-admin-page textarea { min-height: 150px; }
.kb-admin-page .error-message { color: #a51c3b; font-size: 13px; }
.kb-admin-page .pagination { display: flex; gap: 5px; padding: 0; list-style: none; }
.kb-admin-page .pagination a { display: block; padding: 7px 11px; border: 1px solid var(--kb-line); border-radius: 7px; }

@media (max-width: 980px) {
    .kb-header-actions { display: none; }
    .kb-menu-toggle { width: 46px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 10px; background: #f2efff; }
    .kb-menu-toggle > span:not(.kb-sr-only) { width: 23px; height: 2px; background: var(--kb-primary); transition: .2s; }
    .kb-menu-toggle[aria-expanded=true] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .kb-menu-toggle[aria-expanded=true] > span:nth-child(2) { opacity: 0; }
    .kb-menu-toggle[aria-expanded=true] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .kb-navigation { position: fixed; inset: 86px 0 auto; max-height: 0; overflow: hidden; border: 0; background: #fff; box-shadow: 0 18px 35px rgba(0,0,61,.12); transition: max-height .28s ease; }
    .kb-navigation.is-open { max-height: calc(100vh - 86px); overflow-y: auto; }
    .kb-nav-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 12px 25px; }
    .kb-nav-inner > a { padding: 13px 5px; border-bottom: 1px solid var(--kb-line); }
    .kb-nav-inner > a::after { display: none; }
    .kb-mobile-actions { display: block; margin-top: 14px; }
    .kb-mobile-actions a { display: block; padding: 13px; border-radius: 999px; color: #fff; background: var(--kb-purple); text-align: center; font-weight: 800; }
    .kb-hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 25px; padding-block: 70px; }
    .kb-hero-visual { min-height: 330px; }
    .kb-article-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-newsletter-inner { grid-template-columns: 1fr; gap: 30px; }
    .kb-form-row { grid-template-columns: 1fr; }
    .kb-product-cta-inner { align-items: flex-start; flex-direction: column; }
    .kb-product-actions { flex-direction: row; }
    .kb-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .kb-footer-grid > :last-child { grid-column: 2; }
    .kb-admin-page .row { grid-template-columns: 1fr; }
    .kb-admin-page .side-nav { display: flex; align-items: center; gap: 18px; overflow-x: auto; }
    .kb-admin-page .side-nav .heading { margin: 0; }
    .kb-admin-page .side-nav-item { flex: 0 0 auto; border: 0; }
}

@media (max-width: 680px) {
    .kb-shell { width: min(100% - 30px, 1180px); }
    .kb-header-main { min-height: 74px; }
    .kb-brand-icon { width: 37px; height: 37px; }
    .kb-brand-word { width: 128px; }
    .kb-brand-tag { display: none; }
    .kb-navigation { inset: 74px 0 auto; }
    .kb-blog-hero h1 { font-size: 44px; }
    .kb-hero-grid { padding-block: 55px; }
    .kb-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .kb-hero-visual { min-height: 280px; }
    .kb-visual-card-main { top: 42px; left: 15px; }
    .kb-filter-section, .kb-related { padding: 65px 0; }
    .kb-section-heading { align-items: stretch; flex-direction: column; }
    .kb-search { width: 100%; }
    .kb-article-grid { grid-template-columns: 1fr; }
    .kb-card-image { height: 210px; }
    .kb-newsletter { padding: 55px 0; }
    .kb-newsletter-form { padding: 20px; }
    .kb-product-cta { padding: 60px 0; }
    .kb-product-actions { width: 100%; flex-direction: column; }
    .kb-article-header { padding: 42px 0; }
    .kb-article-header h1 { font-size: 42px; }
    .kb-article-layout { display: block; padding-block: 48px 65px; }
    .kb-share { position: static; flex-direction: row; justify-content: flex-start; margin-bottom: 28px; }
    .kb-share > span { margin: 0 5px 0 0; writing-mode: initial; transform: none; }
    .kb-article-body { font-size: 17px; }
    .kb-article-body h2 { font-size: 31px; }
    .kb-inline-cta { padding: 26px; }
    .kb-footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .kb-footer-grid > :first-child { grid-column: 1 / -1; }
    .kb-footer-grid > :last-child { grid-column: auto; }
    .kb-footer-bottom { flex-direction: column; }
    .kb-admin-page .kb-main > .row, .kb-admin-page .kb-main > .content, .kb-admin-page .kb-main > div:not(.message) { width: min(100% - 24px, 1380px); }
    .kb-admin-page .content { padding: 18px; }
}
