/* ============================================================
   LikeMeQuiz — Editorial Confessional
   美学方向：高级杂志的情感专栏。奶油纸面 + 深墨字 + 血红强调。
   字体：Fraunces（展示衬线，带光学尺寸）+ DM Sans（UI/正文）
   纹理：SVG 颗粒噪点 + 纸感
   ============================================================ */

/* ── FONT FACES ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=DM+Sans:opsz,wght@9..40,300..700&display=swap');

:root {
    /* palette — warm parchment + ink + blood red */
    --c-paper:     #f4ede1;   /* base background */
    --c-paper-2:   #ece2d0;   /* deeper paper */
    --c-surface:   #fbf6ec;   /* cards / lifted surfaces */
    --c-ink:       #1a1612;   /* near-black body */
    --c-ink-soft:  #5a4f44;   /* muted body */
    --c-ink-faint: #9a8d7e;   /* meta / captions */
    --c-line:      #d9cdb8;   /* hairlines */
    --c-blood:     #b8341a;   /* primary accent — period, links */
    --c-blood-d:   #8f2410;   /* hover */
    --c-mustard:   #c9931a;   /* secondary accent */
    --c-olive:     #5c5a2e;   /* tertiary */
    --c-cream:     #fff8ea;   /* highlight on dark */

    /* he vs she accent (subtle, both fit palette) */
    --c-he:   #b8341a;        /* blood red */
    --c-she:  #5a3a8a;        /* deep iris */

    --radius:    2px;         /* sharp editorial corners */
    --radius-sm: 1px;
    --shadow-sm: 0 1px 0 var(--c-line);
    --shadow:    0 2px 0 var(--c-line), 0 18px 40px -24px rgba(26,22,18,0.28);
    --shadow-lg: 0 1px 0 var(--c-line), 0 30px 60px -28px rgba(26,22,18,0.40);

    --maxw: 1180px;
    --maxw-narrow: 720px;
    --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Songti SC', 'STSong', serif;
    --font-body:    'DM Sans', 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── RESET / BASE ── */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--c-ink);
    background: var(--c-paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* paper grain: layered radial speckles + faint vertical fibers */
    background-image:
        radial-gradient(circle at 13% 27%, rgba(184,52,26,0.025) 0, transparent 8%),
        radial-gradient(circle at 78% 63%, rgba(92,90,46,0.025) 0, transparent 10%),
        radial-gradient(circle at 42% 88%, rgba(201,147,26,0.02) 0, transparent 9%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a {
    color: var(--c-blood);
    text-decoration: none;
    border-bottom: 1px solid rgba(184,52,26,0.3);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover { color: var(--c-blood-d); border-bottom-color: var(--c-blood-d); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.04;
    margin: 0 0 0.4em;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    letter-spacing: -0.012em;
    color: var(--c-ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 460; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-variation-settings: 'opsz' 60; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* blood-red editorial period used on display headings */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-blood);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--c-blood);
    display: inline-block;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 237, 225, 0.88);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.site-header__brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--c-ink);
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    border-bottom: none;
    font-variation-settings: 'opsz' 144, 'SOFT' 40;
    letter-spacing: -0.02em;
}
.site-header__brand:hover { color: var(--c-ink); border-bottom: none; }
.site-header__brand .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--c-blood);
    display: inline-block;
    margin-right: 7px;
    transform: translateY(-2px);
}
.site-header__brand em {
    font-style: italic;
    font-weight: 400;
    color: var(--c-blood);
    font-variation-settings: 'opsz' 144, 'SOFT' 80;
}

.site-nav { display: flex; gap: 2px; margin-left: 14px; }
.site-nav a {
    padding: 8px 14px;
    color: var(--c-ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: none;
    position: relative;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 1px;
    background: var(--c-blood);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}
.site-nav a:hover { color: var(--c-ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__spacer { flex: 1; }

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1px solid var(--c-line);
    color: var(--c-ink-soft);
    border-radius: 999px;
    padding: 7px 15px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--c-blood); color: var(--c-blood); }
.lang-btn__caret { font-size: 0.7rem; opacity: 0.7; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-width: 150px;
    overflow: hidden;
    display: none;
    z-index: 60;
}
.lang-dropdown.open { display: block; animation: fadeDown 0.18s var(--ease); }
.lang-option {
    display: block;
    padding: 11px 18px;
    color: var(--c-ink);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: none;
    border-left: 2px solid transparent;
}
.lang-option:hover { background: var(--c-paper-2); color: var(--c-ink); border-bottom: none; border-left-color: var(--c-blood); }
.lang-option.active { color: var(--c-blood); background: rgba(184,52,26,0.06); border-left-color: var(--c-blood); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.12s var(--ease), background 0.2s var(--ease), color 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-bottom: none; }
.btn--primary {
    background: var(--c-ink);
    color: var(--c-cream);
    box-shadow: 0 6px 0 -1px rgba(26,22,18,0.0), 0 14px 30px -16px rgba(26,22,18,0.6);
}
.btn--primary:hover { background: var(--c-blood); color: var(--c-cream); }
.btn--ghost {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ════════════════════════════════════════════════════════
   HOMEPAGE
   ════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
    position: relative;
    padding: 96px 28px 64px;
    overflow: hidden;
}
.hero__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.hero__head { max-width: 880px; }
.hero h1 {
    margin: 22px 0 0;
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 420;
    line-height: 0.98;
}
.hero h1 b {
    font-weight: 420;
    font-style: italic;
    color: var(--c-blood);
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 360;
    font-style: italic;
    color: var(--c-ink-soft);
    max-width: 620px;
    margin: 28px 0 0;
    line-height: 1.45;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
}
.hero__cta {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-top: 36px;
}

/* hero decorative — large rotated italic mark in background */
.hero__mark {
    position: absolute;
    right: -40px; top: 20px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(14rem, 32vw, 30rem);
    line-height: 0.8;
    color: var(--c-blood);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    transform: rotate(-6deg);
}

/* ── DIVIDER (editorial rule) ── */
.rule {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--c-ink-faint);
}
.rule__line { flex: 1; height: 1px; background: var(--c-line); }
.rule__star {
    font-family: var(--font-display);
    color: var(--c-blood);
    font-size: 1.1rem;
}

/* ── QUIZ CARDS ── */
.cards { padding: 56px 28px 72px; }
.cards__head {
    max-width: var(--maxw);
    margin: 0 auto 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.cards__head h2 { margin: 8px 0 0; }
.cards__head .lede {
    color: var(--c-ink-soft);
    max-width: 380px;
    font-size: 0.96rem;
    margin: 0;
}
.cards__grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
}
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 38px 34px 32px;
    color: var(--c-ink);
    transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    /* make adjacent cards share a single border line */
    margin-left: -1px;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--c-cream);
    z-index: 2;
    border-bottom: none;
}
.card__tag {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-blood);
}
.card__num {
    position: absolute;
    top: 26px; right: 30px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--c-line);
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.card__title {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 480;
    margin-top: 18px;
    max-width: 14ch;
}
.card__title em { font-style: italic; color: var(--c-blood); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.card__desc {
    color: var(--c-ink-soft);
    font-size: 0.98rem;
    flex: 1;
    max-width: 42ch;
    line-height: 1.55;
}
.card__meta {
    font-size: 0.82rem;
    color: var(--c-ink-faint);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--c-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card__go {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--c-blood);
    font-size: 1.05rem;
    transition: gap 0.2s var(--ease);
}
.card:hover .card__go { letter-spacing: 0.02em; }

/* ── HOW IT WORKS ── */
.how {
    background: var(--c-ink);
    color: var(--c-cream);
    padding: 88px 28px 96px;
    position: relative;
    overflow: hidden;
}
.how::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    pointer-events: none;
}
.how > * { position: relative; }
.how .section-title { color: var(--c-cream); }
.how .eyebrow { color: var(--c-mustard); }
.how .eyebrow::before { background: var(--c-mustard); }
.how__head { max-width: var(--maxw); margin: 0 auto 48px; }
.how__head h2 { margin-top: 14px; max-width: 18ch; }
.how__steps {
    list-style: none; padding: 0; margin: 0;
    max-width: var(--maxw);
    margin-left: auto; margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
}
.how__step {
    padding: 0 28px 0 0;
    border-left: 1px solid rgba(255,248,234,0.18);
    padding-left: 28px;
}
.how__num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--c-mustard);
    margin-bottom: 18px;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.how__step h3 {
    color: var(--c-cream);
    font-weight: 460;
    margin-bottom: 12px;
}
.how__step p {
    color: rgba(255,248,234,0.72);
    font-size: 0.96rem;
    margin: 0;
}

/* ── SECTION TITLE ── */
.section-title {
    text-align: left;
    margin-bottom: 0;
    font-weight: 460;
}

/* ── FAQ ── */
.faq {
    padding: 88px 28px 96px;
    max-width: var(--maxw-narrow);
    margin: 0 auto;
}
.faq__head { margin-bottom: 40px; }
.faq__head h2 { margin-top: 12px; }
.faq__list { display: flex; flex-direction: column; gap: 0; }
.faq__item {
    background: transparent;
    border: none;
    border-top: 1px solid var(--c-line);
    padding: 0;
    box-shadow: none;
}
.faq__item:last-child { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
    cursor: pointer;
    padding: 26px 0;
    font-family: var(--font-display);
    font-weight: 440;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    list-style: none;
    color: var(--c-ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    transition: color 0.2s var(--ease);
    font-variation-settings: 'opsz' 60, 'SOFT' 40;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-blood); }
.faq__item summary::after {
    content: '+';
    font-family: var(--font-body);
    color: var(--c-blood);
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq__a {
    padding: 0 0 28px;
    color: var(--c-ink-soft);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 62ch;
}

/* ════════════════════════════════════════════════════════
   QUIZ PAGE
   ════════════════════════════════════════════════════════ */
.quiz-page { padding-bottom: 80px; }
.quiz-hero {
    text-align: left;
    padding: 64px 28px 24px;
    max-width: var(--maxw-narrow);
    margin: 0 auto;
}
.quiz-hero__eyebrow { margin-bottom: 18px; }
.quiz-hero__h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 440;
    margin: 0;
    letter-spacing: -0.022em;
}
.quiz-hero__h1 b {
    font-weight: 440;
    font-style: italic;
    color: var(--c-blood);
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.quiz-hero__subtitle {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--c-ink-soft);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 540px;
    margin: 20px 0 0;
    line-height: 1.45;
    font-weight: 360;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
}

.quiz-app {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    padding: 20px 28px 0;
}

/* progress */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.quiz-progress__bar {
    flex: 1;
    height: 2px;
    background: var(--c-line);
    border-radius: 0;
    overflow: hidden;
}
.quiz-progress__bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--c-blood);
    transition: width 0.4s var(--ease);
}
.quiz-progress__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--c-ink-soft);
    font-weight: 400;
    white-space: nowrap;
    font-variation-settings: 'opsz' 14, 'SOFT' 50;
}

/* question card */
.quiz-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow);
    animation: cardIn 0.4s var(--ease);
}
.quiz-card__q {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 440;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-variation-settings: 'opsz' 60, 'SOFT' 40;
}
.quiz-card__q::first-letter {
    font-size: 1.15em;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    display: flex;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--c-ink);
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.15s var(--ease), background 0.15s, padding-left 0.15s var(--ease);
    gap: 14px;
    align-items: baseline;
}
.quiz-option__letter {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--c-blood);
    font-size: 1.05rem;
    min-width: 16px;
    font-variation-settings: 'opsz' 60, 'SOFT' 80;
}
.quiz-option:hover {
    border-color: var(--c-ink);
    background: var(--c-paper-2);
    padding-left: 26px;
}
.quiz-option.selected {
    border-color: var(--c-blood);
    background: rgba(184,52,26,0.05);
    box-shadow: inset 3px 0 0 var(--c-blood);
    padding-left: 26px;
}
.quiz-card__nav {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}
.quiz-card__nav .btn--ghost {
    color: var(--c-ink-soft);
    border-color: var(--c-line);
    padding: 14px 22px;
}
.quiz-card__nav .btn--ghost:hover { color: var(--c-ink); border-color: var(--c-ink); background: transparent; }
.quiz-card__nav .btn--primary { padding: 14px 30px; }

/* start screen */
.quiz-start { text-align: center; padding: 32px 8px 16px; }
.quiz-start .eyebrow { justify-content: center; }
.quiz-start .eyebrow::after {
    content: '';
    width: 28px; height: 1px;
    background: var(--c-blood);
}
.quiz-start p {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--c-ink-soft);
    font-size: 1.25rem;
    margin: 24px auto 32px;
    max-width: 460px;
    line-height: 1.45;
    font-weight: 360;
    font-variation-settings: 'opsz' 60, 'SOFT' 50;
}
.quiz-start .btn--primary { padding: 18px 44px; font-size: 1.05rem; }

/* result */
.quiz-result {
    background: var(--c-ink);
    color: var(--c-cream);
    border-radius: var(--radius);
    padding: 56px 44px 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s var(--ease);
}
.quiz-result::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    pointer-events: none;
}
.quiz-result > * { position: relative; }
.quiz-result__eyebrow {
    color: var(--c-mustard);
    justify-content: center;
}
.quiz-result__eyebrow::before, .quiz-result__eyebrow::after {
    content: ''; width: 28px; height: 1px; background: var(--c-mustard);
}
.quiz-result__score {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4.5rem, 14vw, 8rem);
    line-height: 0.9;
    color: var(--c-cream);
    margin: 18px 0 4px;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    letter-spacing: -0.03em;
}
.quiz-result__score .pct {
    font-size: 0.45em;
    color: var(--c-mustard);
    vertical-align: super;
    font-style: normal;
    margin-left: 4px;
}
.quiz-result__score-suffix {
    color: rgba(255,248,234,0.6);
    font-weight: 400;
    display: block;
    margin-bottom: 28px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.quiz-result__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 440;
    margin-bottom: 18px;
    color: var(--c-cream);
    line-height: 1.1;
}
.quiz-result__title em { font-style: italic; color: var(--c-mustard); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.quiz-result__desc {
    color: rgba(255,248,234,0.78);
    max-width: 520px;
    margin: 0 auto 32px;
    text-align: left;
    font-size: 1.02rem;
    line-height: 1.7;
}
.quiz-result__share {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.quiz-result__share .btn--ghost {
    color: var(--c-cream);
    border-color: rgba(255,248,234,0.3);
    padding: 13px 22px;
    font-size: 0.92rem;
}
.quiz-result__share .btn--ghost:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.quiz-result__share .btn--primary { background: var(--c-mustard); color: var(--c-ink); padding: 13px 26px; font-size: 0.92rem; }
.quiz-result__share .btn--primary:hover { background: var(--c-cream); }
.quiz-result__copy-feedback {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--c-mustard);
    font-weight: 400;
    display: none;
    margin-top: 14px;
}
.quiz-result__copy-feedback.show {
    display: block;
    animation: fadeDown 0.3s var(--ease);
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--c-ink);
    color: var(--c-cream);
    padding: 56px 28px 36px;
    margin-top: 0;
}
.site-footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}
.site-footer__brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 480;
    color: var(--c-cream);
    border-bottom: none;
    font-variation-settings: 'opsz' 144, 'SOFT' 40;
}
.site-footer__brand:hover { color: var(--c-cream); border-bottom: none; }
.site-footer__tagline {
    color: rgba(255,248,234,0.6);
    margin: 10px 0 0;
    font-weight: 400;
    font-size: 0.95rem;
    max-width: 38ch;
}
.site-footer__nav {
    display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap;
    align-items: center;
    margin: 0;
}
.site-footer__nav a {
    color: rgba(255,248,234,0.75);
    font-size: 0.9rem;
    border-bottom: none;
}
.site-footer__nav a:hover { color: var(--c-mustard); border-bottom: none; }
.site-footer__bottom {
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,248,234,0.14);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,248,234,0.42);
    font-size: 0.82rem;
}
.site-footer__disclaimer {
    color: rgba(255,248,234,0.4);
    font-size: 0.8rem;
    max-width: 560px;
    margin: 0;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
   404
   ════════════════════════════════════════════════════════ */
.error-page {
    text-align: center;
    padding: 120px 28px;
    max-width: var(--maxw-narrow);
    margin: 0 auto;
}
.error-page__code {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(6rem, 18vw, 11rem);
    color: var(--c-blood);
    line-height: 1;
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.error-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 16px;
    font-weight: 440;
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════ */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* staggered entrance for hero */
.hero .eyebrow  { animation: riseIn 0.7s var(--ease) 0.05s both; }
.hero h1        { animation: riseIn 0.8s var(--ease) 0.15s both; }
.hero__subtitle { animation: riseIn 0.8s var(--ease) 0.30s both; }
.hero__cta      { animation: riseIn 0.8s var(--ease) 0.42s both; }
.card:nth-child(1) { animation: riseIn 0.7s var(--ease) 0.10s both; }
.card:nth-child(2) { animation: riseIn 0.7s var(--ease) 0.22s both; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    .cards__head { flex-direction: column; align-items: flex-start; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-nav { display: none; }
    .hero { padding: 64px 24px 44px; }
    .hero__mark { font-size: 12rem; right: -20px; }
    .quiz-card { padding: 30px 22px; }
    .quiz-result { padding: 40px 24px 32px; }
    .quiz-option { padding: 14px 16px; }
    .quiz-option:hover, .quiz-option.selected { padding-left: 20px; }
    .how__step { border-left: none; border-top: 1px solid rgba(255,248,234,0.18); padding: 24px 0 0; margin-top: 24px; }
    .how__step:first-child { border-top: none; margin-top: 0; padding-top: 0; }
    .faq__item summary { font-size: 1.1rem; }
}
