/* ── Brand tokens ──────────────────────────────────────────── */
:root {
    --brand-blue:   #2b7cc4;
    --brand-orange: #f0a500;
    --brand-purple: #8b3fad;
    --brand-blue-tint:   #eef5fd;
    --text-primary: #111;
    --text-muted:   #666;
}

/* ── Global typography ─────────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
}

/* Bricolage Grotesque for big display moments */
h1 {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
}

h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Nav ───────────────────────────────────────────────────── */
nav.container {
    border-bottom: 2px solid #ebebeb;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    align-items: center;
}

nav.container ul {
    margin: 0;
    padding: 0;
}

nav.container ul li {
    padding: 0;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-graphic {
    height: 80px;
    width: auto;
    display: block;
}

.nav-text {
    height: 42px;
    width: auto;
    display: block;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 1.5rem 0 0.75rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Gradient "alter ego?" highlight */
.hero-accent {
    background: linear-gradient(95deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #222;
}

/* ── Quiz grid ─────────────────────────────────────────────── */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .quiz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .quiz-grid { grid-template-columns: 1fr; }
}

.quiz-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.quiz-card article {
    text-align: center;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
}

/* Cycling accent colors on card tops */
.quiz-card:nth-child(3n+1) article { border-top-color: var(--brand-blue); }
.quiz-card:nth-child(3n+2) article { border-top-color: var(--brand-orange); }
.quiz-card:nth-child(3n+3) article { border-top-color: var(--brand-purple); }

.quiz-card:hover article {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

.quiz-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

/* Truncate description to 3 lines */
.quiz-card p {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
}

.quiz-card small {
    opacity: 0.55;
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.quiz-logo-wrapper {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.quiz-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────────── */
footer.container {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.45;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Quiz page header ──────────────────────────────────────── */
.quiz-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.quiz-header .quiz-logo {
    max-height: 120px;
    margin-bottom: 1rem;
}

.quiz-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.quiz-header p {
    max-width: 600px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* ── Answer option cards ───────────────────────────────────── */
.question label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--pico-border-color);
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, border-left-color 0.15s ease;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.question label:hover {
    border-color: var(--brand-blue);
    border-left-color: var(--brand-blue);
    background: var(--brand-blue-tint);
}

.question label:has(input:checked) {
    border-color: var(--brand-blue);
    border-left: 3px solid var(--brand-blue);
    background: var(--brand-blue-tint);
    font-weight: 700;
    color: var(--text-primary);
}

.question label input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
}

.question h4 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Result page ───────────────────────────────────────────── */
.result-card {
    text-align: center;
    border: none;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #edf4ff 0%, #f0ebff 100%);
    padding: 2.75rem 2rem 2rem;
    margin-bottom: 1.5rem;
}

.result-card h1 {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.result-card hgroup p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.result-card > p {
    max-width: 500px;
    margin: 0.75rem auto 0;
    line-height: 1.65;
    color: #444;
    font-size: 0.975rem;
}

.result-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-blue), 0 14px 36px rgba(43, 124, 196, 0.22);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ── Share section ─────────────────────────────────────────── */
.share-section {
    text-align: center;
    margin: 1.5rem 0;
}

.share-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.share-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* ── Invite section ────────────────────────────────────────── */
.invite-section {
    text-align: center;
    background: #fafafa;
    border: 1.5px solid #e8e8e8;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
}

.invite-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Match bars ────────────────────────────────────────────── */
.match-bar {
    background: var(--pico-secondary-background);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.match-fill {
    background: var(--brand-blue);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
