/* ===== Base element resets aligned to tokens ===== */
html,
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--link);
}

/* Generic section header — element selectors */
.section-header h2 {
    font-size: var(--fs-32);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-16);
}

.section-header h3 {
    font-size: var(--fs-24);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
}

.section-header p {
    font-size: var(--fs-16);
    color: var(--ink);
    font-weight: var(--weight-regular);
    line-height: var(--lh-loose);
}

/* Generic section header — class selectors (used in one-page blocks) */
.section-header .section-title {
    font-size: var(--fs-32);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-16);
}

.lead,
.testimonials .testimonials-header p,
.fit-card-desc p {
    font-size: var(--fs-16);
    color: var(--gray-ink);
    font-weight: var(--weight-regular);
    line-height: var(--lh-normal);
    margin: 0 0 6px;
}

.lead:last-child,
.testimonials .testimonials-header p:last-child,
.fit-card-desc p:last-child {
    margin-bottom: 0;
}

/* Small text helpers */
.micro {
    font-size: var(--fs-14);
    color: var(--ink);
}

/* Cards (shared) */
.card {
    background: var(--surface);
    border: 1px solid var(--ring);
    border-radius: var(--radius-12);
    padding: var(--space-18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

/* Chips / Badges */
.chip,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ring);
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: var(--fs-14);
    font-weight: var(--weight-semibold);
}

.badge.gold {
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    color: #222;
}

/* Buttons */
.btn {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: var(--weight-bold);
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 45%, #fff);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: var(--weight-regular);
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--ring);
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ring);
    opacity: .98;
}

/* Utilities */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.level-beginner { --accent: var(--level-beginner); }
.level-intermediate { --accent: var(--level-intermediate); }

/* Full-bleed sections */
.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    position: relative;
}

@supports (width: 100dvw) {
    .alignfull {
        width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
        max-width: 100dvw;
    }
}
