
.hero p {
    margin: 0.5em 10%;
    font-weight: 500;
    font-size: 1.7em;
}

.stats-row {
    padding: 2.5rem 1.5rem;
    margin: 3.5rem auto;
    max-width: 900px;
    width: min(90%, 900px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--panel-accent);
    border: 1px solid var(--secondary-bg-color);
    border-radius: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
    padding: 0.5rem 0.75rem;
    flex: 1 1 0px;
    min-width: 0;
    box-sizing: border-box;
}

.stat-number {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #ffd64f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.stat-label {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--body-text-color);
    text-align: center;
    display: block;
}

.access-tiers p {
    justify-self: center;
}

.tier-grid {
    display: flex;
    justify-content: center;
    max-width: 90%;
}

.tier-card {
    padding: 0.5em;
}

.tier-card h3 {
    padding: 1em 0;
    border-radius: 1em;
    text-align: center;
    color: #1e293b;
    background-color: #e2e8f0;
    border: 1.5px solid #cbd5e1;
    font-weight: 800;
}

.tier-card:nth-of-type(2) h3 {
    background-color: #ffedd5;
    color: #9a3412;
    border: 1.5px solid #fed7aa;
}

.tier-card:nth-of-type(3) h3 {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #bae6fd;
}

.tier-card:nth-of-type(4) h3 {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1.5px solid #fde047;
}

html.theme-dark .tier-card h3 {
    color: #cbd5e1;
    background-color: rgba(76, 97, 112, 0.35);
    border: 1.5px solid rgba(148, 163, 184, 0.4);
}

html.theme-dark .tier-card:nth-of-type(2) h3 {
    background-color: rgba(249, 96, 1, 0.2);
    color: #fb923c;
    border: 1.5px solid rgba(249, 96, 1, 0.4);
}

html.theme-dark .tier-card:nth-of-type(3) h3 {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

html.theme-dark .tier-card:nth-of-type(4) h3 {
    background-color: rgba(249, 187, 1, 0.18);
    color: #f9bb01;
    border: 1.5px solid rgba(249, 187, 1, 0.45);
}

.tier-card ul {
    list-style-type: none;
    background-color: #ffffff;
    border: 1.5px solid rgba(0, 23, 39, 0.15);
    border-radius: 1em;
    width: 20em;
    padding: 1em;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html.theme-dark .tier-card ul {
    background-color: rgba(249, 187, 1, 0.08);
    border: 1px solid rgba(249, 187, 1, 0.25);
    box-shadow: none;
}

.check {
    color: #16a34a;
    font-weight: bolder;
    font-size: 2em;
}

html.theme-dark .check {
    color: #4ade80;
}

.cross {
    color: #dc2626;
    font-weight: bolder;
    font-size: 2em;
}

html.theme-dark .cross {
    color: #f87171;
}

.team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    width: min(70em, 94vw);
    margin: auto;
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    width: 100%;
}

.team-grid figure,
.team-row figure {
    margin: 0;
    flex: 0 1 calc((100% - 3em) / 3);
    width: calc((100% - 3em) / 3);
}

.team-grid figure > img,
.team-row figure > img {
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .team-grid figure,
    .team-row figure {
        flex-basis: calc((100% - 1.5em) / 2);
        width: calc((100% - 1.5em) / 2);
    }
}

@media (max-width: 560px) {
    .team-grid figure,
    .team-row figure {
        flex-basis: 100%;
        width: 100%;
    }
}

figure {
    text-align: center;
}

figcaption {
    font-size: 1.5em;
}

figure > img {
    border: var(--secondary-bg-color) solid;
    border-radius: 2em;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        width: min(92%, 480px) !important;
        margin: 2rem auto !important;
        gap: 2rem;
        padding: 2rem 1.25rem;
        box-sizing: border-box;
    }

    .stat-item {
        width: 100%;
        margin: 0 !important;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }

    .tier-grid {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        align-items: center;
        gap: 1rem;
    }

    .tier-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .tier-card ul {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 1rem;
    }

    .hero p {
        margin: 0.5em 1rem !important;
        font-size: 1.2rem !important;
    }
}