/* Investment Path – nav hero
   Landing navigation, the hero copy, its two actions and trust list.
   ========================================================================== */

.landing-content,
.guided-flow,
.guided-result,
.landing-footer {
    position: relative;
    z-index: 1;
}

.landing-content {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.landing-hero {
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    align-items: center;
    gap: clamp(44px, 7vw, 94px);
    padding: 62px 0 96px;
}

/* The intro fade goes on the children and on the pane, never on the block
   that holds them. An element with opacity < 1 is a *backdrop root*, and a
   descendant's backdrop-filter can only sample what lies outside its backdrop
   root – so while this block itself faded in, its glass pane had nothing to
   frost and the trend line showed through it raw for the whole animation.
   .path-preview never had the bug because its filter is on the element that
   fades, not underneath it. See the glass block in 01-shell.css. */
.landing-hero-copy > *,
.landing-hero-copy::before {
    animation: landingRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.landing-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-2-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.landing-kicker > span {
    width: 18px;
    height: 1px;
    background: currentColor;
}

.landing-hero h1 {
    max-width: 690px;
    margin-top: 22px;
    font-size: clamp(46px, 6.3vw, 78px);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.landing-hero h1::selection,
.guided-flow h1::selection,
.guided-result h1::selection {
    color: #fff;
    background: var(--accent);
}

#landingTitle:focus,
#guidedResultTitle:focus {
    outline: none;
}

.landing-lead {
    max-width: 590px;
    margin-top: 25px;
    color: var(--text-dim);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.65;
}

.landing-actions,
.guided-result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 32px;
}

.landing-primary,
.landing-secondary {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    border-radius: 13px;
    font-size: 12.5px;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease, background 0.2s ease;
}

.landing-page .action-primary {
    color: var(--on-glass);
}

.landing-primary svg {
    width: 16px;
    height: 16px;
    /* The arrow leads the lift by a hair, so the button reads as moving
       forward rather than merely up. Same idiom as .landing-text-link. */
    transition: transform 0.18s ease;
}

/* Untinted glass, matching .ghost-btn and the segmented track. */
.landing-secondary {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 45%, transparent);
    backdrop-filter: blur(6.4px) saturate(140%);
    -webkit-backdrop-filter: blur(6.4px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Focus changes the skin but never the geometry: the outline ring is the
   affordance, and a lift on :focus-visible makes a tabbed row of controls
   jitter. Previously this was a declaration-for-declaration clone of the
   :hover rules, so keyboard focus fired the full hover lift. */
.landing-secondary:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

@media (hover: hover) and (pointer: fine) {
    /* -1px is the utility-tier lift. The secondary used to take -2px, the
       hero-tier lift, which made it out-animate the primary CTA beside it. */
    .landing-secondary:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--accent-2) 30%, var(--border-strong));
        background: var(--surface-hover);
    }

    /* The hero primary claims the -2px lift its neighbour was using, plus a
       deeper brand-tinted bloom, so it clearly outranks the secondary. */
    .landing-page .landing-primary:hover {
        transform: translateY(-2px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            inset 0 -1px 0 rgba(0, 0, 0, 0.10),
            0 12px 30px rgba(99, 102, 241, 0.48);
    }

    .landing-primary:hover svg {
        transform: translateX(3px);
    }
}

.landing-primary:focus-visible,
.landing-secondary:focus-visible,
.guide-close:focus-visible,
.guide-back:focus-visible,
.guide-next:focus-visible,
.guide-choice:has(input:focus-visible),
.return-evidence summary:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 21px;
    margin-top: 24px;
    list-style: none;
}

.landing-trust li {
    position: relative;
    padding-left: 13px;
    color: var(--text-faint);
    font-size: 10.5px;
    font-weight: 650;
}

.landing-trust li::before {
    content: "";
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}
