/* ==========================================================================
   e-Therapist — shell and page-specific styles
   Depends on the tokens defined in theme.css.
   ========================================================================== */

/* ==========================================================================
   Shell
   ========================================================================== */

body.regular-user-shell,
body.staff-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.regular-user-main {
    flex: 1;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.staff-layout {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.staff-main {
    flex: 1;
    min-width: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
}

/* ==========================================================================
   Top navigation
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-block: 0.75rem;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-nav__brand:hover {
    color: var(--violet-deep);
}

.site-nav__toggler {
    padding: 0.4rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.site-nav__toggler:focus {
    box-shadow: var(--focus-ring);
}

.site-nav__toggler svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.site-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--ink-muted);
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.site-nav__link:hover {
    color: var(--ink);
    background: var(--violet-soft);
}

.site-nav__link.is-active {
    color: var(--violet-deep);
    background: var(--violet-soft);
}

.site-nav__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.site-nav__avatar {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.28rem 0.7rem 0.28rem 0.28rem;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.site-nav__avatar:hover {
    color: var(--ink);
    border-color: #cfc2ee;
}

.site-nav__initial {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    color: var(--on-accent);
    background: linear-gradient(140deg, var(--violet), var(--teal));
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex: none;
}

.site-nav__email {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav__caret {
    width: 0.75rem;
    height: 0.75rem;
    transform: rotate(90deg);
    opacity: 0.6;
}

.site-nav__account-name {
    margin: 0.15rem 1rem 0;
    color: var(--ink);
    font-weight: 650;
}

.site-nav__account-mail {
    margin: 0 1rem 0.25rem;
    color: var(--ink-subtle);
    font-size: 0.82rem;
    word-break: break-all;
}

.site-nav__logout {
    color: var(--plum-strong);
}

.site-nav__logout:hover {
    color: var(--plum-strong);
    background: var(--plum-soft);
}

@media (min-width: 992px) {
    .site-nav__links {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        margin: 0 0 0 1.5rem;
    }

    .site-nav__actions {
        margin-top: 0;
        margin-left: auto;
    }

    .site-nav__email {
        max-width: 18ch;
    }
}

/* ==========================================================================
   Staff sidebar
   ========================================================================== */

.side-nav {
    flex: none;
    width: 264px;
    padding: 1.5rem 1rem;
    background: var(--surface-raised);
    border-right: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
}

.side-nav__heading {
    margin: 0 0 1rem 0.75rem;
    color: var(--ink-subtle);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-nav__list {
    display: grid;
    gap: 0.2rem;
}

.side-nav__link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    color: var(--ink-muted);
    border-radius: var(--r-md);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.side-nav__link svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    opacity: 0.8;
}

.side-nav__link:hover {
    color: var(--ink);
    background: var(--surface);
}

.side-nav__link.is-active {
    color: var(--violet-deep);
    background: var(--violet-soft);
}

.side-nav__link.is-active svg {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .staff-layout {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .side-nav__heading {
        margin-bottom: 0.65rem;
    }

    .side-nav__list {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .side-nav__link {
        white-space: nowrap;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
    color: var(--ink-muted);
    background: var(--surface-raised);
    border-top: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-brand:hover {
    color: var(--violet-deep);
}

.site-footer-description {
    max-width: 42ch;
    margin-top: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.site-footer-heading {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-links {
    display: grid;
    gap: 0.6rem;
}

.site-footer-links a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}

.site-footer-links a:hover {
    color: var(--violet-deep);
}

.site-footer-care {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 2.5rem;
    padding: 1rem 1.15rem;
    background: var(--plum-soft);
    border: 1px solid #eccdd7;
    border-radius: var(--r-md);
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.site-footer-care strong {
    color: var(--ink);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    color: var(--ink-subtle);
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero and page primitives
   ========================================================================== */

.soft-page {
    padding-bottom: 1rem;
}

.soft-hero {
    max-width: 62rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.soft-hero h1 {
    max-width: 18ch;
    margin-inline: auto;
    font-size: clamp(2.1rem, 5.2vw, 3.9rem);
    font-weight: 600;
    line-height: 1.06;
}

.soft-hero p {
    max-width: 58ch;
    margin: 1.1rem auto 0;
    color: var(--ink-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.soft-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.soft-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    color: var(--violet-deep);
    background: var(--violet-soft);
    border: 1px solid #d9cff7;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.soft-kicker--teal {
    color: var(--teal-strong);
    background: var(--teal-soft);
    border-color: var(--line-teal);
}

.soft-kicker svg {
    width: 0.95em;
    height: 0.95em;
}

.soft-glass {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--surface-raised);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.soft-card {
    height: 100%;
    padding: 1.4rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
        border-color var(--speed) var(--ease);
}

a.soft-card:hover,
.soft-card:hover {
    color: var(--ink);
    transform: translateY(-3px);
    border-color: #cfc2ee;
    box-shadow: var(--shadow-md);
}

.soft-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    object-fit: contain;
}

.soft-section-title {
    margin-bottom: 1rem;
    color: var(--ink);
}

.soft-muted {
    color: var(--ink-muted);
}

.soft-btn {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-strong) 55%, var(--teal) 160%);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 650;
    box-shadow: 0 12px 26px -14px rgba(var(--violet-rgb), 1);
}

.soft-btn:hover,
.soft-btn:focus {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--violet-strong) 0%, var(--violet-deep) 55%, var(--teal-strong) 160%);
    box-shadow: 0 16px 30px -14px rgba(var(--violet-rgb), 1);
}

.soft-media {
    display: block;
    width: 100%;
    min-height: 13.75rem;
    object-fit: cover;
    background: var(--surface-sunken);
}

.featured-content-media {
    height: 12.5rem;
    min-height: 0;
}

.soft-table-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.soft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    color: var(--teal-strong);
    background: var(--teal-soft);
    border: 1px solid var(--line-teal);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 650;
    white-space: nowrap;
}

.soft-article-body {
    max-width: 68ch;
    color: var(--ink-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.soft-article-body h2,
.soft-article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.soft-article-body blockquote {
    margin: 1.75rem 0;
    padding: 0.35rem 0 0.35rem 1.25rem;
    border-left: 3px solid var(--violet);
    color: var(--ink);
    font-style: italic;
}

.soft-article-body a {
    color: var(--violet-strong);
}

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-shell {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 62rem;
    margin-inline: auto;
}

.auth-aside {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--ink);
    background:
        radial-gradient(22rem 16rem at 15% 10%, rgba(var(--violet-rgb), 0.22), transparent 62%),
        radial-gradient(20rem 15rem at 90% 95%, rgba(var(--teal-rgb), 0.24), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.auth-aside__quote {
    max-width: 24ch;
    margin: 2rem 0 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
}

.auth-aside__note {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.auth-aside__list {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.auth-aside__list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink-muted);
    font-size: 0.93rem;
}

.auth-aside__list svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--teal-strong);
    flex: none;
}

.auth-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.auth-card__title {
    margin-bottom: 0.35rem;
    font-size: 1.6rem;
}

.auth-card__sub {
    margin-bottom: 1.75rem;
    color: var(--ink-muted);
}

.auth-card__foot {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-muted);
    text-align: center;
    font-size: 0.93rem;
}

@media (min-width: 992px) {
    .auth-shell {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .auth-aside {
        display: flex;
    }
}

/* ==========================================================================
   Therapist carousel
   Structure and state classes are driven by public/js/therapist-carousel.js —
   only presentation changes here.
   ========================================================================== */

.therapist-carousel-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.therapist-carousel-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.therapist-carousel-select {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.therapist-carousel-select:hover {
    color: var(--ink);
}

.therapist-carousel-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--surface-sunken);
}

.therapist-carousel-summary {
    display: grid;
    gap: 4px;
    padding: 18px 20px 12px;
}

.therapist-carousel-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
}

.therapist-carousel-category {
    justify-self: start;
}

.therapist-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.therapist-category-filter .pill {
    text-decoration: none;
}

.therapist-category-filter .pill:not(.pill--solid):hover {
    color: var(--violet-deep);
    border-color: #d9cff7;
}

.therapist-category-filter .pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.therapist-carousel-specialization {
    color: var(--teal-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

.therapist-carousel-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 20px 20px;
}

.therapist-carousel-bio {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.therapist-carousel-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.therapist-carousel-prices span {
    padding: 0.28rem 0.6rem;
    color: var(--teal-strong);
    background: var(--teal-soft);
    border: 1px solid var(--line-teal);
    border-radius: var(--r-pill);
    font-size: 0.76rem;
    font-weight: 650;
}

.therapist-carousel-actions {
    margin-top: auto;
}

.therapist-carousel-actions .btn {
    flex: 1;
}

.therapist-carousel-controls {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.therapist-carousel.is-ready .therapist-carousel-stage {
    position: relative;
    display: block;
    height: 600px;
    overflow: hidden;
    isolation: isolate;
}

.therapist-carousel.is-ready .therapist-carousel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(360px, 76vw);
    height: 530px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
    transition: transform 650ms var(--ease), opacity 650ms ease, visibility 650ms;
}

.therapist-carousel.is-ready .therapist-carousel-info {
    flex: 1;
}

.therapist-carousel.is-ready .therapist-carousel-card.is-active {
    z-index: 3;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.therapist-carousel.is-ready .therapist-carousel-card.is-previous {
    z-index: 2;
    opacity: 0.72;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% - 300px), -50%) scale(0.78);
}

.therapist-carousel.is-ready .therapist-carousel-card.is-next {
    z-index: 2;
    opacity: 0.72;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% + 300px), -50%) scale(0.78);
}

.therapist-carousel.is-ready .therapist-carousel-card.is-far-previous {
    z-index: 1;
    opacity: 0.35;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% - 510px), -50%) scale(0.6);
}

.therapist-carousel.is-ready .therapist-carousel-card.is-far-next {
    z-index: 1;
    opacity: 0.35;
    visibility: visible;
    pointer-events: auto;
    transform: translate(calc(-50% + 510px), -50%) scale(0.6);
}

.therapist-carousel.is-ready .therapist-carousel-card:not(.is-active) {
    cursor: pointer;
}

.therapist-carousel.is-ready .therapist-carousel-card:not(.is-active) .therapist-carousel-actions {
    visibility: hidden;
}

.therapist-carousel.is-ready .therapist-carousel-controls {
    display: flex;
}

.therapist-carousel-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--violet-strong);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.therapist-carousel-arrow svg {
    width: 1.15rem;
    height: 1.15rem;
}

.therapist-carousel-arrow:hover {
    background: var(--violet-soft);
    border-color: #d9cff7;
}

.therapist-carousel-pause {
    padding: 0.45rem 0.95rem;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.therapist-carousel-pause:hover {
    color: var(--ink);
    background: var(--surface-sunken);
}

.therapist-carousel-status {
    min-width: 120px;
    color: var(--ink-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767.98px) {
    .regular-user-main {
        padding-block: 1.75rem;
    }

    /* Media placeholders eat a lot of a phone screen for very little signal. */
    .soft-media {
        min-height: 9rem;
    }

    .featured-content-media {
        height: 8.5rem;
    }

    .therapist-profile__image {
        min-height: 11rem;
    }

    .media-placeholder svg {
        width: 2rem;
        height: 2rem;
    }

    .soft-glass,
    .soft-card {
        border-radius: var(--r-lg);
    }

    .therapist-carousel.is-ready .therapist-carousel-stage {
        height: 570px;
    }

    .therapist-carousel.is-ready .therapist-carousel-card {
        width: min(320px, 76vw);
        height: 510px;
    }

    .therapist-carousel.is-ready .therapist-carousel-card.is-previous {
        transform: translate(calc(-50% - 210px), -50%) scale(0.78);
    }

    .therapist-carousel.is-ready .therapist-carousel-card.is-next {
        transform: translate(calc(-50% + 210px), -50%) scale(0.78);
    }

    .therapist-carousel.is-ready .therapist-carousel-card.is-far-previous,
    .therapist-carousel.is-ready .therapist-carousel-card.is-far-next {
        display: none;
    }

    .therapist-carousel-image {
        height: 215px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .therapist-carousel.is-ready .therapist-carousel-card {
        transition: none;
    }

    .therapist-carousel-pause {
        display: none;
    }
}

/* ==========================================================================
   Page components
   ========================================================================== */

.narrow-page {
    max-width: 52rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}

.back-link svg {
    width: 1rem;
    height: 1rem;
}

.back-link:hover {
    color: var(--violet-deep);
}

/* Inline notice ---------------------------------------------------------- */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.notice svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    margin-top: 0.1rem;
}

.notice--violet {
    color: var(--violet-deep);
    background: var(--violet-soft);
    border-color: #d9cff7;
}

.notice--gold {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: #e3d5ae;
}

.notice--teal {
    color: var(--teal-strong);
    background: var(--teal-soft);
    border-color: var(--line-teal);
}

/* Home page -------------------------------------------------------------- */

/* Inline (not flex) so the icon stays with the first word when the line wraps
   on a phone, instead of sitting alone at the left edge. */
.home-hero__reassurance {
    max-width: 34ch;
    margin: 1.5rem auto 0;
    color: var(--ink-subtle);
    font-size: 0.85rem;
}

.home-hero__reassurance svg {
    display: inline-block;
    margin-right: 0.35rem;
    vertical-align: -0.16em;
    width: 0.95rem;
    height: 0.95rem;
}

.home-steps,
.home-areas,
.home-resources {
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.home-steps__list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.home-step {
    position: relative;
    padding: 1.5rem;
    background: var(--surface-raised);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
}

.home-step__number {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.9rem;
    color: var(--on-accent);
    background: linear-gradient(140deg, var(--violet), var(--teal));
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.home-step__title {
    margin-bottom: 0.4rem;
    font-family: var(--font-ui);
    font-size: 1.02rem;
    font-weight: 650;
}

.home-step__body {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 0.93rem;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background:
        radial-gradient(28rem 18rem at 12% 0%, rgba(var(--violet-rgb), 0.2), transparent 62%),
        radial-gradient(24rem 16rem at 92% 100%, rgba(var(--teal-rgb), 0.22), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.home-cta__title {
    margin-bottom: 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-cta__body {
    max-width: 52ch;
    margin-bottom: 0;
    color: var(--ink-muted);
}

.home-cta__action {
    flex: none;
}

/* Content cards ---------------------------------------------------------- */

.content-card {
    display: block;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
}

.content-card__body {
    padding: 1.35rem;
}

.content-card__meta {
    margin-bottom: 0.4rem;
    color: var(--ink-subtle);
    font-size: 0.8rem;
    font-weight: 600;
}

.soft-media.media-placeholder,
.therapist-carousel-image.media-placeholder,
.therapist-profile__image.media-placeholder {
    display: grid;
}

/* Therapist profile ------------------------------------------------------ */

.therapist-profile {
    padding: 0;
    overflow: hidden;
}

.therapist-profile:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.therapist-profile__image {
    min-height: 20rem;
}

.therapist-profile__body {
    padding: 1.5rem;
}

.therapist-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.therapist-rating svg {
    width: 1rem;
    height: 1rem;
    color: var(--gold);
}

.therapist-rating__count,
.therapist-rating--empty {
    color: var(--ink-muted);
    font-weight: 500;
}

.review-list__item {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.review-list__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.review-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
}

.price-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--teal-soft);
    border: 1px solid var(--line-teal);
    border-radius: var(--r-md);
}

.price-summary__label {
    color: var(--teal-strong);
    font-size: 0.85rem;
    font-weight: 650;
}

.price-summary__hint {
    color: var(--ink-muted);
    font-size: 0.8rem;
}

.price-summary__value {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.session-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--violet-strong);
    font-weight: 600;
    text-decoration: none;
}

.session-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.session-link:hover {
    text-decoration: underline;
}

/* Article and video detail ----------------------------------------------- */

.article {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.article__header {
    margin-bottom: 1.75rem;
}

.article__date {
    margin-bottom: 0.5rem;
    color: var(--ink-subtle);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.article__title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.article__excerpt {
    max-width: 60ch;
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.article__image {
    display: block;
    width: 100%;
    margin-bottom: 1.75rem;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.article__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.video-frame {
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface-sunken);
}

.locked-panel {
    padding: 2.25rem 1.5rem;
    text-align: center;
    background: var(--surface-sunken);
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
}

.locked-panel .soft-muted {
    max-width: 46ch;
    margin-inline: auto;
}

.locked-panel .btn {
    margin-top: 1rem;
}
