:root {
    --ink: #16222f;
    --muted: #657386;
    --paper: #f4f8f6;
    --panel: #ffffff;
    --line: #d8e3df;
    --deep: #12343b;
    --teal: #0e7c7b;
    --teal-dark: #095f60;
    --leaf: #7ea23b;
    --sun: #f3b33d;
    --coral: #d65f3b;
    --mist: #e8f2ef;
    --radius: 10px;
    --shadow: 0 16px 38px rgba(18, 52, 59, .11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.64;
    background:
        radial-gradient(circle at 18px 18px, rgba(14, 124, 123, .075) 1.4px, transparent 1.5px),
        linear-gradient(180deg, #fbfdfc, var(--paper));
    background-size: 36px 36px, auto;
}

a {
    color: var(--teal-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
.btn,
.navbar-brand {
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 1rem;
    font-size: clamp(1.64rem, 2.15vw, 1.96rem);
    font-weight: 760;
    line-height: 1.16;
}

h2 {
    margin-bottom: .78rem;
    font-size: clamp(1.28rem, 1.85vw, 1.68rem);
    font-weight: 740;
    line-height: 1.22;
}

h3 {
    font-size: 1.06rem;
    font-weight: 740;
    line-height: 1.3;
}

p {
    color: var(--muted);
}

.lead {
    max-width: 760px;
    color: #526274;
    font-size: 1.02rem;
    line-height: 1.68;
}

.btn {
    border-radius: 6px;
    padding: .74rem 1rem;
    font-weight: 760;
    line-height: 1.1;
}

.btn-lg {
    padding: .82rem 1.08rem;
    font-size: .98rem;
}

.btn-cta {
    border-color: var(--coral);
    background: var(--coral);
    color: #fff;
}

.btn-cta:hover,
.btn-cta:focus {
    border-color: #bf4e2e;
    background: #bf4e2e;
    color: #fff;
}

.btn-main {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.btn-main:hover,
.btn-main:focus {
    border-color: var(--teal-dark);
    background: var(--teal-dark);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(18, 52, 59, .3);
    background: rgba(255, 255, 255, .72);
    color: var(--deep);
}

.btn-outline-light:hover {
    border-color: var(--deep);
    background: var(--deep);
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 10px 0;
    border-bottom: 1px solid rgba(216, 227, 223, .92);
    background: rgba(244, 248, 246, .92);
    box-shadow: 0 10px 26px rgba(18, 52, 59, .08);
    backdrop-filter: blur(14px);
}

.navbar {
    padding: 0;
}

.navbar .container {
    gap: .9rem;
    border: 1px solid rgba(216, 227, 223, .95);
    border-radius: 999px;
    padding: .46rem .55rem .46rem .68rem;
    background: rgba(255, 255, 255, .86);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 168px;
    padding: .2rem .34rem;
}

.navbar-brand img {
    width: auto;
    height: 38px;
}

.navbar-toggler {
    border-color: rgba(18, 52, 59, .24);
    border-radius: 999px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .18rem rgba(14, 124, 123, .14);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.nav-link {
    border-radius: 999px;
    color: #405163 !important;
    font-size: .9rem;
    font-weight: 720;
    padding: .48rem .72rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep) !important;
    background: var(--mist);
}

.nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(14, 124, 123, .22);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 840;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--sun);
}

.hero {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(244, 248, 246, .98) 0 50%, rgba(244, 248, 246, .78) 50%),
        var(--hero) right center/54% 100% no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 34px clamp(18px, 5vw, 74px);
    border: 1px solid rgba(216, 227, 223, .95);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5)),
        linear-gradient(90deg, rgba(14, 124, 123, .09) 1px, transparent 1px),
        linear-gradient(180deg, rgba(14, 124, 123, .07) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "near me";
    position: absolute;
    right: clamp(30px, 7vw, 92px);
    bottom: 58px;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 820;
    line-height: 1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(1.7rem, 2.3vw, 2.02rem);
}

.hero .lead {
    max-width: 650px;
    font-size: 1.02rem !important;
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(18, 52, 59, .14);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.hero-panel::before {
    content: "Nearby match";
    display: inline-flex;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: .32rem .58rem;
    background: var(--mist);
    color: var(--teal-dark);
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-panel strong {
    display: block;
    color: var(--deep);
    font-size: 1.28rem;
    line-height: 1.12;
}

.hero-panel span {
    color: var(--muted);
}

.hero-panel hr {
    margin: 1rem 0;
    border-color: var(--line);
    opacity: 1;
}

.trust-strip {
    border-block: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 760;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.trust-strip span::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--leaf);
    box-shadow: 0 0 0 4px rgba(126, 162, 59, .12);
}

.section {
    position: relative;
    padding: 62px 0;
}

.section + .section {
    border-top: 1px solid rgba(216, 227, 223, .8);
}

.section-alt,
.academy-band {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(232, 242, 239, .9));
}

main > .section:first-child,
main > article.section:first-child,
main.section {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(244, 248, 246, .98) 0 60%, rgba(244, 248, 246, .66) 60%),
        url("https://images.unsplash.com/photo-1474302770737-173ee21bab63?auto=format&fit=crop&w=1300&q=75") right center/42% 100% no-repeat;
}

main > .section:first-child::after,
main > article.section:first-child::after,
main.section::after {
    content: "";
    position: absolute;
    right: clamp(16px, 5vw, 72px);
    bottom: 20px;
    width: 150px;
    height: 9px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--teal) 0 30%, transparent 30% 38%, var(--sun) 38% 68%, transparent 68% 76%, var(--coral) 76%);
}

.layout-ribbon {
    border-top: 0;
}

.layout-ribbon::before {
    content: "X04";
    position: absolute;
    right: clamp(16px, 6vw, 84px);
    top: 26px;
    color: rgba(18, 52, 59, .16);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 820;
    line-height: 1;
}

.section-dark {
    color: #fff;
    background:
        linear-gradient(110deg, rgba(18, 52, 59, .97), rgba(18, 52, 59, .8)),
        url("https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=1300&q=75") center/cover no-repeat;
}

main > .section.section-dark:first-child {
    color: #fff;
    background:
        linear-gradient(110deg, rgba(18, 52, 59, .97), rgba(18, 52, 59, .8)),
        url("https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=1300&q=75") center/cover no-repeat;
}

.section-dark p,
.section-dark .lead {
    color: rgba(255, 255, 255, .8);
}

.section-dark .feature-card {
    color: var(--ink);
}

.feature-card,
.post-card,
.stat-card,
.path-card,
.locator-panel,
.faq details {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 24px rgba(18, 52, 59, .06);
}

.feature-card,
.post-card,
.path-card,
.locator-panel {
    padding: 24px;
}

.feature-card,
.post-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card::before,
.post-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--teal), var(--leaf));
}

.feature-card:hover,
.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 124, 123, .28);
    box-shadow: var(--shadow);
}

.feature-card ul {
    margin: 0 0 1.35rem;
    padding-left: 1.15rem;
    color: var(--muted);
}

.post-card a,
.article-body a:not(.btn) {
    font-weight: 760;
}

.stat-card {
    min-height: 110px;
    padding: 20px;
    border-left: 0;
    background:
        linear-gradient(180deg, #fff, #f7fbfa);
}

.stat-card strong {
    display: block;
    color: var(--teal);
    font-size: 1.42rem;
    line-height: 1.1;
}

.stat-card span {
    color: var(--muted);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.path-card {
    position: relative;
    padding: 22px 20px;
}

.path-card span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(243, 179, 61, .18);
    color: #9a6417;
    font-size: .9rem;
    font-weight: 820;
}

.split-band {
    padding: 42px 0;
    color: #fff;
    background:
        linear-gradient(90deg, var(--deep), var(--teal-dark));
}

.split-band p {
    color: rgba(255, 255, 255, .78);
}

.split-band .eyebrow {
    color: #ffd58b;
}

.article-body {
    max-width: 850px;
}

.article-body h2 {
    margin-top: 2.05rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.faq details {
    padding: 18px 20px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 760;
}

.faq details[open] {
    border-color: rgba(14, 124, 123, .34);
    background: #fff;
}

label,
.form-label {
    color: #253341;
    font-weight: 720;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: #d4dfdc;
    border-radius: 6px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(14, 124, 123, .14);
}

.site-footer {
    padding: 50px 0;
    color: rgba(255, 255, 255, .72);
    background:
        linear-gradient(180deg, #12343b, #0a2025);
}

.site-footer p {
    color: rgba(255, 255, 255, .68);
}

.site-footer a {
    display: block;
    width: fit-content;
    margin: .38rem 0;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .24em;
}

.site-footer img {
    width: auto;
    height: 46px;
    padding: .34rem .58rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.footer-title {
    margin-bottom: .85rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-cta {
    display: none;
}

@media (max-width: 1199px) {
    .navbar .container {
        border-radius: 18px;
    }

    .navbar-collapse {
        padding-top: .78rem;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: .18rem;
    }

    .navbar .btn-cta {
        margin-top: .5rem;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 64px 0;
        background:
            linear-gradient(180deg, rgba(244, 248, 246, .98), rgba(244, 248, 246, .9)),
            var(--hero) center/cover no-repeat;
    }

    .hero::before {
        inset: 16px 12px;
        border-radius: 16px;
    }

    .hero::after {
        display: none;
    }

    .hero-panel {
        margin-top: 22px;
    }

    .section {
        padding: 50px 0;
    }

    main > .section:first-child,
    main > article.section:first-child,
    main.section {
        background:
            linear-gradient(180deg, rgba(244, 248, 246, .98), rgba(244, 248, 246, .9)),
            url("https://images.unsplash.com/photo-1474302770737-173ee21bab63?auto=format&fit=crop&w=1000&q=70") center/cover no-repeat;
    }

    main > .section.section-dark:first-child {
        background:
            linear-gradient(110deg, rgba(18, 52, 59, .97), rgba(18, 52, 59, .82)),
            url("https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=1000&q=70") center/cover no-repeat;
    }

    .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-cta {
        display: none;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.58rem;
    }

    h2 {
        font-size: 1.24rem;
    }

    .lead,
    .hero .lead {
        font-size: 1rem !important;
    }

    .navbar-brand {
        min-width: 0;
    }

    .navbar-brand img {
        height: 34px;
    }

    .hero {
        padding: 52px 0;
    }

    .layout-ribbon::before {
        display: none;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .post-card,
    .path-card,
    .locator-panel {
        padding: 20px;
    }
}
