:root {
    --rce-navy: #18264a;
    --rce-violet: #6f5c88;
    --rce-red: #a24f5f;
    --rce-ink: #202431;
    --rce-muted: #667085;
    --rce-line: #e7e5ea;
    --rce-soft: #f7f5f8;
    --rce-white: #ffffff;
    --rce-radius: 18px;
    --rce-shadow: 0 18px 50px rgba(24, 38, 74, 0.08);
}

.rce-way,
.rce-journey {
    color: var(--rce-ink);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 100px) 24px;
}

.rce-section-kicker {
    color: var(--rce-violet);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rce-way h2,
.rce-journey h2 {
    color: var(--rce-navy);
    font-size: clamp(2rem, 4.6vw, 4rem);
    line-height: 1.04;
    margin: 0;
    max-width: 900px;
}

.rce-section-lead {
    color: var(--rce-muted);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    max-width: 720px;
    line-height: 1.65;
    margin: 20px 0 36px;
}

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

.rce-way-card {
    appearance: none;
    border: 1px solid var(--rce-line);
    background: var(--rce-white);
    border-radius: var(--rce-radius);
    padding: 22px;
    text-align: left;
    cursor: pointer;
    min-height: 180px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.rce-way-card:hover,
.rce-way-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(111, 92, 136, .45);
    box-shadow: var(--rce-shadow);
    outline: none;
}

.rce-way-card.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #f7f4fa 100%);
    border-color: var(--rce-violet);
    box-shadow: var(--rce-shadow);
}

.rce-way-title {
    display: block;
    color: var(--rce-navy);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}

.rce-way-summary {
    display: block;
    color: var(--rce-muted);
    margin-top: 12px;
    line-height: 1.55;
    font-size: .95rem;
}

.rce-way-response {
    margin-top: 24px;
    background: var(--rce-soft);
    border-left: 4px solid var(--rce-violet);
    border-radius: 0 var(--rce-radius) var(--rce-radius) 0;
    padding: clamp(24px, 4vw, 44px);
}

.rce-way-panel h3 {
    color: var(--rce-navy);
    margin-top: 0;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.rce-way-panel p {
    color: var(--rce-muted);
    max-width: 760px;
    line-height: 1.7;
}

.rce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    margin-top: 8px;
}

.rce-button-secondary {
    color: var(--rce-navy);
    border: 1px solid rgba(24, 38, 74, .25);
    background: var(--rce-white);
}

.rce-journey-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(13, minmax(90px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0 12px;
    scrollbar-width: thin;
}

.rce-journey-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    height: 1px;
    background: linear-gradient(90deg, rgba(162,79,95,.35), rgba(111,92,136,.45), rgba(24,38,74,.4));
    z-index: 0;
}

.rce-journey-phase {
    position: relative;
    z-index: 1;
}

.rce-phase-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--rce-navy);
    cursor: pointer;
    padding: 0;
    text-align: center;
}

.rce-phase-number {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rce-white);
    border: 1px solid var(--rce-line);
    box-shadow: 0 6px 20px rgba(24, 38, 74, .08);
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rce-phase-name {
    display: block;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.3;
}

.rce-journey-phase.is-open .rce-phase-number {
    background: var(--rce-navy);
    color: var(--rce-white);
    border-color: var(--rce-navy);
}

.rce-phase-detail {
    margin-top: 14px;
    min-width: 240px;
    max-width: 300px;
    background: var(--rce-white);
    border: 1px solid var(--rce-line);
    border-radius: 14px;
    box-shadow: var(--rce-shadow);
    padding: 18px;
    text-align: left;
    color: var(--rce-muted);
    line-height: 1.55;
}

.rce-phase-question {
    color: var(--rce-navy);
    font-weight: 700;
}

.rce-phase-reflection {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rce-line);
}

.rce-audio-link {
    color: var(--rce-violet);
    font-weight: 700;
    text-decoration: none;
}

.rce-empty-state {
    padding: 24px;
    background: var(--rce-soft);
    border-radius: var(--rce-radius);
}

@media (max-width: 1050px) {
    .rce-way-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rce-way,
    .rce-journey {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rce-way-grid {
        grid-template-columns: 1fr;
    }

    .rce-way-card {
        min-height: auto;
    }

    .rce-journey-track {
        display: block;
        overflow: visible;
        padding-top: 8px;
    }

    .rce-journey-track::before {
        left: 21px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(162,79,95,.35), rgba(111,92,136,.45), rgba(24,38,74,.4));
    }

    .rce-journey-phase {
        margin: 0 0 22px;
        padding-left: 64px;
    }

    .rce-phase-trigger {
        text-align: left;
        min-height: 44px;
    }

    .rce-phase-number {
        position: absolute;
        left: 0;
        top: 0;
    }

    .rce-phase-name {
        padding-top: 10px;
        font-size: .9rem;
    }

    .rce-phase-detail {
        min-width: 0;
        max-width: none;
        width: auto;
    }
}
