/* ==========================================================================
   Asset Fit — homepage banner (.af-banner) + /sprint-fit quiz (.af-quiz)
   Tokens: pink #E5A9B2 · hover #D6949E · tint #F3DDE2 · ink #1E1E1E
   ========================================================================== */

.af-banner[hidden] {
    display: none !important;
}

.af-banner {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 2rem;
    align-items: stretch;
    margin: 2.4rem 0 3rem;
    padding: 2rem 0 2rem 2.25rem;
    background: #E5A9B2;
    border: 1.5px solid #1E1E1E;
    border-radius: 24px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.06);
    color: #1E1E1E;
    overflow: hidden;
}

.af-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.af-eyebrow {
    margin: 0 0 0.9rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1E1E1E;
    opacity: 0.75;
}

.af-title {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.af-from {
    margin: 0.35rem 0 1rem;
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #1E1E1E;
}

.af-body {
    margin: 0 0 1.5rem;
    max-width: 38ch;
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #1E1E1E;
}

.af-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.3rem;
    border-radius: 999px;
    border: 1.5px solid #1E1E1E;
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.af-btn--primary {
    background: #1E1E1E;
    color: #FBF4EC;
}

.af-btn--primary:hover,
.af-btn--primary:focus-visible {
    background: #3A3A3A;
    transform: translateY(-2px);
}

.af-btn--ghost {
    background: transparent;
    color: #1E1E1E;
}

.af-btn--ghost:hover,
.af-btn--ghost:focus-visible {
    background: #F3DDE2;
    transform: translateY(-2px);
}

.af-btn:focus-visible {
    outline: 2px solid #FBF4EC;
    outline-offset: 2px;
}

/* Arch: rounded top, flat bottom, bleeds off the card's bottom edge */
.af-art {
    align-self: end;
    justify-self: center;
    width: min(100%, 300px);
    aspect-ratio: 3 / 4;
    margin-bottom: -2rem;
    background: #F3DDE2;
    border: 1.5px solid #1E1E1E;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    overflow: hidden;
}

.af-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

@media (max-width: 720px) {
    .af-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.6rem 1.35rem 0;
    }

    .af-art {
        width: min(100%, 260px);
        margin-bottom: 0;
    }

    .af-body {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-btn {
        transition: none;
    }
    .af-btn:hover,
    .af-btn:focus-visible {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Quiz page
   -------------------------------------------------------------------------- */

.af-quiz {
    max-width: 640px;
    padding: 2.5rem 0 5rem;
}

.af-quiz .af-eyebrow {
    opacity: 1;
    color: #5A5A5A;
}

.af-quiz-title {
    margin: 0 0 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.af-quiz-intro {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5A5A5A;
}

.af-progress {
    display: flex;
    gap: 6px;
    margin: 0 0 1.5rem;
}

.af-progress span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #E0E0E0;
}

.af-progress span.is-done {
    background: #E5A9B2;
}

.af-step[hidden] {
    display: none;
}

.af-q {
    margin: 0 0 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.af-options {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.af-option {
    display: block;
    width: 100%;
    padding: 0.95rem 1.1rem;
    text-align: left;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: #1E1E1E;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.af-option:hover,
.af-option:focus-visible {
    border-color: #1E1E1E;
    background: #F3DDE2;
    outline: none;
}

.af-option[aria-pressed="true"] {
    border-color: #1E1E1E;
    background: #E5A9B2;
}

.af-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.af-back {
    background: none;
    border: 0;
    padding: 0.5rem 0;
    font: inherit;
    font-size: 0.9rem;
    color: #5A5A5A;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #E5A9B2;
    text-underline-offset: 3px;
}

.af-back[hidden] {
    display: none;
}

.af-result {
    padding: 1.75rem;
    border: 1.5px solid #1E1E1E;
    border-radius: 24px;
    background: #E5A9B2;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.06);
}

.af-result.is-mid {
    background: #F3DDE2;
}

.af-result.is-low {
    background: #FFFFFF;
}

.af-result .af-title {
    text-transform: none;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.af-result .af-body {
    max-width: none;
    margin-top: 0.75rem;
}

.af-field {
    margin: 0 0 1.25rem;
}

.af-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.af-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: #1E1E1E;
    background: #FFFFFF;
    border: 1.5px solid #1E1E1E;
    border-radius: 999px;
}

.af-field input:focus-visible {
    outline: 2px solid #1E1E1E;
    outline-offset: 2px;
}

.af-result-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid #1E1E1E;
    border-radius: 999px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* The played-back answers need an owner, or they read as a list of faults. */
.af-summary-label {
    margin: 1rem 0 0.35rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
}

.af-summary {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #1E1E1E;
    opacity: 0.8;
}

.af-summary li {
    margin-bottom: 0.2rem;
}

.af-field-hint {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.75;
}

.af-field-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.af-field-note::before {
    content: "";
    flex: none;
    width: 0.85rem;
    height: 0.45rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translateY(-0.1rem);
}

/* ---------------------------------------------------------------------------
   Capture step — name, site, email. Sits between the last question and the
   verdict, so it has to look like part of the quiz, not a bolted-on form.
   --------------------------------------------------------------------------- */
.af-capture-intro {
    margin: 0 0 1.4rem;
    font-size: 1rem;
    line-height: 1.55;
    opacity: 0.8;
}

.af-capture .af-field {
    margin-bottom: 1.1rem;
}

.af-optional {
    margin-left: 0.35rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
}

.af-consent {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.65;
}

.af-form-error {
    margin: 0 0 1rem;
    padding: 0.6rem 0.85rem;
    border-left: 3px solid currentColor;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.45);
}

.af-capture .af-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* The verdict repeats "Why this one" as a labelled block, so its paragraphs
   need to sit tighter than the closing body copy. */
.af-result .af-summary-label + .af-body {
    margin-top: 0;
}

.af-result .af-body + .af-body {
    margin-top: 0.6rem;
}

/* Short lead-in above the verdict, so the long asset name can own the headline. */
.af-lead {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.75;
}
