/* Layout corporativo — Suporte / Central de Downloads */

.support-body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #FAF7F4;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.support-topbar {
    position: relative;
    background: #fff;
}

/* mesma linha em degradê das outras páginas */
.support-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #FDBA48 0%, #ED9139 30%, #E1722D 55%, #CF431B 78%, #B90A06 100%);
}

.support-topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.support-topbar a.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.support-topbar a.brand img {
    height: 52px;
    width: auto;
}

.support-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.support-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #5C5450;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.support-nav a:hover {
    color: #3A3A3A;
    background: #FFF4EC;
}

.support-nav a.is-active {
    color: #3A3A3A;
    font-weight: 600;
    background: #FDE8DA;
}

.support-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-main {
    flex: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 48px;
    box-sizing: border-box;
}

.support-breadcrumb {
    font-size: 13px;
    color: #8A7F78;
    margin-bottom: 20px;
}

.support-breadcrumb a {
    color: #CF431B;
    text-decoration: none;
}

.support-breadcrumb a:hover {
    text-decoration: underline;
}

.support-breadcrumb span.sep {
    margin: 0 8px;
    color: #B3A8A0;
}

.support-page-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 220px;
    margin-bottom: 32px;
    padding: 12px 0 28px;
    border-bottom: 1px solid #EEE5DE;
    overflow: hidden;
}

.support-page-header-text {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.support-brand-bg {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: min(30%, 220px);
    pointer-events: none;
    isolation: isolate;
}

.support-brand-bg img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.support-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #3A3A3A;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.support-page-header p {
    font-size: 15px;
    line-height: 1.65;
    color: #5C5450;
    margin: 0;
    max-width: 640px;
}

.support-section {
    margin-bottom: 36px;
}

.support-iot-category {
    margin-bottom: 16px;
}

.support-hub {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.support-sidebar {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid #EEE5DE;
    border-radius: 10px;
    padding: 16px 14px;
    box-shadow: 0 4px 16px rgba(58, 58, 58, 0.05);
}

.support-sidebar-block + .support-sidebar-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #F3EEE9;
}

.support-sidebar-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8A7F78;
}

.support-sidebar-products,
.support-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-sidebar-product {
    appearance: none;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #5C5450;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.support-sidebar-product-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #CF431B;
    opacity: 0.85;
}

.support-sidebar-product.is-active .support-sidebar-product-meta {
    opacity: 1;
}

.support-sidebar-product:hover,
.support-sidebar-section:hover {
    background: #FFF4EC;
    color: #3A3A3A;
}

.support-sidebar-product.is-active {
    background: #FDE8DA;
    color: #3A3A3A;
    font-weight: 600;
}

.support-sidebar-section {
    appearance: none;
    width: 100%;
    text-align: left;
    padding: 10px 12px 10px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #5C5450;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.support-sidebar-section.is-active {
    background: #FFF4EC;
    color: #CF431B;
    font-weight: 600;
    border-left: 3px solid #CF431B;
    border-radius: 0 6px 6px 0;
}

.support-content-area {
    min-width: 0;
}

.support-content-crumb {
    font-size: 12px;
    color: #8A7F78;
    margin-bottom: 14px;
}

.support-content-crumb span:last-child {
    color: #3A3A3A;
    font-weight: 600;
}

.support-content-crumb .sep {
    margin: 0 6px;
    color: #B3A8A0;
}

.support-panel-header {
    margin-bottom: 16px;
}

.support-panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #3A3A3A;
    margin: 0 0 8px;
}

.support-panel-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5C5450;
    max-width: 680px;
}

.support-content-panel[hidden] {
    display: none !important;
}

.support-files-heading {
    font-size: 15px;
    color: #3A3A3A;
    margin: 0 0 12px;
    font-weight: 600;
}

.support-coming-soon {
    border-style: dashed;
    background: #FCFAF8;
}

.support-coming-soon a {
    color: #CF431B;
    text-decoration: none;
    font-weight: 500;
}

.support-coming-soon a:hover {
    text-decoration: underline;
}

.support-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #CF431B;
    margin: 0 0 14px;
}

.support-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #3A3A3A;
    margin: 0 0 6px;
}

.support-section > .support-section-desc {
    font-size: 14px;
    color: #8A7F78;
    margin: 0 0 16px;
    line-height: 1.55;
}

.support-panel {
    background: #fff;
    border: 1px solid #EEE5DE;
    border-radius: 10px;
    overflow: hidden;
}

.support-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #F3EEE9;
    flex-wrap: wrap;
}

.support-file-row:last-child {
    border-bottom: none;
}

.support-file-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 4px;
}

.support-file-info span {
    font-size: 13px;
    color: #8A7F78;
    line-height: 1.45;
}

.support-file-info code {
    font-size: 12px;
    background: #F6F2EE;
    padding: 1px 6px;
    border-radius: 4px;
    color: #4F4844;
}

.support-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.support-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #CF431B;
    color: #CF431B;
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.support-btn:hover {
    background: #FFF4EC;
    color: #B90A06;
    border-color: #B90A06;
}

.support-btn-primary {
    background: #CF431B;
    color: #fff;
    border-color: #CF431B;
}

.support-btn-primary:hover {
    background: #B90A06;
    border-color: #B90A06;
    color: #fff;
}

.support-note {
    margin-top: 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #EEE5DE;
    border-left: 3px solid #CF431B;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #5C5450;
    line-height: 1.6;
}

.support-doc-panel {
    background: #fff;
    border: 1px solid #EEE5DE;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 20px;
}

.support-doc-panel h3 {
    font-size: 15px;
    font-weight: 600;
    color: #3A3A3A;
    margin: 0 0 12px;
}

.support-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #3A3A3A;
    margin: 22px 0 10px;
    padding-top: 18px;
    border-top: 1px solid #F3EEE9;
}

.support-steps {
    margin: 0;
    padding-left: 20px;
    color: #5C5450;
    font-size: 14px;
    line-height: 1.65;
}

.support-steps li {
    margin-bottom: 8px;
}

.support-steps strong {
    color: #3A3A3A;
}

.support-pin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.support-pin-table th,
.support-pin-table td {
    border: 1px solid #ECE3DC;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

.support-pin-table th {
    background: #FDFAF7;
    color: #3A3A3A;
    font-weight: 600;
}

.support-pin-table code {
    font-size: 12px;
    background: #F6F2EE;
    padding: 1px 5px;
    border-radius: 4px;
}

.support-flash-table {
    margin-top: 12px;
}

.support-flash-cmd-label {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3A3A3A;
}

.support-code-block {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #171311;
    color: #ECE3DC;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.support-files-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #CF431B;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.support-files-group-title + .support-panel {
    margin-bottom: 20px;
}

.support-pin-note {
    margin-top: 12px;
    font-size: 12px;
    color: #8A7F78;
    line-height: 1.55;
}

.support-hardware-desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #5C5450;
    line-height: 1.6;
}

.support-hardware-list {
    margin: 0 0 18px;
    padding-left: 20px;
    font-size: 13px;
    color: #5C5450;
    line-height: 1.6;
}

.support-hardware-list li {
    margin-bottom: 4px;
}

.support-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.support-figure {
    margin: 0;
    border: 1px solid #ECE3DC;
    border-radius: 8px;
    overflow: hidden;
    background: #FCFAF8;
}

.support-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.support-figure figcaption {
    padding: 10px 12px;
    font-size: 12px;
    color: #8A7F78;
    line-height: 1.45;
    border-top: 1px solid #ECE3DC;
    background: #fff;
}

.support-consent-modal[hidden] {
    display: none !important;
}

.support-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.support-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 19, 17, 0.45);
}

.support-consent-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #EEE5DE;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    padding: 24px;
}

.support-consent-dialog h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #3A3A3A;
}

.support-consent-lead {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #5C5450;
}

.support-consent-field {
    display: block;
    margin-bottom: 14px;
}

.support-consent-field span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 6px;
}

.support-consent-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #E3D9D1;
    border-radius: 6px;
    font-size: 14px;
}

.support-consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.55;
    color: #5C5450;
    margin-bottom: 14px;
}

.support-consent-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.support-consent-error {
    color: #b42318;
    font-size: 13px;
    margin: 0 0 12px;
}

.support-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

body.support-consent-open {
    overflow: hidden;
}

button.support-btn {
    cursor: pointer;
    font-family: inherit;
}

.support-footer {
    border-top: 1px solid #EEE5DE;
    background: #fff;
    padding: 20px 24px;
    font-size: 13px;
    color: #8A7F78;
    text-align: center;
}

.support-footer a {
    color: #CF431B;
    text-decoration: none;
    font-weight: 500;
}

.support-footer a:hover {
    text-decoration: underline;
}

/* Link no menu principal do site — ver também components.css */

@media (max-width: 768px) {
    .support-main {
        padding: 24px 16px 36px;
    }

    .support-page-header {
        min-height: 160px;
        padding-bottom: 20px;
    }

    .support-page-header h1 {
        font-size: 22px;
    }

    .support-page-header-text {
        max-width: 70%;
    }

    .support-brand-bg {
        width: min(36%, 140px);
        right: 0;
        opacity: 0.35;
    }

    .support-file-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-file-actions {
        width: 100%;
    }

    .support-file-actions .support-btn {
        flex: 1;
        text-align: center;
    }

    .support-figures {
        grid-template-columns: 1fr;
    }

    .support-hub {
        grid-template-columns: 1fr;
    }

    .support-sidebar {
        position: static;
    }

    .support-sidebar-sections {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .support-sidebar-section {
        width: auto;
        border-left: none;
        border-radius: 6px;
        padding: 8px 10px;
        border: 1px solid #F3EEE9;
    }

    .support-sidebar-section.is-active {
        border-color: #CF431B;
        border-left: 1px solid #CF431B;
    }
}
