* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    margin: 0;
    background: #f6f7f9;
    color: #17191c;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar .container {
    min-height: 68px;
    display: flex;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 20px;
}

.hero {
    padding: 64px 0;
    background: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero-text {
    font-size: 20px;
    line-height: 1.5;
    max-width: 620px;
}

.card {
    padding: 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.card h2 {
    margin-top: 0;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #cfd4dc;
    font-size: 17px;
    outline: none;
}

input:focus {
    border-color: #17191c;
}

button {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: #17191c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.result {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.benefits {
    padding: 56px 0;
}

.benefit-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefit-card,
.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
}

.benefit-card strong,
.admin-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-card span,
.admin-card span {
    color: #666;
}

.admin-page {
    padding: 48px 0;
}

.admin-page h1 {
    font-size: 38px;
}

.footer {
    padding: 32px 0;
    background: #17191c;
    color: #ffffff;
}

@media (max-width: 800px) {

    .hero {
        padding: 36px 0;
    }

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

    .benefit-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 18px;
    }

}


/* ==========================================================
   CONSULTA DE VIABILIDADE
   ========================================================== */

.result {
    display: none;
}

.result:not(:empty) {
    display: block;
    padding: 16px;
    border-radius: 12px;
}

.result strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.result-loading {
    background: #f3f4f6;
}

.result-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.result-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.coverage-address {
    margin-top: 10px;
    font-size: 14px;
    opacity: .8;
}

.continue-button {
    margin-top: 14px;
}


/* ==========================================================
   CAPTURA DE LEAD
   ========================================================== */

.lead-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.lead-box-heading {
    margin-bottom: 18px;
}

.lead-box-heading strong {
    font-size: 20px;
}

.lead-box-heading span {
    display: block;
    margin-top: 5px;
    color: #667085;
}

.lead-box label {
    margin-top: 14px;
}

.optional {
    font-size: 12px;
    font-weight: 500;
    color: #667085;
}

.lead-result {
    margin-top: 14px;
}

.lead-success {
    padding: 14px;
    border-radius: 10px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.lead-success strong,
.lead-success span {
    display: block;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* ==========================================================
   ADMIN / CRM
   ========================================================== */

.admin-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.admin-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #667085;
}

.admin-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.admin-toolbar h1 {
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #17191c;
    font-weight: 700;
}

.metric-card {
    min-width: 140px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.metric-card span {
    display: block;
    font-size: 13px;
    color: #667085;
}

.metric-card strong {
    display: block;
    margin-top: 5px;
    font-size: 30px;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    padding: 13px 15px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #eef0f2;
    font-size: 14px;
}

td small {
    display: block;
    margin-top: 3px;
    color: #667085;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.status-success {
    background: #ecfdf3;
}

.status-warning {
    background: #fffbeb;
}

.empty-table {
    padding: 40px;
    text-align: center;
    color: #667085;
}

@media (max-width: 800px) {

    .admin-toolbar {
        flex-direction: column;
    }

    .metric-card {
        width: 100%;
    }

}


/* ==========================================================
   LOGIN ADMINISTRATIVO
   ========================================================== */

.login-page {
    min-height: calc(100vh - 140px);
    padding: 60px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(100%, 430px);
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow:
        0 24px 60px
        rgba(0, 0, 0, .08);
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.login-card p {
    margin-bottom: 26px;
    color: #667085;
}

.login-card label {
    margin-top: 16px;
}

.login-error {
    padding: 13px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}


.admin-session {
    width: min(
        1120px,
        calc(100% - 32px)
    );
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 13px;
}

.admin-session form {
    margin: 0;
}

.logout-button {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
}


/* ==========================================================
   CATALOGO COMERCIAL
   ========================================================== */

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.catalog-section {
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.catalog-section-wide {
    grid-column: 1 / -1;
}

.catalog-section h2 {
    margin-top: 0;
}

.section-help {
    color: #667085;
    font-size: 14px;
}

.catalog-form {
    padding: 20px;
    margin-top: 18px;
    background: #f9fafb;
    border-radius: 12px;
}

.catalog-form label {
    margin-top: 14px;
}

.catalog-form label:first-of-type {
    margin-top: 0;
}

.catalog-form select,
.catalog-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.catalog-list {
    margin-top: 20px;
}

.catalog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #eef0f2;
}

.catalog-row strong,
.catalog-row small {
    display: block;
}

.catalog-row small {
    margin-top: 3px;
    color: #667085;
}

.small-button {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 7px 11px;
    font-size: 12px;
}

.empty-mini {
    padding: 18px 0;
    color: #667085;
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.checkbox-line input {
    width: auto;
    min-height: auto;
}

.offers-table {
    margin-top: 24px;
    overflow-x: auto;
}

@media (max-width: 900px) {

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-section-wide {
        grid-column: auto;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

}


/* BLOCO 8 - OFERTAS PUBLICAS */

.public-offers {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 16px;
    margin-top: 22px;
}

.public-offer-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
}

.featured-offer {
    border-width: 2px;
    border-color: #17191c;
}

.offer-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #17191c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.offer-operator {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #667085;
}

.public-offer-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.offer-speed {
    margin: 10px 0;
    font-size: 26px;
    font-weight: 900;
}

.offer-benefits {
    padding-left: 20px;
    margin: 18px 0;
}

.offer-benefits li {
    margin: 8px 0;
}

.offer-price {
    margin-top: 18px;
}

.offer-price strong {
    display: inline;
    font-size: 28px;
}

.offer-price span {
    font-size: 13px;
    color: #667085;
}

.installation-note {
    display: block;
    margin-top: 5px;
    color: #667085;
}

.choose-offer-button {
    margin-top: 18px;
}

@media (max-width: 600px) {

    .public-offers {
        grid-template-columns: 1fr;
    }

}
