* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #091d20;
    background: linear-gradient(130deg, #f7fcf9, #effaf5 70%, #f8fcff);
    line-height: 1.45;
}
a {
    color: inherit;
    text-decoration: none;
}
svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #0c9e45;
    outline-offset: 4px;
}
.wrap {
    width: min(1420px, 87%);
    margin: auto;
}
.wide {
    width: min(1520px, 93%);
    margin: auto;
}
header {
    background: #fff;
    box-shadow: 0 2px 15px #093f2410;
    position: relative;
    z-index: 3;
}
.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}
.brand svg {
    width: 57px;
    height: 52px;
}
.brand strong {
    font-size: 35px;
    letter-spacing: -1.8px;
    line-height: 1;
    display: block;
}
.brand sup {
    font-size: 10px;
    vertical-align: super;
}
.brand small {
    display: block;
    font-size: 13px;
    margin-top: 5px;
}
.nav nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.5vw, 42px);
    font-size: 17px;
    font-weight: 600;
}
.nav nav a {
    position: relative;
    padding: 22px 0;
}
.nav nav a:hover,
.nav nav .active {
    color: #00552f;
}
.nav nav .active:after {
    content: "";
    position: absolute;
    bottom: 10px;
    height: 3px;
    background: #03c138;
    border-radius: 5px;
    left: -9px;
    right: -9px;
}
.nav-actions,
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #006b40;
    border-radius: 9px;
    padding: 12px 21px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #006b4020;
}
.primary {
    color: white;
    background: linear-gradient(105deg, #079600, #005338);
}
.outline {
    background: #ffffffa8;
    color: #064923;
}
.menu {
    display: none;
}
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 30%, #d9f0e7 0, transparent 42%),
        linear-gradient(90deg, #f6fbfa, #edf9ff);
}
.hero-art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 59%;
    background: url("../images/collegepay-homepage-campus.webp") center right/cover no-repeat;
    mask-image: linear-gradient(to right, transparent 0%, #000 17%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 17%);
}
.hero-inner {
    position: relative;
    padding: 46px 0 66px;
    min-height: 497px;
}
.hero-copy {
    width: 47%;
    max-width: 650px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px 20px;
    border-radius: 30px;
    background: linear-gradient(90deg, #d0f8d2, #d5f7e6);
    font-size: 14px;
    font-weight: 600;
}
.eyebrow svg {
    color: #007b10;
    width: 29px;
}
.hero h1 {
    font-size: clamp(36px, 3.55vw, 58px);
    line-height: 1.01;
    letter-spacing: -1.8px;
    margin: 18px 0 29px;
    font-weight: 800;
}
.hero h1 em {
    font-style: normal;
    color: #008609;
    position: relative;
}
.hero h1 em:after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 45%;
    width: 55%;
    height: 12px;
    border-top: 4px solid #009c19;
    border-radius: 50%;
    transform: rotate(-4deg);
}
.hero p {
    font-size: 18px;
    max-width: 535px;
    margin: 0 0 20px;
    color: #23374a;
}
.hero-actions .btn {
    font-size: 16px;
    padding: 13px 25px;
    min-height: 50px;
}
.hero-actions .btn span {
    font-size: 24px;
    margin-left: 3px;
    line-height: 1;
}
.trust {
    display: flex;
    gap: 24px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #00a536;
}
.trust b {
    color: #253c42;
    font-weight: 500;
    margin-left: 5px;
}
.features {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #ffffffed;
    border-radius: 19px;
    padding: 22px 16px;
    box-shadow: 0 9px 25px #1b664014;
    min-height: 114px;
}
.features article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-right: 1px solid #dce7e7;
}
.features article:last-child {
    border: 0;
}
i {
    font-style: normal;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #008414;
    background: linear-gradient(135deg, #e8fbe9, #ddf4e7);
}
i svg {
    width: 36px;
    height: 36px;
}
.features h3,
.steps h3 {
    font-size: 16px;
    margin: 0 0 3px;
    letter-spacing: -0.35px;
}
.features p,
.steps p {
    font-size: 14px;
    margin: 0;
    color: #24384a;
    line-height: 1.4;
}
.how {
    padding: 30px 0 22px;
    text-align: center;
}
.section-label {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 2px;
    color: #086c27;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.section-label:before,
.section-label:after {
    content: "";
    width: 53px;
    height: 1px;
    background: #087a2c;
}
h2 {
    font-size: 34px;
    letter-spacing: -1px;
    margin: 0 0 22px;
    line-height: 1.15;
}
.steps {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}
.steps article {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 9px 23px #1b664014;
    border: 1px solid #e3eeea;
}
.steps h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.steps h3 b {
    display: grid;
    place-items: center;
    background: linear-gradient(#08bd00, #005f33);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.arrow {
    font-size: 30px;
    color: #008b15;
    font-weight: 700;
}
.extra {
    margin-top: 24px;
    padding: 26px 30px;
    background: white;
    border: 1px solid #deece6;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.extra h2 {
    font-size: 24px;
    margin: 0 0 5px;
}
.extra p {
    margin: 0;
    color: #45635b;
}
footer {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    font-size: 13px;
    color: #56726a;
}
@media (max-width: 1250px) {
    .nav {
        width: 94%;
        gap: 14px;
    }
    .brand strong {
        font-size: 28px;
    }
    .brand svg {
        width: 45px;
    }
    .nav nav {
        gap: 18px;
        font-size: 15px;
    }
    .nav-actions {
        gap: 8px;
    }
    .nav-actions .btn {
        padding: 10px 12px;
    }
    .features article {
        padding: 0 10px;
        gap: 8px;
    }
    .features i {
        width: 48px;
        height: 48px;
    }
    .features i svg {
        width: 28px;
        height: 28px;
    }
    .hero-copy {
        width: 53%;
    }
    .hero-art {
        width: 56%;
    }
    .hero h1 {
        font-size: clamp(35px, 4vw, 50px);
    }
}
@media (max-width: 950px) {
    .nav {
        height: auto;
        min-height: 75px;
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .menu {
        display: block;
        margin-left: auto;
        border: 1px solid #b9d5c6;
        background: white;
        border-radius: 8px;
        padding: 7px 12px;
        font-size: 22px;
        color: #075a36;
        cursor: pointer;
    }
    .nav nav {
        display: none;
        order: 4;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav nav.open {
        display: flex;
    }
    .nav nav a {
        padding: 12px 0;
    }
    .nav nav .active:after {
        bottom: 2px;
    }
    .hero-copy {
        width: 60%;
    }
    .hero-art {
        opacity: 0.6;
        width: 60%;
        mask-image: linear-gradient(to right, transparent, #000 65%);
    }
    .hero-inner {
        min-height: 0;
        padding: 40px 0;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .features article {
        border: 0;
    }
    .steps {
        gap: 12px;
    }
    .steps article {
        flex-direction: column;
        align-items: flex-start;
    }
    .steps h3 {
        font-size: 16px;
    }
    .hero-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .wrap {
        width: 91%;
    }
    .brand strong {
        font-size: 25px;
    }
    .brand small {
        font-size: 10px;
    }
    .brand svg {
        width: 39px;
        height: 40px;
    }
    .nav-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .nav-actions .btn {
        flex: 1;
    }
    .hero-copy {
        width: 100%;
    }
    .hero-art {
        position: relative;
        width: 100%;
        height: 245px;
        opacity: 1;
        mask-image: none;
        -webkit-mask-image: none;
        background-position: right center;
    }
    .hero-inner {
        padding: 26px 0 32px;
    }
    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
    .hero p {
        font-size: 16px;
    }
    .eyebrow {
        font-size: 11px;
        padding: 5px 10px;
    }
    .hero-actions .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    .trust {
        gap: 10px;
        font-size: 12px;
    }
    .features {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 18px;
    }
    .features article {
        padding: 0;
    }
    .steps {
        flex-direction: column;
        align-items: stretch;
    }
    .steps article {
        flex-direction: row;
        align-items: center;
    }
    .arrow {
        transform: rotate(90deg);
        line-height: 1;
    }
    h2 {
        font-size: 28px;
    }
    .extra {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    footer {
        gap: 12px;
        flex-wrap: wrap;
    }
}

.trust {
    list-style: none;
    padding: 0;
    color: #253c42;
}
.trust li::before {
    content: "✓";
    color: #008414;
    margin-right: 0.35rem;
    font-weight: 700;
}
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}
.steps li {
    flex: 1;
    display: flex;
    min-width: 0;
}
.homepage-directory {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.homepage-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}
.homepage-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.homepage-form input {
    min-height: 44px;
    flex: 1 1 12rem;
    min-width: 0;
    border: 1px solid #b9d5c6;
    border-radius: 9px;
    padding: 0.55rem 0.75rem;
    font: inherit;
}
.homepage-schools {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.homepage-schools li + li {
    margin-top: 0.65rem;
}
.homepage-schools a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid #deece6;
    border-radius: 9px;
}
.homepage-schools a:hover {
    background: #effaf5;
}
.homepage-schools svg,
.homepage-schools a span {
    color: #005b3b;
}
.homepage-schools a span {
    margin-left: auto;
}
.pagination {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-link {
    display: block;
    padding: 0.4rem 0.65rem;
    border: 1px solid #b9d5c6;
    border-radius: 0.4rem;
}
.page-item.active .page-link {
    background: #005b3b;
    color: white;
}
#invoice-error {
    color: #8b1924;
    margin-bottom: 0.5rem;
}
@media (max-width: 800px) {
    .homepage-directory {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 600px) {
    .homepage-support form {
        width: 100%;
    }
    .steps article {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn {
        transition: none;
    }
}
