.referral-landing {
    background: var(--color-background-1);
    color: #353a47;
}

.referral-landing * {
    letter-spacing: 0;
}

.referral-landing h1,
.referral-landing h2,
.referral-landing h3,
.referral-landing p {
    margin: 0;
}

.referral-container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.referral-hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #353a47;
    color: var(--color-background-1);
}

.referral-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    gap: 72px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.referral-hero-copy {
    max-width: 690px;
}

.referral-eyebrow {
    margin-bottom: 12px !important;
    color: var(--color-accent-1);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.referral-hero .referral-eyebrow {
    color: #8fd3fb;
}

.referral-hero h1 {
    max-width: 650px;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.08;
}

.referral-hero-intro {
    max-width: 670px;
    margin-top: 24px !important;
    color: #e4e7ec;
    font-size: 20px;
    line-height: 1.55;
}

.referral-agent-note {
    max-width: 670px;
    margin-top: 16px !important;
    color: #e4e7ec;
    font-size: 15px;
    line-height: 1.55;
}

.referral-agent-note strong,
.referral-agent-note a {
    color: var(--color-background-1);
}

.referral-agent-note a {
    text-decoration: underline;
}

.referral-hero-highlight {
    margin-top: 20px !important;
    color: var(--color-background-1);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
}

.referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.referral-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.referral-button-primary {
    background: var(--color-accent-1);
    color: var(--color-background-1);
}

.referral-button-primary:hover,
.referral-button-primary:focus-visible {
    background: var(--color-accent-2);
    color: var(--color-background-1);
}

.referral-button-secondary {
    border-color: var(--color-background-1);
    color: var(--color-background-1);
}

.referral-button-secondary:hover,
.referral-button-secondary:focus-visible {
    background: var(--color-background-1);
    color: #353a47;
}

.referral-button:focus-visible,
.referral-terms summary:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

.referral-offer-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 350px;
    padding: 58px 0 20px;
}

.referral-offer-visual img {
    position: absolute;
    top: 0;
    right: 10px;
    width: 112px;
    height: 112px;
    object-fit: contain;
    transform: rotate(7deg);
}

.referral-offer-person {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-offer-person span {
    color: #b9c1cd;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.referral-offer-person strong {
    color: var(--color-background-1);
    font-size: 76px;
    font-weight: 700;
    line-height: 1;
}

.referral-offer-person small {
    color: #e4e7ec;
    font-size: 16px;
    line-height: 1.4;
}

.referral-offer-divider {
    width: 1px;
    height: 180px;
    background: rgba(255, 255, 255, .28);
}

.referral-section {
    padding: 88px 0;
}

.referral-section-tinted {
    background: var(--color-background-2);
}

.referral-section-heading {
    max-width: 640px;
    margin-bottom: 38px;
}

.referral-section h2,
.referral-cta h2 {
    color: #353a47;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.18;
}

.referral-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referral-steps li {
    min-width: 0;
    padding: 0 28px;
    border-left: 1px solid #d2d4da;
}

.referral-steps li:first-child {
    padding-left: 0;
    border-left: 0;
}

.referral-steps li:last-child {
    padding-right: 0;
}

.referral-step-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--color-accent-1);
    color: var(--color-background-1);
    font-size: 17px;
    font-weight: 700;
}

.referral-steps h3,
.referral-example-groups h3 {
    color: #353a47;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.referral-steps p {
    margin-top: 9px !important;
    color: #5b6472;
    font-size: 16px;
    line-height: 1.55;
}

.referral-value-layout {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 88px;
    align-items: start;
}

.referral-value-intro {
    position: sticky;
    top: 32px;
}

.referral-value-intro > p:last-child,
.referral-eligibility-copy {
    margin-top: 20px !important;
    color: #5b6472;
    font-size: 17px;
    line-height: 1.65;
}

.referral-example-groups {
    display: grid;
    gap: 42px;
}

.referral-example-groups section > h3 {
    margin-bottom: 14px;
}

.referral-example-list {
    border-top: 1px solid #cdd3dc;
}

.referral-example-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #cdd3dc;
}

.referral-example-list article > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-example-list article > div strong {
    color: #353a47;
    font-size: 16px;
    font-weight: 700;
}

.referral-example-list article > div span {
    color: #697381;
    font-size: 14px;
    line-height: 1.4;
}

.referral-example-list article > p {
    flex: 0 0 auto;
    color: #353a47;
    font-size: 16px;
}

.referral-example-list article > p strong {
    color: var(--color-accent-2);
    font-size: 24px;
    font-weight: 700;
}

.referral-examples-unavailable {
    color: #5b6472;
    font-size: 17px;
    line-height: 1.6;
}

.referral-eligibility-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 80px;
    align-items: center;
}

.referral-credit-callout {
    padding: 30px 0 30px 32px;
    border-left: 5px solid var(--color-accent-1);
}

.referral-credit-callout strong {
    color: #353a47;
    font-size: 20px;
    font-weight: 700;
}

.referral-credit-callout p {
    margin-top: 10px !important;
    color: #5b6472;
    font-size: 16px;
    line-height: 1.6;
}

.referral-cta {
    padding: 52px 0;
    background: var(--color-accent-3);
    color: var(--color-background-1);
}

.referral-cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.referral-cta h2 {
    color: var(--color-background-1);
}

.referral-cta p {
    margin-top: 8px !important;
    color: #dce7f4;
    font-size: 17px;
    line-height: 1.5;
}

.referral-terms {
    padding: 38px 0 64px;
    background: var(--color-background-1);
}

.referral-terms details {
    border-bottom: 1px solid #d2d4da;
}

.referral-terms summary {
    position: relative;
    padding: 18px 42px 18px 0;
    color: #353a47;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    list-style: none;
}

.referral-terms summary::-webkit-details-marker {
    display: none;
}

.referral-terms summary::after {
    position: absolute;
    top: 14px;
    right: 4px;
    content: "+";
    color: var(--color-accent-2);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.referral-terms details[open] summary::after {
    content: "\2212";
}

.referral-terms-content {
    max-width: 850px;
    padding: 0 0 26px;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.6;
}

.referral-terms-content ul {
    margin: 14px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.referral-terms-content li + li {
    margin-top: 7px;
}

@media (max-width: 980px) {
    .referral-hero {
        min-height: 0;
    }

    .referral-hero-layout,
    .referral-value-layout,
    .referral-eligibility-layout {
        grid-template-columns: 1fr;
    }

    .referral-hero-layout {
        gap: 42px;
    }

    .referral-offer-visual {
        max-width: 600px;
        min-height: 260px;
        padding-top: 25px;
    }

    .referral-offer-visual img {
        top: -18px;
        width: 88px;
        height: 88px;
    }

    .referral-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .referral-steps li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .referral-value-layout,
    .referral-eligibility-layout {
        gap: 42px;
    }

    .referral-value-intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .referral-container {
        width: min(100% - 32px, 1160px);
    }

    .referral-hero-layout {
        padding-top: 52px;
        padding-bottom: 46px;
    }

    .referral-hero h1 {
        font-size: 40px;
    }

    .referral-hero-intro {
        font-size: 18px;
    }

    .referral-hero-highlight {
        font-size: 18px;
    }

    .referral-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .referral-offer-visual {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding-top: 8px;
    }

    .referral-offer-visual img {
        top: -8px;
        right: 0;
        width: 72px;
        height: 72px;
    }

    .referral-offer-person strong {
        font-size: 58px;
    }

    .referral-offer-divider {
        width: 100%;
        height: 1px;
    }

    .referral-section {
        padding: 62px 0;
    }

    .referral-section h2,
    .referral-cta h2 {
        font-size: 32px;
    }

    .referral-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .referral-steps li,
    .referral-steps li:first-child,
    .referral-steps li:nth-child(3) {
        padding: 24px 0;
        border-top: 1px solid #d2d4da;
        border-left: 0;
    }

    .referral-steps li:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .referral-example-list article {
        align-items: flex-end;
        gap: 12px;
    }

    .referral-example-list article > p {
        text-align: right;
    }

    .referral-example-list article > p strong {
        font-size: 21px;
    }

    .referral-credit-callout {
        padding: 24px 0 24px 22px;
    }

    .referral-cta-layout {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .referral-button {
        transition: none;
    }
}
