.hero-carousel-content > .audience-switch {
    position: relative;
    z-index: 2;
    margin: 0 auto 32px;
}

.agency-landing-hero {
    position: relative;
    overflow: hidden;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 38%), rgba(14, 20, 33, .88);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
    isolation: isolate;
}

.agency-landing-hero > .audience-switch {
    position: relative;
    z-index: 2;
    margin: 0 auto 32px;
}

@media (min-width: 901px) {
    .module-detail-hero > .audience-switch {
        margin-bottom: 56px;
    }
}

.agency-landing-hero::before,
.agency-landing-hero::after {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    content: '';
    filter: blur(12px);
    pointer-events: none;
}

.agency-landing-hero::before {
    top: -230px;
    left: 8%;
    background: rgba(124, 58, 237, .2);
}

.agency-landing-hero::after {
    right: -230px;
    bottom: -240px;
    background: rgba(14, 165, 233, .1);
}

.agency-platform-preview {
    position: relative;
    min-width: 0;
    padding: 26px 54px 28px 0;
}

.agency-platform-preview .agency-dashboard-shot {
    margin: 0;
}

.agency-platform-shot-label {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: #aeb9c8;
    background: rgba(6, 10, 18, .96);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
}

.agency-platform-app-shot {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(132px, 31%, 176px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(196, 181, 253, .45);
    border-radius: 18px;
    background: #080d18;
    box-shadow: 0 32px 64px -30px #000, 0 0 0 5px rgba(8, 13, 24, .82);
    transform: rotate(1.25deg);
}

.agency-platform-app-shot img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 620px) {
    .agency-platform-preview {
        padding: 24px 0 0;
    }

    .agency-platform-app-shot {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(54%, 210px);
        margin: -42px auto 0;
    }
}

.agency-form-shell {
    background: linear-gradient(145deg, rgba(21, 28, 40, .96), rgba(14, 20, 33, .96));
    box-shadow: 0 32px 80px -52px #000;
}

.agency-form-shell .form-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 42px 11px 14px;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    appearance: none;
    color: var(--text);
    background-color: var(--surface);
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    font: inherit;
}

.agency-form-shell .form-field select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .16);
}

.agency-form-shell .module-checks {
    gap: 12px;
}

.agency-form-shell .module-check {
    min-height: 52px;
    justify-content: flex-start;
    padding: 13px 15px;
    border-color: var(--border-2);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.agency-form-shell .module-check:hover {
    border-color: rgba(167, 139, 250, .55);
    background: rgba(124, 58, 237, .08);
}

.agency-form-shell .module-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--primary);
}

.agency-form-shell .module-check span {
    flex: 1;
}

.agency-form-shell .form-field > label:first-child {
    margin-bottom: 9px;
}

.agency-form-shell .btn[type="submit"] {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
}

.module-hero-screenshot {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border-2);
    border-radius: 14px;
    background: rgba(6, 10, 18, .82);
    box-shadow: 0 34px 80px -48px #000;
}

.module-hero-screenshot__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.module-hero-screenshot__meta a,
.agency-screenshot-grid figcaption a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, .45);
    text-underline-offset: 4px;
}

.module-hero-screenshot__meta a:hover,
.agency-screenshot-grid figcaption a:hover {
    color: var(--primary-light);
    text-decoration-color: currentColor;
}

.module-hero-screenshot__meta a:focus-visible,
.agency-screenshot-grid figcaption a:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}

.module-hero-screenshot img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.module-hero-screenshot figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.agency-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 56px 24px;
}

.agency-screenshot-grid figure {
    display: flex;
    grid-column: span 3;
    flex-direction: column;
    min-width: 0;
}

.agency-screenshot-grid .agency-screenshot--portal,
.agency-screenshot-grid .agency-screenshot--requester {
    grid-column: 1 / -1;
}

.agency-screenshot-grid .agency-screenshot--app {
    grid-column: span 2;
}

.agency-screenshot-grid--app-remainder-1 .agency-screenshot--app:last-child {
    grid-column: 3 / span 2;
}

.agency-screenshot-grid--app-remainder-2 .agency-screenshot--app:nth-last-child(2) {
    grid-column: 2 / span 2;
}

.agency-screenshot-grid--app-remainder-2 .agency-screenshot--app:last-child {
    grid-column: 4 / span 2;
}

.agency-screenshot-grid img {
    width: 100%;
    border: 1px solid var(--border-2);
    border-radius: 12px;
    box-shadow: 0 28px 60px -38px #000;
}

.agency-screenshot-grid figcaption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.agency-screenshot-grid figcaption a {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 901px) {
    .has-module-hero-screenshot .module-detail-grid {
        grid-template-columns: minmax(380px, .8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 720px) {
    .agency-screenshot-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .agency-screenshot-grid figure,
    .agency-screenshot-grid .agency-screenshot--portal,
    .agency-screenshot-grid .agency-screenshot--requester,
    .agency-screenshot-grid .agency-screenshot--app,
    .agency-screenshot-grid--app-remainder-1 .agency-screenshot--app:last-child,
    .agency-screenshot-grid--app-remainder-2 .agency-screenshot--app:nth-last-child(2),
    .agency-screenshot-grid--app-remainder-2 .agency-screenshot--app:last-child {
        grid-column: auto;
    }

    .agency-screenshot-grid .agency-screenshot--app {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .agency-screenshot-grid figcaption {
        display: block;
    }

    .agency-screenshot-grid figcaption a {
        display: inline-block;
        margin-top: 10px;
    }
}
