:root {
    --limestone: #F4EFE6;
    --limestone-2: #ECE2CE;
    --paper: #FFFEFA;
    --ink: #1B2B2E;
    --ink-70: rgba(27, 43, 46, 0.72);
    --ink-50: rgba(27, 43, 46, 0.52);
    --verdigris: #2F6E5C;
    --verdigris-deep: #1F4E41;
    --terracotta: #B5502E;
    --terracotta-deep: #8F3E23;
    --brass: #A9813F;
    --brass-light: #D9BE86;
    --navy-deep: #101A1D;
}
* {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, .font-display {
    font-family: 'Fraunces', serif;
}
.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--limestone);
    color: var(--ink);
    line-height: 1.6;
}

/* ========== TOKENS DE COR ========== */
.ink { color: var(--ink); }
.ink-70 { color: var(--ink-70); }
.ink-50 { color: var(--ink-50); }
.bg-paper { background: var(--paper); }
.bg-limestone { background: var(--limestone); }
.bg-limestone-2 { background: var(--limestone-2); }
.text-brand { color: var(--verdigris); }
.bg-brand { background: var(--verdigris); }
.text-accent { color: var(--terracotta); }
.text-brass { color: var(--brass); }
.border-hairline { border-color: rgba(169, 129, 63, 0.25); }

/* ========== ESTRUTURA GERAL ========== */
.nav-surface {
    background: rgba(255, 254, 250, 0.9);
    backdrop-filter: blur(12px);
}
.nav-link {
    color: var(--ink-70);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--verdigris); }

.gradient-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(47, 110, 92, 0.07) 0%, transparent 60%),
        radial-gradient(circle at 85% 78%, rgba(181, 80, 46, 0.06) 0%, transparent 55%),
        var(--limestone);
}
.btn-primary {
    background: linear-gradient(105deg, var(--verdigris-deep) 0%, var(--verdigris) 100%);
    box-shadow: 0 8px 20px -8px rgba(31, 78, 65, 0.4);
    transition: all 0.25s ease;
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(31, 78, 65, 0.5);
    background: linear-gradient(105deg, #173d33 0%, var(--verdigris-deep) 100%);
}
.btn-outline {
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--limestone);
    border-color: var(--ink);
}
.eyebrow-pill {
    background: var(--paper);
    border: 1px solid rgba(169, 129, 63, 0.35);
    color: var(--ink);
}
.eyebrow-tag {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--verdigris);
}
.hairline-rule {
    width: 34px;
    height: 2px;
    background: var(--brass);
    display: inline-block;
}

/* ========== PLATE (cartão-placa com parafusos) ========== */
.plate {
    position: relative;
    background: var(--paper);
    border: 1px solid rgba(169, 129, 63, 0.28);
    border-radius: 14px;
}
.screw {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, var(--brass) 75%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.screw-tl { top: 12px; left: 12px; }
.screw-tr { top: 12px; right: 12px; }
.screw-bl { bottom: 12px; left: 12px; }
.screw-br { bottom: 12px; right: 12px; }

.plate-head-a { background: linear-gradient(120deg, rgba(47, 110, 92, 0.08), rgba(169, 129, 63, 0.07)); }
.plate-head-b { background: linear-gradient(120deg, rgba(27, 43, 46, 0.05), rgba(181, 80, 46, 0.07)); }

.icon-plate {
    border-radius: 10px;
    border: 1px solid rgba(169, 129, 63, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-icon-bg {
    background: linear-gradient(135deg, rgba(47, 110, 92, 0.1), rgba(169, 129, 63, 0.12));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .feature-icon-bg {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(47, 110, 92, 0.15);
}
.b2b-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.b2b-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -15px rgba(16, 25, 28, 0.14);
}
.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -10px rgba(16, 25, 28, 0.14);
}
.footer-grad {
    background: linear-gradient(100deg, var(--navy-deep) 0%, #172522 100%);
}
.footer-muted { color: rgba(244, 239, 230, 0.7); }

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}
.floating-shape {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* ========== SIGNATURE: QUADRO DE AVISOS (painel de campainhas) ========== */
.directory { width: 100%; max-width: 380px; }
.directory-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 4px;
}
.directory-head-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brass); opacity: 0.6;
}
.directory-head-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--ink-50);
    margin-left: 4px;
}
.directory-panel {
    background: linear-gradient(155deg, #E9E2D3 0%, #DCD3BF 100%);
    border: 1px solid rgba(169, 129, 63, 0.4);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 30px 60px -25px rgba(16, 25, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.directory-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: 1px solid rgba(27, 43, 46, 0.08);
    border-radius: 7px;
    padding: 11px 16px;
}
.directory-num { font-size: 0.78rem; color: var(--ink-50); min-width: 20px; }
.directory-name {
    font-size: 0.9rem;
    color: var(--ink-70);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.directory-row--lit {
    background: linear-gradient(105deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
    border-color: transparent;
    box-shadow: 0 12px 24px -10px rgba(181, 80, 46, 0.5);
}
.directory-row--lit .directory-num,
.directory-row--lit .directory-name { color: #fff; }
.directory-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 8px;
    border-radius: 20px;
}
.directory-pulse {
    position: absolute;
    right: 14px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    animation: directory-pulse 2.2s ease-in-out infinite;
}
@keyframes directory-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.directory-caption {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-50);
    text-align: center;
    margin-top: 12px;
}

/* ========== NOTE-CARD (aviso afixado) ========== */
.note-card {
    position: relative;
    background: var(--paper);
    border: 1px solid rgba(27, 43, 46, 0.08);
    border-radius: 4px;
    transform: rotate(-0.4deg);
    box-shadow: 0 18px 40px -20px rgba(16, 25, 28, 0.25);
}
.note-pin {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #E8836A, var(--terracotta));
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.framed-shot {
    border: 1px solid rgba(169, 129, 63, 0.35);
    padding: 8px;
    background: var(--paper);
    border-radius: 16px;
}

/* ========== WIDGET CHAT ========== */
.chat-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verdigris-deep), var(--verdigris));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(31, 78, 65, 0.45);
    border: none;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.3s ease;
    animation: pulse-soft 2.8s ease-in-out infinite;
}
.chat-widget-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(31, 78, 65, 0.6);
}
.chat-widget-btn:focus-visible {
    outline: 3px solid var(--verdigris);
    outline-offset: 3px;
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 8px 24px rgba(31, 78, 65, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(31, 78, 65, 0.7); }
}
.mini-chat {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1000;
    width: 340px;
    max-width: 90vw;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(16, 25, 28, 0.2);
    border: 1px solid rgba(169, 129, 63, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mini-chat.hidden-chat {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    pointer-events: none;
}
.mini-chat-header {
    background: linear-gradient(105deg, var(--verdigris-deep), var(--verdigris));
    color: white;
    padding: 14px 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}
.mini-chat-body {
    padding: 16px;
    min-height: 200px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--limestone);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}
.mini-chat-input-area {
    display: flex;
    border-top: 1px solid rgba(169, 129, 63, 0.25);
    padding: 10px;
    background: var(--paper);
}
.mini-chat-input-area input {
    flex: 1;
    border: 1px solid rgba(27, 43, 46, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    outline: none;
    transition: border 0.2s;
}
.mini-chat-input-area input:focus {
    border-color: var(--verdigris);
    box-shadow: 0 0 0 2px rgba(47, 110, 92, 0.15);
}
.mini-chat-input-area button {
    margin-left: 8px;
    background: var(--verdigris);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-chat-input-area button:hover {
    background: var(--verdigris-deep);
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 85%;
    line-height: 1.4;
    animation: fadeInUp 0.3s ease;
}
.chat-bubble.assistant {
    background: rgba(47, 110, 92, 0.09);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--ink);
}
.chat-bubble.user {
    background: var(--verdigris);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loader spinner para formulário (botão claro) */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(31, 78, 65, 0.25);
    border-top-color: var(--verdigris-deep);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btn-submit-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Ajuste de foco visível para acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2.5px solid var(--verdigris);
    outline-offset: 2px;
}

/* ========================================================
   BLOG — gerado a partir de /blog/posts/*.md (build.js)
   ======================================================== */

.blog-lang-switch a {
    color: var(--ink-50);
    transition: color 0.2s;
}
.blog-lang-switch a.is-active {
    color: var(--verdigris);
    font-weight: 600;
}
.blog-lang-switch a:hover { color: var(--verdigris); }

.blog-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px -14px rgba(16, 25, 28, 0.16);
}
.blog-card-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(47, 110, 92, 0.12), rgba(169, 129, 63, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tipografia do corpo do artigo (markdown renderizado) */
.post-body {
    color: var(--ink-70);
    font-size: 1.08rem;
}
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2em;
}
.post-body h3 {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 600;
    margin-top: 1.75em;
}
.post-body p { line-height: 1.75; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a {
    color: var(--verdigris);
    text-decoration: underline;
    text-decoration-color: rgba(47, 110, 92, 0.35);
    text-underline-offset: 2px;
}
.post-body a:hover { text-decoration-color: var(--verdigris); }
.post-body ul, .post-body ol {
    padding-left: 1.4em;
}
.post-body ul { list-style: none; }
.post-body ul > li {
    position: relative;
    padding-left: 1.5em;
}
.post-body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brass);
}
.post-body ol { list-style: decimal; }
.post-body ol > li { padding-left: 0.3em; }
.post-body ol > li::marker {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--verdigris);
    font-weight: 600;
}
.post-body blockquote {
    border-left: 3px solid var(--brass);
    background: var(--paper);
    padding: 0.9em 1.3em;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--ink-70);
}
.post-body code {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--limestone-2);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
}
.post-body pre {
    background: var(--navy-deep);
    color: var(--limestone);
    padding: 1.1em 1.3em;
    border-radius: 10px;
    overflow-x: auto;
}
.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.post-body img {
    border-radius: 14px;
    border: 1px solid rgba(169, 129, 63, 0.3);
}
.post-body hr {
    border: none;
    height: 1px;
    background: rgba(169, 129, 63, 0.3);
    margin: 2em 0;
}
