:root {
    --dark:     #2c2c25;
    --muted:    #6a6a6a;
    --gold:     #d4af37;
    --gold-dark:#b8942d;
    --soft:     #f6f6f6;
    --white:    #fff;
    --bg-light: #faf9f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark);
    opacity: 0.92;
    margin-bottom: 1.1em;
}

/* ============================================================
   SECTION 2 — WHY JOIN (split)
   Mobile: stacked → md: side by side
   ============================================================ */

.join-why-split {
    width: 100%;
    padding: 3rem 1rem;
    background: var(--bg-light);
    border-radius: 18px;
    margin: 2rem 0;
}

.join-why-split .split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.join-why-split .split-text {
    background: var(--soft);
    color: var(--dark);
    padding: 2rem 1.5rem;
    border-radius: 14px;
    border: 2px solid var(--gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join-why-split .split-text h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.join-why-split .split-img {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.join-why-split .split-img img,
.join-why-split .split-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* ============================================================
   SECTION 3 — WHO IS NEURO FOR
   who-grid: 1 col → 2 col at sm → 3 col at lg
   ============================================================ */

.join-who {
    max-width: 1600px;
    margin: 0 auto 2rem;
    padding: 3rem 1rem;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(212, 175, 55, 0.04);
}

.join-who h2 {
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 20px;
}

.join-who .section-intro {
    max-width: 820px;
    margin: 0 auto 36px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.92;
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.who-card {
    background: var(--white);
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
    text-align: center;
}

.who-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 14px;
    border-radius: 50%;
}

.who-card h3 {
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1rem;
}

.who-card p {
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 1em;
}

/* ============================================================
   SECTION 4 — JOIN WAYS (canvas background)
   ============================================================ */

.join-ways {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 2rem;
    border-radius: 18px;
}

.join-ways__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.join-ways__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 5, 0.62);
    z-index: 1;
}

.join-ways__content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    text-align: center;
}

.join-ways h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin-bottom: 12px;
    color: #fff;
}

.join-ways p {
    max-width: 720px;
    margin: 0 auto 1.1em;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* ============================================================
   SECTION 5 — FINAL SPLIT (come as you are)
   Mobile: stacked → md: side by side
   ============================================================ */

.join-final-split {
    width: 100%;
    padding: 3rem 1rem;
    margin: 0;
    background: none;
}

.join-final-split .split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.join-final-split .split-text {
    color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.join-final-split .split-text h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 24px;
    margin-top: 8px;
    color: var(--dark);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.join-final-split .split-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    min-height: 220px;
}

.join-final-split .split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.cta-join {
    display: block;
    margin: 28px auto 0;
    padding: 16px 36px;
    background: var(--gold);
    color: var(--white);
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.08);
    transition: 0.25s ease;
    text-decoration: none;
    max-width: 320px;
    text-align: center;
}

.cta-join:hover { background: var(--gold-dark); opacity: 0.92; }

/* ============================================================
   TOC NAV — hidden on mobile, shown at 1100px+
   ============================================================ */

.toc-nav {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
}

.toc-nav__title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8942d;
    padding: 0 8px 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 4px;
}

.toc-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    color: #6a6a6a;
    outline-offset: 3px;
}

.toc-dot:hover { background: rgba(212, 175, 55, 0.08); color: #2c2c25; }
.toc-dot:focus-visible { outline: 2px solid #d4af37; background: rgba(212, 175, 55, 0.08); }

.toc-dot.active {
    border-left-color: #d4af37;
    color: #2c2c25;
    background: rgba(212, 175, 55, 0.06);
}

.toc-dot__pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.toc-dot:hover .toc-dot__pip { border-color: #d4af37; background: rgba(212, 175, 55, 0.35); }
.toc-dot.active .toc-dot__pip { background: #d4af37; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }

.toc-dot__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.toc-dot.active .toc-dot__label { font-weight: 700; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* sm — 2-col who-grid */
@media (min-width: 480px) {
    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* md — side-by-side splits, more padding */
@media (min-width: 768px) {
    .join-why-split {
        padding: 4rem 2rem;
        margin: 3rem 0;
    }

    .join-why-split .split {
        flex-direction: row;
        gap: 3.5rem;
        align-items: stretch;
    }

    .join-why-split .split-text {
        flex: 1.15;
        padding: 3rem 2.5rem;
    }

    .join-why-split .split-img {
        flex: 1.5;
        min-height: unset;
    }

    .join-who {
        padding: 4rem 2rem;
    }

    .join-who .section-intro {
        margin-bottom: 48px;
    }

    .join-ways__content {
        padding: 4rem 2rem;
    }

    .join-final-split {
        padding: 4rem 2rem;
    }

    .join-final-split .split {
        flex-direction: row;
        gap: 2.5rem;
        align-items: stretch;
    }

    .join-final-split .split-text {
        flex: 1;
    }

    .join-final-split .split-img {
        flex: 1.1;
        min-height: unset;
    }
}

/* lg — 3-col who-grid, full padding */
@media (min-width: 1024px) {
    .who-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .who-card img {
        width: 120px;
        height: 120px;
    }

    .join-why-split {
        padding: 5rem 2rem;
    }

    .join-who {
        padding: 5rem 3rem;
    }
}

/* xl — 5-col who-grid on large screens */
@media (min-width: 1400px) {
    .who-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* TOC visible at 1100px+ */
@media (min-width: 1100px) {
    .toc-nav {
        display: flex;
    }
}
