/* ========================================
   Landing Programa de Partners ImBroker
   ======================================== */

.partners-page {
    background: #fff;
}

.partners-page .header {
    background: rgba(255, 255, 255, 0.96);
}

.partners-page .nav-menu {
    gap: 1.35rem;
}

.partners-page .nav-link {
    font-size: 14px;
    font-weight: 500;
}

.btn-partner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #08A4EA;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(8, 164, 234, 0.28);
    transition: all 0.25s ease;
}

.btn-partner:hover {
    background: #0690ce;
    color: #fff;
    transform: translateY(-1px);
}

.btn-partner-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-partner-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    color: #0A2143;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid #d7e3ee;
    transition: all 0.25s ease;
}

.btn-partner-ghost:hover {
    border-color: #08A4EA;
    color: #08A4EA;
}

.btn-partner-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
}

.btn-partner-outline:hover {
    background: #fff;
    color: #0A2143;
}

/* Hero */
.partners-hero {
    padding: 140px 0 72px;
    background:
        radial-gradient(circle at 12% 18%, rgba(8, 164, 234, 0.08), transparent 32%),
        radial-gradient(circle at 88% 82%, rgba(8, 164, 234, 0.06), transparent 28%),
        #fff;
}

.partners-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.partners-kicker {
    display: inline-block;
    color: #08A4EA;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.partners-hero h1 {
    font-size: 52px;
    line-height: 1.08;
    color: #0A2143;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.partners-hero h1 em {
    font-style: normal;
    color: #08A4EA;
}

.partners-hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #5b6b80;
    max-width: 540px;
    margin-bottom: 28px;
}

.partners-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.partners-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f8fc;
    color: #3d5670;
    border: 1px solid #e4eef6;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
}

.partners-chip i {
    color: #08A4EA;
    font-size: 12px;
}

.partners-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.partners-requirement {
    padding: 0 0 8px;
}

.partners-requirement-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff8e6;
    border: 1px solid #f0e0b0;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(10, 33, 67, 0.04);
}

.partners-requirement-card i {
    color: #d4a017;
    font-size: 22px;
    margin-top: 3px;
}

.partners-requirement-card h2 {
    font-size: 20px;
    color: #0A2143;
    margin-bottom: 6px;
}

.partners-requirement-card p {
    font-size: 15px;
    color: #3d5670;
    line-height: 1.6;
    margin: 0;
}

.partners-hero-visual {
    position: relative;
    padding: 32px 40px 0 0;
}

.partners-hero-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 33, 67, 0.16);
}

.partners-hero-photo img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center 30%;
}

.partners-hero-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: #0A4F86;
    color: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(10, 33, 67, 0.22);
}

.partners-scribble {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 3;
    max-width: 210px;
    font-family: "Caveat", cursive;
    color: #1f6fb2;
    font-size: 30px;
    line-height: 1.15;
    transform: rotate(-8deg);
    text-align: right;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* Section helpers */
.partners-section {
    padding: 88px 0;
}

.partners-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}

.partners-section-head h2,
.partners-block-title {
    font-size: 36px;
    color: #0A2143;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.partners-section-head p,
.partners-muted {
    color: #6b7c8f;
    font-size: 15px;
}

/* Commissions */
.partners-commissions {
    background: #f7fbfe;
}

.partners-commission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.commission-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 22px 24px;
    min-height: 230px;
    box-shadow: 0 10px 30px rgba(10, 33, 67, 0.04);
}

.commission-card.blue { background: #eaf6ff; }
.commission-card.green { background: #e9f8ef; }
.commission-card.yellow { background: #fff6e5; }
.commission-card.gray { background: #f4f6f8; }

.commission-card .amount,
.commission-card .icon-xl {
    display: block;
    font-size: 46px;
    font-weight: 800;
    color: #08A4EA;
    line-height: 1;
    margin-bottom: 12px;
}

.commission-card.green .amount,
.commission-card.green .icon-xl { color: #1aae6f; }
.commission-card.yellow .icon-xl { color: #f0b429; font-size: 36px; margin-top: 6px; }
.commission-card.gray .icon-xl { color: #5d6d7e; font-size: 32px; margin-top: 8px; }

.commission-card h3 {
    font-size: 18px;
    color: #0A2143;
    margin-bottom: 10px;
}

.commission-card p {
    font-size: 14px;
    color: #617487;
    line-height: 1.55;
}

/* How it works */
.partners-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.partner-step {
    text-align: left;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #08A4EA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(8, 164, 234, 0.28);
}

.partner-step h3 {
    font-size: 18px;
    color: #0A2143;
    margin-bottom: 8px;
}

.partner-step p {
    font-size: 14px;
    color: #617487;
    line-height: 1.6;
}

/* Example / rules */
.partners-example {
    background: #f7fbfe;
}

.partners-example-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}

.example-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px 24px;
    box-shadow: 0 10px 30px rgba(10, 33, 67, 0.05);
}

.example-card h3 {
    font-size: 22px;
    color: #0A2143;
    margin-bottom: 8px;
}

.example-card .sub {
    font-size: 13px;
    color: #7a8b9c;
    margin-bottom: 18px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef3f8;
    font-size: 14px;
    color: #3d5670;
}

.example-row span:last-child {
    font-weight: 600;
    color: #0A2143;
}

.example-row.highlight {
    background: #eaf6ff;
    margin: 8px -12px 0;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    color: #0A2143;
    font-weight: 700;
}

.example-row.highlight span:last-child {
    color: #08A4EA;
}

.example-note {
    margin-top: 14px;
    font-size: 12px;
    color: #7a8b9c;
    line-height: 1.5;
}

.calc-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(10, 33, 67, 0.05);
}

.calc-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0A2143;
    margin-bottom: 10px;
}

.calc-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
}

.calc-stepper button {
    width: 42px;
    height: 42px;
    border: 1px solid #d7e3ee;
    background: #f7fbfe;
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
    color: #0A2143;
    cursor: pointer;
}

.calc-stepper button:hover {
    border-color: #08A4EA;
    color: #08A4EA;
}

.calc-stepper input {
    width: 72px;
    height: 42px;
    text-align: center;
    border: 1px solid #d7e3ee;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #0A2143;
    -moz-appearance: textfield;
}

.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-summary {
    font-size: 15px;
    color: #3d5670;
    margin-bottom: 12px;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    background: #eaf6ff;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.calc-total span {
    font-size: 15px;
    font-weight: 600;
    color: #0A2143;
}

.calc-total strong {
    font-size: 36px;
    color: #08A4EA;
    letter-spacing: -0.03em;
}

.calc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.calc-stats div {
    background: #f7fbfe;
    border-radius: 14px;
    padding: 14px;
}

.calc-stats span {
    display: block;
    font-size: 12px;
    color: #7a8b9c;
    margin-bottom: 6px;
}

.calc-stats strong {
    font-size: 18px;
    color: #0A2143;
}

.calc-years {
    overflow-x: auto;
    margin-bottom: 12px;
}

.calc-years table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.calc-years th,
.calc-years td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eef3f8;
}

.calc-years th {
    color: #7a8b9c;
    font-weight: 600;
    font-size: 12px;
}

.calc-years td:last-child {
    font-weight: 700;
    color: #0A2143;
}

.rule-box {
    border-radius: 16px;
    padding: 16px 16px 8px;
    margin-bottom: 14px;
}

.rule-box.yes { background: #e9f8ef; }
.rule-box.no { background: #fdeeee; }

.rule-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.rule-box.yes h4 { color: #148a53; }
.rule-box.no h4 { color: #c0392b; }

.rule-box ul {
    list-style: none;
    padding: 0;
}

.rule-box li,
.protect-list li {
    font-size: 14px;
    color: #3d5670;
    padding: 5px 0;
    line-height: 1.45;
}

.protect-list {
    list-style: none;
    padding: 0;
}

.protect-list li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
}

.protect-list li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: #08A4EA;
    font-weight: 700;
}

/* Benefits */
.partners-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.benefit-item i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eaf6ff;
    color: #08A4EA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 18px;
    color: #0A2143;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 14px;
    color: #617487;
    line-height: 1.6;
}

/* Join CTA */
.partners-join {
    position: relative;
    overflow: hidden;
    background: #061a36;
    color: #fff;
}

.partners-join-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 26, 54, 0.92) 0%, rgba(6, 26, 54, 0.72) 48%, rgba(6, 26, 54, 0.45) 100%),
        url("../images/partners-cta.jpg") center/cover no-repeat;
}

.partners-join .container {
    position: relative;
    z-index: 1;
}

.partners-join-inner {
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 32px;
    align-items: center;
}

.partners-join .kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 12px;
}

.partners-join h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.partners-join p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
}

.partners-join-cta {
    text-align: right;
}

.partners-join-cta small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Terms teaser */
.partners-terms-teaser {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
}

.partners-terms-teaser h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.partners-terms-teaser p {
    max-width: 680px;
    color: #617487;
}

/* Legal page */
.partners-legal {
    padding: 140px 0 80px;
}

.partners-legal-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(10, 33, 67, 0.06);
}

.partners-legal-card h1 {
    font-size: 36px;
    color: #0A2143;
    margin-bottom: 8px;
}

.partners-legal-card .updated {
    color: #7a8b9c;
    margin-bottom: 28px;
}

.partners-legal-card h2 {
    font-size: 20px;
    color: #0A2143;
    margin: 28px 0 10px;
}

.partners-legal-card p,
.partners-legal-card li {
    color: #3d5670;
    font-size: 15px;
    line-height: 1.7;
}

.partners-legal-card ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}

@media (max-width: 1180px) {
    .partners-page .menu-toggle {
        display: flex;
    }

    .partners-page .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: #fff;
        width: 100%;
        padding: 1.5rem 2rem 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .partners-page .nav-menu.active {
        left: 0;
        z-index: 1001;
    }

    .partners-page .nav-menu li {
        padding: 10px 0;
    }
}

@media (max-width: 1024px) {
    .partners-hero h1 { font-size: 42px; }
    .partners-hero-grid,
    .partners-commission-grid,
    .partners-steps,
    .partners-example-grid,
    .partners-benefits-grid,
    .partners-join-inner,
    .partners-terms-teaser {
        grid-template-columns: 1fr 1fr;
    }
    .partners-section-head,
    .partners-terms-teaser,
    .partners-join-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .partners-join-cta { text-align: left; }
    .calc-controls,
    .calc-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .partners-page .nav-actions .btn-partner {
        display: none;
    }
}

@media (max-width: 768px) {
    .partners-page .nav-menu {
        gap: 0;
    }

    .partners-hero {
        padding: 120px 0 48px;
    }

    .partners-hero-grid,
    .partners-commission-grid,
    .partners-steps,
    .partners-example-grid,
    .partners-benefits-grid {
        grid-template-columns: 1fr;
    }

    .partners-hero h1 {
        font-size: 34px;
    }

    .partners-hero-photo img {
        height: 320px;
    }

    .partners-hero-visual {
        padding: 28px 12px 0 0;
    }

    .partners-scribble {
        font-size: 24px;
        max-width: 170px;
        right: 4px;
        top: 4px;
    }

    .partners-section {
        padding: 56px 0;
    }

    .partners-section-head h2,
    .partners-join h2,
    .partners-terms-teaser h2 {
        font-size: 28px;
    }

    .partners-legal {
        padding: 120px 0 48px;
    }

    .partners-legal-card {
        padding: 24px 18px;
    }

    .partners-requirement-card {
        flex-direction: column;
        gap: 10px;
        padding: 18px;
    }

    .calc-card {
        padding: 20px 16px;
    }

    .calc-controls,
    .calc-stats {
        grid-template-columns: 1fr;
    }

    .calc-total {
        flex-direction: column;
    }

    .calc-total strong {
        font-size: 28px;
    }
}
