/* ============================================================
   ENGENHO — Estúdio de Engenharia Digital
   style.css — dossiê técnico / especificação de operação
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ---- papel técnico ---- */
    --bg: #0F131A;               /* tinta de máquina */
    --bg-soft: #141A23;          /* chão de oficina */
    --surface: #1A212C;          /* placa */
    --surface-2: #202936;
    --text: #F0F2EC;             /* papel */
    --text-muted: #A9B0BA;
    --accent: #D9A066;           /* cobre de instrumento */
    --accent-soft: #E8BC8A;
    --primary: #D9A066;
    --primary-hover: #E8BC8A;
    --line: rgba(240, 242, 236, 0.10);
    --line-strong: rgba(240, 242, 236, 0.20);
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(217, 160, 102, 0.05);
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --section-gap: clamp(80px, 11vw, 150px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --z-nav: 1000; --z-drawer: 1100; --z-modal: 1200; --z-bot: 1050;
}

html { scroll-behavior: auto; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
html.lp-loading .js-personalize { visibility: hidden; }

/* ============ GRUNDO: textura de grão + grade técnica ============ */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
.tech-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
    opacity: 0.5;
}
.watermark {
    position: absolute; font-family: var(--font-display); font-weight: 800;
    font-size: clamp(120px, 26vw, 420px); line-height: 1; letter-spacing: -0.03em;
    color: transparent; -webkit-text-stroke: 1px rgba(240, 242, 236, 0.045);
    user-select: none; pointer-events: none; z-index: 0; white-space: nowrap;
}

/* ============ COMPONENTES DO DOSSIÊ ============ */
.spec-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.spec-label::before { content: ''; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

.chapter {
    display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px;
}
.chapter-idx {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent);
    border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: var(--radius-sm);
}
.chapter-name {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted);
}
.chapter-line { flex: 1; height: 1px; background: var(--line); align-self: center; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em;
    margin: 14px 0 18px;
}
.section-title .accent-word { color: var(--accent); }
.section-lead { color: var(--text-muted); font-size: 17px; max-width: 560px; }
.tight { letter-spacing: -0.02em; }

/* --- placa emoldurada (figura do sistema) --- */
.placa {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.placa::before, .placa::after {
    content: ''; position: absolute; inset: -7px; pointer-events: none; z-index: 4;
    background-repeat: no-repeat; opacity: 0.55; transition: opacity 0.4s var(--ease);
}
.placa::before {
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px;
    background-position: left 0 top 0, left 0 top 0, right 0 bottom 0, right 0 bottom 0;
}
.placa::after {
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px;
    background-position: right 0 top 0, right 0 top 0, left 0 bottom 0, left 0 bottom 0;
}
.placa:hover::before, .placa:hover::after { opacity: 1; }
.placa-media { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.placa-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) sepia(0.5) saturate(1.4) brightness(0.8) contrast(1.05); }
.placa-tag {
    position: absolute; top: -10px; left: 20px; z-index: 5;
    background: var(--surface); padding: 0 10px;
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
    border: 1px solid var(--line);
}
.placa-caption {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 18px; border-top: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.placa-caption .pc-right { color: var(--accent); }

/* régua de cota */
.cota { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.cota-tick { width: 10px; height: 1px; background: var(--accent); position: relative; flex: none; }
.cota-tick::after { content: ''; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--accent); }
.cota-tick:first-child::after { left: 0; }
.cota-tick:last-child::after { right: 0; }
.cota-val { flex: none; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.cota-line { flex: 1; height: 1px; background: var(--line-strong); }

.cutmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--accent); }
.cutmark::before { content: ''; width: 40px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }

/* ---- reveal (ui.js) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) 0.12s, transform 0.9s var(--ease) 0.12s; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.2s; }
.reveal-d2 { transition-delay: 0.32s; }
.reveal-d3 { transition-delay: 0.44s; }

/* ============ BOTÕES ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: 0.01em;
    transition: all 0.32s var(--ease); position: relative;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217, 160, 102, 0.22); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-mono {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.btn .btn-arrow { transition: transform 0.32s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ NAVBAR ============ */
.navbar-wrapper {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
    transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.navbar-wrapper.hidden { transform: translateY(-100%); }
.navbar-wrapper.scrolled { background: rgba(15, 19, 26, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.navbar {
    max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-rev { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.26em; color: var(--text-muted); text-transform: uppercase; }

.navbar-links { display: flex; align-items: center; gap: 6px; }
.navbar-links > a, .nav-drop-btn {
    position: relative; padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-muted);
    transition: color 0.3s var(--ease);
}
.navbar-links > a::after, .nav-drop-btn::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.navbar-links > a:hover, .navbar-links > a.active, .nav-drop-btn:hover { color: var(--text); }
.navbar-links > a:hover::after, .navbar-links > a.active::after, .nav-drop-btn:hover::after { transform: scaleX(1); }

.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 8px; }
.drop-arrow { width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.nav-drop.open .drop-arrow { transform: rotate(225deg) translateY(-1px); }
.nav-drop-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden;
    transition: all 0.3s var(--ease); z-index: 10;
}
.nav-drop-panel.np-wide { width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-drop-panel.np-wide .nav-drop-link:nth-child(2n) { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 22px; }
.nav-drop-panel::before {
    content: ''; position: absolute; inset: -7px; pointer-events: none; background-repeat: no-repeat;
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 18px 1.5px, 1.5px 18px, 18px 1.5px, 1.5px 18px;
    background-position: left 0 top 0, left 0 top 0, right 0 bottom 0, right 0 bottom 0;
}
.nav-drop.open .nav-drop-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-link { display: flex; align-items: baseline; gap: 14px; padding: 13px 16px; border-radius: 8px; transition: background 0.25s var(--ease); }
.nav-drop-link:hover { background: rgba(240, 242, 236, 0.05); }
.nav-drop-link .drop-id { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.2em; flex: none; }
.nav-drop-link .drop-title { font-weight: 600; font-size: 14px; display: block; }
.nav-drop-link .drop-desc { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--text-muted); display: block; margin-top: 2px; }

.navbar-cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 1px; transition: all 0.3s var(--ease); }

/* ============ DRAWER MOBILE (pela esquerda) ============ */
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(5, 7, 10, 0.72); opacity: 0; visibility: hidden; transition: var(--ease); z-index: var(--z-drawer); }
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw);
    background: var(--surface); border-right: 1px solid var(--line);
    transform: translateX(-100%); transition: transform 0.4s var(--ease); z-index: var(--z-drawer);
    display: flex; flex-direction: column; padding: 22px; overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer.active { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand-logo { width: 38px; height: 38px; }
.drawer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.drawer-slogan { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }
.drawer-close { color: var(--text-muted); font-size: 26px; line-height: 1; }
.drawer-nav { display: flex; flex-direction: column; gap: 3px; margin: 18px 0; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14.5px; transition: background 0.25s var(--ease); }
.drawer-nav a:hover, .drawer-nav a.active { background: rgba(240, 242, 236, 0.06); }
.drawer-icon { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--accent); width: 22px; }
.drawer-sub { display: flex; flex-direction: column; gap: 2px; padding-left: 34px; }
.drawer-sub a { font-size: 13px; color: var(--text-muted); padding: 7px 12px; }
.drawer-contact { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); }
.drawer-contact-item { display: flex; align-items: center; gap: 10px; }
.contact-icon { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); width: 24px; }
.drawer-footer { margin-top: auto; padding-top: 16px; }
.drawer-footer .btn { width: 100%; }

/* ============ HERO (anatomia única) ============ */
.hero-section {
    min-height: 100vh; display: flex; align-items: center;
    padding: 150px var(--gutter) 80px; position: relative; overflow: hidden;
}
.hero-layout {
    width: 100%; max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 2;
}
.hero-copy, .hero-figure { min-width: 0; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: var(--radius-sm); }
.hero-tag b { color: var(--accent); font-weight: 500; }
.hero-title {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: 0.98;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 17.5px; max-width: 540px; margin: 26px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-edge {
    position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl; z-index: 3;
    font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-muted);
}
.hero-edge b { color: var(--accent); font-weight: 500; }

.hero-figure { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.hero-figure-bg { position: absolute; inset: -8% -6%; pointer-events: none; z-index: -1; }
.hero-figure-bg svg { width: 100%; height: auto; opacity: 0.5; }

/* ---- CAIXA DE CHAT DO BOT = aparelho de medição ---- */
.hero-chat-box {
    width: 100%; max-width: 420px; position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); overflow: visible;
    transition: transform 0.45s var(--ease);
}
.hero-chat-box:hover { transform: translateY(-4px); }
.hero-chat-box::before, .hero-chat-box::after {
    content: ''; position: absolute; inset: -9px; pointer-events: none; z-index: 3;
    background-repeat: no-repeat; opacity: 0.6; transition: opacity 0.4s var(--ease);
}
.hero-chat-box::before {
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 26px 2px, 2px 26px, 26px 2px, 2px 26px;
    background-position: left 0 top 0, left 0 top 0, right 0 bottom 0, right 0 bottom 0;
}
.hero-chat-box::after {
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 26px 2px, 2px 26px, 26px 2px, 2px 26px;
    background-position: right 0 top 0, right 0 top 0, left 0 bottom 0, left 0 bottom 0;
}
.hero-chat-box:hover::before, .hero-chat-box:hover::after { opacity: 1; }
.chat-box-tag {
    position: absolute; top: -11px; left: 22px; z-index: 4;
    background: var(--surface); padding: 0 10px; border: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
}
.chat-box-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--line); background: rgba(240, 242, 236, 0.02); border-radius: 16px 16px 0 0;
}
.chat-box-avatar { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; animation: avatar-ring 2.8s ease-out infinite; }
@keyframes avatar-ring { 0% { box-shadow: 0 0 0 0 rgba(217, 160, 102, 0.4); } 70% { box-shadow: 0 0 0 9px rgba(217, 160, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 160, 102, 0); } }
.chat-box-info { flex: 1; min-width: 0; }
.chat-box-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.chat-box-role { font-size: 11px; color: var(--text-muted); }
.chat-box-status { font-size: 11px; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 160, 102, 0.4); } 55% { box-shadow: 0 0 0 6px rgba(217, 160, 102, 0); } }
.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.wave b { width: 2px; height: 40%; background: var(--accent); border-radius: 1px; animation: wave 1.3s ease-in-out infinite; }
.wave b:nth-child(2) { animation-delay: 0.18s; }
.wave b:nth-child(3) { animation-delay: 0.36s; }
@keyframes wave { 0%, 100% { height: 35%; } 50% { height: 100%; } }
.chat-box-messages { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 150px; background-image: linear-gradient(rgba(240,242,236,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(240,242,236,0.03) 1px, transparent 1px); background-size: 22px 22px; }
.chat-bubble { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; max-width: 85%; }
.chat-bubble.bot { background: rgba(240, 242, 236, 0.06); border: 1px solid var(--line); border-radius: 10px 10px 10px 3px; align-self: flex-start; }
.chat-bubble.user { background: var(--accent); color: var(--bg); border-radius: 10px 10px 3px 10px; align-self: flex-end; }
.chat-teaser { position: absolute; left: 16px; right: 16px; bottom: 76px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; pointer-events: none; }
.chat-teaser.on { opacity: 1; visibility: visible; }
.chat-teaser .chat-bubble { opacity: 0; transform: translateY(8px); }
.chat-teaser.on .chat-teaser-typing { animation: teaser-cycle 9s infinite 0.5s; }
.chat-teaser.on .chat-teaser-msg { animation: teaser-cycle 9s infinite 4.8s; }
@keyframes teaser-cycle {
    0%, 6% { opacity: 0; transform: translateY(8px); }
    14%, 48% { opacity: 1; transform: none; }
    56%, 100% { opacity: 0; transform: translateY(-4px); }
}
.chat-box-cta { display: flex; flex-direction: column; gap: 11px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); border-radius: 0 0 16px 16px; }
.chat-box-cta .btn { width: 100%; }
.chat-box-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.chat-box-statusbar .sb-live { display: flex; align-items: center; gap: 7px; }
.chat-box-statusbar .sb-ref { color: var(--accent); }

/* ============ FAIXA DE LEITURAS (régua de métricas) ============ */
.readings {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-soft); position: relative; z-index: 2;
}
.readings-inner {
    max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.reading { display: flex; flex-direction: column; gap: 6px; }
.reading .r-key { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.reading .r-val { font-family: var(--font-mono); font-size: clamp(18px, 2.4vw, 26px); color: var(--accent); letter-spacing: -0.01em; }
.reading .r-unit { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }

/* ============ SPLIT DIAGNÓSTICO ============ */
.split { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); position: relative; }
.split-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-grid.invert { grid-template-columns: 1fr 2fr; }
.split-copy p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 18px; max-width: 620px; }
.split-copy p strong { color: var(--text); font-weight: 600; }
.split-copy .accent-word { color: var(--accent); }
.dor-list { margin: 22px 0 0; display: flex; flex-direction: column; gap: 0; }
.dor-item { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.dor-item:last-child { border-bottom: 1px solid var(--line); }
.dor-item .di-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; flex: none; width: 30px; }
.dor-item .di-t { font-weight: 600; font-size: 15.5px; }
.dor-item .di-s { font-size: 13.5px; color: var(--text-muted); display: block; }

/* ============ MÁQUINA (horizontal pinado) ============ */
.machine { position: relative; overflow: hidden; padding: var(--section-gap) 0; background: var(--bg-soft); z-index: 2; }
.machine-head { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.machine-rail-wrap { padding: clamp(48px, 7vw, 88px) 0; }
.machine-rail-wrap.scroll-x { overflow-x: auto; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface); }
.draw-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.machine-rail { display: flex; gap: clamp(24px, 4vw, 56px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.station {
    width: clamp(280px, 34vw, 420px); flex: none; position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.station::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.6;
}
.station .st-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--accent); }
.station .st-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.station .st-desc { color: var(--text-muted); font-size: 14.5px; }
.station .st-out { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text); border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.machine-track { margin-top: clamp(24px, 4vw, 44px); }
.machine-track .mt-bar { height: 1px; background: var(--line-strong); position: relative; }
.machine-track .mt-fill { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.machine-hint { display: flex; justify-content: flex-end; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); padding: 12px var(--gutter) 0; }

/* ============ FRENTES DE ENGENHARIA (grid assimétrico) ============ */
.frentes { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.frentes-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.frente { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.frente:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.frente .f-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; color: var(--accent); padding: 22px 22px 0; }
.frente .f-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.02em; padding: 12px 22px 10px; }
.frente .f-desc { color: var(--text-muted); font-size: 14px; padding: 0 22px; flex: 1; }
.frente .f-link { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; margin-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.frente .f-link span { transition: transform 0.3s var(--ease); }
.frente:hover .f-link span { transform: translateX(5px); }
.frente.f-media { padding: 0; }
.frente.f-media .f-media-img { height: 180px; }
.frente.f-media .f-media-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) sepia(0.5) saturate(1.4) brightness(0.78) contrast(1.05); }
.frente.f-spec { background: transparent; border-style: dashed; }
.frente.f-spec .f-spec-row { display: flex; justify-content: space-between; gap: 10px; padding: 13px 22px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.frente.f-spec .f-spec-row:first-of-type { border-top: 0; }
.frente.f-spec .f-spec-row span:first-child { color: var(--text-muted); }
.frente.f-spec .f-spec-row span:last-child { color: var(--text); }

/* ============ ANTES/DEPOIS ============ */
.transform { background: var(--bg-soft); position: relative; z-index: 2; }
.transform-inner { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.transform-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.transform-chart svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 20px; padding-top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend .lg-bar { width: 18px; height: 2px; display: inline-block; }
.chart-legend .lg-before .lg-bar { background: var(--text-muted); }
.chart-legend .lg-after .lg-bar { background: var(--accent); }

/* ============ FAQ (conceito) ============ */
.faq { max-width: 880px; margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq-question { width: 100%; padding: 18px 22px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.3s var(--ease); }
.faq-question .fq-n { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.2em; margin-right: 12px; }
.faq-question::after { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer p { padding: 0 22px 18px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }

/* ============ PLACA DE ENCERRAMENTO (CTA final) ============ */
.closing { position: relative; overflow: hidden; padding: var(--section-gap) var(--gutter); text-align: center; z-index: 2; }
.closing-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.closing-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.0; }
.closing-title .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.closing-sub { color: var(--text-muted); font-size: 16.5px; max-width: 560px; margin: 22px auto 30px; }
.closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ RODAPÉ-COLOfÃO ============ */
.footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding: 0; z-index: 2; }
.footer-wordmark {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.9;
    font-size: clamp(4rem, 15vw, 13rem); color: transparent; -webkit-text-stroke: 1px rgba(240, 242, 236, 0.10);
    text-align: center; padding: 48px var(--gutter) 8px; user-select: none;
}
.footer-wordmark b { -webkit-text-stroke: 1.5px var(--accent); font-weight: 800; }
.footer-spec { text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); padding: 6px 0 34px; }
.footer-main { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 30px; display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); }
.footer-brand-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-logo { width: 40px; height: 40px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.footer-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); line-height: 1.8; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.26em; color: var(--accent); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: 13.5px; transition: color 0.25s var(--ease), transform 0.25s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a::before { content: '▪'; font-size: 8px; color: var(--accent); opacity: 0.5; }
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-col a::before { opacity: 1; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); transition: all 0.3s var(--ease); }
.footer-social a::before { content: none; }
.footer-social a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter) 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); flex-wrap: wrap; }
.footer-bottom .fb-right { display: flex; gap: 18px; }
.footer-bottom a { color: var(--text-muted); transition: color 0.25s var(--ease); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ BOT FLUTUANTE (abre modal DIRETO) ============ */
.floating-bot-container { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-bot); }
.floating-bot {
    position: relative; width: 64px; height: 64px; border-radius: 14px; cursor: pointer;
    display: grid; place-items: center; border: 1.5px solid var(--accent);
    background: var(--surface); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: scale(0.5); transition: all 0.4s var(--ease);
}
.floating-bot.visible { opacity: 1; visibility: visible; transform: scale(1); }
.floating-bot img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.floating-pulse { position: absolute; inset: -6px; border-radius: 16px; border: 1.5px solid var(--accent); animation: floating-ping 2s infinite; }
.floating-dot { position: absolute; bottom: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
@keyframes floating-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.3); opacity: 0; } }

/* ============ MODAL DE CHAT (pela DIREITA, full-height) ============ */
.chat-modal-overlay { position: fixed; inset: 0; background: rgba(5, 7, 10, 0.75); opacity: 0; visibility: hidden; transition: var(--ease); z-index: var(--z-modal); }
.chat-modal-overlay.active { opacity: 1; visibility: visible; }
.chat-modal { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: var(--z-modal); display: flex; flex-direction: column; }
.chat-modal.active { transform: translateX(0); }
.chat-modal-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.modal-avatar { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.modal-info { flex: 1; min-width: 0; }
.modal-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.modal-role { font-size: 11px; color: var(--text-muted); }
.modal-status { font-size: 11px; color: var(--accent); font-weight: 600; }
.chat-modal-close { color: var(--text-muted); font-size: 22px; line-height: 1; }
.chat-modal-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.chat-modal-footer { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-modal-footer input, .chat-modal-footer textarea { flex: 1; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); outline: none; font-family: inherit; font-size: 14px; resize: none; }
.chat-modal-footer input:focus, .chat-modal-footer textarea:focus { border-color: var(--accent); }
.send-btn { width: 46px; border-radius: 8px; border: none; background: var(--primary); color: var(--bg); font-size: 15px; }
.chat-options-container { display: flex; flex-direction: column; gap: 8px; }
.chat-option-btn { padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; text-align: left; transition: all 0.25s var(--ease); }
.chat-option-btn:hover { border-color: var(--accent); color: var(--accent); }
.chat-checkbox-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.chat-checkbox-option.checked { border-color: var(--accent); }
.chat-flow-input { flex: 1; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); outline: none; }
.chat-flow-send { width: 46px; border-radius: 8px; background: var(--primary); color: var(--bg); font-size: 15px; }
.chat-flow-continue { margin-top: 6px; }
.chat-end-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.chat-summary { max-width: 100%; }
.typing-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: typing-bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ============ PÁGINAS INTERNAS — HERO ============ */
.hero-inner { min-height: 0; padding: 170px var(--gutter) 70px; }
.hero-inner .hero-layout { grid-template-columns: 1.4fr 0.9fr; }

/* ============ SOBRE ============ */
.fundacao-placa { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.fundacao-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.fundacao-row:first-of-type { border-top: 0; }
.fundacao-row span:first-child { color: var(--text-muted); }
.fundacao-row span:last-child { color: var(--text); text-align: right; }

.manifesto { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--section-gap); }
.manifesto-lines { display: flex; flex-direction: column; }
.manifesto-line {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.12; padding: 16px 0;
    border-top: 1px solid var(--line); overflow: hidden; display: block;
}
.manifesto-line .ml-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.24em; margin-right: 16px; }
.manifesto-line .ml-sub { display: block; font-size: 14px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; font-family: var(--font-body); margin-top: 6px; }

.timeline { max-width: 900px; margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.timeline-line { position: relative; padding-left: 46px; }
.timeline-line::before {
    content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong);
}
.tl-node { position: relative; padding-bottom: 44px; }
.tl-node:last-child { padding-bottom: 0; }
.tl-node::before {
    content: ''; position: absolute; left: 4px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
}
.tl-year { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.28em; color: var(--accent); }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 6px 0 8px; }
.tl-desc { color: var(--text-muted); font-size: 14.5px; max-width: 560px; }

.mosaic { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.mosaic-grid {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr; grid-auto-rows: 130px; gap: 14px;
}
.mosaic-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; position: relative;
}
.mosaic-tile .mt-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--accent); }
.mosaic-tile .mt-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.mosaic-tile .mt-s { font-size: 12.5px; color: var(--text-muted); }
.mosaic-tile.mt-photo { padding: 0; }
.mosaic-tile.mt-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) sepia(0.5) saturate(1.4) brightness(0.78) contrast(1.05); }
.mosaic-tile.mt-wide { grid-column: span 2; }
.mosaic-tile.mt-tall { grid-row: span 2; }
.mosaic-tile.mt-feature { background: var(--surface-2); border-color: var(--line-strong); }
.mosaic-tile.mt-link { padding: 20px; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.mosaic-tile.mt-link:hover { transform: translateY(-4px); border-color: var(--accent); }
.mosaic-tile.mt-link::after { content: '→'; position: absolute; top: 18px; right: 18px; color: var(--accent); font-family: var(--font-mono); font-size: 13px; opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); }
.mosaic-tile.mt-link:hover::after { opacity: 1; transform: none; }
.mosaic-tile.mt-link .mt-t { transition: color 0.3s var(--ease); }
.mosaic-tile.mt-link:hover .mt-t { color: var(--accent); }

.fullband { position: relative; height: clamp(280px, 44vh, 520px); overflow: hidden; z-index: 2; }
.fullband img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) sepia(0.5) saturate(1.3) brightness(0.7) contrast(1.06); }
.fullband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(15,19,26,0.25) 45%, rgba(15,19,26,0.55) 100%); }
.fullband .fb-label { position: absolute; z-index: 2; top: 50%; left: var(--gutter); transform: translateY(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.fullband .fb-label b { color: var(--accent); font-weight: 500; }

/* vazio intencional */
.void { height: clamp(40vh, 60vh, 90vh); display: grid; place-items: center; position: relative; }
.void-inner { text-align: center; }
.void-inner .v-num { font-family: var(--font-mono); font-size: clamp(5rem, 16vw, 13rem); color: transparent; -webkit-text-stroke: 1px rgba(240,242,236,0.12); line-height: 1; }
.void-inner .v-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }

/* ============ SHOWCASE (vitrine horizontal) ============ */
.showcase { background: var(--bg-soft); overflow: hidden; padding: var(--section-gap) 0; z-index: 2; }
.showcase-head { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.showcase-strip { display: flex; gap: 18px; padding: clamp(40px, 6vw, 70px) var(--gutter); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface); }
.showcase-card { width: clamp(280px, 40vw, 420px); flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.showcase-card .sc-media { height: 210px; position: relative; }
.showcase-card .sc-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.9) sepia(0.5) saturate(1.3) brightness(0.8) contrast(1.05); }
.showcase-card .sc-body { padding: 20px 22px 22px; }
.showcase-card .sc-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent); }
.showcase-card .sc-t { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 8px 0 8px; }
.showcase-card .sc-d { color: var(--text-muted); font-size: 13.5px; }

/* ============ CHECKLIST ============ */
.checklist { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.check-item .ck-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex: none; line-height: 1.4; }
.check-item .ck-t { font-weight: 600; font-size: 14.5px; display: block; }
.check-item .ck-d { color: var(--text-muted); font-size: 13px; display: block; margin-top: 3px; }

/* ============ LEVELS (níveis de contrato) ============ */
.levels { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.levels-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; align-items: stretch; }
.level { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.level.featured { border-color: var(--accent); }
.level .lv-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent); }
.level .lv-t { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.level .lv-d { color: var(--text-muted); font-size: 13.5px; flex: 1; }
.level .lv-feat { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.level .lv-feat span { font-size: 13px; color: var(--text); }
.level .lv-feat span::before { content: '▪ '; color: var(--accent); }

/* ============ PILARES ============ */
.pilares { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--section-gap); }
.pilar { display: grid; grid-template-columns: 110px 1fr; gap: clamp(20px, 4vw, 48px); padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pilar:last-of-type { border-bottom: 1px solid var(--line); }
.pilar .pl-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.pilar .pl-body { display: flex; flex-direction: column; gap: 8px; }
.pilar .pl-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.pilar .pl-d { color: var(--text-muted); font-size: 14.5px; max-width: 640px; }

/* ============ CONTATO ============ */
.channels-placa { width: 100%; padding: 22px; display: flex; flex-direction: column; }
.channel-row { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.channel-row:first-of-type { border-top: 0; }
.channel-row .ch-ic { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent); width: 90px; flex: none; }
.channel-row .ch-t { flex: 1; font-weight: 600; font-size: 15px; word-break: break-word; }
.channel-row .ch-a { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text-muted); }

.channel-table { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.ct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ct-fig .placa-media { height: clamp(300px, 40vh, 460px); }
.ct-fig .placa-media img { width: 100%; height: 100%; object-fit: cover; }
.channel-table .ct-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 26px; }
.channel-table .ct-row { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.channel-table .ct-row:last-of-type { border-bottom: 1px solid var(--line); }
.channel-table .ct-row .ct-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.channel-table .ct-row .ct-v { color: var(--text); font-size: 16px; }
.channel-table .ct-row .ct-v a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color 0.25s var(--ease); }
.channel-table .ct-row .ct-v a:hover { color: var(--accent); }
.channel-table .ct-row .ct-s { display: block; color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.map-placa { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--section-gap); }
.map-placa .placa { padding: 8px; }
.map-svg { width: 100%; height: auto; display: block; border-radius: 8px; background: var(--surface-2); }
.map-addr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 22px; }
.map-addr .ma-item { display: flex; flex-direction: column; gap: 6px; }
.map-addr .ma-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.map-addr .ma-v { font-size: 14px; color: var(--text); }

.marquee-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0; z-index: 2; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted);
    white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee span b { color: var(--accent); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SOLUÇÕES — blocos comuns ============ */
.sol-hero-fig { width: 100%; height: auto; display: block; }

/* dor em coluna estreita (solução 3) */
.dor-narrow { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dn-copy { max-width: 520px; }
.dn-copy p { color: var(--text-muted); font-size: 16.5px; margin-top: 18px; }
.dn-placa { justify-self: end; width: 100%; max-width: 460px; }
.dn-placa .placa { padding: 26px; }

/* back-office antes/depois (solução 3) */
.backoffice { background: var(--bg-soft); position: relative; z-index: 2; }
.bo-grid { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bo-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.bo-item { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.bo-item:first-child { border-top: 0; }
.bo-item .bo-k { color: var(--text-muted); }
.bo-item .bo-k::before { content: '○ '; color: var(--text-muted); }
.bo-item .bo-v { color: var(--text); }
.bo-item .bo-v::before { content: '● '; color: var(--accent); }
.camadas { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.camadas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.camada { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.camada .cm-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; color: var(--accent); }
.camada .cm-t { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 10px 0 8px; }
.camada .cm-d { color: var(--text-muted); font-size: 13.5px; }
.camada.cm-1 { transform: translateY(0); }
.camada.cm-2 { transform: translateY(22px); }
.camada.cm-3 { transform: translateY(44px); }
.camada.cm-4 { transform: translateY(66px); }

.spec-table { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.spec-table .st-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.spec-table .st-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.spec-table .st-row > div { padding: 18px 20px; border-top: 1px solid var(--line); }
.spec-table .st-row:first-child > div { border-top: 0; }
.spec-table .st-row.st-head > div { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); background: var(--surface-2); }
.spec-table .st-row.st-body > div:nth-child(2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec-table .st-row .st-ok { color: var(--text); }
.spec-table .st-row .st-no { color: var(--text-muted); }
.spec-table .st-row .st-ok::before { content: '● '; color: var(--accent); }
.spec-table .st-row .st-no::before { content: '○ '; }

.pipeline { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.pipeline-row { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; position: relative; }
.pipeline-row:last-of-type { border-bottom: 1px solid var(--line); }
.pipeline-row .pp-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: 1; }
.pipeline-row .pp-body { display: flex; flex-direction: column; gap: 6px; }
.pipeline-row .pp-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.pipeline-row .pp-d { color: var(--text-muted); font-size: 14.5px; max-width: 640px; }

.flowrail-wrap { overflow: hidden; padding: var(--section-gap) 0; background: var(--bg-soft); z-index: 2; }
.flowrail { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; }
.flow-node {
    width: 300px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.flow-node::after {
    content: '→'; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-family: var(--font-mono);
}
.flow-node:last-child::after { content: none; }
.flow-node .fl-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; color: var(--accent); }
.flow-node .fl-t { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.flow-node .fl-d { color: var(--text-muted); font-size: 13px; }

/* ============ LEGAIS ============ */
.legal-hero { min-height: 0; padding: 160px var(--gutter) 40px; }
.legal-hero .hero-layout { grid-template-columns: 1.6fr 0.8fr; }
.legal-hero .hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.legal-body { max-width: 860px; margin: 0 auto; padding: 10px var(--gutter) var(--section-gap); }
.legal-body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-body h2:first-child { border-top: 0; margin-top: 0; }
.legal-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; line-height: 1.75; }
.legal-body ul { color: var(--text-muted); font-size: 15px; padding-left: 20px; margin-bottom: 14px; line-height: 1.75; }
.legal-body li { margin-bottom: 6px; }
.legal-update { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

/* ============ RESPONSIVO ============ */
@media (max-width: 1080px) {
    .nav-drop-panel.np-wide { width: 420px; grid-template-columns: 1fr; }
    .nav-drop-panel.np-wide .nav-drop-link:nth-child(2n) { border-left: 0; margin-left: 0; padding-left: 16px; }
    .readings-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .frentes-grid { grid-template-columns: 1fr 1fr; }
    .camadas-grid { grid-template-columns: 1fr 1fr; }
    .camada.cm-2, .camada.cm-3, .camada.cm-4 { transform: none; }
}
@media (max-width: 900px) {
    .navbar-links, .navbar-cta { display: none; }
    .hamburger { display: flex; }
    .hero-section { min-height: 0; padding: 130px var(--gutter) 56px; }
    .hero-layout { grid-template-columns: 1fr; gap: 44px; }
    .hero-inner .hero-layout, .legal-hero .hero-layout { grid-template-columns: 1fr; }
    .hero-figure { align-items: stretch; }
    .hero-chat-box { max-width: 460px; margin: 0 auto; }
    .hero-edge { display: none; }
    .split-grid, .split-grid.invert { grid-template-columns: 1fr; }
    .transform-inner { grid-template-columns: 1fr; }
    .dn-grid, .bo-grid { grid-template-columns: 1fr; }
    .dn-placa { justify-self: stretch; max-width: none; }
    .levels-grid { grid-template-columns: 1fr; }
    .checklist-grid { grid-template-columns: 1fr; }
    .frentes-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .spec-table .st-row { grid-template-columns: 1fr; }
    .spec-table .st-row.st-head { display: none; }
    .spec-table .st-row.st-body > div { border: 0; border-top: 1px solid var(--line); padding: 14px 18px; }
    .spec-table .st-row.st-body > div:first-child { border-top: 0; }
    .map-addr { grid-template-columns: 1fr; }
    .channel-table .ct-row { grid-template-columns: 1fr; gap: 6px; }
    .ct-grid { grid-template-columns: 1fr; }
    .ct-fig .placa-media { height: 260px; }
    .mosaic-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; }
    .mosaic-tile.mt-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
    .readings-inner { grid-template-columns: 1fr 1fr; }
    .mosaic-grid { grid-template-columns: 1fr; }
    .mosaic-tile.mt-wide { grid-column: span 1; }
    .camadas-grid { grid-template-columns: 1fr; }
    .pipeline-row { grid-template-columns: 56px 1fr; gap: 16px; }
    .bo-item { grid-template-columns: 1fr; gap: 6px; }
    .pilar { grid-template-columns: 56px 1fr; gap: 16px; }
    .footer-main { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .floating-bot-container { bottom: 16px; right: 16px; }
}

/* ============ ACESSIBILIDADE ============ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   BLOG — INSIGHTS (Unix Code)
   ============================================================ */

/* ---- HERO do blog (2 colunas 55/45) ---- */
.blog-hero { min-height: 0; padding: 160px var(--gutter) 56px; }
.blog-hero .hero-layout { grid-template-columns: 55fr 45fr; gap: clamp(28px, 4vw, 56px); }
.blog-hero .hero-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.blog-hero .hero-sub { max-width: 560px; }
.blog-hero .hero-actions { margin-bottom: 22px; }

.mini-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.mini-card {
    flex: 1 1 130px; min-width: 130px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.mini-card .mc-k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.mini-card .mc-v { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--accent); }
.mini-card .mc-s { font-size: 11.5px; color: var(--text-muted); }

.blog-hero-fig { width: 100%; position: relative; }
.blog-hero-fig .bhf-frame {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 0;
}
.blog-hero-fig .bhf-frame::before, .blog-hero-fig .bhf-frame::after {
    content: ''; position: absolute; inset: -7px; pointer-events: none; z-index: 4; background-repeat: no-repeat;
    background-image:
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)),
        linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
    background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px;
    background-position: left 0 top 0, left 0 top 0, right 0 bottom 0, right 0 bottom 0; opacity: 0.55;
}
.blog-hero-fig .bhf-frame::after {
    background-position: right 0 top 0, right 0 top 0, left 0 bottom 0, left 0 bottom 0;
}
.blog-hero-fig .bhf-frame img { width: 100%; height: clamp(240px, 42vh, 460px); object-fit: cover; display: block; }
.blog-hero-fig .bhf-tag {
    position: absolute; top: 10px; left: 12px; z-index: 5; background: rgba(15,19,26,0.82);
    padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
    font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.bhf-overlay {
    position: relative; margin: -26px 18px 0; z-index: 6; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.bhf-overlay .bo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse-dot 1.8s ease-in-out infinite; }
.bhf-overlay .bo-t { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.bhf-overlay .bo-t b { color: var(--text); font-weight: 500; }
.bhf-overlay .bo-right { margin-left: auto; color: var(--accent); font-family: var(--font-mono); font-size: 11px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
    max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter) 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .bc-sep { color: var(--accent); }
.breadcrumb .bc-current { color: var(--text); }

/* ---- BLOG HOME: todos os insights (categorias) ---- */
.blog-categories { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.cat-blocks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.cat-block {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cat-block:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.cat-block .cb-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: var(--accent); }
.cat-block .cb-t { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.cat-block .cb-d { color: var(--text-muted); font-size: 13.5px; flex: 1; }
.cat-block .cb-count { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.cat-block .cb-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cat-block.cb-feature { background: var(--surface-2); border-color: var(--line-strong); }
.cat-block.cb-feature::after { content: '→'; position: absolute; right: 18px; top: 18px; color: var(--accent); }

/* ---- LISTAGEM DE POSTS (2 colunas) ---- */
.posts-section { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.posts-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.posts-main { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }

/* card de post em destaque (2 colunas verticais) */
.post-card {
    display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
a.post-card { color: inherit; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-card .pc-img { position: relative; }
.post-card .pc-img img { width: 100%; height: 200px; object-fit: cover; filter: grayscale(0.25) brightness(0.95); transition: filter 0.4s var(--ease); }
.post-card:hover .pc-img img { filter: none; }
.post-card .pc-img .pc-badge {
    position: absolute; top: 12px; left: 12px; background: rgba(15,19,26,0.85); border: 1px solid var(--line);
    padding: 5px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent);
}
.post-card .pc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card .pc-meta { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.post-card .pc-meta .pc-cat { color: var(--accent); }
.post-card .pc-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -0.01em; line-height: 1.2; }
.post-card .pc-desc { color: var(--text-muted); font-size: 13.5px; }
.post-card .pc-read { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }

.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(300px, 36vh, 400px); }
.post-card.featured .pc-img { order: 2; }
.post-card.featured .pc-img img { height: 100%; min-height: 300px; }
.post-card.featured .pc-body { order: 1; justify-content: center; }
.post-card.featured .pc-title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }

/* ---- SIDEBAR (trava e destrava) ---- */
.blog-sidebar { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.sb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sb-card .sb-t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.sb-card .sb-cat-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.sb-card .sb-cat-desc { color: var(--text-muted); font-size: 13px; }
.sb-card .sb-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.sb-search { position: relative; }
.sb-search input {
    width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--text); font-family: inherit; font-size: 13.5px; outline: none;
}
.sb-search input:focus { border-color: var(--accent); }
.sb-search .sb-search-hint {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 8; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; display: none; flex-direction: column;
}
.sb-search input:focus ~ .sb-search-hint { display: flex; }
.sb-search .sb-search-hint a { padding: 8px 10px; border-radius: 6px; font-size: 12.5px; color: var(--text-muted); transition: background 0.2s var(--ease); }
.sb-search .sb-search-hint a:hover { background: rgba(240,242,236,0.05); color: var(--text); }
.sb-list { display: flex; flex-direction: column; }
.sb-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-muted); transition: color 0.2s var(--ease); }
.sb-list a:first-child { border-top: 0; }
.sb-list a:hover { color: var(--text); }
.sb-list a .sb-count { font-family: var(--font-mono); font-size: 9.5px; color: var(--accent); }
.sb-recent { display: flex; flex-direction: column; gap: 12px; }
.sb-recent a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.sb-recent img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sb-recent .sr-meta { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.sb-recent .sr-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.sb-recent a:hover .sr-title { color: var(--accent); }

/* ---- PAGINAÇÃO ---- */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; grid-column: 1 / -1; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
    padding: 0 12px; transition: all 0.25s var(--ease);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pagination .pg-dots { border: 0; }

/* ---- ARTIGO DO POST ---- */
.post-wrap { max-width: var(--container); margin: 0 auto; padding: var(--section-gap) var(--gutter); }
.post-article { display: grid; grid-template-columns: 1.9fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.post-main-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.resumo-card {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
}
.resumo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.resumo-card .rc-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.resumo-card .rc-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.resumo-card .rc-d { color: var(--text-muted); font-size: 14.5px; }
.resumo-card .rc-stats { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.resumo-card .rc-stat { display: flex; flex-direction: column; gap: 2px; }
.resumo-card .rc-stat b { font-family: var(--font-mono); font-size: 16px; color: var(--accent); }
.resumo-card .rc-stat span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

.post-body { display: flex; flex-direction: column; gap: 14px; }
.post-body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: 22px; line-height: 1.2; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 14px; color: var(--text); }
.post-body p { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }
.post-body p strong { color: var(--text); font-weight: 600; }
.post-body ul { color: var(--text-muted); font-size: 15px; line-height: 1.7; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.post-body li::marker { color: var(--accent); }
.post-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.post-body th { background: var(--surface-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.post-body td { color: var(--text-muted); }
.post-body td strong { color: var(--text); }
.dica-box {
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm); padding: 16px 18px; margin: 10px 0;
}
.dica-box .db-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 5px; }
.dica-box p { margin: 0; font-size: 14px; }

/* FAQ rápido do post (reusa classes do accordion do ui.js) */
.faq-rapido { display: flex; flex-direction: column; gap: 10px; }
.faq-rapido .faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; margin-bottom: 0; }
.faq-rapido .faq-question { padding: 15px 18px; }
.faq-rapido .faq-question .fq-n { font-family: var(--font-mono); font-size: 9.5px; color: var(--accent); letter-spacing: 0.2em; margin-right: 10px; }
.faq-rapido .faq-question::after { font-size: 18px; }
.faq-rapido .faq-answer p { padding: 0 18px 15px; font-size: 14px; }

/* CTA do blog dentro da coluna do post */
.post-cta { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; position: relative; overflow: hidden; }
.post-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.post-cta .pct-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; }
.post-cta .pct-sub { color: var(--text-muted); font-size: 14px; margin: 8px 0 16px; }
.post-cta .btn { width: 100%; }

/* ---- RESPONSIVO BLOG ---- */
@media (max-width: 1080px) {
    .cat-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .blog-hero .hero-layout { grid-template-columns: 1fr; gap: 40px; }
    .posts-grid, .post-article { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .post-card.featured { grid-template-columns: 1fr; }
    .post-card.featured .pc-img { order: 1; }
    .post-card.featured .pc-img img { height: 200px; min-height: 0; }
    .post-card.featured .pc-body { order: 2; }
}
@media (max-width: 560px) {
    .cat-blocks { grid-template-columns: 1fr; }
    .post-card .pc-img img { height: 170px; }
    .posts-main { grid-template-columns: 1fr; }
}

/* ---- logo de sistema (badge nas figuras) ---- */
.sistema-logo-img { width: 130px; margin: 0 auto 2px; }
.fig-logo { position: absolute; top: 14px; right: 14px; z-index: 6; width: 96px; background: rgba(15,19,26,0.86); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.fig-logo img { width: 100%; height: auto; display: block; }
