.section-pricing-tiers {
    padding: 10rem 0;
    background: var(--color-light-purple);
    color: var(--color-dark-purple);
}

.section-pricing-tiers .services-tiers__grid {
    row-gap: 4rem;
}

.section-pricing-tiers > .container.grid > .services-tiers__header {
    grid-column: 2 / 12;
    text-align: center;
}

.section-pricing-tiers .services-tiers__title {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    color: var(--color-dark-purple);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    letter-spacing: 0;
}

/* Both halves of the heading sit at --text-h2 now. At display size the italic
   line shouted over the line that carries the actual instruction; level, they
   read as one sentence. */
.section-pricing-tiers .services-tiers__title em {
    font-size: var(--text-h2);
    font-style: italic;
    line-height: var(--lh-display);
}

.section-pricing-tiers .services-tiers__title span {
    font-size: var(--text-h2);
    line-height: var(--lh-title3);
}

.section-pricing-tiers .services-tiers__title-mobile,
.section-pricing-tiers .services-tiers__intro-mobile {
    display: none;
}

/* Same measure as the capabilities header: at 900px the intro broke into two
   lopsided lines under the wider heading. */
.section-pricing-tiers .services-tiers__intro {
    width: min(100%, 1010px);
    margin: 1.875rem auto 0;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1.66vw, 1.5rem);
    font-weight: var(--fw-regular);
    line-height: 1.3334;
    letter-spacing: -0.03125em;
}

.section-pricing-tiers .services-tier-card {
    grid-column: span 4;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    min-height: 748px;
    overflow: hidden;
    border: 1px solid var(--color-secondary);
    border-radius: 12px;
    background: var(--color-white);
}

.section-pricing-tiers .services-tier-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--color-secondary);
    text-align: center;
}

.section-pricing-tiers .services-tier-card--accent .services-tier-card__top {
    background: var(--color-accent-01);
}

.section-pricing-tiers .services-tier-card--pink .services-tier-card__top {
    background: var(--color-accent-02);
}

.section-pricing-tiers .services-tier-card__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.section-pricing-tiers .services-tier-card__title {
    margin: 0;
    color: var(--color-dark-purple);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: var(--fw-bold);
    line-height: 1.1875;
    letter-spacing: -0.03125em;
}

.section-pricing-tiers .services-tier-card__description {
    width: min(100%, 331px);
    margin: 0;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-regular);
    line-height: 1.5;
}

.section-pricing-tiers .services-tier-card__body {
    padding: 2rem;
    border-top: 1px solid var(--color-secondary);
}

.section-pricing-tiers .services-tier-card__features {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-pricing-tiers .services-tier-card__features li {
    position: relative;
    min-width: 0;
    padding-left: 1.5rem;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-regular);
    line-height: 1.5;
}

.section-pricing-tiers .services-tier-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.75rem;
    height: 0.45rem;
    border-left: 1.5px solid var(--color-primary);
    border-bottom: 1.5px solid var(--color-primary);
    transform: rotate(-45deg);
}

.section-pricing-tiers .services-tier-card__features li > * {
    margin: 0;
}

.section-pricing-tiers .services-tier-card__features strong {
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
}

.section-pricing-tiers .services-tier-card__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border-top: 1px solid var(--color-secondary);
    text-align: center;
}

.section-pricing-tiers .services-tier-card__price {
    margin: 0;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    line-height: 1.3334;
    letter-spacing: -0.03125em;
}

.section-pricing-tiers .services-tier-card__timeline {
    margin: 0 0 1rem;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-regular);
    line-height: 1.5;
}

.section-pricing-tiers .services-tier-card__button,
.services-tier-modal-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-accent-01);
    border-radius: 999px;
    background: var(--color-accent-01);
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: var(--fw-semibold);
    line-height: 1.6;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.section-pricing-tiers .services-tiers__compare {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
}

.section-pricing-tiers .services-tiers__compare-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    line-height: 1.3334;
    letter-spacing: -0.03125em;
    text-decoration: none;
    cursor: pointer;
}

.section-pricing-tiers .services-tiers__compare-link img {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.section-pricing-tiers .services-tiers__compare p {
    margin: 0;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5715;
}

/* Above the masthead (1000) and every section wrapper: on screen-scroll pages
   `[data-screen-scroll] > *` makes each wrapper its own stacking context, so a
   later section used to paint straight over this overlay whatever its z-index.
   main.js reparents the overlay to <body> so this number is measured against
   the document; it stays under the page-transition cover (9990) so navigating
   away from an open modal still rises over it. */
.services-tier-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    opacity: 0;
    /* Hidden as well as see-through once the fade has run, so nothing inside
       the closed overlay can take focus or be read out; the visibility flip
       waits out the fade on the way down and is immediate on the way up. */
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.services-tier-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease, visibility 0s linear 0s;
}

.services-tier-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 5, 48, 0.46);
}

.services-tier-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: min(1308px, 100%);
    max-height: calc(100dvh - clamp(2rem, 6vw, 4rem));
    border-radius: 16px;
    background: var(--color-white);
    color: var(--color-dark-purple);
    box-shadow: 0 24px 80px rgba(6, 5, 48, 0.28);
    /* Rises into place as the overlay fades up and sinks back as it goes. */
    transform: translateY(12px) scale(0.98);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.services-tier-modal.is-open .services-tier-modal__dialog {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .services-tier-modal__dialog {
        transform: none;
        transition: none;
    }
}

/* Focus is moved here on open — don't paint a ring around the whole panel. */
.services-tier-modal__dialog:focus,
.services-tier-modal__dialog:focus-visible {
    outline: none;
}

/* Brand scrollbar for every scrollable region inside the modal.
   Blink/WebKit get the padded rail below; Chrome disables those pseudo-elements
   as soon as `scrollbar-width` is set, so the standard properties are scoped to
   the engines that have nothing else — Firefox. */
@supports not selector(::-webkit-scrollbar) {
    .services-tier-modal__dialog,
    .services-tier-modal__table-wrap,
    .services-tier-modal__summary {
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) rgba(73, 71, 184, 0.14);
    }
}

.services-tier-modal__dialog::-webkit-scrollbar,
.services-tier-modal__table-wrap::-webkit-scrollbar,
.services-tier-modal__summary::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.services-tier-modal__dialog::-webkit-scrollbar-track,
.services-tier-modal__table-wrap::-webkit-scrollbar-track,
.services-tier-modal__summary::-webkit-scrollbar-track {
    border: 4px solid transparent;
    border-radius: 999px;
    background: rgba(73, 71, 184, 0.12);
    background-clip: content-box;
}

.services-tier-modal__dialog::-webkit-scrollbar-thumb,
.services-tier-modal__table-wrap::-webkit-scrollbar-thumb,
.services-tier-modal__summary::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: var(--color-primary);
    background-clip: content-box;
}

.services-tier-modal__dialog::-webkit-scrollbar-thumb:hover,
.services-tier-modal__table-wrap::-webkit-scrollbar-thumb:hover,
.services-tier-modal__summary::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-purple);
    background-clip: content-box;
}

.services-tier-modal__dialog::-webkit-scrollbar-corner,
.services-tier-modal__table-wrap::-webkit-scrollbar-corner,
.services-tier-modal__summary::-webkit-scrollbar-corner {
    background: transparent;
}

.services-tier-modal__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.services-tier-modal__close:hover,
.services-tier-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

.services-tier-modal__close::before,
.services-tier-modal__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.5rem;
    height: 0.1875rem;
    border-radius: 999px;
    background: var(--color-white);
    transform-origin: center;
}

.services-tier-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.services-tier-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.services-tier-modal__hero {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 5.5rem 2.875rem 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.services-tier-modal__title {
    position: relative;
    z-index: 1;
    width: min(100%, 1130px);
    margin: 0 0 5.625rem;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.4vw, var(--text-h2));
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

.services-tier-modal__summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 280px) repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.services-tier-modal__note {
    align-self: center;
    padding-bottom: 2.75rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.45;
}

.services-tier-modal__note p {
    margin: 0;
}

.services-tier-modal__note p + p {
    margin-top: 1.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
}

.services-tier-modal-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    min-height: 266px;
    padding: 3.625rem 2rem 1.625rem;
    border-radius: 16px 16px 0 0;
    background: var(--color-white);
    color: var(--color-dark-purple);
    text-align: center;
}

.services-tier-modal-card--secondary {
    background: var(--color-secondary);
}

.services-tier-modal-card--accent {
    background: var(--color-accent-01);
}

.services-tier-modal-card--pink {
    background: var(--color-accent-02);
}

.services-tier-modal-card__badge {
    position: absolute;
    left: 50%;
    top: -1.25rem;
    display: block;
    width: 13rem;
    height: auto;
    transform: translateX(-50%);
}

.services-tier-modal-card__title,
.services-tier-modal-card__price {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: 1.1875;
}

.services-tier-modal-card__title {
    align-self: end;
    width: 100%;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-primary);
    font-size: 1.5rem;
}

.services-tier-modal-card__price {
    font-size: 1.5rem;
}

.services-tier-modal-card--accent .services-tier-modal-card__button {
    background: var(--color-white);
}

.services-tier-modal__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 2.25rem 3.125rem 2.75rem;
    background: var(--color-white);
    /* Rows slide under the pricing header — hint at it rather than hard-cut. */
    /* box-shadow: inset 0 14px 12px -12px rgba(6, 5, 48, 0.16); */
}

/* The comparison is the densest reading on the page, so the rows carry the
   larger body size and a fixed row height rather than type that shrinks to fit.
   services.css already held these; the section sheet loads after it and was
   quietly winning the cells back down to 1rem on any page it styles alone. */
.services-tier-modal__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--color-dark-purple);
    font-family: var(--font-body);
}

.services-tier-modal__table th,
.services-tier-modal__table td {
    height: 4.125rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-secondary);
    font-size: 1.125rem;
    line-height: 1.45;
    text-align: center;
    vertical-align: middle;
}

.services-tier-modal__table tr:last-child th,
.services-tier-modal__table tr:last-child td {
    border-bottom: 0;
}

.services-tier-modal__table th {
    width: 26%;
    font-weight: var(--fw-bold);
    text-align: left;
}

.services-tier-modal__table td {
    width: 24.6667%;
    color: rgba(45, 44, 108, 0.78);
    font-weight: var(--fw-regular);
}

.services-tier-modal__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
}

/* The legacy pseudo-element ticks are drawn by the SVG now. */
.services-tier-modal__mark::before,
.services-tier-modal__mark::after {
    content: none;
}

.services-tier-modal__mark svg {
    width: 100%;
    height: 100%;
}

.services-tier-modal__mark--check {
    color: var(--color-tier-mark-check, #ff7a1a);
}

.services-tier-modal__mark--cross {
    color: var(--color-tier-mark-cross, rgba(45, 44, 108, 0.35));
}

/* Short viewports: the hero is pinned, so spend the height on the rows. */
@media (min-width: 1025px) and (max-height: 900px) {
    .services-tier-modal__hero {
        padding-top: 3.5rem;
    }

    .services-tier-modal__title {
        margin-bottom: 2.75rem;
        font-size: clamp(2rem, 3vw, 2.75rem);
    }

    .services-tier-modal__note {
        padding-bottom: 1.5rem;
    }

    .services-tier-modal-card {
        gap: 1rem;
        min-height: 0;
        padding: 3rem 1.5rem 1.5rem;
    }

    .services-tier-modal-card__title {
        padding-bottom: 1.25rem;
    }

    .services-tier-modal__table-wrap {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .section-pricing-tiers > .container.grid > .services-tiers__header,
    .section-pricing-tiers .services-tier-card {
        grid-column: 1 / -1;
    }

    /* Below the desktop layout the hero stacks too tall to pin — scroll the
       whole panel instead. The overlay itself takes the scroll so the bar rides
       the backdrop rather than cutting a white gutter beside the purple hero. */
    .services-tier-modal {
        align-items: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .services-tier-modal__backdrop {
        position: fixed;
    }

    .services-tier-modal__dialog {
        max-height: none;
    }

    .services-tier-modal__table-wrap {
        flex: 0 0 auto;
        overflow-x: auto;
        overflow-y: hidden;
        box-shadow: none;
    }

    .services-tier-modal__hero {
        padding: 4.5rem 2rem 0;
    }

    .services-tier-modal__title {
        margin-bottom: 3rem;
        font-size: clamp(2.5rem, 6vw, var(--text-h2));
    }

    .services-tier-modal__close {
        top: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .services-tier-modal__summary {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-top: 1.25rem;
    }

    .services-tier-modal__note {
        grid-column: 1 / -1;
        width: min(100%, 520px);
        padding-bottom: 0.5rem;
    }

    .services-tier-modal-card {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .section-pricing-tiers {
        padding: 5rem 0;
    }

    .section-pricing-tiers .services-tiers__title-desktop,
    .section-pricing-tiers .services-tiers__intro-desktop {
        display: none;
    }

    .section-pricing-tiers .services-tiers__title-mobile,
    .section-pricing-tiers .services-tiers__intro-mobile {
        display: inline;
    }

    .section-pricing-tiers .services-tiers__intro {
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .section-pricing-tiers .services-tier-card {
        grid-template-rows: auto;
        min-height: 0;
    }

    .services-tier-modal__table-wrap {
        padding: 1.5rem 1.25rem 2rem;
    }

    .services-tier-modal__table {
        min-width: 760px;
    }

    .services-tier-modal__dialog::-webkit-scrollbar,
    .services-tier-modal__table-wrap::-webkit-scrollbar,
    .services-tier-modal__summary::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .services-tier-modal__dialog::-webkit-scrollbar-track,
    .services-tier-modal__table-wrap::-webkit-scrollbar-track,
    .services-tier-modal__summary::-webkit-scrollbar-track {
        border-width: 3px;
    }

    .services-tier-modal__dialog::-webkit-scrollbar-thumb,
    .services-tier-modal__table-wrap::-webkit-scrollbar-thumb,
    .services-tier-modal__summary::-webkit-scrollbar-thumb {
        border-width: 2px;
    }
}

/* Phone widths only, matching services.css: the panel scrolls as a whole down
   here, so the title is set against the screen rather than against the room
   left above the rows. */
@media (max-width: 640px) {
    .services-tier-modal__title {
        margin-bottom: 2.25rem;
        font-size: clamp(2.25rem, 11vw, 3rem);
        line-height: 1.12;
    }
}
