.plans-hero {
    color: #fff;
    background:
        linear-gradient(90deg, #0d182a 5%, #0d182af0 39%, #0d182a8c 100%),
        linear-gradient(0deg, #0d182a 0%, transparent 95%),
        url(../img/digital-assurance.jpg) center 43% / cover;
}

.plans-hero-content {
    padding-block: clamp(29px, 4vw, 52px) clamp(42px, 5.2vw, 73px);
}

.plans-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: #ced9e5;
    font-size: 13px;
    margin-bottom: clamp(24px, 3vw, 38px);
}

.plans-breadcrumb a:hover,
.plans-breadcrumb [aria-current="page"] {
    color: #8bdaf6;
}

.plans-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(28px, 6vw, 84px);
}

.plans-intro h1 {
    font-size: clamp(55px, 7.3vw, 100px);
    line-height: .96;
    letter-spacing: -.023em;
}

.plans-intro h1 span {
    display: block;
    margin-top: 6px;
    color: #8bdaf6;
    font-size: .8em;
    line-height: 1.04;
}

.plans-intro > p {
    margin-top: 21px;
    max-width: 425px;
    color: #e1eaf2;
    line-height: 1.6;
}

.plans-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.plans-actions .button {
    gap: 12px;
    padding-inline: 16px;
}

.plans-common {
    padding: clamp(20px, 2.6vw, 34px);
    border: 1px solid #b2c7df58;
    border-top: 2px solid var(--orange);
    border-radius: 4px;
    background: #101f33ed;
    box-shadow: 0 14px 35px #060e1d53;
}

.plans-common h2 {
    font-size: clamp(26px, 3vw, 37px);
    letter-spacing: 0;
}

.plans-common ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin: 19px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #b2c7df40;
    list-style: none;
}

.plans-common li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #e0ebf5;
    font-size: 14px;
    line-height: 1.4;
}

.plans-common .icon {
    width: 19px;
    height: 19px;
    color: #8bdaf6;
}

.plans-comparison {
    padding-block: clamp(47px, 6.2vw, 82px);
    background: #f3f6f8;
    scroll-margin-top: 24px;
}

.plans-comparison-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 17px 26px;
    margin-bottom: 27px;
}

.plans-comparison-heading h2,
.plans-faq h2 {
    font-size: clamp(37px, 5.1vw, 61px);
    letter-spacing: -.015em;
}

.plans-comparison-heading p,
.plans-faq-layout > div:first-child p {
    margin-top: 9px;
    color: #4f5f70;
    font-size: 15px;
}

.plan-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.plan-controls [role="group"] {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid #c7d2db;
    border-radius: 5px;
    background: #e8eef3;
}

.plan-controls button {
    min-height: 41px;
    padding: 7px 13px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #33475d;
    font-size: 14px;
    font-weight: 600;
}

.plan-controls button:hover {
    background: #fff;
}

.plan-controls button[aria-pressed="true"] {
    color: #fff;
    background: var(--navy);
}

.plan-controls[hidden],
.plan-rates[hidden],
.plan-price[hidden] {
    display: none;
}

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

.plan-card {
    --plan-surface: #fff;
    --plan-ink: var(--navy);
    --plan-muted: #4d5c6d;
    --plan-line: #cfd9e2;
    --plan-accent: #48637e;
    --plan-icon-surface: #eaf0f5;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(17px, 1.85vw, 26px);
    border: 1px solid var(--plan-line);
    border-top: 3px solid var(--plan-accent);
    border-radius: 5px;
    background: var(--plan-surface);
    color: var(--plan-ink);
}

.plan-grow {
    --plan-accent: var(--orange);
    --plan-icon-surface: #fff0dc;
    --plan-line: #e3bf8d;
    box-shadow: 0 9px 26px #80541d13;
}

.plan-advance {
    --plan-accent: #007caf;
    --plan-icon-surface: #e2f4fa;
}

.plan-enterprise {
    --plan-surface: #12243a;
    --plan-ink: #fff;
    --plan-muted: #cbd9e7;
    --plan-line: #455a71;
    --plan-accent: #8bdaf6;
    --plan-icon-surface: #233d56;
}

.plan-card-heading {
    min-height: 126px;
}

.plan-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-name h3 {
    font-size: clamp(33px, 3.35vw, 45px);
    letter-spacing: -.01em;
}

.plan-name > span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 4px;
    background: var(--plan-icon-surface);
    color: var(--plan-ink);
}

.plan-name .icon {
    width: 21px;
    height: 21px;
}

.plan-card-heading p {
    margin-top: 10px;
    color: var(--plan-muted);
    font-size: 14px;
    line-height: 1.48;
}

.plan-price-block {
    min-height: 87px;
    padding-bottom: 13px;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
    margin: 0;
    line-height: 1.14;
}

.plan-price strong {
    font: 600 clamp(33px, 3.3vw, 48px) / 1.04 var(--heading);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

[data-rate-currency="UGX"] .plan-price strong {
    font-size: clamp(31px, 2.8vw, 41px);
}

.plan-price.plan-custom strong {
    font-size: clamp(30px, 2.8vw, 40px);
}

.plan-currency,
.plan-unit,
.plan-setup {
    color: var(--plan-muted);
    font-size: 13px;
}

.plan-currency {
    font-weight: 700;
}

.plan-setup {
    margin-top: 6px;
    line-height: 1.4;
}

.plan-setup strong {
    margin-left: 3px;
    color: var(--plan-ink);
    font-weight: 600;
    white-space: nowrap;
}

.plan-rates:not([hidden]) + .plan-rates:not([hidden]) {
    margin: 9px 0 12px;
    padding-top: 9px;
    border-top: 1px solid var(--plan-line);
}

.plan-card .button {
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 11px 13px;
    white-space: normal;
}

.plan-card .button .icon {
    width: 17px;
    height: 17px;
}

.plan-quote {
    color: var(--plan-ink);
    background: var(--plan-icon-surface);
    border-color: var(--plan-line);
}

.plan-quote:hover {
    border-color: var(--plan-accent);
}

.plan-scope {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-height: 67px;
    padding-block: 15px 13px;
    border-bottom: 1px solid var(--plan-line);
    color: var(--plan-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.plan-scope .icon {
    width: 17px;
    height: 17px;
}

.plan-features {
    padding-top: 17px;
}

.plan-features h4 {
    font: 700 13px / 1.4 var(--body);
}

.plan-features ul {
    display: grid;
    gap: 9px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--plan-muted);
    font-size: 14px;
    line-height: 1.43;
}

.plan-features .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #007ca6;
}

.plan-enterprise .plan-features .icon {
    color: #8bdaf6;
}

.plans-faq {
    padding-block: clamp(47px, 6.6vw, 89px);
}

.plans-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: clamp(23px, 6vw, 78px);
}

.plans-faq-layout > div:first-child p {
    max-width: 350px;
}

.plans-faq-layout .text-link {
    margin-top: 17px;
}

.plans-questions details {
    border-top: 1px solid var(--line);
}

.plans-questions details:last-child {
    border-bottom: 1px solid var(--line);
}

.plans-questions summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.plans-questions summary::-webkit-details-marker {
    display: none;
}

.plans-questions summary .icon {
    width: 19px;
    height: 19px;
    color: #007ca6;
    transform: rotate(90deg);
}

.plans-questions details[open] summary .icon {
    transform: rotate(-90deg);
}

.plans-questions details p {
    padding: 0 24px 16px 0;
    color: #4f5f70;
    font-size: 15px;
}

@media (max-width: 1080px) {
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-card-heading {
        min-height: 105px;
    }

    .plan-scope {
        min-height: 58px;
    }
}

@media (max-width: 710px) {
    .plans-hero-layout,
    .plans-faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .plans-common {
        max-width: 430px;
    }
}

@media (max-width: 520px) {
    .plan-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-card-heading,
    .plan-price-block,
    .plan-scope {
        min-height: 0;
    }

    .plan-price-block {
        margin-block: 18px 15px;
        padding-bottom: 0;
    }

    .plans-common ul {
        gap: 13px;
    }

    .plan-controls button {
        padding-inline: 11px;
    }
}
