/* ═══════════════════════════════════════════════════
   Business page — bz__ namespace
   Uses global classes: first_title, second_title, descript,
   section_wht, section-screen, hero_toggle, hero_badge,
   hero_cta-desc, hero_cta-feat, hero_cta-actions,
   hero_cta-button, hero_cta-secondary, blue_element
   ═══════════════════════════════════════════════════ */

/* ── Hero section ── */

.bz__hero-section {
    padding: 0;
}

.bz__hero-section.section-screen {
    min-height: calc(100vh - 72px);
}

.bz__hero-section .hero_toggle {
    margin-bottom: 32px;
    width: fit-content;
}

.bz__hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.bz__hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bz__hero-left .hero_title {
    max-width: 600px;
}

.bz__hero-left .hero_cta-desc {
    max-width: 580px;
}

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

.bz__hero-left .hero_cta-actions {
    margin-top: 28px;
}

/* ── Hero image (dashboard screenshot) ── */

.bz__hero-img {
    flex-shrink: 1;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.bz__hero-img img {
    width: 100%;
    max-height: calc(100vh - 350px);
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.25));
}

/* ═══════════════════════════════════════════════════
   Content sections (dark background)
   — mirrors why-nilm / pain card patterns
   ═══════════════════════════════════════════════════ */

.bz__section {
    padding: 0;
    position: relative;
    scroll-margin-top: 80px;
}

.bz__section-header {
    margin-bottom: 48px;
    text-align: center;
}

.bz__section .first_title {
    margin: 0;
}

/* ── Card grids ── */

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

.bz__grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card — mirrors why-nilm__card ── */

.bz__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 36px;
    border-radius: 16px;
    background: var(--background-page);
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Radial gradient glow near icon */
.bz__card::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.bz__card > * {
    position: relative;
    z-index: 1;
}

/* Glow colors matching icon */
.bz__card:has(.bz__icon--amber)::before {
    background: radial-gradient(
        circle,
        rgba(245, 166, 35, 0.18) 0%,
        transparent 70%
    );
}

.bz__card:has(.bz__icon--blue)::before {
    background: radial-gradient(
        circle,
        rgba(74, 144, 232, 0.18) 0%,
        transparent 70%
    );
}

.bz__card:has(.bz__icon--red)::before {
    background: radial-gradient(
        circle,
        rgba(224, 90, 51, 0.18) 0%,
        transparent 70%
    );
}

.bz__card:has(.bz__icon--purple)::before {
    background: radial-gradient(
        circle,
        rgba(155, 109, 215, 0.18) 0%,
        transparent 70%
    );
}

.bz__card:has(.bz__icon--green)::before {
    background: radial-gradient(
        circle,
        rgba(20, 194, 79, 0.18) 0%,
        transparent 70%
    );
}

.bz__card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.bz__card-name {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 133%;
    color: var(--typograph-black);
    margin: 0;
}

.bz__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.bz__card-num {
    font-family: var(--font-family);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--typograph-black-secondary);
    opacity: 0.3;
}

.bz__card--tall {
    gap: 14px;
}

/* ── Icon — mirrors why-nilm__icon ── */

.bz__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bz__icon .material-symbols-rounded {
    font-size: 28px;
    color: #fff;
    position: relative;
    z-index: 2;
}

/* Diagonal glow overlay — matches homepage icon style */
.bz__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            ellipse 70% 70% at 15% 15%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 55% 55% at 85% 85%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.02) 35%,
            transparent 55%
        );
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.25),
        inset -1px -1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 3;
}

.bz__icon--amber {
    background: #f5a623;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

.bz__icon--blue {
    background: #4a90e8;
    box-shadow: 0 4px 14px rgba(74, 144, 232, 0.4);
}

.bz__icon--red {
    background: #e05a33;
    box-shadow: 0 4px 14px rgba(224, 90, 51, 0.4);
}

.bz__icon--purple {
    background: #9b6dd7;
    box-shadow: 0 4px 14px rgba(155, 109, 215, 0.4);
}

.bz__icon--green {
    background: #14c24f;
    box-shadow: 0 4px 14px rgba(20, 194, 79, 0.4);
}

/* ── Tags (sector cards) ── */

.bz__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bz__tags span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--typograph-black-secondary);
    background: var(--background-cream-secondary);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════════
   Steps — reuses hero_step-card from homepage
   ═══════════════════════════════════════════════════ */

.bz__steps-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    max-width: 640px;
}

.bz__steps-wrap .hero_step-card {
    width: 100%;
    box-sizing: border-box;
    min-height: 88px;
    padding: 20px 32px 20px 24px;
}

.bz__steps-wrap .hero_step-card-desc {
    font-size: 17px;
}

.bz__step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.25);
}

.bz__step-connector .material-symbols-rounded {
    font-size: 32px;
}

/* ═══════════════════════════════════════════════════
   Form section — centered glass wrapper
   ═══════════════════════════════════════════════════ */

.bz__form-section {
    margin: 0;
    padding: 80px 0;
}

.bz__form-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 48px 44px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bz__form-wrap .second_title {
    text-align: center;
    font-weight: 500;
}

.bz__form-wrap .earn-hero__accent {
    font-weight: 500;
}

.bz__form-sub {
    text-align: center;
    margin-bottom: 28px;
}

.bz__form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Checkbox — strip border/padding inside glass wrap */
.bz__form-wrap .form-checkbox-input {
    border: none;
    padding: 0;
    height: auto;
    margin-top: 8px;
}

.bz__form-wrap .btn-submit {
    margin-top: 12px;
}

/* Force equal-width name/phone inputs */
.bz__form-wrap .mi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bz__form-wrap .mi-row .mi {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
}

/* Reset vertical spacing within row — gap handles it */
.bz__form-wrap .mi-row .mi + .mi {
    margin-top: 0;
}

/* Reset vertical spacing on direct children — gap handles it */
.bz__form-wrap .mi + .mi,
.bz__form-wrap .mi-row + .mi,
.bz__form-wrap .mi + .mi-row {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════
   Loss section — clean card layout
   ═══════════════════════════════════════════════════ */

.bz__loss-accent {
    background: linear-gradient(135deg, #e8634a 0%, #ff7b5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bz__loss-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.bz__loss-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    overflow: hidden;
}

.bz__loss-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 160px;
    border-radius: 50%;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.bz__loss-card:has(.why-nilm__icon--orange)::before {
    background: radial-gradient(circle, #f5a623 0%, transparent 70%);
}

.bz__loss-card:has(.why-nilm__icon--green)::before {
    background: radial-gradient(circle, #14c24f 0%, transparent 70%);
}

.bz__loss-card:has(.why-nilm__icon--blue)::before {
    background: radial-gradient(circle, #4a90e8 0%, transparent 70%);
}

.bz__loss-card > * {
    position: relative;
    z-index: 1;
}

.bz__loss-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Icons reuse why-nilm__icon from homepage */
.bz__loss-card .why-nilm__icon {
    margin-bottom: 20px;
}

.bz__loss-device {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 130%;
    color: #fff;
    margin: 0 0 6px;
}

.bz__loss-when {
    display: inline-block;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.bz__loss-text {
    font-family: var(--font-family);
    font-size: 20px;
    line-height: 160%;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 24px;
    flex-grow: 1;
}

.bz__loss-costs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bz__loss-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bz__loss-cost-row:last-child {
    border-bottom: none;
}

.bz__loss-cost-label {
    font-family: var(--font-family);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.45);
}

.bz__loss-cost-value {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.bz__loss-cost-row--red .bz__loss-cost-value {
    color: #e8634a;
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .bz__loss-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════════════
   Dark theme overrides — match why-nilm__card pattern
   ═══════════════════════════════════════════════════ */

[data-theme="dark"] .bz__card {
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 0%,
            rgba(74, 144, 232, 0.06) 0%,
            transparent 100%
        ),
        #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .bz__card:hover {
    border-color: rgba(74, 144, 232, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(74, 144, 232, 0.15),
        0 0 20px -5px rgba(74, 144, 232, 0.1);
}

[data-theme="dark"] .bz__tags span {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .bz__grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .bz__grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .bz__grid-4 {
        grid-template-columns: 1fr;
    }

    .bz__card {
        padding: 24px;
    }

    .bz__hero-left .hero_cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .bz__hero-left .hero_cta-actions .hero_cta-button,
    .bz__hero-left .hero_cta-actions .hero_cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .bz__hero-img {
        max-width: none;
    }

    .bz__form-section {
        padding: 40px 0;
    }

    .bz__form-wrap {
        padding: 32px 20px;
    }

    .bz__section-header {
        margin-bottom: 32px;
    }
}


@media (max-width: 1200px) {
    .bz__hero-section .hero_toggle {
        display: flex;
        width: min(100%, 340px);
        margin-left: auto;
        margin-right: auto;
        justify-content: stretch;
    }

    .bz__hero-section .hero_toggle-btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }
}


@media (max-width: 1200px) {
    .bz__hero-section {
        padding-bottom: 24px;
    }

    .bz__hero-content {
        flex-direction: column;
        gap: 28px;
    }

    .bz__hero-img {
        max-width: 360px;
        margin: 0 auto 18px;
    }
}


@media (max-width: 1200px) {
    .bz__section-header {
        margin-bottom: 28px;
    }

    .bz__section-header::before {
        display: none;
    }

    .bz__grid-3,
    .bz__grid-4 {
        gap: 16px;
    }
}


/* ── Mobile business hero aligned to home hero rhythm ───────────────── */
@media (max-width: 1200px) {
    .bz__hero-section {
        padding: 36px 0;
    }

    .bz__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .bz__hero-left {
        display: contents;
    }

    .bz__hero-section .hero_toggle {
        order: 1;
        display: inline-flex;
        width: auto;
        margin: 0 auto 18px;
        align-self: center;
    }

    .bz__hero-section .hero_toggle-btn {
        flex: 0 1 auto;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }

    .bz__hero-left .hero_title {
        order: 2;
        max-width: 100%;
        margin: 0;
        text-align: center;
    }

    .bz__hero-left .hero_cta-desc {
        order: 3;
        max-width: 100%;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .bz__hero-img {
        order: 4;
        width: 100%;
        max-width: min(100%, 332px);
        margin: 24px auto 20px;
        border-radius: 24px;
    }

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

    .bz__hero-chips {
        order: 5;
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 18px;
    }

    .bz__hero-chips .hero_cta-feat {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .bz__hero-left .hero_cta-actions {
        order: 6;
        width: 100%;
        margin-top: 0;
        gap: 12px;
    }

    .bz__hero-left .hero_cta-actions .hero_cta-button,
    .bz__hero-left .hero_cta-actions .hero_cta-secondary {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    .bz__hero-section {
        padding: 28px 0;
    }

    .bz__hero-left .hero_title {
        font-size: 28px;
    }

    .bz__hero-left .hero_cta-desc {
        font-size: 15px;
    }

    .bz__hero-chips {
        gap: 8px;
    }

    .bz__hero-chips .hero_cta-feat span:last-child {
        font-size: 15px;
    }

    .bz__hero-img {
        max-width: min(100%, 320px);
        margin-top: 24px;
    }
}
