/* Giving Compass — Editorial Warm UI (v3.9)
   Palette: deep ink-teal + warm cream + restrained gold
   Type: Fraunces (serif) for headings, Inter (sans) for body */

:root {
    /* Color */
    --ink: #0e3a44;
    --ink-soft: #1c5566;
    --ink-light: #4a8090;
    --gold: #b88a3a;
    --gold-soft: #d4ad6a;
    --gold-pale: #f4ead4;
    --cream: #f5efe4;
    --paper: #fcfaf5;
    --paper-warm: #f9f4e9;
    --text: #1a2a2e;
    --text-soft: #4a5862;
    --text-muted: #8a9499;
    --rule: #e0d5c2;
    --rule-soft: #ece3d1;
    --danger: #a94a2a;

    /* Shadow */
    --shadow-soft: 0 1px 2px rgba(14, 58, 68, 0.04), 0 4px 16px rgba(14, 58, 68, 0.06);
    --shadow-card: 0 1px 2px rgba(14, 58, 68, 0.05), 0 8px 28px rgba(14, 58, 68, 0.08);
    --shadow-hover: 0 2px 4px rgba(14, 58, 68, 0.08), 0 14px 40px rgba(14, 58, 68, 0.12);

    /* Radius */
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;

    /* Type */
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

/* Subtle paper texture via radial overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(184, 138, 58, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(14, 58, 68, 0.04) 0%, transparent 60%);
    z-index: 0;
}

#app {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSlow {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-in { animation: fadeIn 0.4s ease; }

/* ───────────────────────── Typography ───────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 56px; font-variation-settings: "SOFT" 50, "WONK" 0; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 14px 28px;
    border-radius: var(--r);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover:not(:disabled) {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.btn-primary:disabled {
    background: var(--rule);
    border-color: var(--rule);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-text {
    background: transparent;
    color: var(--text-soft);
    border: none;
    padding: 10px 16px;
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-underline-offset: 4px;
}
.btn-text:hover { color: var(--ink); text-decoration-color: var(--gold); }

/* ───────────────────────── Welcome screen ───────────────────────── */
#welcome { justify-content: center; min-height: calc(100vh - 96px); }

.welcome-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 0;
}

.compass-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 32px;
    display: block;
    animation: fadeInSlow 0.8s ease both;
}

.welcome-content .eyebrow {
    display: block;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.15s both;
}

.welcome-content h1 {
    margin-bottom: 12px;
    animation: fadeInUp 0.7s ease 0.25s both;
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    color: var(--ink-soft);
    margin-bottom: 36px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.welcome-details {
    margin: 0 auto 40px;
    max-width: 480px;
    animation: fadeInUp 0.7s ease 0.55s both;
}

.welcome-details p {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.time-estimate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-soft);
}
.clock-icon { color: var(--gold); }

#start-btn { animation: fadeInUp 0.7s ease 0.7s both; }

#replay-btn {
    display: none;
    margin-top: 16px;
    animation: fadeInUp 0.7s ease 0.85s both;
}

.disclaimer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeInSlow 1s ease 1s both;
}

/* ───────────────────────── Survey screen ───────────────────────── */
#survey { padding-top: 8px; }

.survey-header { margin-bottom: 40px; }

.progress-container {
    height: 4px;
    background: var(--rule-soft);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ink-soft), var(--gold));
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}
.progress-text {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.survey-body { flex: 1; padding: 8px 0 40px; }

.section-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.question-container { animation: fadeIn 0.35s ease; }

.scenario-prompt,
.rating-prompt,
.faith-prompt {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Choice cards (scenario A/B) */
.choice-cards { display: flex; flex-direction: column; gap: 12px; }

.choice-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--paper);
    border: 1.5px solid var(--rule);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.choice-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.18s ease;
}
.choice-card:hover {
    border-color: var(--ink-light);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}
.choice-card.selected {
    border-color: var(--ink);
    background: var(--paper-warm);
    box-shadow: var(--shadow-card);
}
.choice-card.selected::before { background: var(--gold); }

.choice-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--rule);
    transition: all 0.18s ease;
}
.choice-card:hover .choice-letter { border-color: var(--ink-light); }
.choice-card.selected .choice-letter {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.choice-text {
    flex: 1;
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
    padding-top: 4px;
}

/* Rating (1-5 scale) */
.rating-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.rating-btn {
    aspect-ratio: 1;
    background: var(--paper);
    border: 1.5px solid var(--rule);
    border-radius: var(--r);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.18s ease;
}
.rating-btn:hover {
    border-color: var(--ink-light);
    transform: translateY(-1px);
}
.rating-btn.selected {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    box-shadow: var(--shadow-card);
}
.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* Faith / multi options */
.faith-options { display: flex; flex-direction: column; gap: 10px; }

.faith-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--paper);
    border: 1.5px solid var(--rule);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.18s ease;
}
.faith-option:hover {
    border-color: var(--ink-light);
    transform: translateY(-1px);
}
.faith-option.selected {
    border-color: var(--ink);
    background: var(--paper-warm);
}

.faith-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    background: var(--cream);
    position: relative;
    transition: all 0.18s ease;
}
.faith-option.selected .faith-radio {
    border-color: var(--ink);
    background: var(--ink);
}
.faith-option.selected .faith-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.faith-text { color: var(--text); line-height: 1.5; }

/* Checkpoint cards */
.checkpoint-card {
    text-align: center;
    padding: 56px 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.5s ease;
}
.checkpoint-icon {
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0.85;
}
.checkpoint-headline {
    font-family: var(--serif);
    font-size: 30px;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.25;
}
.checkpoint-body {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.checkpoint-footer {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 16px;
}

/* Survey footer */
.survey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--rule-soft);
}

/* ───────────────────────── Results screen ───────────────────────── */
.results-content { padding: 16px 0 32px; }

.archetype-reveal {
    text-align: center;
    padding: 48px 24px 56px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.archetype-reveal::before {
    content: "";
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--gold-pale) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.archetype-reveal > * { position: relative; z-index: 1; }

.archetype-reveal .eyebrow {
    display: block;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease 0.05s both;
}

.archetype-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.15s both;
    filter: drop-shadow(0 2px 8px rgba(184, 138, 58, 0.15));
}

#archetype-name {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.archetype-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.archetype-description {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 24px;
    animation: fadeInUp 0.7s ease 0.7s both;
}

.archetype-confidence {
    display: inline-block;
    padding: 8px 18px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    animation: fadeInUp 0.7s ease 0.85s both;
}
.archetype-confidence strong {
    color: var(--ink);
    font-weight: 600;
}

/* Top categories */
.top-categories {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}
.top-categories h3 {
    font-size: 14px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.category-result {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--rule-soft);
    animation: fadeInUp 0.5s ease both;
}
.category-result:first-of-type { border-top: none; padding-top: 4px; }

.category-rank {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--gold);
    font-weight: 500;
    width: 32px;
    line-height: 1;
    padding-top: 2px;
}
.category-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}
.category-body { min-width: 0; }
.category-name {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 500;
}
.category-description {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 10px;
    line-height: 1.55;
}
.category-bar-container {
    height: 4px;
    background: var(--rule-soft);
    border-radius: 999px;
    overflow: hidden;
}
.category-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    border-radius: 999px;
    transition: width 1s ease;
}

/* Motivation profile */
.motivation-profile {
    margin-bottom: 40px;
    padding: 28px 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}
.motivation-profile h3 {
    font-size: 14px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.posture-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.posture-item { }
.posture-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.posture-value {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    font-weight: 500;
}

/* Faith summary */
.faith-summary {
    margin-bottom: 40px;
    padding: 28px 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}
.faith-summary h3 {
    font-size: 14px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.faith-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rule-soft);
}
.faith-summary-item:first-of-type { border-top: none; padding-top: 4px; }
.faith-label {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.faith-value {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
    text-align: right;
}

.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* ───────────────────────── Orgs screen ───────────────────────── */
.orgs-content { padding: 8px 0 32px; }

.orgs-content > h2 {
    text-align: center;
    margin-bottom: 12px;
}

.orgs-intro {
    text-align: center;
    color: var(--text-soft);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.65;
}
.orgs-intro strong { color: var(--ink); font-weight: 600; }

.archetype-intro {
    padding: 20px 24px;
    border-radius: var(--r);
    border: 1px solid var(--gold-soft);
    background: var(--gold-pale);
    color: var(--text);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}
.archetype-intro strong { color: var(--ink); font-weight: 600; }
.archetype-intro em { color: var(--gold); font-style: italic; }

/* Verification notice (when no matches) */
.verification-notice {
    text-align: center;
    padding: 48px 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
}
.verification-icon { font-size: 40px; margin-bottom: 16px; }
.verification-promise {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    margin-top: 16px;
}

/* Org sections */
.org-section { margin-bottom: 40px; }

.org-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ink);
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--rule);
    font-weight: 500;
}
.org-section-icon { font-size: 22px; }

.no-matches {
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Org card */
.org-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}
.org-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--ink-light);
}

.org-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.org-name {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 6px;
    font-weight: 500;
}
.org-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.org-name a:hover { color: var(--gold); }

.archetype-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: var(--gold-pale);
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.tier-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

.tier-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
}
.tier-exceptional {
    background: var(--ink);
    color: var(--gold-soft);
    border-color: var(--ink);
}
.tier-strong {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--ink-light);
}

.review-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.review-badge.initial-review {
    background: var(--gold-pale);
    color: var(--gold);
    border: 1px solid var(--gold-soft);
}

.org-pitch {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 16px;
}

.review-note {
    padding: 12px 16px;
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 16px;
}
.review-note strong { color: var(--ink); }

.org-why {
    padding: 14px 18px;
    background: var(--cream);
    border-left: 3px solid var(--ink);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 18px;
}
.org-why strong { color: var(--ink); font-weight: 600; }

.org-scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--r);
    border: 1px solid var(--rule-soft);
}
.score-item {
    text-align: center;
    padding: 4px;
    border-right: 1px solid var(--rule-soft);
}
.score-item:last-child { border-right: none; }
.score-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.score-value {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    font-weight: 500;
}
.score-total .score-value { color: var(--gold); }
.score-highlighted {
    background: var(--gold-pale);
    border-radius: var(--r-sm);
    margin: -4px;
    padding: 8px 4px;
}

.org-engage {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
    padding: 4px 0;
    margin-bottom: 16px;
}
.org-engage strong { color: var(--ink); font-weight: 600; }
.org-engage-highlighted {
    padding: 14px 18px;
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.controversy-note {
    padding: 14px 18px;
    background: #faeee5;
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
}
.controversy-label {
    font-weight: 600;
    color: var(--danger);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.donor-guidance { margin-top: 8px; color: var(--text-soft); }
.controversy-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.org-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--rule-soft);
    font-size: 12px;
    color: var(--text-muted);
    gap: 12px;
    flex-wrap: wrap;
}
.last-reviewed { letter-spacing: 0.02em; }
.ecfa-badge {
    padding: 3px 10px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.orgs-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--rule-soft);
}

/* ───────────────────────── Mobile ───────────────────────── */
@media (max-width: 640px) {
    #app { padding: 20px 16px 48px; }

    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .tagline { font-size: 18px; }

    .scenario-prompt,
    .rating-prompt,
    .faith-prompt { font-size: 21px; }

    #archetype-name { font-size: 36px; }
    .archetype-tagline { font-size: 17px; }

    .archetype-reveal { padding: 36px 20px 40px; }
    .top-categories,
    .motivation-profile,
    .faith-summary { padding: 24px 20px; }

    .posture-items { grid-template-columns: 1fr; gap: 16px; }

    .choice-card { padding: 16px 18px; gap: 12px; }
    .choice-letter { width: 28px; height: 28px; font-size: 14px; }
    .choice-text { font-size: 15px; }

    .rating-btn { font-size: 18px; }

    .org-card { padding: 22px 20px; }
    .org-card-header { flex-direction: column; gap: 10px; }
    .tier-badges { flex-direction: row; align-items: flex-start; }

    .org-scores {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 14px;
    }
    .score-item { border-right: none; }

    .org-footer { font-size: 11px; }

    .results-actions .btn { flex: 1 1 100%; }

    .btn { padding: 12px 22px; font-size: 14px; }
}

/* ───────────────────────── Accessibility ───────────────────────── */
.choice-card:focus-visible,
.faith-option:focus-visible,
.rating-btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
