/* =========================================================
   Integra CRM — hero padrão das páginas (claro e leve)
   Cores do sistema: azul #2563eb -> índigo #4f46e5
   ========================================================= */
.ih-hero {
    --ih-blue: #2563eb;
    --ih-indigo: #4f46e5;
    --ih-ink: #0f172a;
    --ih-text: #475569;
    --ih-muted: #64748b;
    --ih-line: #e2e8f0;
    --ih-soft: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 420px at 92% -10%, rgba(79, 70, 229, 0.10), transparent 60%),
        radial-gradient(700px 360px at -10% 110%, rgba(37, 99, 235, 0.08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-bottom: 1px solid #edf1f7;
}

.ih-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    pointer-events: none;
}

.ih-container {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

.ih-hero.ih-text-only .ih-container {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
    text-align: center;
}

.ih-copy { min-width: 0; }

.ih-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    background: #f0f5ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.ih-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ih-blue), var(--ih-indigo));
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.ih-hero h1 {
    margin: 18px 0 18px;
    color: var(--ih-ink);
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ih-hero h1 span {
    background: linear-gradient(135deg, var(--ih-blue), var(--ih-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ih-lead {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--ih-text);
    font-size: 17px;
    line-height: 1.65;
}

.ih-text-only .ih-lead { margin-left: auto; margin-right: auto; }

.ih-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.ih-text-only .ih-actions { justify-content: center; }

.ih-btn,
.ih-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ih-btn-primary,
.ih-btn-primary:visited {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ih-blue), var(--ih-indigo));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}

.ih-btn-primary:hover,
.ih-btn-primary:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

.ih-btn-secondary,
.ih-btn-secondary:visited {
    color: #1e3a8a !important;
    background: #ffffff;
    border: 1px solid #d6e0f0;
}

.ih-btn-secondary:hover,
.ih-btn-secondary:focus {
    color: var(--ih-blue) !important;
    border-color: #b7c8ea;
    transform: translateY(-1px);
}

.ih-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    max-width: 560px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ih-proof li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.ih-proof li::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat,
        linear-gradient(135deg, var(--ih-blue), var(--ih-indigo));
}

.ih-text-only .ih-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; max-width: none; margin: 0 auto; text-align: left; }
.ih-text-only .ih-proof li { white-space: nowrap; }

.ih-visual {
    position: relative;
    min-width: 0;
    padding: 18px 26px 30px 0;
}

/* ---------- Maquete da tela do sistema ---------- */
.app-mock {
    position: relative;
    border: 1px solid #dfe6f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 30px 70px rgba(15, 35, 80, 0.16),
        0 8px 22px rgba(15, 35, 80, 0.06);
    overflow: hidden;
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    user-select: none;
}

/* Captura real (data-shot) */
.app-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 800;
    background: #f8fafc;
}

.am-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.am-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.am-chrome i:nth-child(1) { background: #fca5a5; }
.am-chrome i:nth-child(2) { background: #fcd34d; }
.am-chrome i:nth-child(3) { background: #86efac; }

.am-url {
    margin-left: 12px;
    flex: 1;
    max-width: 260px;
    height: 18px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    color: #94a3b8;
    font-size: 10px;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
}

.am-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 360px; }

.am-side {
    padding: 12px 10px;
    border-right: 1px solid #eef2f7;
    background: #fafafa;
}

.am-brand { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }

.am-logo {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-logo svg { width: 15px; height: 15px; fill: #ffffff; }
.am-brand b { display: block; font-size: 11.5px; font-weight: 700; }
.am-brand small { display: block; color: #94a3b8; font-size: 9.5px; }

.am-group { margin: 8px 6px 4px; color: #94a3b8; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.am-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #475569;
    font-size: 10.5px;
    white-space: nowrap;
}

.am-item::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #cbd5e1; flex: 0 0 10px; }
.am-item.on { background: #e8efff; color: #1d4ed8; font-weight: 600; }
.am-item.on::before { border-color: #2563eb; background: rgba(37, 99, 235, 0.18); }

.am-main { padding: 14px 16px 16px; min-width: 0; background: #ffffff; }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.am-title b { display: block; font-size: 14px; font-weight: 700; }
.am-title small { color: #94a3b8; font-size: 10px; }

.am-cta {
    padding: 6px 10px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.am-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.am-kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.am-kpi { padding: 9px 10px; border: 1px solid #eef2f7; border-radius: 10px; background: #ffffff; }
.am-kpi small { display: block; color: #64748b; font-size: 9.5px; }
.am-kpi b { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.am-kpi em { font-style: normal; font-size: 9px; font-weight: 600; color: #16a34a; }
.am-kpi em.down { color: #dc2626; }

.am-card { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px; background: #ffffff; }
.am-card + .am-card { margin-top: 8px; }
.am-card h6 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; color: #0f172a; }
.am-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }

.am-bars { display: flex; align-items: flex-end; gap: 6px; height: 86px; padding-top: 4px; }
.am-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #6366f1, #2563eb); opacity: 0.9; }
.am-bars span.l { background: #dbe5fb; }

.am-line { width: 100%; height: 86px; display: block; }

.am-table { width: 100%; border-collapse: collapse; }
.am-table th { padding: 5px 6px; color: #94a3b8; font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #eef2f7; }
.am-table td { padding: 6px; border-bottom: 1px solid #f3f5f9; font-size: 10.5px; white-space: nowrap; }
.am-table tr:last-child td { border-bottom: 0; }
.am-table td.r, .am-table th.r { text-align: right; }

.am-chip { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.am-chip.ok { background: #dcfce7; color: #15803d; }
.am-chip.wait { background: #fef3c7; color: #b45309; }
.am-chip.info { background: #e0e7ff; color: #4338ca; }
.am-chip.late { background: #fee2e2; color: #b91c1c; }
.am-chip.gray { background: #f1f5f9; color: #475569; }

.am-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.am-col { padding: 8px; border-radius: 10px; background: #f8fafc; border: 1px solid #eef2f7; }
.am-col h6 { display: flex; justify-content: space-between; margin: 0 0 7px; font-size: 9.5px; color: #475569; font-weight: 700; }
.am-lead { padding: 7px 8px; border-radius: 8px; background: #ffffff; border: 1px solid #e9eef6; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.am-lead + .am-lead { margin-top: 6px; }
.am-lead b { display: block; font-size: 10px; }
.am-lead small { color: #64748b; font-size: 9px; }

.am-list { margin: 0; padding: 0; list-style: none; }
.am-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f3f5f9; font-size: 10.5px; }
.am-list li:last-child { border-bottom: 0; }
.am-list small { color: #94a3b8; }

.am-progress { height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin-top: 6px; }
.am-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #4f46e5); }

/* cartões flutuantes */
.ih-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #e6ecf5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 35, 80, 0.16);
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.3;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ih-float b { display: block; font-size: 13px; }
.ih-float small { display: block; color: #64748b; font-size: 11.5px; }

.ih-float .ico {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.ih-float .ico.blue { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.ih-float-a { right: 0; bottom: 4px; }
.ih-float-b { left: -22px; top: 92px; }

/* painel de marca (página Sobre) e cartão de contato */
.ih-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 380px;
    padding: 48px;
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 12%, rgba(191, 219, 254, 0.35), transparent 45%),
        linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.28);
}

.ih-brand-panel img { width: 300px; max-width: 80%; }
.ih-brand-panel p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.6; }

@media (max-width: 1100px) {
    .ih-hero h1 { font-size: 40px; }
    .ih-container { gap: 36px; }
    .am-body { grid-template-columns: 132px minmax(0, 1fr); }
}

@media (max-width: 920px) {
    .ih-hero { padding: 40px 0 56px; }
    .ih-container { grid-template-columns: minmax(0, 1fr); }
    .ih-visual { padding: 8px 0 26px; max-width: 680px; }
    .ih-float-b { left: 8px; top: auto; bottom: -6px; }
    .ih-float-a { display: none; }
    .ih-text-only .ih-proof li { white-space: normal; }
}

@media (max-width: 600px) {
    .ih-container { padding: 0 16px; }
    .ih-hero h1 { font-size: 31px; }
    .ih-lead { font-size: 15.5px; }
    .ih-proof { grid-template-columns: minmax(0, 1fr); }
    .ih-btn { width: 100%; justify-content: center; }
    .am-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .am-side { display: none; }
    .am-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .am-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .am-kanban .am-col:nth-child(n+3) { display: none; }
    .am-split { grid-template-columns: minmax(0, 1fr); }
    .am-table th:nth-child(3), .am-table td:nth-child(3) { display: none; }
    .ih-brand-panel { min-height: 0; padding: 32px; }
}

/* ---------- Tipografia geral: menos peso fora do título do hero ---------- */
main h2, section h2 { font-weight: 600 !important; letter-spacing: -0.01em; }
main h3, main h4, main h5,
section h3, section h4, section h5 {
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}
main .btn, section .btn, main button, section button {
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}
main b, main strong, section b, section strong { font-weight: 600; }

/* Palavra que não pode quebrar no hífen (ex.: NF-e) dentro do título do hero */
.ih-hero h1 span.ih-nw { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; white-space: nowrap; }

/* Legenda discreta nas capturas reais do sistema (hero e páginas geradas) */
.app-shot,
.pg-shot .pg-frame { position: relative; }
.app-shot::after,
.pg-shot .pg-frame::after {
    content: "Tela real do sistema · dados de demonstração";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #ffffff;
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
@media (max-width: 640px) {
    .app-shot::after,
    .pg-shot .pg-frame::after { font-size: 9.5px; right: 6px; bottom: 6px; padding: 2px 7px; }
}
