/* The funnel's own parts: the question flow, partner pages, the offer wall and the bridge. site.css owns the tokens, the frame, the sign-up form and the buttons, so this sheet only adds to it. */

.fn-muted { color: var(--fn-text-muted); }
.fn-accent { color: var(--fn-accent-ink); }
.fn-fine { margin: 4px 0 0; font-size: 12px; text-align: center; color: var(--fn-text-muted); }
.fn-body-copy { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--fn-text-muted); }
.fn-body-copy p { margin: 0 0 10px; }

/* The two-column hero: headline and checks on the left, the sign-up card on the right. */
.fn-hero:not(.fn-hero-centered) { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 56px 0 24px; }
.fn-body .fn-hero:not(.fn-hero-centered) h1 { margin: 0 0 22px; font-size: clamp(42px, 5.4vw, 64px); line-height: 1; }
.fn-body .fn-hero:not(.fn-hero-centered) .fn-lead { margin: 0; }
.fn-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fn-text-muted); }
.fn-checks li { display: inline-flex; align-items: center; gap: 10px; }
.fn-checks li::before { content: ''; width: 5px; height: 5px; transform: rotate(45deg); background: var(--fn-accent); }

.fn-progress { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 28px; }
.fn-progress-meta { flex: none; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fn-text-muted); }
.fn-progress-meta b { color: var(--fn-text); }
.fn-progress-pct { font-weight: 600; color: var(--fn-accent-ink); }
.fn-progress-track { flex: 1; height: 2px; overflow: hidden; background: var(--fn-rule); }
.fn-progress-fill { height: 100%; background: var(--fn-accent); transition: width .4s ease; }

/* The question flow. */
.fn-wizard { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 0; overflow: hidden; }
.fn-wizard-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; border-right: 1px solid var(--fn-border); background: var(--fn-surface-alt); text-align: center; }
.fn-body .fn-wizard-side h1 { margin: 20px 0 8px; font-size: 30px; }
.fn-wizard-side p { max-width: 22ch; margin: 0; font-size: 14px; color: var(--fn-text-muted); }
.fn-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--fn-accent); border-radius: 999px; background: var(--fn-accent-tint); color: var(--fn-accent-ink); font-family: var(--fn-serif); font-size: 36px; font-style: italic; }
.fn-avatar span { position: relative; z-index: 0; }
.fn-avatar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.fn-wizard-body { padding: 36px 36px 30px 0; }
.fn-options { display: flex; flex-direction: column; gap: 10px; }
.fn-option { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--fn-rule); border-radius: 2px; background: transparent; color: var(--fn-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.fn-option b { font-size: 16px; font-weight: 500; }
.fn-option span { font-size: 13px; color: var(--fn-text-muted); }
.fn-option:hover, .fn-option.is-selected { border-color: var(--fn-accent); background: var(--fn-accent-tint); }
.fn-other { display: flex; gap: 8px; margin: 4px 0 8px; }
.fn-other[hidden] { display: none; }
.fn-other-input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--fn-rule); border-radius: 2px; background: var(--fn-bg); color: var(--fn-text); font: inherit; }
.fn-other-input:focus { outline: none; border-color: var(--fn-accent); box-shadow: 0 0 0 3px var(--fn-accent-tint); }
.fn-other .fn-btn { flex: none; }
.fn-textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--fn-rule); border-radius: 2px; background: var(--fn-bg); color: var(--fn-text); font: inherit; font-size: 16px; resize: vertical; }
.fn-textarea:focus { outline: none; border-color: var(--fn-accent); box-shadow: 0 0 0 3px var(--fn-accent-tint); }
.fn-body .fn-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fn-text-muted); text-decoration: none; }
.fn-body .fn-back:hover { color: var(--fn-accent-ink); }
.fn-offer .fn-back { margin: 0 0 10px; }
.fn-restart { margin: 18px 0 0; text-align: center; }
.fn-restart-btn { padding: 6px 10px; border: 0; background: none; color: var(--fn-text-muted); font: inherit; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.fn-restart-btn:hover { color: var(--fn-accent-ink); }

/* Results: the recap of what was opened, the share row and the second pick. */
.fn-results-head { padding: 8px 0 24px; text-align: center; }
.fn-why-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -6px 0 20px; padding: 12px 16px; border: 1px solid var(--fn-border); font-size: 13px; color: var(--fn-text-muted); }
.fn-why-strip-q b { font-weight: 600; color: var(--fn-text); }
.fn-why-strip-opts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fn-why-strip-btn { padding: 6px 12px; border: 1px solid var(--fn-rule); border-radius: 2px; background: transparent; color: var(--fn-text); font: inherit; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.fn-why-strip-btn:hover { border-color: var(--fn-accent); color: var(--fn-accent-ink); }
.fn-body .fn-why-strip-x { padding: 0 4px; font-size: 18px; line-height: 1; color: var(--fn-text-muted); text-decoration: none; }
.fn-recap { padding: 8px 8px 20px; }
.fn-recap-list { list-style: none; margin: 0; padding: 0; }
.fn-recap-list li + li { border-top: 1px solid var(--fn-border); }
.fn-recap-list a, .fn-recap-row { display: grid; grid-template-columns: 32px 1fr auto 16px; align-items: center; gap: 14px; padding: 16px 12px; }
.fn-recap-list a { color: var(--fn-text); text-decoration: none; transition: background .15s ease; }
.fn-recap-list a:hover { background: var(--fn-accent-tint); }
.fn-recap-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--fn-serif); font-size: 26px; font-style: italic; line-height: 1; color: var(--fn-accent-ink); }
.fn-recap-title { font-family: var(--fn-serif); font-size: 20px; font-weight: 500; }
.fn-recap-chip { padding: 4px 9px; border: 1px solid var(--fn-rule); border-radius: 2px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fn-text-muted); }
.fn-recap-chip.is-clicked { border-color: var(--fn-accent); color: var(--fn-accent-ink); }
.fn-recap-list svg { color: var(--fn-text-muted); }
.fn-recap-share .fn-recap-num svg { color: var(--fn-accent-ink); }
.fn-recap-share .fn-share-link { position: absolute; left: -9999px; }
.fn-recap-chip.is-copy { background: transparent; border-color: var(--fn-accent); color: var(--fn-accent-ink); font: inherit; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.fn-recap-chip.is-copy:hover { background: var(--fn-accent-tint); }
.fn-recap-foot { margin-top: 0; padding: 22px 12px 0; border-top: 1px solid var(--fn-border); text-align: center; }
.fn-recap-foot p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fn-text-muted); }
.fn-recap-foot form { margin: 0; }
.fn-share { margin: 0 0 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--fn-border); }

.fn-share-link { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--fn-rule); border-radius: 2px; background: var(--fn-bg); color: var(--fn-text-muted); font: inherit; font-size: 13px; }
.fn-second { margin: 6px 12px 0; padding: 20px 22px 22px; border: 1px solid var(--fn-border); border-left: 2px solid var(--fn-accent); background: var(--fn-accent-tint); }
.fn-body .fn-second h3 { margin: 6px 0 4px; font-size: 24px; }
.fn-second .fn-muted { margin-bottom: 14px; }
.fn-second .fn-offer-pos { margin-bottom: 0; }

/* Offer wall. The cards sit on the page ground, not inside an outer card: nesting
   them left a 1px hairline as the only thing telling a card from its container,
   and the container's own padding made the gap above the first card uneven.
   Every card is the same size, deliberately. No hero card. */
.fn-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fn-wall-item { display: flex; }
.fn-wall-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--fn-border); background: var(--fn-surface); transition: border-color .2s ease; }
.fn-wall-item:hover .fn-wall-card { border-color: var(--fn-accent); }
.fn-wall-banner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--fn-border); }
.fn-wall-banner-empty { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--fn-surface-alt); color: var(--fn-accent-ink); font-family: var(--fn-serif); font-size: 24px; font-style: italic; text-align: center; }
.fn-wall-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.fn-wall-pos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 22px; margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fn-accent-ink); }
.fn-wall-seen { margin-left: auto; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fn-text-muted); }
.fn-body .fn-wall-title { margin: 0 0 8px; font-size: 26px; line-height: 1.12; }
.fn-wall-lede { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--fn-text-muted); }
.fn-wall-cta { margin-top: auto; }
/* The whole card is the hit area, but there is still exactly one anchor: nesting
   a second link inside a card-wide link is invalid and reads twice to a screen
   reader. The button stays the affordance; this overlay is the target. */
.fn-wall-cta::after { content: ""; position: absolute; inset: 0; }
.fn-wall-card:focus-within { border-color: var(--fn-accent); }
.fn-body .fn-wall-disclosure { margin: 14px 0 0; text-align: center; }
.fn-wall-foot { margin: 28px 0 0; text-align: center; }
.fn-wall-foot p { margin: 0; }

/* A partner's page inside the flow. */
.fn-offer { padding: 28px 28px 24px; }
.fn-offer-pos { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fn-text-muted); }
.fn-offer-pos-left { display: inline-flex; align-items: center; gap: 6px; }
.fn-back-chev { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -6px; color: var(--fn-text-muted); }
.fn-back-chev:hover { color: var(--fn-accent-ink); }
.fn-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border: 1px solid var(--fn-accent); border-radius: 2px; color: var(--fn-accent-ink); font-size: 10.5px; letter-spacing: 0.14em; }
.fn-offer-banner, .fn-offer-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 14px 0 18px; border: 1px solid var(--fn-border); }
.fn-offer-banner { object-fit: cover; }
.fn-offer-video { position: relative; overflow: hidden; background: var(--fn-bg); }
.fn-offer-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fn-offer-banner-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; background: var(--fn-surface-alt); color: var(--fn-accent-ink); font-family: var(--fn-serif); font-size: 28px; font-style: italic; }
.fn-why { margin: 14px 0 20px; padding: 16px 18px; border-left: 2px solid var(--fn-accent); background: var(--fn-accent-tint); }
.fn-why span { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fn-accent-ink); }
.fn-why p { margin: 6px 0 0; }
.fn-offer-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
/* The partner page has one button now, so it takes the whole row rather than
   leaving the skip column standing empty beside it. */
.fn-offer-actions--single { grid-template-columns: 1fr; }
.fn-offer-actions form { margin: 0; }
.fn-body .fn-offer-note { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 24px 0 0; }
.fn-body .fn-offer-disclosure { margin: 8px 0 0; }
.fn-offer-end { text-align: center; }
.fn-notice { text-align: center; }
.fn-body .fn-notice .fn-muted { margin: 0 0 28px; }
.fn-admin-preview { position: relative; z-index: 30; padding: 10px 16px; background: var(--fn-accent); color: var(--fn-on-accent); font-size: 13px; font-weight: 600; text-align: center; }
.fn-admin-preview strong { font-weight: 700; }
.fn-admin-preview a { margin-left: 12px; color: var(--fn-on-accent); text-decoration: underline; }

/* The bridge quiz. */
.fn-quiz { max-width: 680px; margin: 0 auto; padding: 72px 24px; }
.fn-quiz-top { margin: 0; }
.fn-quiz-top .fn-eyebrow { margin-bottom: 14px; }
.fn-quiz-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.fn-quiz-progress .fn-progress { flex: 1; margin: 0; }
.fn-body .fn-quiz-intro { margin: -4px 0 26px; font-family: var(--fn-serif); font-size: 21px; font-style: italic; line-height: 1.4; color: var(--fn-text-soft); }
.fn-body .fn-quiz-card h1, .fn-body .fn-quiz-card h2 { margin: 0 0 10px; font-size: 36px; line-height: 1.1; text-wrap: pretty; }
.fn-quiz-card .fn-muted { margin: 0 0 20px; }
.fn-quiz-error { margin: 0 0 12px; font-size: 14px; color: var(--fn-danger); }
.fn-body .fn-quiz-fine { margin: 18px 0 0; font-size: 12px; text-align: center; color: var(--fn-text-muted); }
.fn-quiz-hero { margin: 0 0 26px; text-align: center; }
.fn-body .fn-quiz-hero h1 { margin: 0 0 14px; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.04; }
.fn-body .fn-quiz-hero .fn-lead { max-width: 520px; margin: 0 auto; }
@media (min-width: 640px) {
    .fn-quiz-card .fn-options { display: grid; grid-template-columns: 1fr 1fr; }
    .fn-quiz-card .fn-other { grid-column: 1 / -1; }
}

html.mr-anim .reveal-group > * { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
html.mr-anim .reveal-group > :nth-child(2) { transition-delay: 0.12s; }
html.mr-anim .reveal-group > :nth-child(3) { transition-delay: 0.24s; }
html.mr-anim .reveal-group > :nth-child(4) { transition-delay: 0.36s; }
html.mr-anim .reveal-group > :nth-child(5) { transition-delay: 0.48s; }
html.mr-anim .reveal-group > :nth-child(n+6) { transition-delay: 0.58s; }
html.mr-anim .reveal-group.is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.mr-anim .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
    .fn-hero:not(.fn-hero-centered) { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
    .fn-wizard { grid-template-columns: 1fr; gap: 0; }
    .fn-wizard-side { padding: 28px 22px; border-right: 0; border-bottom: 1px solid var(--fn-border); }
    .fn-wizard-body { padding: 24px 22px 22px; }
}
@media (max-width: 720px) {
    .fn-offer-actions { grid-template-columns: 1fr; }
    .fn-wall { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
    .fn-other { flex-direction: column; }
    .fn-quiz { padding-top: 40px; }
    .fn-body .fn-quiz-card h1, .fn-body .fn-quiz-card h2 { font-size: 28px; }
}
