/*
 * Home/Start — the two options.
 * Brand card pattern: white surface, 1px hairline, 16px feature-panel radius. On hover the
 * card lifts 4px, gains the soft wide shadow, and a 3px red underline sweeps in from the
 * left. Each option is a single link (its title, stretched over the card), so a screen
 * reader hears one short name per option. The red pill on the first option is the one red
 * signal in this view.
 */

.nx-start-hero {
    padding-bottom: 40px;
}

.nx-options {
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    .nx-start-hero {
        padding-bottom: 64px;
    }

    .nx-options {
        padding-bottom: 110px;
    }
}

/* ── The option cards ────────────────────────────────────────────────────── */

.nx-option {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background-color: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 992px) {
    .nx-option {
        padding: 48px;
    }
}

.nx-option::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background-color: var(--nx-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nx-option:hover,
.nx-option:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow-hover);
}

.nx-option:hover::after,
.nx-option:focus-within::after {
    transform: scaleX(1);
}

.nx-option__title {
    margin-bottom: 0.75rem;
}

.nx-option__link {
    color: inherit;
    text-decoration: none;
}

.nx-option__copy {
    max-width: 30rem;
    margin-bottom: 2rem;
}

.nx-option__action {
    margin-top: auto;
}

/* The pill is a picture of the action, not a second link; it answers the card's hover. */
.nx-option:hover .nx-btn--red,
.nx-option:focus-within .nx-btn--red {
    background-color: var(--nx-red-hover);
    box-shadow: 0 8px 24px rgba(212, 43, 30, 0.3);
}

.nx-option:hover .nx-btn--outline,
.nx-option:focus-within .nx-btn--outline {
    border-color: var(--nx-ink);
}

/* Icon chips: Light at rest, Red Soft with a red icon when active. */
.nx-chip {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    border-radius: 10px;
    background-color: var(--nx-light);
    color: var(--nx-ink-2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nx-chip svg {
    width: 22px;
    height: 22px;
}

.nx-option:hover .nx-chip,
.nx-option:focus-within .nx-chip {
    background-color: var(--nx-red-soft);
    color: var(--nx-red);
}

/* Keyboard focus rings the whole card, not just the title text. */
.nx-option__link:focus-visible {
    outline: 3px solid var(--nx-ink);
    outline-offset: 3px;
    border-radius: 4px;
}

@supports selector(:has(*)) {
    .nx-option__link:focus-visible {
        outline: none;
    }

    .nx-option:has(.nx-option__link:focus-visible) {
        outline: 3px solid var(--nx-ink);
        outline-offset: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-option,
    .nx-option::after,
    .nx-chip {
        transition: none;
    }

    .nx-option:hover,
    .nx-option:focus-within {
        transform: none;
    }
}
