/* Interactive homepage journey. Lives on the ink hero and inherits the
   --hero-* tokens so the attorney and expert themes can recolour it. */

.home-page header {
    display: none;
}

.journey-panel {
    margin-top: 2.5rem;
}

/* Every step, the persona question included, sits on the same panel. It is the
   form the hero leads with, so it should read as one surface rather than a
   label floating loose beside the copy. */
.journey-step {
    display: none;
    max-width: 38rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Before the script runs, the persona question is the visible step so the
   hero is never blank and crawlers always see the entry point. */
.journey-panel .journey-step[data-step="persona"],
.journey-ready .journey-step.is-active {
    display: block;
}

.journey-ready .journey-step[data-step="persona"]:not(.is-active) {
    display: none;
}

[data-theme="expert"] .journey-step {
    border-color: var(--color-slate-200);
    background: var(--color-white);
}

.journey-question {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--hero-fg);
}

/* A touch smaller than the later questions — it shares a column with the
   hero copy, and the larger size wraps there. */
.journey-step[data-step="persona"] .journey-question {
    font-size: 1.25rem;
}

/* The three personas are the form's field, so they stack full width with the
   affordance on the right instead of sitting in a row of loose pills. */
.journey-step[data-step="persona"] .journey-choices {
    display: grid;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.journey-step[data-step="persona"] .journey-choice {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem 1.125rem;
    text-align: left;
}

.journey-step[data-step="persona"] .journey-choice::after {
    content: "→";
    margin-left: 1rem;
    opacity: 0.5;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.journey-step[data-step="persona"] .journey-choice:hover::after,
.journey-step[data-step="persona"] .journey-choice:focus-visible::after {
    transform: translateX(2px);
    opacity: 1;
}

.journey-copy {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--hero-fg);
    opacity: 0.8;
}

.journey-choices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.journey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.journey-choice,
.journey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-button);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--hero-fg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.journey-choice:hover,
.journey-choice:focus-visible,
.journey-btn:hover,
.journey-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.journey-choice--primary,
.journey-btn-primary {
    border-color: var(--hero-cta-bg);
    background: var(--hero-cta-bg);
    color: var(--hero-cta-fg);
}

.journey-choice--primary:hover,
.journey-btn-primary:hover,
.journey-btn-primary:focus-visible {
    border-color: var(--hero-cta-hover);
    background: var(--hero-cta-hover);
    color: var(--hero-cta-fg);
}

[data-theme="expert"] .journey-choice,
[data-theme="expert"] .journey-btn-secondary {
    border-color: var(--color-slate-200);
    color: var(--color-ink);
}

/* The translucent-white hover above is invisible on the expert theme's white
   panel, so tint it instead. */
[data-theme="expert"] .journey-choice:hover,
[data-theme="expert"] .journey-choice:focus-visible,
[data-theme="expert"] .journey-btn-secondary:hover,
[data-theme="expert"] .journey-btn-secondary:focus-visible {
    border-color: var(--color-brand);
    background: var(--color-slate-50);
}

.journey-note a {
    color: var(--hero-kicker);
    font-weight: 500;
    text-decoration: none;
}

.journey-note a:hover {
    text-decoration: underline;
}

.journey-skip,
.journey-reset {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hero-fg);
    opacity: 0.65;
    font-family: inherit;
    font-size: 0.875rem;
    text-decoration: underline;
    cursor: pointer;
}

.journey-skip:hover,
.journey-reset:hover {
    opacity: 1;
    color: var(--hero-fg);
}

.journey-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.journey-form label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hero-fg);
    opacity: 0.8;
}

.journey-form input,
.journey-form textarea,
.journey-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-button);
    background: var(--color-white);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.journey-form input:focus,
.journey-form textarea:focus,
.journey-form select:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

.journey-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.journey-form .journey-btn {
    justify-self: start;
    margin-top: 0.5rem;
}

.journey-form .journey-help {
    margin: 0;
    font-size: 0.75rem;
    color: var(--hero-fg);
    opacity: 0.6;
}

.journey-note {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--hero-fg);
    opacity: 0.7;
}

@media (max-width: 640px) {
    .journey-choices,
    .journey-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .journey-step:not([data-step="persona"]) {
        padding: 1.5rem;
    }
}
