/* ============================================
   Kobu homepage and coaches page. Loaded after styles.css and brand.css.
   Every class is prefixed k- so nothing here collides with the older
   landing styles that styles.css still carries for other pages.
   ============================================ */

.k-home {
    background: #000;
    color: var(--text);
}

.k-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Type: the blunt heading and the wide micro-label. */
.k-micro {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.k-display {
    font-size: clamp(52px, 8.4vw, 104px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.92;
    color: #fff;
    margin-bottom: 26px;
}

.k-h2 {
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: #fff;
    margin-bottom: 20px;
    text-wrap: balance;
}

.k-lede {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 34em;
    text-wrap: pretty;
}

.k-body {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: #8E8E93;
    max-width: 36em;
}

.k-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.k-center .k-micro {
    justify-content: center;
}

.k-center .k-lede {
    margin: 0 auto;
}

/* Buttons. White is the one primary action; dark is the second. */
.k-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.k-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.k-btn svg {
    width: 18px;
    height: 18px;
    margin-top: -2px;
}

.k-btn:active {
    transform: scale(0.98);
}

.k-btn-primary {
    background: #fff;
    color: #000;
}

.k-btn-primary:hover {
    background: #E8E8EA;
}

.k-btn-dark {
    background: #1C1C1E;
    color: #fff;
}

.k-btn-dark:hover {
    background: #2A2A2C;
}

/* Hero */
.k-hero {
    position: relative;
    padding: 148px 0 96px;
    overflow: hidden;
}

.k-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.k-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 48px;
}

.k-proof li {
    display: flex;
    flex-direction: column;
}

.k-proof strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.k-proof span {
    font-size: 13px;
    color: var(--text-muted);
}

.k-hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 0 20px;
}

/* The one warm glow on the page: Kobu's spark behind the phone. */
.k-hero-art::before {
    content: "";
    position: absolute;
    inset: 8% 4% 10%;
    background: radial-gradient(closest-side, rgba(255, 106, 26, 0.22), transparent);
    filter: blur(20px);
    z-index: 0;
}

.k-phone {
    position: relative;
    z-index: 1;
    width: 300px;
    max-width: 100%;
    padding: 9px;
    border-radius: 50px;
    background: linear-gradient(160deg, #2C2C2E, #141416);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}

.k-phone img {
    width: 100%;
    height: auto;
    border-radius: 41px;
}

.k-phone-hero {
    width: 320px;
}

.k-mascot-hero {
    position: absolute;
    z-index: 2;
    width: 290px;
    height: auto;
    left: -36px;
    bottom: -18px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.k-bubble {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    color: #3A3A3C;
    border-radius: 20px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.4;
    max-width: 260px;
}

.k-bubble-name {
    color: #000;
    font-weight: 700;
    font-size: 15px;
}

.k-bubble-hero {
    position: absolute;
    z-index: 3;
    top: 0;
    right: -8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Sections */
.k-section {
    padding: 128px 0;
}

.k-section-alt {
    background: #0B0B0C;
}

.k-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.k-split-reverse .k-split-copy {
    order: 2;
}

.k-list {
    list-style: none;
    margin-top: 30px;
    max-width: 36em;
}

.k-list li {
    padding: 16px 0;
    border-top: 1px solid #1C1C1E;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
}

.k-list strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.k-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.k-pills li {
    background: #1C1C1E;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
}

.k-phone-single,
.k-phone-pair {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.k-phone-pair .k-phone-back {
    margin-left: -72px;
    margin-top: 72px;
    z-index: 0;
    filter: brightness(0.62);
}

/* Cards: lighter than the canvas, never outlined. */
.k-card {
    background: #171717;
    border-radius: 24px;
    padding: 26px;
}

.k-call-stack {
    display: grid;
    gap: 16px;
}

.k-call-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px 0 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #1F1F20, #171717);
}

.k-call-mascot {
    width: 150px;
    height: auto;
    align-self: flex-end;
    flex: none;
}

.k-call-card .k-bubble {
    margin-bottom: 18px;
}

.k-tiles-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.k-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k-stat .k-micro {
    margin-bottom: 4px;
}

.k-stat-value {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.k-stat-value small {
    font-size: 22px;
    color: var(--text-secondary);
    margin-left: 2px;
}

.k-stat-word {
    font-size: 36px;
}

.k-stat-note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.k-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    margin-top: 12px;
}

.k-bars i {
    flex: 1;
    height: var(--h);
    background: #3A3A3C;
    border-radius: 4px;
}

.k-bars .k-bar-now {
    background: #fff;
}

.k-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-top: 12px;
    background: #262628;
    color: #fff;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.k-chip-inline {
    margin-top: 0;
}

/* Orange, spent on live state only. */
.k-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spark);
}

/* Apple Watch */
.k-watch-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
}

.k-watch {
    padding: 10px;
    border-radius: 46px;
    background: linear-gradient(160deg, #2C2C2E, #141416);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.k-watch img {
    width: 100%;
    height: auto;
    border-radius: 36px;
}

/* Feature grid */
.k-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.k-feature h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
}

.k-feature p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.k-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #262628;
    margin-bottom: 20px;
}

.k-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.k-footnote {
    text-align: center;
    margin-top: 36px;
    font-size: 14px;
    color: var(--text-muted);
}

.k-footnote a,
.k-inline-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

/* Coaches band */
.k-coach-band {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
    gap: 24px;
    border-radius: 32px;
    padding: 64px 0 0 64px;
    overflow: hidden;
    background: linear-gradient(160deg, #1F1F20, #121213);
}

.k-coach-copy {
    padding-bottom: 64px;
}

.k-coach-mascot {
    width: 100%;
    max-width: 380px;
    height: auto;
    justify-self: end;
    margin-right: -20px;
}

/* Support */
.k-support {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.k-mail {
    display: inline-block;
    margin-top: 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 5px;
}

.k-faq {
    display: grid;
    gap: 10px;
}

.k-faq details {
    background: #171717;
    border-radius: 18px;
    padding: 0 24px;
}

.k-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.k-faq summary::-webkit-details-marker {
    display: none;
}

.k-faq summary::after {
    content: "+";
    flex: none;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.k-faq details[open] summary::after {
    transform: rotate(45deg);
}

.k-faq details p {
    padding-bottom: 22px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Scroll reveal, only when scripts run and motion is welcome. */
.js .k-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .k-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .k-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet */
@media (max-width: 980px) {
    .k-hero-grid,
    .k-split,
    .k-support {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .k-split-reverse .k-split-copy {
        order: 0;
    }

    .k-hero-art {
        padding-top: 70px;
    }

    .k-grid-3 {
        grid-template-columns: 1fr;
    }

    .k-watch-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 480px;
    }

    .k-coach-band {
        grid-template-columns: 1fr;
        padding: 44px 32px 0;
    }

    .k-coach-copy {
        padding-bottom: 0;
    }

    .k-coach-mascot {
        max-width: 280px;
        justify-self: center;
        margin-right: 0;
    }
}

/* Phone */
@media (max-width: 600px) {
    .k-wrap {
        padding: 0 16px;
    }

    .k-hero {
        padding: 112px 0 64px;
    }

    .k-section {
        padding: 80px 0;
    }

    .k-lede {
        font-size: 17px;
    }

    .k-actions .k-btn {
        width: 100%;
    }

    .k-proof {
        gap: 24px;
        justify-content: space-between;
    }

    .k-proof strong {
        font-size: 24px;
    }

    .k-phone {
        width: 240px;
        border-radius: 40px;
        padding: 7px;
    }

    .k-phone img {
        border-radius: 33px;
    }

    .k-phone-hero {
        width: 250px;
    }

    .k-mascot-hero {
        width: 140px;
        left: -8px;
        bottom: -30px;
    }

    .k-bubble-hero {
        right: 0;
        max-width: 210px;
        font-size: 14px;
    }

    .k-phone-pair .k-phone {
        width: 52%;
    }

    .k-phone-pair .k-phone-back {
        margin-left: -12%;
        margin-top: 48px;
    }

    .k-tiles-2 {
        grid-template-columns: 1fr;
    }

    .k-call-mascot {
        width: 112px;
    }

    .k-card {
        padding: 22px;
    }

    .k-call-card {
        padding: 16px 16px 0 6px;
    }

    .k-watch-row {
        gap: 14px;
    }

    .k-watch {
        border-radius: 34px;
        padding: 7px;
    }

    .k-watch img {
        border-radius: 27px;
    }

    .k-coach-band {
        padding: 34px 20px 0;
        border-radius: 26px;
    }

    .k-mail {
        font-size: 19px;
    }
}

/* A numbered step on the coaches page. */
.k-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 18px;
}

.k-feature-icon svg[fill="none"] {
    fill: none;
}

/* ============================================
   Three ways in (homepage) and the coach pillars (coaches page).
   ============================================ */
.k-paths {
    padding: 0 0 32px;
}

.k-path {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
}

.k-path:hover {
    background: #1F1F20;
}

.k-path:active {
    transform: scale(0.99);
}

/* Every card's label is the height of the one with the Pilot chip, so the
   three headings line up. */
.k-path .k-micro {
    min-height: 30px;
    margin-bottom: 4px;
}

.k-path h2,
.k-pillar h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.k-path p,
.k-pillar p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
    flex: 1;
}

.k-path-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.k-path-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.k-path:hover .k-path-cta svg {
    transform: translateX(3px);
}

.k-pillar .k-micro {
    margin-bottom: 10px;
}

.k-pillar h3 {
    margin-bottom: 8px;
}

/* ============================================
   The dashboard showcase (coaches page): a laptop with real screens.
   ============================================ */
.k-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -24px 0 32px;
}

.k-tab {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #1C1C1E;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.k-tab:hover {
    color: #fff;
}

.k-tab[aria-selected="true"] {
    background: #fff;
    color: #000;
}

.k-laptop {
    max-width: 1040px;
    margin: 0 auto;
}

.k-laptop-screen {
    padding: 14px 14px 18px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(160deg, #2C2C2E, #141416);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}

.k-laptop-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    border-radius: 8px;
    background: #0B0B0C;
}

.k-laptop-screen img[hidden] {
    display: none;
}

.k-laptop-base {
    height: 18px;
    margin: 0 -5%;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #3A3A3C, #1C1C1E);
}

.k-laptop-caption {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

.k-under-laptop {
    margin-top: 56px;
}

/* ============================================
   The find-a-coach request form.
   ============================================ */
.k-form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px;
}

.k-form {
    display: grid;
    gap: 26px;
}

.k-form[hidden] {
    display: none;
}

.k-field {
    display: grid;
    gap: 10px;
    border: 0;
    min-width: 0;
}

.k-field > label,
.k-field > legend {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 0;
}

.k-field .k-optional {
    font-weight: 400;
    color: var(--text-muted);
}

.k-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.k-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #2C2C2E;
    border-radius: 14px;
    background: #0B0B0C;
    color: #fff;
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.k-input::placeholder {
    color: #636366;
}

.k-input:focus {
    outline: none;
    border-color: #fff;
}

textarea.k-input {
    min-height: 112px;
    resize: vertical;
    line-height: 1.5;
}

.k-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.k-choice {
    position: relative;
}

.k-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.k-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #1C1C1E;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.k-choice span:hover {
    color: #fff;
}

.k-choice input:checked + span {
    background: #fff;
    color: #000;
    font-weight: 600;
}

.k-choice input:focus-visible + span {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.k-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.k-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.k-form-foot .k-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.k-form-foot .k-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.k-form-note {
    flex: 1;
    min-width: 220px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.k-form-status {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.k-form-status:empty {
    display: none;
}

.k-form-status.is-error {
    color: #FF6B5E;
}

.k-form-done {
    text-align: center;
    padding: 24px 0;
}

.k-form-done h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 10px;
}

.k-form-done p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    max-width: 30em;
    margin: 0 auto;
}

.k-form-done[hidden] {
    display: none;
}

@media (max-width: 980px) {
    .k-tabs {
        margin-top: -16px;
    }
}

@media (max-width: 600px) {
    .k-paths {
        padding-bottom: 8px;
    }

    .k-form-card {
        padding: 24px 20px;
    }

    .k-field-row {
        grid-template-columns: 1fr;
    }

    .k-laptop-screen {
        padding: 8px 8px 10px;
        border-radius: 14px 14px 0 0;
    }

    .k-laptop-base {
        height: 10px;
        border-radius: 0 0 14px 14px;
    }
}

/* ============================================
   The coach directory (find-a-coach.html) and a coach's profile
   (/coaches/<slug>). docs/marketplace.md.
   ============================================ */
.k-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -24px 0 32px;
}

.k-filter-select,
.k-filter-city {
    width: auto;
    min-width: 180px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #1C1C1E;
    border-color: #1C1C1E;
}

.k-filter-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23AEAEB2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

#directoryStatus {
    text-align: center;
    margin-bottom: 24px;
}

.k-coach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.k-coach-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.2s, transform 0.2s;
}

.k-coach-card:hover {
    background: #1F1F20;
}

.k-coach-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.k-coach-photo,
.k-profile-photo {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #262628;
}

.k-profile-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 22px;
}

.k-coach-who h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.k-coach-place,
.k-profile-place {
    font-size: 14px;
    color: var(--text-secondary);
}

.k-coach-headline {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.k-coach-pills,
.k-profile-pills {
    margin-top: 0;
}

.k-coach-pills li,
.k-profile-pills li {
    padding: 6px 12px;
    font-size: 13px;
}

.k-pills li.k-profile-way {
    background: #fff;
    color: #000;
    font-weight: 600;
}

.k-coach-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #262628;
}

.k-coach-foot .k-path-cta {
    margin-top: 0;
}

.k-coach-from {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Plans or coaches: one segmented switch above the filters. */
.k-view-switch {
    display: flex;
    width: max-content;
    margin: -24px auto 24px;
    padding: 4px;
    border-radius: 999px;
    background: #1C1C1E;
}

.k-view-option {
    position: relative;
}

.k-view-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.k-view-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.k-view-option span:hover {
    color: #fff;
}

.k-view-option input:checked + span {
    background: #fff;
    color: #000;
}

.k-view-option input:focus-visible + span {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.k-view-switch + .k-filters {
    margin-top: 0;
}

[data-view="plans"] [data-coaches-only] {
    display: none;
}

/* A plan card: a coach's ready-made programme. */
.k-plan-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.2s;
}

.k-plan-card:hover {
    background: #1F1F20;
}

.k-plan-card .k-micro {
    margin: 0;
}

.k-plan-card h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.k-plan-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.k-plan-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.k-plan-coach {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.k-plan-coach .k-coach-photo {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.k-offer {
    scroll-margin-top: 96px;
}

/* The plan a Plans card opened. */
.k-offer:target {
    box-shadow: 0 0 0 2px #fff;
}

/* A coach's profile page. */
.k-profile-hero {
    padding-bottom: 72px;
}

.k-profile-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 48px;
}

.k-profile-hero .k-profile-photo {
    width: 240px;
    height: 240px;
    font-size: 72px;
}

.k-profile-name {
    margin-bottom: 14px;
}

.k-profile-place {
    margin-top: 14px;
    font-size: 16px;
}

.k-profile-pills {
    margin-top: 20px;
}

.k-profile-about {
    padding-top: 0;
}

.k-profile-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

.k-profile-text {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 40em;
}

.k-profile-note h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.k-profile-note p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.k-profile-note p + p {
    margin-top: 10px;
}

.k-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.k-offer .k-offer-kind {
    margin-bottom: 0;
}

.k-offer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-offer-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.k-offer-head h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.k-offer-price {
    flex: none;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.k-offer-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.k-offer-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.k-offer .k-path-cta {
    margin-top: auto;
    padding-top: 6px;
}

@media (max-width: 980px) {
    .k-coach-grid,
    .k-offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .k-profile-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .k-filters {
        margin-top: -16px;
    }

    .k-filter-select,
    .k-filter-city {
        flex: 1 1 100%;
    }

    .k-coach-grid,
    .k-offer-grid {
        grid-template-columns: 1fr;
    }

    .k-profile-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .k-profile-hero .k-profile-photo {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }

    .k-offer-head {
        flex-direction: column;
        gap: 4px;
    }
}
