/* PRICING PAGE */

/* Hero: dark navy backdrop with grid image; Vanta.DOTS (see pricing.js) renders its animated,
   mouse-reactive dot field into #pricing-vanta-bg with a transparent canvas fill so this
   background image shows through behind the dots. Fixed height (not 100% of the wrapper) so it
   ends partway down the pricing cards, letting the cards' lower half sit on the white page
   background below. */
.pricing-top-wrapper {
    position: relative;
    background-color: #fff;
}

.pricing-top-wrapper .starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 960px;
    overflow: hidden;
    z-index: 0;
    background-image: url(/MainSite/images/pricing-page-grid-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

@media screen and (max-width: 767px) {
    .pricing-top-wrapper .starfield {
        height: 700px;
    }
}

/* .starfield is absolutely positioned with z-index:0, which (per CSS stacking rules) paints it
   after/above normal static in-flow content regardless of DOM order. Promote the hero's real
   content above it so it isn't visually painted over. */
.pricing-top-wrapper > *:not(.starfield) {
    position: relative;
    z-index: 1;
}

/* New Pricing Toggle */
.new-pricing-toggle {
    margin-top: 30px;
}

.new-pricing-toggle .btn-group label {
    padding: 10px 40px !important;
    background-color: #1c2f42;
    border: 0;
}

.new-pricing-toggle .btn-group label.active {
    background-color: #fff !important;
    color: #1a1a1a !important;
}

.new-pricing-toggle .btn-secondary {
    font-weight: 600;
}

/* New Pricing Tiers */

.annual-tiers .basic-sub,
.monthly-tiers .basic-sub {
    background-color: #fff;
    border-radius: 20px 0 0 20px;
    border-right: 1px solid #f4f4f4;
    padding: 50px 25px 35px 25px;
}

.annual-tiers .premium-sub,
.monthly-tiers .premium-sub {
    position: relative;
    background-color: #fff;
    border-right: 1px solid #f4f4f4;
    padding: 50px 25px 35px 25px;
}

.annual-tiers > .col,
.monthly-tiers > .col {
    display: flex;
    flex-direction: column;
}

/* Standalone cards with a real gap instead of a shared divider */
.annual-tiers.row-cols-md-2,
.monthly-tiers.row-cols-md-2 {
    column-gap: 20px;
}

.annual-tiers.row-cols-md-2 .basic-sub,
.monthly-tiers.row-cols-md-2 .basic-sub,
.annual-tiers.row-cols-md-2 .premium-sub,
.monthly-tiers.row-cols-md-2 .premium-sub {
    border: solid 1px #051a2f1a;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.annual-tiers.row-cols-md-2 .basic-sub:hover,
.monthly-tiers.row-cols-md-2 .basic-sub:hover,
.annual-tiers.row-cols-md-2 .premium-sub:hover,
.monthly-tiers.row-cols-md-2 .premium-sub:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(5, 26, 47, 0.14);
}

@media screen and (min-width: 768px) {
    .annual-tiers.row-cols-md-2 > .col,
    .monthly-tiers.row-cols-md-2 > .col {
        max-width: 35%;
        flex: 0 0 35%;
    }
}

/* Fluid text sizing for the cards: one continuous curve from 768px (2-col layout starts,
   cards narrowest) up to 1400px (full size) instead of several mismatched hard breakpoint jumps. */
@media screen and (min-width: 768px) {
    .annual-tiers.row-cols-md-2 h5,
    .monthly-tiers.row-cols-md-2 h5 {
        font-size: clamp(1.3rem, 0.69rem + 1.27vw, 1.8rem);
    }

    .annual-tiers.row-cols-md-2 .paragraph-2,
    .monthly-tiers.row-cols-md-2 .paragraph-2,
    .annual-tiers.row-cols-md-2 li,
    .monthly-tiers.row-cols-md-2 li {
        font-size: clamp(0.75rem, 0.6rem + 0.32vw, 0.875rem);
    }

    .annual-tiers.row-cols-md-2 .premium-sub .preferred-tier .paragraph-1,
    .monthly-tiers.row-cols-md-2 .premium-sub .preferred-tier .paragraph-1 {
        font-size: clamp(0.5rem, 0.2rem + 0.63vw, 0.75rem);
    }
}

.annual-tiers .premium-sub .preferred-tier,
.monthly-tiers .premium-sub .preferred-tier {
    background-color: #31bc77;
    padding: 2px 10px;
    border-radius: 5px;
    position: absolute;
    top: 2%;
    right: 3%;
}

@media screen and (min-width: 992px) and (max-width: 1255px) {
    .annual-tiers .premium-sub .preferred-tier .paragraph-1,
    .monthly-tiers .premium-sub .preferred-tier .paragraph-1 {
        font-size: .5rem
    }
}

@media screen and (min-width: 1200px) and (max-width: 1400px) {
    .annual-tiers h5,
    .monthly-tiers h5 {
        font-size: 1.3rem;
    }

    .annual-tiers .paragraph-2,
    .monthly-tiers .paragraph-2 {
        font-size: .75rem;
    }
}

@media screen and (max-width: 991px) {
    .annual-tiers .basic-sub,
    .monthly-tiers .basic-sub,
    .annual-tiers .premium-sub,
    .monthly-tiers .premium-sub {
        border-radius: 20px;
        border-right: 0;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1200px) {
    .annual-tiers .basic-sub,
    .monthly-tiers .basic-sub {
        border-right: 0;
        margin-bottom: 20px;
    }

    .annual-tiers .premium-sub,
    .monthly-tiers .premium-sub {
        border-right: 0;
        margin-bottom: 20px;
    }
}

/* Broker Partners */
.pricing-brokers {
    background: #fff;
}
.pricing-brokers .container {
    max-width: 1250px;
}
.pricing-brokers__title {
    color: #333333 !important;
    text-align: center;
    font-size: 35px;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-brokers__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}
.pricing-brokers__logo {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    background-color: #F1F2F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.pricing-brokers__logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media screen and (max-width: 576px) {
    .pricing-brokers__logo {
        width: 90px;
        height: 90px;
        padding: 0.65rem;
    }
}

/* Testimonials */
.pricing-testimonials {
    background: #fff;
}
.pricing-testimonials .container {
    max-width: 1250px;
}
.pricing-testimonials__title {
    color: #333333 !important;
    text-align: center;
    font-size: 35px;
    font-weight: 600;
}
.pricing-testimonials__viewport {
    overflow: hidden;
}
.pricing-testimonials__track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s ease;
}
.pricing-testimonials__slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: calc((100% - 3 * 24px) / 4);
}
@media screen and (max-width: 1199px) {
    .pricing-testimonials__slide {
        width: calc((100% - 2 * 24px) / 3);
    }
}
@media screen and (max-width: 767px) {
    .pricing-testimonials__slide {
        width: calc((100% - 24px) / 2);
    }
}
@media screen and (max-width: 575px) {
    .pricing-testimonials__slide {
        width: 100%;
    }
}
.pricing-testimonials__card {
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(5, 26, 47, 0.10);
    border-radius: 24px;
    padding: 32px 26px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.pricing-testimonials__quote-icon {
    font-size: 28px;
    color: #051A2F;
    margin-bottom: 16px;
}
.pricing-testimonials__quote {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(5, 26, 47, 0.88);
}
.pricing-testimonials__author {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(5, 26, 47, 0.78);
}
