/* Intro Section */
.intro {
    padding: 52px 0 8px;
    border-top: 1px solid var(--border-soft);
}

.intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.ecossistema-main-subtitle {
    margin-top: 14px;
}

.ecossistema-main-title {
    margin-top: 14px;
}

/* Products Timeline Grid */
.products {
    padding: 40px 0 8px;
}

.product-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 28px;
    padding: 56px 0;
    border-top: 1px solid var(--border-soft);
}

.product-row:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.rail::before {
    content: "";
    position: absolute;
    top: -56px;
    bottom: -56px;
    left: 50%;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.product-row:first-child .rail::before {
    top: 50%;
}

.product-row:last-child .rail::before {
    bottom: 50%;
}

.num {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 4px;
}

.product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.product-row:nth-child(even) .product-body {
    direction: rtl;
}

.product-row:nth-child(even) .product-body>* {
    direction: ltr;
}

/* --- AJUSTES DE ALINHAMENTO E MARGEM (CIRÚRGICO) --- */

.product-description {
    margin-bottom: 14px;
    padding-left: 14px;
}

.product-description .eyebrow {
    margin-bottom: 14px;
    padding-left: -14px;
}

.g-item-title, 
.title-row, 
.g-paragraph, 
.tags, 
.product-link, 
.trust-note {
    margin-left: 0 !important; /* Remove os 14px individuais, pois o container já resolve */
}

.g-item-title {
    margin-top: 0 !important;
    /* Equaliza a distância em todos os produtos */
    margin-left: 14px;
    /* Alinha com o texto do mini-título */
}

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-left: 14px;
}

.g-paragraph {
    margin-top: 14px;
    margin-left: 14px;
    max-width: 440px;
}

.tags,
.product-link,
.trust-note {
    margin-left: 14px;
}

/* -------------------------------------------------- */

.status-pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .03em;
    color: var(--ink-mute);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 11px;
    margin-top: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    font-size: 12.5px;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

.product-link svg {
    transition: transform .15s ease;
}

.product-link:hover svg {
    transform: translateX(3px);
}

.trust-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--good);
    background: var(--good-soft);
    border-radius: 99px;
    padding: 6px 13px;
}

.trust-note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
}

.visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* UI Mockups (RECUPERADOS) */
.mock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-soft);
}

.mock-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.mock-badge {
    font-family: var(--mono);
    font-size: 10.5px;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--good-soft);
    color: var(--good);
}

.mock-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px 22px;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--good);
}

.mock-name {
    font-size: 12.5px;
    color: var(--ink-soft);
    width: 112px;
    flex: none;
}

.mock-bar {
    flex: 1;
    height: 5px;
    background: var(--surface-alt);
    border-radius: 99px;
    overflow: hidden;
}

.mock-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-person {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-person-name {
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
}

.mock-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-mute);
}

/* Vídeo e Modal (RECUPERADOS) */
.dq-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    cursor: pointer;
}

.dq-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    border: 1px solid var(--border);
}

.thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: var(--mono);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 2;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Responsividade Geral */
@media (max-width: 860px) {
    .intro-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-row {
        grid-template-columns: 1fr;
    }

    .rail {
        display: none;
    }

    .product-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-row:nth-child(even) .product-body {
        direction: ltr;
    }

    .visual {
        order: 1;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .product-row {
        padding: 32px 0;
    }

    .ecossistema-main-subtitle {
        margin-top: 16px;
    }

    .visual {
        height: 200px;
    }

    .video-modal-content {
        width: 96%;
    }

    .g-item-title,
    .title-row,
    .g-paragraph,
    .tags,
    .product-link,
    .trust-note {
        margin-left: 0;
    }
    .product-description {
        padding-left: 0; /* No celular, removemos o recuo para ganhar espaço */
    }
    .product-description .eyebrow {
        margin-left: 0; /* O ponto azul volta para dentro do alinhamento no celular */
    }

}