/* ==========================================================================
   ZNEXT marketing sections - "Our Business" + "Plan Highlights"
   Owned by resources/views/root/partials/our-business.blade.php
             resources/views/root/partials/plan-highlights.blade.php
   Everything is namespaced under .znx-* so it cannot leak into the theme.
   Dark-panel first; the partials assume a dark page.
   ========================================================================== */

.znx-sec {
    --znx-ink: #eef9f5;
    --znx-muted: #9dc3bd;
    --znx-accent: #2ff0ad;
    --znx-accent-2: #0ea5a0;
    --znx-line: rgba(47, 240, 173, .22);
    --znx-card: rgba(255, 255, 255, .035);
    --znx-card-2: rgba(6, 34, 43, .72);
    position: relative;
    padding: 72px 0;
    color: var(--znx-ink);
    background:
        radial-gradient(900px 520px at 88% -10%, rgba(14, 165, 160, .20), transparent 60%),
        radial-gradient(760px 480px at -10% 105%, rgba(47, 240, 173, .13), transparent 62%),
        linear-gradient(160deg, #04141b 0%, #06202a 48%, #072b33 100%);
}

.znx-sec * {
    box-sizing: border-box;
}

/* Grid and flex children default to min-width:auto, which lets long words, wide
   tables and nowrap cells push the whole section past a phone viewport. Reset it
   everywhere inside the section, then opt the scrollers back in. */
.znx-sec .row > [class*="col"],
.znx-sec .znx-plan-grid > *,
.znx-sec .znx-pillars > li,
.znx-sec .znx-rewards > li,
.znx-sec .znx-terms > li,
.znx-sec .znx-facts > div,
.znx-sec .znx-vertical,
.znx-sec .znx-vertical__body,
.znx-sec .znx-vertical__text,
.znx-sec .znx-table-wrap,
.znx-sec .znx-card {
    min-width: 0;
    max-width: 100%;
}

.znx-sec {
    overflow-x: clip;
}

/* ---------- shared heading block ---------- */
.znx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px 16px 6px 10px;
    border: 1px solid var(--znx-line);
    border-radius: 999px;
    background: rgba(47, 240, 173, .07);
    color: var(--znx-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.znx-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--znx-accent);
}

.znx-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 5.4vw, 54px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.01em;
    color: #fff;
}

.znx-title span {
    display: block;
    color: var(--znx-accent);
}

.znx-rule {
    width: 96px;
    height: 3px;
    margin: 0 0 22px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--znx-accent), rgba(47, 240, 173, 0));
}

.znx-lead {
    max-width: 46ch;
    margin: 0;
    color: var(--znx-muted);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
}

.znx-lead strong {
    display: block;
    color: var(--znx-accent);
    font-weight: 700;
}

/* sub-heading used between blocks - does not rely on the theme's h3 rules */
.znx-subhead {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 700;
    line-height: 1.25;
}

.znx-subhead em {
    color: var(--znx-accent);
    font-style: normal;
}

/* ---------- OUR BUSINESS : numbered vertical rows ---------- */
.znx-verticals {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.znx-group-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 4px;
    color: var(--znx-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.znx-group-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--znx-line), transparent);
}

.znx-vertical {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
        "media media"
        "no    body";
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--znx-line);
    border-radius: 16px;
    background: var(--znx-card-2);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.znx-vertical:hover,
.znx-vertical:focus-within {
    transform: translateY(-3px);
    border-color: rgba(47, 240, 173, .55);
    box-shadow: 0 22px 46px -24px rgba(47, 240, 173, .35);
}

.znx-vertical__no {
    grid-area: no;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--znx-accent) 0%, var(--znx-accent-2) 100%);
    color: #032b25;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.znx-vertical__body {
    grid-area: body;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}

.znx-vertical__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1.5px solid var(--znx-line);
    border-radius: 50%;
    background: rgba(3, 22, 28, .85);
    color: var(--znx-accent);
}

.znx-vertical__icon svg {
    width: 30px;
    height: 30px;
}

.znx-vertical__text h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.25;
}

.znx-vertical__text p {
    margin: 0;
    color: var(--znx-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.znx-vertical__media {
    grid-area: media;
    align-self: stretch;
    border-bottom: 1px solid var(--znx-line);
}

.znx-vertical__media img {
    display: block;
    width: 100%;
    height: 106px;
    object-fit: cover;
}

@media (min-width: 576px) {
    .znx-vertical {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas: "no body media";
    }

    .znx-vertical__media {
        width: 156px;
        border-bottom: 0;
        border-left: 1px solid var(--znx-line);
    }

    .znx-vertical__media img {
        height: 100%;
        min-height: 118px;
    }
}

@media (min-width: 992px) {
    .znx-vertical__media {
        width: 210px;
    }
}

/* ---------- supporting pillars strip ---------- */
.znx-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin: 34px 0 0;
    padding: 6px;
    border: 1px solid var(--znx-line);
    border-radius: 16px;
    background: rgba(4, 26, 33, .6);
    list-style: none;
}

.znx-pillars li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    text-align: center;
}

.znx-pillars li + li {
    border-left: 1px solid rgba(47, 240, 173, .12);
}

.znx-pillars li:nth-child(odd) {
    border-left: 0;
}

.znx-pillars svg {
    width: 26px;
    height: 26px;
    color: var(--znx-accent);
}

.znx-pillars span {
    color: var(--znx-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .znx-pillars {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .znx-pillars li:nth-child(odd) {
        border-left: 1px solid rgba(47, 240, 173, .12);
    }

    .znx-pillars li:first-child {
        border-left: 0;
    }
}

.znx-sticky {
    position: static;
}

@media (min-width: 992px) {
    .znx-sticky {
        position: sticky;
        top: 96px;
    }
}

/* ---------- PLAN HIGHLIGHTS ---------- */
.znx-plan-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

@media (min-width: 768px) {
    .znx-plan-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .znx-plan-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.znx-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--znx-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)),
        rgba(5, 28, 35, .75);
    box-shadow: 0 18px 44px -30px rgba(0, 0, 0, .9);
}

.znx-card--hero {
    border-color: rgba(47, 240, 173, .45);
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(47, 240, 173, .18), transparent 64%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        rgba(5, 30, 37, .85);
}

.znx-card h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.znx-card__hint {
    margin: 0 0 18px;
    color: var(--znx-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.znx-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.znx-stat__value {
    color: var(--znx-accent);
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.znx-stat__unit {
    color: var(--znx-muted);
    font-size: 14px;
    font-weight: 600;
}

.znx-facts {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--znx-line);
    border-radius: 12px;
    background: rgba(47, 240, 173, .14);
    list-style: none;
}

.znx-facts > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(4, 24, 30, .94);
}

.znx-facts dt {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--znx-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.znx-facts dd {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-align: right;
}

/* table */
.znx-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--znx-line);
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
}

.znx-table {
    width: 100%;
    min-width: 320px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14.5px;
}

.znx-table caption {
    padding: 12px 14px;
    color: var(--znx-muted);
    font-size: 13px;
    text-align: left;
    caption-side: bottom;
}

.znx-table th,
.znx-table td {
    padding: 11px 14px;
    text-align: left;
    vertical-align: middle;
}

.znx-table thead th {
    background: linear-gradient(180deg, rgba(47, 240, 173, .18), rgba(47, 240, 173, .06));
    color: #dffff2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.znx-table tbody tr {
    background: rgba(4, 24, 30, .88);
}

.znx-table tbody tr:nth-child(even) {
    background: rgba(8, 36, 44, .88);
}

.znx-table tbody th {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.znx-table td {
    color: var(--znx-muted);
}

.znx-table .znx-num {
    color: var(--znx-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .znx-table {
        font-size: 13px;
    }

    .znx-table th,
    .znx-table td {
        padding: 9px 9px;
    }

    .znx-table thead th {
        font-size: 10.5px;
        letter-spacing: .06em;
    }
}

/* reward chips */
.znx-rewards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.znx-reward {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--znx-line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}

.znx-reward__no {
    color: rgba(157, 195, 189, .65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.znx-reward__biz {
    color: var(--znx-accent);
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.znx-reward__gift {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}

/* terms list */
.znx-terms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.znx-terms li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--znx-line);
    border-radius: 12px;
    background: rgba(4, 24, 30, .7);
    color: var(--znx-ink);
    font-size: 14px;
    line-height: 1.5;
}

.znx-terms svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--znx-accent);
}

.znx-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--znx-line);
    border-left: 3px solid var(--znx-accent);
    border-radius: 12px;
    background: rgba(47, 240, 173, .06);
    color: var(--znx-ink);
    font-size: 14px;
    line-height: 1.6;
}

.znx-note svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--znx-accent);
}

.znx-note b {
    color: var(--znx-accent);
}

.znx-disclaimer {
    margin: 22px 0 0;
    color: rgba(157, 195, 189, .75);
    font-size: 12.5px;
    line-height: 1.6;
}

.znx-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--znx-accent), var(--znx-accent-2));
    color: #04221d;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}

.znx-cta:hover,
.znx-cta:focus {
    color: #04221d;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.znx-cta svg {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .znx-vertical,
    .znx-cta {
        transition: none;
    }

    .znx-vertical:hover,
    .znx-cta:hover {
        transform: none;
    }
}
