/* ─── Infinitus ─────────────────────────────────────────────────
   Oracle luxury, but contemporary.
   The blue is the atmosphere.
   Everything else is tuned to read clearly within it.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --fg:             #f6f8ff;
    --fg-muted:       #d8e2ff;
    --fg-dim:         #aebfef;

    --bg:             #0037c9;
    --bg-card:        #1547d4;
    --bg-hover:       #2456df;
    --bg-soft:        rgba(255, 255, 255, 0.08);
    --bg-glass:       rgba(255, 255, 255, 0.10);

    --accent-a:       #ffffff;
    --accent-b:       #c9d8ff;
    --accent-c:       #9fe0ff;

    --accent-a-hover: #ffffff;
    --accent-b-hover: #e0e9ff;
    --accent-c-hover: #c1ecff;

    --accent-a-light: rgba(255, 255, 255, 0.14);
    --accent-b-light: rgba(201, 216, 255, 0.16);
    --accent-c-light: rgba(159, 224, 255, 0.16);

    --bar-bg:         rgba(255, 255, 255, 0.18);
    --bar-fill:       rgba(255, 255, 255, 0.54);
    --conf-fill:      #ffffff;

    --border:         rgba(255, 255, 255, 0.24);
    --border-light:   rgba(255, 255, 255, 0.14);

    --radius:         10px;
    --radius-sm:      6px;
    --radius-pill:    999px;

    --shadow:         0 1px 2px rgba(0, 16, 80, 0.12),
                      0 10px 30px rgba(0, 16, 80, 0.18);
    --shadow-lg:      0 2px 8px rgba(0, 16, 80, 0.16),
                      0 20px 48px rgba(0, 16, 80, 0.24);
    --shadow-hover:   0 4px 14px rgba(0, 16, 80, 0.18),
                      0 28px 60px rgba(0, 16, 80, 0.28);

    --max-w:          640px;
    --font:           'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-mono:      'JetBrains Mono', 'Courier New', monospace;
}

html {
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-optical-sizing: auto;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(160, 90, 50, 0.03) 0%, transparent 70%);
}


/* ─── Typography ──────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

a {
    color: var(--accent-a);
    text-decoration: none;
    font-weight: 500;
    border-bottom: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-a-hover);
    border-bottom-style: double;
}

/* ─── Layout ──────────────────────────────────────────────────── */
.landing, .funnel, .results-page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
    text-align: center;
    padding: 6rem 0 2.5rem;
    position: relative;
}
.site-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin: 2.5rem auto 0;
    background: linear-gradient(90deg, transparent, var(--accent-a), transparent);
}

.site-header--compact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: none;
    margin-bottom: 2rem;
}
.site-header--compact::after { display: none; }

.logo {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--fg);
    text-transform: none;
    line-height: 1;
}

.logo-small {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--fg);
    text-decoration: none;
    text-transform: none;
    letter-spacing: -0.02em;
    border-bottom: none;
}
.logo-small:hover { color: var(--accent-a); border-bottom: none; }

.tagline {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--fg-muted);
    margin-top: 1rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.q-counter {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-a);
    font-variant-numeric: tabular-nums;
    background: var(--accent-a-light);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(201, 168, 76, 0.15);
    font-weight: 400;
    letter-spacing: 0.03em;
    border-radius: var(--radius-pill);
}

/* ─── Question Stage ──────────────────────────────────────────── */
.question-stage {
    padding: 0.25rem 0;
}
.question-stage--landing {
    padding: 0.25rem 0 2.5rem;
}

.question-prompt {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.35;
    margin-bottom: 3.5rem;
    color: var(--fg);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Choices ─────────────────────────────────────────────────── */
.choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.choice {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 1.3rem 2rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 400;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow);
    position: relative;
    color: var(--fg);
    border-radius: var(--radius);
    min-height: 52px;
    letter-spacing: 0.01em;
}

.choice--a { }
.choice--b { }
.choice--a::before,
.choice--b::before { display: none; }

.choice:hover {
    background: var(--accent-a);
    color: var(--bg);
    border-color: var(--accent-a);
    box-shadow: var(--shadow-hover), 0 0 40px rgba(201, 168, 76, 0.12);
    transform: translateY(-2px);
    font-weight: 500;
}

.choice:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 3px;
}

.choice:active {
    background: var(--accent-a-hover);
    color: var(--bg);
    border-color: var(--accent-a-hover);
    box-shadow: var(--shadow);
    transform: translateY(0);
}

.choice-divider {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--fg-dim);
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 300;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.15rem 0;
}
.choice-divider::before,
.choice-divider::after {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: var(--border);
}

.question-sub {
    text-align: center;
    font-size: 0.8rem;
    color: var(--fg-dim);
    margin-top: 3rem;
    font-style: italic;
    font-weight: 300;
}

/* ─── Encouragement ───────────────────────────────────────────── */
.encouragement {
    text-align: center;
    padding: 0.9rem 1.5rem;
    background: var(--accent-a-light);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-a);
    margin-bottom: 1.5rem;
    animation: slideDown 0.35s ease;
}

.encouragement-sub {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--fg-muted);
    font-weight: 300;
    font-style: italic;
}

/* ─── Interpretation Panel ────────────────────────────────────── */
.interpretation {
    padding: 3.5rem 0 4rem;
    border-top: none;
    margin-top: 2.5rem;
    position: relative;
}
.interpretation::before {
    content: 'Your Profile';
    position: relative;
    display: block;
    text-align: center;
    background: transparent;
    color: var(--fg-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0;
    border: none;
    margin-bottom: 0.75rem;
}

.interp-headline {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--fg-muted);
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

/* ─── Model Cards ─────────────────────────────────────────────── */
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;
    border-radius: var(--radius);
}

.model-card::before { display: none; }

.model-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
    border-color: rgba(201, 168, 76, 0.25);
}

.model-card:last-child { border-bottom: 1px solid var(--border); }

.model-card--full {
    padding: 2rem 2.25rem;
    margin-bottom: 1.25rem;
}
.model-card--full::before { display: none; }

.model-card--emerging { opacity: 0.35; }
.model-card--emerging::before { display: none; }

.model-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

.model-icon { font-size: 1rem; }

.model-badge {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-dim);
    background: var(--accent-b-light);
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--border);
    font-weight: 400;
    margin-left: auto;
    border-radius: var(--radius-pill);
}

.model-summary {
    font-size: 0.9rem;
    color: var(--fg-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-weight: 300;
}
.model-summary--large {
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ─── Dimension Bars ──────────────────────────────────────────── */
.model-dimensions {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.dim-row { font-size: 0.82rem; }

.dim-desc {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--fg-dim);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.dim-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.dim-low, .dim-high {
    font-size: 0.7rem;
    color: var(--fg-muted);
    font-weight: 400;
}

.dim-bar {
    position: relative;
    height: 4px;
    background: var(--bar-bg);
    border: none;
    overflow: visible;
    border-radius: var(--radius-pill);
}

.dim-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-a), rgba(201, 168, 76, 0.6));
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    border-radius: var(--radius-pill);
}

.dim-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-a);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dim-result {
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.35rem;
    color: var(--fg);
}

.dim-dp {
    font-weight: 300;
    color: var(--fg-dim);
    font-size: 0.65rem;
}

/* ─── Confidence ──────────────────────────────────────────────── */
.model-confidence {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.confidence-bar {
    flex: 1;
    height: 2px;
    background: var(--bar-bg);
    border: none;
    overflow: hidden;
    border-radius: var(--radius-pill);
}

.confidence-fill {
    height: 100%;
    background: var(--conf-fill);
    transition: width 0.4s ease;
    border-radius: var(--radius-pill);
}

.confidence-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--fg-dim);
    white-space: nowrap;
}

/* ─── Preview ─────────────────────────────────────────────────── */
.interp-preview {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.interp-preview p {
    font-size: 0.9rem;
    color: var(--fg-muted);
    font-weight: 300;
}

.preview-models {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.preview-model {
    opacity: 0.12;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: var(--radius-sm);
}
.preview-model:hover {
    opacity: 1;
    transform: scale(1.15);
}

.preview-sub {
    font-size: 0.75rem;
    color: var(--fg-dim);
    font-style: italic;
    font-weight: 300;
}

/* ─── CTA ─────────────────────────────────────────────────────── */
.interp-cta {
    text-align: center;
    font-size: 0.85rem;
    color: var(--fg-muted);
    margin-top: 2.5rem;
    line-height: 1.65;
    font-weight: 300;
}
.results-link {
    font-weight: 500;
    color: var(--accent-a);
    border-bottom: none;
}

/* ─── Results Page ────────────────────────────────────────────── */
.results-main { padding-bottom: 4rem; }

.results-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
    text-transform: none;
    color: var(--fg);
}

.results-subtitle {
    font-size: 1rem;
    color: var(--fg-muted);
    text-align: center;
    font-style: italic;
    font-weight: 300;
    margin-top: 0.5rem;
}

.results-meta {
    text-align: center;
    font-size: 0.72rem;
    color: var(--fg-dim);
    margin: 0.75rem 0 3rem;
    padding-bottom: 2.5rem;
    border-bottom: none;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.results-meta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-a), transparent);
}

.results-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    border-radius: var(--radius);
}
.results-cta p {
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    letter-spacing: 0.02em;
    min-height: 48px;
}
.btn:hover {
    text-decoration: none;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-bottom: none;
}
.btn:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 3px;
}
.btn:active {
    box-shadow: var(--shadow);
    transform: translateY(0);
}
.btn--primary {
    background: var(--accent-a);
    color: var(--bg);
}
.btn--primary:hover {
    background: var(--accent-a-hover);
    color: var(--bg);
}

/* ─── Landing Pitch ───────────────────────────────────────────── */
.landing-pitch {
    text-align: center;
    padding: 2.5rem 1.5rem 5rem;
    font-size: 0.92rem;
    color: var(--fg-muted);
    line-height: 1.8;
    font-weight: 300;
}
.landing-pitch strong {
    color: var(--fg);
    font-weight: 500;
}

/* ─── Ad Slots ────────────────────────────────────────────────── */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.ad-leaderboard { min-height: 90px; }
.ad-inline { min-height: 100px; margin: 2.5rem 0; }
.ad-sidebar { min-height: 250px; margin: 2rem 0; }
.ad-label {
    font-family: var(--font-mono);
    font-size: 0.48rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.4;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 4rem 1rem;
    font-size: 0.7rem;
    color: var(--fg-dim);
    border-top: none;
    max-width: var(--max-w);
    margin: 0 auto;
    letter-spacing: 0.03em;
    font-weight: 300;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (min-width: 640px) {
    .choices {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
    .choice {
        width: auto;
        min-width: 200px;
        max-width: 260px;
    }
    .choice-divider { align-self: center; }
    .question-prompt { font-size: 2.4rem; }
    .results-title { font-size: 3.2rem; }
}

@media (max-width: 639px) {
    html { font-size: 16px; }
    .question-prompt { font-size: 1.6rem; }
    .logo { font-size: 3rem; }
    .site-header { padding: 4rem 0 2rem; }
    .model-card { padding: 1.5rem 1.25rem; }
    .model-card--full { padding: 1.75rem 1.5rem; }
    .landing, .funnel, .results-page { padding: 0 1.25rem; }
}

/* ─── Print ───────────────────────────────────────────────────── */
@media print {
    .ad-slot, .site-header, .site-footer, .choices, .encouragement { display: none; }
    .model-card { break-inside: avoid; border: 1px solid #ddd; }
    body { background: #fff; color: #1a1a1a; }
}

/* ─── Profile Nudge ───────────────────────────────────────────── */
.profile-nudge {
    text-align: center;
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin-top: 2rem;
    animation: fadeIn 0.4s ease;
    font-weight: 300;
}
.profile-nudge a {
    color: var(--accent-a);
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.question-sub { animation: fadeIn 0.5s ease 0.15s both; }

body {
    color: var(--fg);
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.10), transparent 28%),
        linear-gradient(180deg, #0a43d8 0%, var(--bg) 100%);
}

.card,
.panel,
.input,
.chip {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card:hover,
.panel:hover,
.input:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: var(--shadow-hover);
}

small,
.muted,
.secondary {
    color: var(--fg-muted);
}

a,
button.primary,
.highlight {
    color: var(--accent-a);
}

button.secondary,
.badge,
.kicker {
    color: var(--accent-b);
}

.metric,
.note,
.status-positive {
    color: var(--accent-c);
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
}
.footer-legal a {
    color: inherit;
    text-decoration: none;
    margin: 0 0.5rem;
}
.footer-legal a:hover { opacity: 0.8; }
.legal-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: none;
    opacity: 0.55;
}
.legal-back:hover { opacity: 1; }

.q-buddy { display: inline-block; transition: transform .3s ease; }
.q-chug { animation: chug .25s ease-out; }
.q-pop { animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes chug { 0% { transform: rotate(-72deg); } }
@keyframes pop { 0% { transform: rotate(-72deg) scale(1); } 50% { transform: rotate(180deg) scale(1.4); } 100% { transform: rotate(360deg) scale(1); } }

/* ─── Baudrillard Stripes ─────────────────────────────────────── */
body::before,
body::after {
    content: '';
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: var(--max-w);
    height: 0;
    pointer-events: none;
    z-index: 100;
}

/* Top: thin then thick */
body::before {
    top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 5px 0 0 rgba(255, 255, 255, 0.35),
                0 6px 0 0 rgba(255, 255, 255, 0.35),
                0 7px 0 0 rgba(255, 255, 255, 0.35);
}

/* Bottom: thick then thin */
body::after {
    bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 -5px 0 0 rgba(255, 255, 255, 0.35),
                0 -6px 0 0 rgba(255, 255, 255, 0.35),
                0 -7px 0 0 rgba(255, 255, 255, 0.35);
}

/* ─── Research Banner ─────────────────────────────────────────── */
.research-banner {
    text-align: center;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
    color: var(--fg-dim);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.04));
    letter-spacing: 0.02em;
    font-weight: 300;
}