:root {
  color-scheme: dark;
  --bg: #0c1220;
  --panel: #141d2e;
  --panel-raised: #1a263a;
  --ink: #f6f0e5;
  --muted: #c5bdaf;
  --gold: #d9b46b;
  --gold-light: #f4d99c;
  --line: #3c4558;
  --gilt-line: #d9b46b55;
  --accent: var(--gold);
  --accent-glow: #bb854e35;
  --shadow: 0 18px 45px #05070d55;
  --display: Georgia, 'Times New Roman', serif;
  --page-width: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --header-height: 74px;
  background-color: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 system-ui, sans-serif;
}

main {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0, #1c263d 0, transparent 47rem);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .mode-choice b { font-family: var(--display); font-weight: 600; }
h1 em, h2 em { color: var(--gold-light); font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(var(--gutter), calc((100% - var(--page-width) + 2 * var(--gutter)) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0e1422f5;
  border-bottom: 1px solid var(--gilt-line);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: .875rem; font-weight: 700; letter-spacing: .12em; line-height: 1.3; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; margin-top: 4px; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .09em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); font-size: .875rem; font-weight: 550; }
.nav a { color: var(--muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
.nav .nav-cta { padding: 9px 14px; border: 1px solid var(--gilt-line); border-radius: 6px; color: var(--gold-light); }
.nav .nav-cta:hover { border-color: var(--gold); background: #d9b46b18; }
.menu-btn { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--gilt-line); border-radius: 6px; background: var(--panel); color: var(--gold-light); cursor: pointer; }

.container, .hero-inner, .footer-inner, .copyright {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: clamp(580px, 62vw, 700px);
  background-color: #101728;
  background-image: linear-gradient(90deg, #0b1120 3%, #0b1120ed 34%, #0b112078 67%, #0b112026), url('../images/virtues-hero.webp');
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--gilt-line);
}

.hero-inner { padding-block: clamp(62px, 8vw, 112px); }
.eyebrow { display: inline-block; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.hero h1 { max-width: 720px; margin: 16px 0 22px; font-size: clamp(2.6rem, 5.5vw, 4.9rem); line-height: 1.02; letter-spacing: -.04em; }
.hero p { max-width: 53ch; color: #e0d8cc; font-size: clamp(1rem, 1.6vw, 1.17rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}

.btn-gold { background: linear-gradient(135deg, #f3dba3, #d1a355); color: #291d16; }
.btn-gold:hover:not(:disabled) { background: linear-gradient(135deg, #ffe9b4, #dfb46a); box-shadow: 0 5px 18px #d5a94a33; }
.btn-outline, .btn-quiet { border-color: var(--gilt-line); background: #101827; color: var(--gold-light); }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.btn-outline:hover, .btn-quiet:hover:not(:disabled) { border-color: var(--gold); background: var(--panel-raised); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 14px clamp(18px, 3vw, 44px); margin-top: 36px; }
.hero-meta div { display: grid; gap: 3px; }
.hero-meta strong { color: var(--gold-light); font: 600 1.4rem/1.1 var(--display); }
.hero-meta span { color: var(--muted); font-size: .75rem; letter-spacing: .055em; }

.disclaimer {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--page-width) - 2 * var(--gutter)));
  margin: 28px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--gilt-line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #182235;
  color: var(--muted);
  font-size: .9375rem;
}
.disclaimer b { color: var(--ink); }

.section { padding-block: clamp(42px, 6vw, 78px); }
.section + .section { border-top: 1px solid #d9b46b26; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.025em; }
.section-lede { max-width: 65ch; margin-top: 10px; color: var(--muted); }
.section-head > a { flex-shrink: 0; }

#sample-report { scroll-margin-top: calc(var(--header-height) + 18px); }
.sample-report-panel {
  padding: clamp(16px, 4vw, 48px);
  border: 1px solid var(--gilt-line);
  border-radius: 10px;
  background: linear-gradient(120deg, var(--panel-raised), var(--panel));
}
.sample-report-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: 24px;
}
.sample-report-card {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 10px;
}
.sample-report-card h3 { font-size: 1.125rem; }
.sample-report-preview {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--gilt-line);
  border-radius: 7px;
  background: #0f1422;
  font: inherit;
  text-align: start;
  cursor: zoom-in;
}
.sample-report-preview img { display: block; width: 100%; height: auto; }
.sample-report-preview span { display: block; padding: 10px 12px; color: var(--gold-light); font-weight: 650; }
.sample-report-preview[hidden], .sample-report-paginated .sample-report-preview span { display: none; }
.sample-report-preview:hover span, .sample-report-preview:focus-visible span { text-decoration: underline; }
.sample-report-book {
  position: relative;
  overflow: clip;
  border-radius: 7px;
  perspective: 850px;
}
.sample-report-book .sample-report-preview:focus-visible { outline-offset: -4px; }
.sample-report-corner {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sample-report-corner::before {
  content: "";
  position: absolute;
  inset: 12px 0 0 12px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, var(--gold-light) 48%, #977344 52%, #58442c);
}
.sample-report-next { right: 0; }
.sample-report-previous { left: 0; }
.sample-report-previous::before { inset: 12px 12px 0 0; transform: scaleX(-1); }
.sample-report-corner:hover::before, .sample-report-corner:focus-visible::before { filter: brightness(1.22); }
.sample-report-corner:focus-visible { outline-offset: -4px; }
.sample-report-corner[aria-disabled="true"] { opacity: 0; pointer-events: none; }
.sample-report-corner[aria-disabled="true"]:focus-visible { opacity: .45; }
.sample-report-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sample-report-turn {
  position: absolute;
  inset: 0;
  pointer-events: none;
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid var(--gilt-line);
  border-radius: 7px;
  background: #0f1422;
  box-shadow: 7px 0 18px #05070dab;
}
.sample-report-turn img { display: block; width: 100%; height: auto; }
.sample-image-dialog {
  width: min(647px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gilt-line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.sample-image-dialog::backdrop { background: #05070de0; }
.sample-image-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gilt-line);
  background: var(--panel);
}
.sample-image-header h2 { font-size: 1.125rem; }
.sample-image-dialog img { display: block; width: 100%; height: auto; }

@media (max-width: 700px) {
  .sample-report-pages { grid-template-columns: 1fr; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.test-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background-color: var(--panel);
  box-shadow: var(--shadow);
  overflow: clip;
  transition: border-color .18s;
}
.test-card:hover, .test-card:focus-within { border-color: var(--accent); }

.theme-virtues { --accent: #b7cba1; --accent-glow: #4f7f693f; }
.theme-sins { --accent: #e4a9af; --accent-glow: #8c3a5557; }

.card-art {
  display: grid;
  place-items: center;
  height: 138px;
  background-color: #1a2032;
  background-image: radial-gradient(ellipse at center, var(--accent-glow), #0b1120d4 80%), url('../images/virtues-hero.webp');
  background-size: cover;
  background-position: center, 67% 40%;
  border-bottom: 1px solid var(--gilt-line);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 94px;
  border: 1px solid var(--accent);
  border-radius: 40px 40px 6px 6px;
  background: radial-gradient(ellipse at 50% 25%, var(--accent-glow), #0c1220 75%);
  box-shadow: 0 0 0 5px #0c122088, 0 0 0 6px var(--gilt-line);
}
.card-icon img { width: 37px; height: 37px; }
.category-icon { filter: brightness(0) saturate(100%) invert(85%) sepia(39%) saturate(627%) hue-rotate(333deg) brightness(103%) contrast(91%); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2vw, 25px); }
.test-card h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; }
@media (min-width: 821px) {
  .test-card h3 { min-height: 2.3em; }
}
.test-card p { flex: 1; margin-top: 10px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.text-link { color: var(--gold-light); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .27em; text-decoration-color: #d9b46b80; }
.text-link:hover { text-decoration-color: currentColor; }
.mini-meta { color: var(--muted); font-size: .8125rem; }

.pair-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.pair-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 18px 6px;
  border: 1px solid var(--gilt-line);
  border-radius: 52px 52px 9px 9px;
  background: linear-gradient(180deg, #253048, #141d2e);
  text-align: center;
}
.pair-card img { width: 29px; height: 29px; margin: 2px 0 7px; }
.pair-card h3 { font-size: 1.125rem; line-height: 1.2; }
.pair-card p { color: var(--muted); font-size: .8125rem; }
.pair-card b { display: block; color: var(--gold-light); font-size: .875rem; }

.feature-band {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 24px clamp(24px, 6vw, 72px);
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background: linear-gradient(120deg, #302133, #18263c);
}
.feature-band h3 { margin: 6px 0 12px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.12; }
.feature-band p, .feature-list { color: #e2d9ce; }
.feature-list { display: grid; gap: 9px; font-size: .9375rem; }
.feature-list div { display: flex; gap: 12px; align-items: baseline; }
.check { color: var(--gold-light); }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.faq-item[open], .faq-item:hover { border-color: var(--gilt-line); }
.faq-item summary { padding: 16px 20px; color: var(--ink); font-weight: 650; cursor: pointer; }
.faq-item summary::marker { color: var(--gold); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }
.inline-guide .faq-list, .inline-guide .inline-callout, .guide-cta { margin-top: 16px; }
.guide-icon { width: 20px; height: 20px; margin-inline: 4px; vertical-align: middle; }
.guide-pair { color: var(--muted); margin-inline-start: 6px; font-size: .75rem; font-weight: 550; }
.report-dialog, .report-order {
  width: min(100%, 540px);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.report-dialog { max-width: calc(100% - 36px); }
.report-dialog::backdrop { background: #05070dbe; }
.report-dialog h2 { margin-bottom: 12px; font-size: 1.85rem; }
.report-dialog p + p, .report-dialog form { margin-top: 12px; }
.report-price { color: var(--gold-light); font-weight: 700; }
.report-daily-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #c99b55;
  border-radius: 10px;
  background: radial-gradient(ellipse at top left, #5a3f27 0, #292437 55%, #171e30 100%);
  box-shadow: inset 0 1px 0 #f6d38b28, 0 6px 30px #d9a64b1a;
}
.report-daily-offer[hidden] { display: none; }
.report-offer-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f4d28d;
  color: #21160b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.report-offer-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.report-offer-prices .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.report-offer-prices strong { color: #ffe2a5; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.15; }
.report-offer-prices del { color: #d9cbba; font-size: .875rem; }
.report-dialog .report-offer-caption { margin-top: 5px; color: #e1d9ca; font-size: .74rem; }
.report-offer-clock > p {
  margin-bottom: 6px;
  color: #ffe2a5;
  text-align: center;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .13em;
}
.report-offer-digits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; text-align: center; }
.report-offer-digits > span {
  display: grid;
  gap: 3px;
  padding: 6px 2px;
  border: 1px solid #d8ae624f;
  border-radius: 6px;
  background: linear-gradient(#222535 49%, #101423 50%);
}
.report-offer-digits b {
  color: #fff0ca;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.report-offer-digits small { color: #e0d1b8; font-size: .6rem; }
.report-offer-expired { color: var(--muted); font-size: .875rem; }
@media (max-width: 480px) {
  .report-daily-offer { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .report-offer-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .report-offer-prices { margin-top: 0; }
  .report-dialog .report-offer-caption { flex-basis: 100%; margin-top: 0; }
  .report-offer-digits > span { padding-block: 5px; }
}
.report-disclosure { color: var(--muted); font-size: .875rem; }
.report-consent { display: flex; gap: 10px; align-items: start; margin-top: 16px; font-size: .875rem; }
.report-consent[hidden] { display: none; }
.report-consent input { flex: none; margin-top: .35em; accent-color: var(--gold); }
.report-consent + p, .report-reference, .report-policy-links { margin-top: 12px; }
.report-reference code { overflow-wrap: anywhere; }
.report-policy-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.report-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.report-controls [hidden] { display: none; }
.report-controls .btn:disabled { opacity: .55; cursor: not-allowed; }
.report-payment { gap: 8px; }
.report-payment img { flex: none; object-fit: contain; }

.site-footer { background: #090e18; border-top: 1px solid var(--gilt-line); padding: 42px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer p { max-width: 42ch; margin-top: 12px; color: var(--muted); font-size: .875rem; }
.footer-links { display: grid; align-content: start; gap: 8px; color: var(--muted); font-size: .875rem; }
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.analytics-settings {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.analytics-settings:hover { color: var(--gold-light); }
.analytics-consent {
  position: fixed;
  z-index: 30;
  right: var(--gutter);
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 2 * var(--gutter)));
  padding: 16px;
  border: 1px solid var(--gilt-line);
  border-radius: 10px;
  background: #131c2b;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: .875rem;
}
.analytics-consent h2 { margin-bottom: 5px; color: var(--ink); font-size: 1.25rem; }
.analytics-consent p + p { margin-top: 4px; }
.analytics-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.analytics-consent-actions .btn { padding-inline: 7px; }
.analytics-consent [role="status"]:not(:empty) { margin-top: 8px; }
#site-analytics { scroll-margin-top: calc(var(--header-height) + 18px); }
.footer-title { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .13em; }
.copyright { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }

/* Quiz and guide headers share the same image and dark text backing. */
.quiz-page-intro, .quiz-shell { max-width: 990px; margin-inline: auto; padding-inline: var(--gutter); }
.quiz-info { max-width: 990px; margin-inline: auto; padding: 0 var(--gutter) clamp(36px, 6vw, 66px); }
.quiz-info .section-title { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.scoring-list {
  margin: 16px 0 0;
  padding: 18px 20px 18px 44px;
  border: 1px solid var(--gilt-line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
}
.scoring-list li + li { margin-top: 10px; }
.scoring-list li::marker { color: var(--gold-light); font-weight: 700; }
.quiz-page-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-top: 14px; }
.quiz-info-links { display: flex; gap: 16px; }
.quiz-sample-list, .quiz-score-meanings {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  border: 1px solid var(--gilt-line);
  border-radius: 9px;
  background: var(--panel);
}
.quiz-sample-list > li, .quiz-score-meanings > div {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 5fr);
  gap: 4px 16px;
  padding: 12px 16px;
}
.quiz-sample-list > li + li, .quiz-score-meanings > div + div { border-top: 1px solid var(--gilt-line); }
.quiz-sample-list strong, .quiz-score-meanings dt { color: var(--gold-light); font-weight: 700; }
.quiz-score-meanings dd { margin: 0; }
.quiz-guide-link { margin-top: 20px; }
#sample-questions, #score-meanings { scroll-margin-top: calc(var(--header-height) + 18px); }
@media (max-width: 580px) {
  .quiz-sample-list > li, .quiz-score-meanings > div { grid-template-columns: 1fr; }
}
.quiz-page-intro a { display: inline-flex; align-items: center; min-height: 44px; }
.quiz-shell { padding-block: 16px clamp(50px, 8vw, 90px); }
.home-quiz { padding-block: clamp(36px, 6vw, 68px); }
.quiz-heading, .content-heading {
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background-color: var(--panel);
  background-image: radial-gradient(ellipse at 85% 0, var(--accent-glow), transparent 55%), linear-gradient(90deg,#101827 22%,#101827db 64%,#1018279e), url('../images/virtues-hero.webp');
  background-size: cover;
  background-position: center, center, 67% 41%;
}
.quiz-heading { margin-bottom: 16px; }
.quiz-heading h1, .quiz-heading h2, .content-heading h1 { margin: 9px 0; font-size: clamp(2.1rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.025em; }
.quiz-heading p, .content-heading p { max-width: 62ch; color: #e2d9cc; }
.quiz-panel, .result-panel { background: linear-gradient(145deg, var(--panel-raised), var(--panel) 75%); border: 1px solid var(--gilt-line); border-radius: 12px; box-shadow: var(--shadow); }
.quiz-start, .quiz-stage, .result-panel { padding: clamp(20px, 4vw, 38px); }
.quiz-start h2 { margin: 4px 0 8px; font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.15; }
.quiz-start > p { max-width: 66ch; color: var(--muted); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.mode-choice, .answer-btn { border: 1px solid var(--line); border-radius: 7px; background: #101827; color: var(--ink); text-align: left; cursor: pointer; }
.mode-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 86px;
  padding: 16px 18px;
}
.mode-input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.mode-choice b { display: block; margin-bottom: 4px; font-size: 1.2rem; }
.mode-detail { color: var(--muted); font-size: .875rem; }
.mode-status {
  visibility: hidden;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-light);
  color: #251813;
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}
.mode-choice:hover, .answer-btn:hover { border-color: var(--accent); }
.mode-choice:has(.mode-input:checked) {
  border-color: var(--gold-light);
  background: linear-gradient(110deg, #503b2d, #232d40 84%);
  box-shadow: inset 4px 0 var(--gold);
}
.mode-choice:has(.mode-input:checked) .mode-status { visibility: visible; }
.mode-choice:has(.mode-input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.quiz-load-status { margin-top: 8px; font-size: .875rem; }
.answer-btn.selected { border-color: var(--accent); background: linear-gradient(110deg, var(--accent-glow), #182235 80%); }
.quiz-disclosure { margin-top: 15px; font-size: .875rem; }
.quiz-stage, .result-panel { display: none; }
.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; margin-bottom: 8px; color: var(--muted); font-size: .8125rem; }
.progress-top span:first-child { color: var(--gold-light); font-weight: 700; }
.progress-track, .score-track { height: 7px; border-radius: 20px; background: #374258; overflow: hidden; }
.progress-fill, .score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b3824e, var(--gold-light)); }
.progress-fill { width: 0; transition: width .2s; }
.question-kicker { margin-top: 24px; color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .14em; }
.question-text { margin: 7px 0 18px; font: 600 clamp(1.35rem, 3vw, 1.95rem)/1.3 var(--display); }
.answer-list { display: grid; gap: 8px; }
.answer-btn { display: flex; align-items: center; min-height: 48px; gap: 11px; padding: 9px 13px; }
.answer-btn .radio { width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #9c9ca6; border-radius: 50%; }
.answer-btn.selected .radio { border: 5px solid var(--accent); }
.quiz-controls { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.quiz-controls .btn:disabled { opacity: .48; cursor: not-allowed; }

.result-top { text-align: center; }
.result-symbol { display: grid; place-items: center; width: 58px; height: 70px; margin: 0 auto 12px; border: 1px solid var(--accent); border-radius: 34px 34px 7px 7px; background: radial-gradient(var(--accent-glow), #111a2a); color: var(--accent); font: 600 1.7rem var(--display); }
.result-top h2 { margin: 8px 0; font-size: clamp(1.8rem, 4vw, 2.85rem); line-height: 1.12; }
.result-top p { max-width: 66ch; margin-inline: auto; color: var(--muted); }
#resultSub { color: var(--gold-light); font-weight: 650; }
#resultDesc { margin-top: 12px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 32px); margin-block: 24px; }
.chart-wrap { display: grid; place-items: center; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: radial-gradient(#1f2a40, #101827); }
.radar { display: block; width: 100%; max-width: 390px; }
.score-list { display: grid; align-content: center; gap: 10px; }
.score-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: .875rem; }
.score-label span:last-child { color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; }
.result-insight, .inline-callout { padding: 14px 18px; border: 1px solid var(--gilt-line); border-left: 3px solid var(--gold); border-radius: 6px; background: #262538; color: #ebe0d0; font-size: .9375rem; }
.result-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 20px; }
.btn-ai-test {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 8px;
  border-color: #ffe7ad;
  box-shadow: inset 0 1px 0 #fff4d58c, 0 3px 18px #d9b46b66;
}
.btn-ai-test span { font-size: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .btn-ai-test:not(:disabled)::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 -55%;
    width: 50%;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 18%, #fff5d9ae 49%, transparent 80%);
    animation: ai-test-shimmer 2.3s ease-out 2;
  }
  .btn-ai-test:not(:disabled) span { animation: ai-test-spark 2.3s ease-in-out 2; }
}
@keyframes ai-test-shimmer {
  0%, 12% { transform: translateX(0); }
  58%, 100% { transform: translateX(330%); }
}
@keyframes ai-test-spark {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(1.23); }
}
.result-note { margin-top: 12px; color: var(--muted); font-size: .875rem; }
#tests, #quizApp, #categories, #virtue-guide, #sin-guide, #scoring, #faq, #beginQuiz, .question-text, .result-panel { scroll-margin-top: calc(var(--header-height) + 18px); }

.content-page { padding: clamp(24px, 5vw, 52px) max(var(--gutter), calc((100% - 940px) / 2)) clamp(54px, 8vw, 98px); }
.content-heading { margin-bottom: 24px; }
.content-page > h2 { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--gilt-line); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; }
.content-page > h2[id] { scroll-margin-top: calc(var(--header-height) + 18px); }
.content-page > h2 + p, .content-page > p { margin: 10px 0; color: var(--muted); }
.content-page p > a:not(.btn) { color: var(--gold-light); text-decoration: underline; text-underline-offset: .25em; }
.virtue-detail { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 4px 15px; align-items: start; margin: 12px 0; padding: 19px; border: 1px solid var(--gilt-line); border-radius: 9px; background: linear-gradient(105deg, var(--panel-raised), var(--panel) 80%); }
.guide-emblem { grid-row: span 3; display: grid; place-items: center; height: 52px; border: 1px solid var(--gilt-line); border-radius: 24px 24px 5px 5px; background: #111827; }
.guide-emblem img { width: 24px; height: 24px; }
.virtue-detail h3 { font-size: 1.4rem; line-height: 1.15; }
.virtue-detail small { color: var(--accent); font-size: .75rem; letter-spacing: .06em; }
.virtue-detail p { color: var(--muted); }
.content-page > .inline-callout { margin-top: 22px; }
.content-page > p > .btn { margin-top: 14px; }
.contact-section {
  margin-top: 24px;
  padding: clamp(16px, 4vw, 28px);
  scroll-margin-top: calc(var(--header-height) + 18px);
  border: 1px solid var(--gilt-line);
  border-radius: 9px;
  background: var(--panel);
}
.contact-section p { margin-top: 8px; color: var(--muted); }
.contact-field { display: block; margin-top: 16px; color: var(--gold-light); font-weight: 650; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.contact-actions input {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 350px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.contact-actions button[hidden] { display: none; }
.contact-section [role="status"]:empty { margin: 0; }
.sins-guide {
  padding-block: clamp(16px, 3vw, 36px) clamp(48px, 8vw, 96px);
}
.sins-guide-hero {
  display: flex;
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--page-width));
  min-height: clamp(330px, 42vw, 510px);
  padding: clamp(24px, 6vw, 76px);
  border: 1px solid var(--gilt-line);
  border-radius: 16px;
  background: linear-gradient(90deg, #0c1220 2%, #0c1220f2 25%, #0c122085 56%, #0c12200d 100%),
    url('../images/virtues-hero.webp') 65% 47% / cover;
}
.sins-guide-hero-copy { max-width: 530px; }
.sins-guide-hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.037em;
}
.sins-guide-hero p { max-width: 42ch; margin-top: 18px; color: #e1d8c9; }
.sins-guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sins-guide-layout {
  display: grid;
  grid-template-columns: minmax(164px, .25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(28px, 5vw, 60px);
}
.sins-guide-nav {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--gilt-line);
}
.sins-guide-nav p { margin-bottom: 8px; color: var(--gold-light); font-weight: 700; }
.sins-guide-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sins-guide-nav a {
  display: block;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: .9375rem;
}
.sins-guide-nav a:hover, .sins-guide-nav a:focus-visible {
  border-color: var(--gilt-line);
  background: var(--panel-raised);
  color: var(--gold-light);
}
.sins-guide-body { min-width: 0; }
.sins-guide-intro h2, .sins-guide-faq h2 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.15;
}
.sins-guide-intro p { max-width: 76ch; margin-top: 12px; color: var(--muted); }
.sins-guide-intro a, .guide-table a, .sins-guide .faq-item a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: .2em;
}
#sin-overview, #sin-pairings, #sins-guide-faq-title, .sin-detail {
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.guide-table-wrap {
  overflow-x: auto;
  margin-block: 26px 32px;
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background: var(--panel);
}
.guide-table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: start; }
.guide-table caption { padding: 14px 16px; text-align: start; color: var(--gold-light); font-weight: 700; }
.guide-table th, .guide-table td { padding: 10px 14px; border-top: 1px solid var(--gilt-line); vertical-align: top; }
.guide-table th { text-align: start; }
.guide-table thead { background: var(--panel-raised); }
.guide-table tbody tr:nth-child(even) { background: #ffffff05; }
.guide-table td[lang="la"] { font-style: italic; }
#compare-tests { scroll-margin-top: calc(var(--header-height) + 18px); }
.quiz-comparison > h2 { max-width: 28ch; }
.quiz-comparison .section-lede { max-width: 80ch; }
.comparison-table th[scope="row"] { width: 26%; }
.comparison-table td { width: 37%; color: var(--muted); }
.quiz-comparison-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 5vw, 56px);
}
.quiz-comparison-copy h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.quiz-comparison-copy p { margin-top: 10px; color: var(--muted); }
@media (max-width: 700px) {
  .quiz-comparison-copy { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .comparison-table { min-width: 0; table-layout: fixed; font-size: .875rem; }
  .comparison-table th, .comparison-table td { padding: 8px 6px; overflow-wrap: anywhere; }
}
.sin-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  margin-block: 16px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--gilt-line);
  border-radius: 12px;
  background: linear-gradient(110deg, var(--panel-raised), var(--panel));
}
.sin-detail header { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.sin-detail header img {
  box-sizing: content-box;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.sin-detail h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.05; }
.sin-detail small { color: var(--accent); }
.sin-detail p { color: var(--muted); }
.sin-detail p strong { display: block; margin-bottom: 4px; color: var(--gold-light); font-size: .93rem; }
.sin-detail p + p { padding-left: clamp(12px, 3vw, 24px); border-left: 1px solid var(--gilt-line); }
.sin-detail:target { border-color: var(--gold); }
.sins-guide-faq { margin-top: clamp(32px, 6vw, 56px); }
.sins-guide-cta { margin-top: 20px; }

@media (max-width: 900px) {
  .sins-guide-layout { grid-template-columns: minmax(0, 1fr); }
  .sins-guide-nav {
    position: static;
    padding: 14px;
    border: 1px solid var(--gilt-line);
    border-radius: 10px;
    background: var(--panel);
  }
  .sins-guide-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .sins-guide-nav a { padding: 5px 9px; border-color: var(--gilt-line); }
}
@media (max-width: 580px) {
  .sins-guide-hero {
    min-height: 0;
    padding-top: 112px;
    background-image: linear-gradient(0deg, #0c1220 4%, #0c1220f2 52%, #0c122038 100%), url('../images/virtues-hero.webp');
    background-position: center, 66% 37%;
  }
  .sins-guide-actions .btn { width: 100%; }
  .guide-table :is(th, td):first-child { position: sticky; left: 0; background: var(--panel-raised); }
  .sin-detail { grid-template-columns: 1fr; }
  .sin-detail p + p { padding: 12px 0 0; border: 0; border-top: 1px solid var(--gilt-line); }
}

@media (max-width: 1040px) {
  .nav { gap: 12px; }
  .nav .nav-cta { padding-inline: 10px; }
}

@media (max-width: 980px) {
  :root { --header-height: 66px; }
  .pair-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; padding: 12px var(--gutter) 18px; background: #111827; border-bottom: 1px solid var(--gilt-line); }
  .nav.open { display: grid; gap: 2px; }
  .nav a { display: block; padding: 9px 6px; }
  .nav .nav-cta { margin-top: 4px; }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .test-card { display: grid; grid-template-columns: minmax(128px, 29%) minmax(0, 1fr); }
  .card-art { height: auto; border-right: 1px solid var(--gilt-line); border-bottom: 0; }
  .feature-band { grid-template-columns: 1fr; }
  .result-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .hero { min-height: auto; background-image: linear-gradient(90deg,#0b1120f0,#0b1120a8), linear-gradient(0deg,#0b1120 3%,transparent 84%), url('../images/virtues-hero.webp'); background-position: center, center, 62% center; }
  .hero-inner { padding-block: 54px 44px; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 3.2rem); text-wrap: initial; }
  .hero-actions .btn { width: 100%; }
  .hero-meta strong { font-size: 1.16rem; }
  .hero-meta span { font-size: .75rem; letter-spacing: 0; }
  .section-head { display: block; }
  .section-head > a { display: inline-block; margin-top: 12px; }
  .test-card { grid-template-columns: 1fr; }
  .card-art { height: 100px; border-right: 0; border-bottom: 1px solid var(--gilt-line); }
  .card-icon { width: 54px; height: 66px; }
  .card-icon img { width: 28px; height: 28px; }
  .pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .mode-grid, .result-grid { grid-template-columns: 1fr; }
  .quiz-panel .btn, .result-actions .btn { padding-inline: 9px; }
  .quiz-controls .btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
