/* ==========================================================================
   Political Spectrum Test — politicalspectrumtest.online
   Design system: "Editorial civic minimal"
   Paper ground, ink text, spectrum-gradient brand motif, Fraunces + Inter.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL licensed) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F8F7F4;
  --surface: #FFFFFF;
  --ink: #16151A;
  --ink-soft: #4A4850;
  --muted: #5F5D66;
  --faint: #6E6C76;
  --ghost: #8A8894;
  --line: #E5E3DC;
  --line-strong: #D8D6CE;
  --soft: #F1EFE9;
  --track: #EFEEE7;

  --red: #D64550;
  --amber: #E39B2D;
  --sage: #7C9C62;
  --blue: #3D6FA8;

  --spectrum: linear-gradient(90deg, #D64550 0%, #E39B2D 34%, #7C9C62 63%, #3D6FA8 100%);
  --spectrum-soft: linear-gradient(90deg, #D64550, #E39B2D, #7C9C62, #3D6FA8);

  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1160px;
  --shadow-card: 0 1px 2px rgba(22, 21, 26, 0.04), 0 8px 28px rgba(22, 21, 26, 0.05);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: inline-block; vertical-align: middle; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(61, 111, 168, 0.18); }

a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 40; }
.site-header .container { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.header-nav a.nav-link { color: var(--muted); text-decoration: none; font-weight: 500; }
.header-nav a.nav-link:hover { color: var(--ink); }
.btn.header-cta-mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #2B2A31; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 18px 36px; font-size: 17px; }
.btn--sm { padding: 10px 21px; font-size: 14px; border-width: 1px; }
.btn--outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--outline:hover { background: var(--soft); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); }
.btn--ghost:disabled { color: var(--ghost); cursor: default; background: transparent; }
.btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.btn--light { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn--light:hover { background: #EBE9E2; }
.btn--ghost-dark { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.35); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); }
.btn .arrow { flex: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Eyebrow & section headings ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.section { padding-top: 104px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head h2 { font-size: 36px; max-width: 720px; }
.section-sub { margin: 16px 0 0; max-width: 680px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.section-title { font-size: 36px; }

/* ---------- Hero ---------- */
.hero { padding-top: 104px; text-align: center; }
.hero h1 {
  margin: 22px auto 0; max-width: 840px;
  font-size: clamp(40px, 6vw, 66px); line-height: 1.06; letter-spacing: -0.015em;
}
.hero-sub { margin: 26px auto 0; max-width: 660px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-cta { margin-top: 38px; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--faint); }
.spectrum-bar { margin: 52px auto 0; width: 280px; max-width: 70%; height: 6px; border-radius: 999px; background: var(--spectrum); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.card-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; margin: 0; }
.card-text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.card-dark .eyebrow { color: #B9B7BF; }
.card-dark p { color: #B9B7BF; }

.icon-chip {
  width: 42px; height: 42px; border-radius: 13px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* ---------- Axis bars ---------- */
.axis { }
.axis-labels { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); gap: 12px; }
.axis-value { color: var(--faint); font-weight: 500; }
.axis-track {
  position: relative; height: 8px; border-radius: 999px; margin-top: 7px;
  background: var(--spectrum-soft);
}
.axis-track--rev { background: linear-gradient(90deg, #3D6FA8, #7C9C62, #D64550); }
.axis-track--society { background: linear-gradient(90deg, #7C9C62, #E39B2D); }
.axis-track--global { background: linear-gradient(90deg, #3D6FA8, #E39B2D); }
.axis-marker {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid #FFFFFF;
}
.axis-note {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--faint); line-height: 1.55;
}

/* ---------- Spectrum divider ---------- */
.spectrum-rule { height: 5px; width: 100%; border-radius: 999px; background: var(--spectrum); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 4px; font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #000; }
.faq-item summary .faq-icon { flex: none; transition: transform 0.2s ease; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-a { margin: 0; padding: 2px 4px 20px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 780px; }

/* ---------- Ideology link cards ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.idea-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 18px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.idea-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.idea-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin: 0; }
.idea-card p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }

/* ---------- Steps ---------- */
.step-num { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.step-1 { color: var(--red); } .step-2 { color: var(--amber); } .step-3 { color: var(--blue); }

/* ---------- Notice ---------- */
.notice {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 26px;
  display: flex; align-items: center; gap: 14px;
  font-size: 14.5px; color: var(--ink-soft);
}
.notice strong { font-weight: 600; color: var(--ink); }
.notice svg { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9B7BF; margin-top: 104px; }
.site-footer .footer-grid {
  padding: 60px 48px 48px; display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand .brand-name { color: #FFFFFF; }
.footer-brand p { margin: 18px 0 0; font-size: 14px; line-height: 1.65; }
.footer-brand .footer-disclaimer { margin: 16px 0 0; font-size: 12.5px; color: #8A8894; }
.footer-col h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: #FFFFFF; margin: 0; }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-col a { color: #B9B7BF; text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #8A8894; flex-wrap: wrap;
}
.footer-slim { margin-top: 72px; }
.footer-slim .footer-grid { display: flex; align-items: center; justify-content: space-between; padding: 44px 48px 40px; gap: 24px; flex-wrap: wrap; }

/* ---------- Quiz (test page) ---------- */
.quiz-shell { min-height: calc(100vh - 78px); display: flex; flex-direction: column; }
.quiz-wrap { max-width: 780px; width: 100%; margin: 0 auto; padding: 0 24px; }
.quiz-progress { padding-top: 34px; }
.quiz-progress-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quiz-count { font-size: 14px; font-weight: 600; }
.quiz-axis-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
.quiz-bar { margin-top: 14px; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.quiz-bar-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--spectrum); transition: width 0.3s ease; }
.quiz-question { padding-top: 44px; }
.quiz-question h1 {
  font-size: clamp(24px, 3.4vw, 31px); line-height: 1.32; font-weight: 600; letter-spacing: -0.005em;
  margin: 0;
}
.quiz-options { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 15px;
  padding: 16px 20px; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.35;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.quiz-option:hover { border-color: var(--line-strong); background: var(--soft); }
.quiz-option:active { transform: scale(0.995); }
.quiz-option .radio {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid #B9B6AC; background: transparent;
}
.quiz-option .kbd {
  margin-left: auto; flex: none;
  font-size: 11px; color: var(--ghost); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; background: var(--surface);
}
.quiz-option.is-selected { border-color: var(--ink); border-width: 2px; background: var(--soft); font-weight: 600; }
.quiz-option.is-selected .radio { background: var(--ink); border-color: var(--ink); }
.quiz-footer { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz-hint { margin: 22px 0 44px; font-size: 13px; color: var(--ghost); }
.quiz-resume {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px;
  font-size: 14.5px; color: var(--ink-soft); flex-wrap: wrap;
}
.quiz-done-panel { margin-top: 40px; }
.quiz-done-panel p { color: var(--muted); }
.quiz-noscript { max-width: 780px; margin: 40px auto 0; padding: 0 24px; color: var(--muted); }

/* ---------- Results ---------- */
.result-hero { padding-top: 72px; }
.result-hero h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; max-width: 840px; margin: 18px 0 0; }
.result-hero .match-color { color: var(--blue); }
.result-sub { margin: 20px 0 0; max-width: 700px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 24px; margin-top: 44px; align-items: stretch; }
.map-card { display: flex; flex-direction: column; }
.map-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.map-legend { display: flex; gap: 18px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); display: inline-block; }
.legend-ring { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--blue); display: inline-block; box-sizing: border-box; }
.map-holder { margin-top: 20px; display: flex; justify-content: center; flex: 1; align-items: center; }
#resultMap { width: 100%; max-width: 480px; height: auto; }
.match-stack { display: flex; flex-direction: column; gap: 24px; }
.match-card { flex: 1; }
.match-card .match-name { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin-top: 12px; }
.match-meter { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.match-meter .meter-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.match-meter .meter-fill { height: 100%; border-radius: 999px; background: var(--spectrum); }
.match-meter .meter-num { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.match-desc { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; color: #B9B7BF; }
.match-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #FFFFFF; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.match-link:hover { text-decoration: underline; }
.alt-card .alt-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.alt-row { margin-top: 16px; }
.alt-row .alt-name-row { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; }
.alt-row .alt-name-row .alt-pct { color: var(--faint); font-weight: 500; }
.alt-row .alt-track { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--track); }
.alt-row .alt-fill { height: 100%; border-radius: 999px; }
.alt-note { margin-top: 16px; font-size: 12.5px; color: var(--ghost); }
.axes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.axis-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; }
.axis-card .axis-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.axis-card .axis-head .axis-pct { color: var(--faint); font-weight: 500; }
.axis-card .axis-track { height: 10px; margin-top: 12px; }
.axis-card .axis-marker { width: 18px; height: 18px; }
.axis-card .axis-poles { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-top: 9px; color: var(--ink-soft); }
.axis-card p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.result-lower { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.share-stack { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.share-url-box {
  width: 100%; margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--soft); color: var(--ink-soft);
  font-family: var(--font-body); font-size: 13px; line-height: 1.4;
}
.share-note { margin-top: 18px; font-size: 12.5px; line-height: 1.6; color: var(--ghost); }
.next-band {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg); padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px;
}
.next-band .next-title { font-size: 19px; font-weight: 600; }
.next-band p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.next-band .next-actions { display: flex; gap: 14px; flex: none; flex-wrap: wrap; }
.result-empty { max-width: 640px; margin: 72px auto 0; text-align: center; padding: 0 24px; }
.result-empty h1 { font-size: 40px; }
.result-empty p { color: var(--muted); }

/* ---------- Guide (ideology) pages ---------- */
.breadcrumbs { font-size: 13px; color: var(--ghost); }
.breadcrumbs a { color: var(--ghost); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { padding: 0 7px; }
.guide-hero h1 { font-size: clamp(36px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.015em; margin-top: 14px; }
.guide-lede { margin: 22px 0 0; max-width: 780px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.sits-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
}
.sits-map { text-align: center; }
.sits-caption { margin-top: 10px; font-size: 12px; color: var(--faint); }
.sits-axes { display: flex; flex-direction: column; gap: 16px; }
.sits-axes .axis-labels { font-size: 13px; }
.sits-axes .axis-track { height: 8px; margin-top: 6px; }
.sits-axes .axis-marker { width: 15px; height: 15px; background: var(--blue); }
.belief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 26px; }
.belief-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 15px; line-height: 1.55; color: var(--ink-soft);
}
.belief-item svg { flex: none; margin-top: 2px; color: var(--blue); }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; }
.person-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.person-card .person-name { font-size: 15.5px; font-weight: 600; }
.person-card .person-life { color: var(--ghost); font-weight: 500; font-size: 13px; }
.person-card p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.stack-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.related-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; text-decoration: none; color: var(--ink);
}
.related-card:hover { border-color: var(--line-strong); }
.related-card .related-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.related-card h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; margin: 0; }
.related-card .pos-chip {
  font-size: 12px; font-weight: 600; color: var(--faint);
  background: var(--soft); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.related-card p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cta-band {
  background: var(--ink); border-radius: var(--radius-lg); padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band .cta-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #FFFFFF; margin: 0; }
.cta-band .cta-sub { margin-top: 9px; font-size: 15px; color: #B9B7BF; }

/* ---------- Prose pages (methodology / about / privacy) ---------- */
/* Hero and body share the same 780px measure so their left edges align. */
.page-hero { max-width: 780px; padding-top: 56px; padding-bottom: 4px; }
.page-hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.01em; margin-top: 14px; }
.page-lede { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.prose { max-width: 780px; padding-top: 36px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.prose p { margin: 12px 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.prose ul { margin: 12px 0; padding-left: 24px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.prose li { margin: 7px 0; }
.prose code { background: var(--soft); border-radius: 6px; padding: 2px 7px; font-size: 13.5px; }
.prose .formula { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; font-size: 14px; color: var(--ink-soft); overflow-x: auto; }
.prose-note { background: var(--soft); border-radius: 12px; padding: 14px 20px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Empty/utility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .idea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section, .hero { padding-top: 72px; }
  .site-header .container { height: 64px; }
  .header-nav { display: none; }
  .btn.header-cta-mobile { display: inline-flex; }
  .card-grid-2, .card-grid-3, .axes-grid, .result-grid, .result-lower, .guide-cols, .belief-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2, .section-title { font-size: 32px; }
  .sits-card { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .cta-band, .next-band { flex-direction: column; align-items: flex-start; padding: 30px 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; padding: 44px 24px 36px; }
  .footer-slim .footer-grid { flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px 24px; }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .quiz-wrap { padding: 0 22px; }
  .quiz-option .kbd { display: none; }
  .quiz-footer .btn { flex: 1; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .card { padding: 24px; }
  .axis-card { padding: 22px 22px; }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-card .match-name { font-size: 28px; }
  .site-header .container { gap: 12px; }
  .brand-name { font-size: 14px; }
  .btn.header-cta-mobile { padding: 9px 14px; font-size: 13px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 40px 24px 32px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-cta, .share-stack, .next-band { display: none !important; }
  body { background: #fff; }
}
