:root {
    --bg-main: #0B0C0E;
    --bg-surface: #12141A;
    --bg-elevated: #181B23;
    --lift-green: #c2d840;
    --lift-green-hover: #d1e64f;
    --lift-green-dim: rgba(194, 216, 64, 0.14);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: #222631;
    --border-hover: rgba(194, 216, 64, 0.45);
    --amber-corr: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}

a[href^="tel"],
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
}

:focus-visible {
    outline: 2px solid var(--lift-green);
    outline-offset: 3px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
}

/* Cabeçalho Limpo */
.site-header {
    background: rgba(11, 12, 14, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lift-green);
    border-radius: 2px;
}

.nav-menu a.nav-portal {
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-menu a.nav-portal svg {
    width: 15px;
    height: 15px;
    stroke: var(--lift-green);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.nav-menu a.nav-portal:hover,
.nav-menu a.nav-portal.active {
    border-color: var(--lift-green);
    color: var(--lift-green);
}

.nav-menu a.nav-portal.active::after {
    display: none;
}

.nav-menu a.btn-nav {
    background: rgba(194, 216, 64, 0.14);
    color: var(--lift-green) !important;
    border: 1px solid rgba(194, 216, 64, 0.45);
    padding: 10px 22px !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    box-shadow: 0 0 18px rgba(194, 216, 64, 0.12);
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a.btn-nav:hover {
    background: var(--lift-green);
    color: #0B0C0E !important;
    box-shadow: 0 4px 20px rgba(194, 216, 64, 0.35);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--lift-green);
    color: #0B0C0E;
}

.btn-primary:hover {
    background: var(--lift-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(194, 216, 64, 0.22);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--lift-green);
    color: var(--lift-green);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lift-green-dim);
    color: var(--lift-green);
    border: 1px solid rgba(194, 216, 64, 0.35);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

/* Hero Section */
.hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 2.85rem);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--lift-green);
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 580px;
}

.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

.trust-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-pill-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--lift-green);
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
    object-fit: cover;
    background: var(--bg-surface);
    display: block;
}

/* Seções Gerais */
.section {
    padding: 76px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-alt {
    background: var(--bg-surface);
}

.section-header {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-header h2 span {
    color: var(--lift-green);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.02rem;
}

/* Seletor Interativo ("Do que você precisa hoje?") */
.intent-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.intent-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-alt .intent-tab {
    background: var(--bg-main);
}

.intent-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.intent-tab.active {
    background: var(--lift-green-dim);
    border-color: var(--lift-green);
    color: var(--lift-green);
}

.intent-panel {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 34px;
}

.section-alt .intent-panel {
    background: var(--bg-main);
}

.intent-panel.active {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.intent-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.intent-panel p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.intent-highlights {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.intent-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
    color: var(--text-primary);
}

.intent-highlights li::before {
    content: "✓";
    color: var(--lift-green);
    font-weight: 800;
}

.intent-metric-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    border-left: 4px solid var(--lift-green);
}

.section-alt .intent-metric-box {
    background: var(--bg-surface);
}

.btn-modal-trigger {
    margin-top: 16px;
    width: 100%;
    background: var(--lift-green-dim);
    color: var(--lift-green);
    border: 1px solid rgba(194, 216, 64, 0.45);
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-trigger:hover {
    background: var(--lift-green);
    color: #0B0C0E;
}

/* Grades e Cartões */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
}

.grid-equal-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
    min-width: 0;
    width: 100%;
}

.section-alt .card {
    background: var(--bg-main);
}

.card:hover {
    border-color: var(--border-hover);
}

.card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 20px;
}

/* Linha do Tempo de 5 Etapas */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.step-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    position: relative;
}

.section-alt .step-box {
    background: var(--bg-main);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lift-green);
    color: #0B0C0E;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-box h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-box p {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* Carrossel GPU (translate3d) Definitivo para PC e iOS */
.marquee-overflow {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.marquee-overflow.dragging {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.brand-slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    margin-right: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.brand-slide-item.active-brand {
    border-color: var(--lift-green);
    color: var(--lift-green);
    box-shadow: 0 0 18px rgba(194, 216, 64, 0.18);
    transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
    .brand-slide-item:hover {
        border-color: var(--lift-green);
        color: var(--lift-green);
        box-shadow: 0 0 18px rgba(194, 216, 64, 0.18);
        transform: translateY(-2px);
    }
}

.brand-disclaimer {
    margin-top: 22px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

/* Equipamentos Atendidos */
.equip-stack {
    display: grid;
    gap: 12px;
}

.equip-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 26px;
    display: grid;
    grid-template-columns: 260px 240px 1fr;
    gap: 20px;
    align-items: center;
    transition: border-color 0.2s;
}

.section-alt .equip-row {
    background: var(--bg-main);
}

.equip-row:hover {
    border-color: var(--border-hover);
}

.equip-title {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.equip-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lift-green);
}

.equip-sub {
    color: var(--lift-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.equip-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Regiões Atendidas */
.cities-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.city-tag {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.section-alt .city-tag {
    background: var(--bg-main);
}

.city-tag.highlight {
    border-color: rgba(194, 216, 64, 0.5);
    color: var(--lift-green);
    font-weight: 700;
}

/* Modal Lightbox */
.report-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 10, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 24px 5%;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.report-modal.open {
    display: flex;
}

.report-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 960px;
    width: 100%;
    padding: 24px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
}

.report-modal-close {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.86rem;
}

.report-modal-close:hover {
    border-color: var(--lift-green);
    color: var(--lift-green);
}

/* Acordeão FAQ */
.faq-list {
    max-width: 860px;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.section-alt .faq-item {
    background: var(--bg-main);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--lift-green);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Formulário Inteligente */
.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--lift-green);
    outline: none;
}

/* ==========================================================================
   ÁREA DO CLIENTE — COCKPIT REFINADO (FUNDO ESCURO PADRONIZADO)
   ========================================================================== */
.login-box {
    max-width: 460px;
    margin: 40px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.client-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.client-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.portal-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0;
}

.portal-card-title span {
    color: var(--lift-green);
}

.std-machine-id {
    margin-top: 8px;
}

.std-machine-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.std-machine-sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Seletor Suspenso (Combobox) Minimalista com Busca */
.fleet-dropdown-wrapper {
    position: relative;
    margin-bottom: 24px;
    max-width: 560px;
}

.fleet-dropdown-trigger {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

.fleet-dropdown-trigger:hover,
.fleet-dropdown-wrapper.open .fleet-dropdown-trigger {
    border-color: var(--lift-green);
}

.fleet-trigger-chevron {
    width: 20px;
    height: 20px;
    stroke: var(--lift-green);
    fill: none;
    stroke-width: 2.2;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fleet-dropdown-wrapper.open .fleet-trigger-chevron {
    transform: rotate(180deg);
}

.fleet-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    z-index: 500;
    overflow: hidden;
}

.fleet-dropdown-wrapper.open .fleet-dropdown-menu {
    display: block;
}

.fleet-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
}

.fleet-search-box svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.fleet-search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.fleet-options-list {
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
}

.fleet-option-item {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-option-item:last-child {
    border-bottom: none;
}

.fleet-option-item:hover,
.fleet-option-item.selected {
    background: var(--lift-green-dim);
}

/* Grid Principal do Cockpit */
.cockpit-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Régua de Ciclos (500h, 1.000h, 1.500h, 2.000h) — Fundo Escuro Igual e Borda Verde */
.cycle-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.cycle-badge {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.cycle-hours {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cycle-badge.future .cycle-hours {
    color: var(--text-secondary);
}

.cycle-status-icon {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cycle-status-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--lift-green);
    fill: none;
    stroke-width: 2.6;
}

/* Card da Próxima: Fundo Escuro Igual aos Demais, Borda Verde, Horas e "Próxima" em Verde */
.cycle-badge.next {
    background: var(--bg-main);
    border: 1px solid var(--lift-green);
}

.cycle-badge.next .cycle-hours {
    color: var(--lift-green);
}

.next-label-text {
    color: var(--lift-green);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Barra de Progresso */
.progress-track {
    width: 100%;
    height: 9px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0 20px;
}

.progress-fill {
    height: 100%;
    background: var(--lift-green);
    border-radius: 20px;
    transition: width 0.35s ease;
}

/* Ícones Minimalistas de Download */
.icon-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-dl-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.icon-dl-btn:hover {
    border-color: var(--lift-green);
    color: var(--lift-green);
    background: var(--lift-green-dim);
}

.icon-dl-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    right: 0;
    left: auto;
    transform: none;
    background: #07080A;
    color: var(--text-primary);
    border: 1px solid var(--lift-green);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 900;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Botões de Período da Disponibilidade */
.period-tabs {
    display: inline-flex;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.period-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.period-tab.active {
    background: var(--lift-green);
    color: #0B0C0E;
    font-weight: 700;
}

.print-period-badge {
    display: none;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.donut-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

/* Controle Financeiro e Gráfico de Barras com Respiro Inferior Perfeito */
.cost-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.cost-kpi-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
}

.cost-kpi-box span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.cost-kpi-box strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.bar-chart-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: end;
    height: 168px;
    padding: 20px 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.bar-stack {
    width: 100%;
    max-width: 36px;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    height: 84px;
    justify-content: flex-start;
}

.bar-seg-prev {
    background: var(--lift-green);
    border-radius: 3px;
    width: 100%;
    transition: height 0.35s ease;
}

.bar-seg-corr {
    background: var(--amber-corr);
    border-radius: 3px;
    width: 100%;
    transition: height 0.35s ease;
}

.bar-label {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1;
}

.bar-val {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1;
}

/* Tabelas Minimalistas de Histórico */
.history-table-wrap {
    width: 100%;
    overflow: visible;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.history-table th {
    text-align: left;
    padding: 11px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.history-table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.td-nowrap {
    white-space: nowrap;
}

.doc-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Categorias com Fundo Escuro Igual, Borda Verde e Texto Verde (Sem Capslock) */
.cat-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lift-green);
    background: var(--bg-main);
    border: 1px solid var(--lift-green);
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.25;
}

/* Rodapé */
.site-footer {
    background: #07080A;
    padding: 64px 0 32px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-grid h4 {
    color: var(--text-primary);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--lift-green);
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 9px 15px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.social-pill:hover {
    border-color: var(--lift-green);
    color: var(--lift-green);
}

.social-pill svg {
    width: 18px;
    height: 18px;
    fill: var(--lift-green);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--lift-green);
    color: #0B0C0E;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(194, 216, 64, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover {
    background: var(--lift-green-hover);
    transform: scale(1.06);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: #0B0C0E;
}

.print-only-header,
.print-only-footer {
    display: none;
}

/* ==========================================================================
   MODO DE EXPORTAÇÃO EM PDF / IMPRESSÃO PARA REUNIÃO (SEM CORTES + RODAPÉ)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 10mm 16mm 10mm;
        @bottom-right {
            content: "Página " counter(page) " de " counter(pages);
            font-size: 9pt;
            color: #475569;
        }
    }
    :root {
        --bg-main: #FFFFFF !important;
        --bg-surface: #FFFFFF !important;
        --bg-elevated: #FFFFFF !important;
        --text-primary: #0F172A !important;
        --text-secondary: #475569 !important;
        --text-muted: #64748B !important;
        --border-color: #CBD5E1 !important;
        --lift-green: #4D7C0F !important;
    }
    html, body {
        background-color: #FFFFFF !important;
        color: #0F172A !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-size: 11px;
    }
    .site-header,
    .whatsapp-float,
    .no-print,
    .fleet-dropdown-wrapper,
    .site-footer {
        display: none !important;
    }
    .print-only-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px;
        margin-bottom: 14px;
        border-bottom: 2px solid #0F172A;
    }
    .print-period-badge {
        display: inline-block !important;
        font-size: 10.5px;
        font-weight: 700;
        color: #4D7C0F !important;
        border: 1px solid #4D7C0F !important;
        padding: 3px 9px;
        border-radius: 6px;
        background: #FFFFFF !important;
    }
    .print-only-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-between;
        align-items: center;
        padding-top: 6px;
        border-top: 1px solid #CBD5E1;
        font-size: 9.5px;
        color: #475569;
        background: #FFFFFF !important;
    }
    .section {
        padding: 0 0 24px 0 !important;
        border: none !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .cockpit-grid {
        grid-template-columns: 1.2fr 0.8fr !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    /* No PDF, os dois históricos ficam em largura total (100%) para NUNCA cortar colunas! */
    .grid-equal-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .card,
    .client-banner {
        background: #FFFFFF !important;
        border: 1px solid #CBD5E1 !important;
        break-inside: avoid;
        padding: 14px !important;
        margin-bottom: 12px !important;
        box-shadow: none !important;
    }
    .history-table-wrap {
        overflow: visible !important;
    }
    .cat-text {
        color: #4D7C0F !important;
        background: #FFFFFF !important;
        border: 1px solid #4D7C0F !important;
    }
    .cycle-badge.next {
        background: #FFFFFF !important;
        border: 1.5px solid #4D7C0F !important;
    }
    .next-label-text {
        color: #4D7C0F !important;
    }
    .form-control {
        background: #FFFFFF !important;
        color: #0F172A !important;
        border-color: #CBD5E1 !important;
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-grid,
    .grid-2,
    .grid-equal-2,
    .cockpit-grid,
    .intent-panel.active {
        grid-template-columns: 1fr;
    }
    .steps-timeline {
        grid-template-columns: 1fr;
    }
    .equip-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.open {
        display: flex;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .form-grid,
    .cost-kpis {
        grid-template-columns: 1fr;
    }
    .cycle-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .history-table-wrap {
        overflow-x: auto;
    }
}