/* Traitly — warm-paper self-discovery journal, v2.
   Hardcover self-help book: cream paper, serif display type, terracotta ink,
   one gold accent, and a spine colour for each archetype group. */

:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-deep: #a8481f;
  --gold: #e0a03a;
  --gold-deep: #a8721a;
  --line: rgba(43, 33, 24, 0.14);
  --cream: #f6ecdb;
  --radius: 12px;
  --ego: #c2562f;
  --order: #5f713f;
  --social: #b07714;
  --freedom: #42617a;
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, 0.06);
  --shadow-lg: 0 10px 28px rgba(43, 33, 24, 0.09);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
}

h1 { font-size: 48px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Entrance (hero only, once on load) ---------- */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

[data-enter] { animation: rise-in 0.55s ease both; }
[data-enter="2"] { animation-delay: 0.07s; }
[data-enter="3"] { animation-delay: 0.14s; }
[data-enter="4"] { animation-delay: 0.21s; }
[data-enter="5"] { animation-delay: 0.28s; }

/* ---------- Header ---------- */

.site-head {
  background: rgba(247, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.site-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}

.brand:hover { text-decoration: none; }

/* Four dots — one per archetype group */

.brand-dots {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  flex: none;
}

.brand-dots i { width: 8px; height: 8px; border-radius: 50%; }
.brand-dots i:nth-child(1) { background: var(--ego); }
.brand-dots i:nth-child(2) { background: var(--order); }
.brand-dots i:nth-child(3) { background: var(--social); }
.brand-dots i:nth-child(4) { background: var(--freedom); }

.site-nav { display: flex; gap: 28px; }

.nav-item { display: grid; gap: 1px; }
.nav-item:hover { text-decoration: none; }

.nav-item-name { position: relative; color: var(--ink); font-size: 15px; font-weight: 600; }

.nav-item-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-item-name::after { transform: scaleX(1); }
.nav-item-sub { color: var(--muted); font-size: 12.5px; }

main { padding: 40px 0 64px; }

/* ---------- Buttons (pill) ---------- */

.btn, .at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:hover { text-decoration: none; }
.btn:active, .at-btn:active { transform: scale(0.98); }

.btn-primary, .at-btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .at-btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost, .at-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(43, 33, 24, 0.3);
}

.btn-ghost:hover, .at-btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }



/* ---------- Page head ---------- */

.page-head { margin-bottom: 32px; }
.page-head h1 { margin-bottom: 8px; }

.lede { font-size: 18px; color: var(--muted); max-width: 70ch; margin-bottom: 16px; }

.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

/* ---------- Handbook body (long prose, kept for SEO) ---------- */

.page-body { max-width: 70ch; }
.page-body h2 { margin-top: 48px; }
.page-body h3 { margin-top: 24px; }
.page-body ul, .page-body ol { padding-left: 24px; margin: 0 0 16px; }
.page-body li { margin-bottom: 8px; }

.handbook { counter-reset: chapter; }

.handbook h2 {
  counter-increment: chapter;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.handbook h2::before {
  content: "Nº " counter(chapter);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}

.handbook h2:first-of-type + p::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.1em;
  float: left;
  line-height: 0.9;
  padding-right: 8px;
  color: var(--accent);
}

/* ---------- The four groups (quadrant) ---------- */

.home-archetypes { margin-bottom: 64px; }

.quadrant { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }

.group-block {
  --grp: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--grp);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.group-block:nth-of-type(1) { --grp: var(--ego); }
.group-block:nth-of-type(2) { --grp: var(--order); }
.group-block:nth-of-type(3) { --grp: var(--social); }
.group-block:nth-of-type(4) { --grp: var(--freedom); }

.group-block h3 { font-size: 20px; margin-bottom: 4px; }

.group-motto { font-family: var(--sans); font-weight: 400; font-size: 14.5px; color: var(--grp); }

.group-blurb { font-size: 15px; color: var(--muted); margin: 0 0 14px; }

.group-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.arch-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.arch-card:hover {
  border-color: var(--grp, var(--accent));
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.arch-card-name { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.arch-card-tag { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Home: compact four-group index (the full 12-card grid lives on /archetypes) ---------- */

.quadrant-compact .group-block { padding: 16px 22px; }
.quadrant-compact .group-block h3 { margin-bottom: 0; }

.home-arch-cta { margin: 28px 0 0; }

/* ---------- Home: how it works ---------- */

.home-how { margin-bottom: 64px; max-width: 70ch; }

.how-list { padding-left: 0; list-style: none; counter-reset: how; }

.how-list li {
  counter-increment: how;
  position: relative;
  padding-left: 56px;
  margin-bottom: 16px;
  min-height: 40px;
}

.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ---------- Home hero: the collage ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: stretch;
  min-height: calc(100vh - 69px);
  margin-bottom: 0;
}

.hero-copy { grid-column: span 5; padding-top: 16px; }

.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.hero .lede { font-size: 18px; margin-bottom: 24px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.hero-proof { font-size: 14px; color: var(--muted); margin: 0; }

.hero-stage {
  grid-column: 7 / span 6;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(165deg, #f3e8d2 0%, #ecdcbe 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  min-height: 460px;
}

/* The test window, cut by the frame's right and bottom edges */

.hero-window {
  position: absolute;
  left: 48px;
  top: 48px;
  right: -28px;
  background: var(--card);
  border-radius: 14px 0 0 0;
  box-shadow: var(--shadow-lg);
  padding: 24px 48px 260px 24px;
}

.hw-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.hw-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.hw-fill { display: block; height: 100%; width: 21%; background: var(--accent); border-radius: 999px; }

.hw-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hw-q { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 14px; color: var(--ink); }

.hw-opts { display: grid; gap: 8px; }

.hw-opt {
  display: block;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: 400 14px/1.45 var(--sans);
  color: var(--ink);
}

.hw-opt.is-selected { border-color: var(--accent); background: #fdf1e7; box-shadow: inset 0 0 0 1px var(--accent); }

/* The dealt moment: the small result card loops its three steps */

.hero-card {
  position: absolute;
  left: 32px;
  bottom: 32px;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 20px 22px 18px;
}

.hc-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 6px; }

.hc-name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0; color: var(--ink); }

.hc-stamp {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--freedom);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 8px 0 12px;
}

.hc-steps { display: grid; gap: 7px; }

.hc-step {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.hc-step-label { font-weight: 600; color: var(--ink); }

.hc-track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }

.hc-bar { display: block; height: 100%; border-radius: 999px; background: var(--freedom); }
.hc-step:nth-child(2) .hc-bar { background: var(--ego); }
.hc-step:nth-child(3) .hc-bar { background: var(--order); }

.hc-val { text-align: right; font-variant-numeric: tabular-nums; }

@keyframes hc-in {
  0%, 30% { opacity: 0; transform: translateY(6px); }
  38%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(6px); }
}

.is-running .hc-step { animation: hc-in 6s ease infinite both; }
.is-running .hc-step:nth-child(2) { animation-delay: 0.7s; }
.is-running .hc-step:nth-child(3) { animation-delay: 1.4s; }

.hero-card.is-paused .hc-step { animation-play-state: paused; }

.hc-pause {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffdf8;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-pause::before, .hc-pause::after {
  content: "";
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--muted);
}

.hc-pause::after { margin-left: 3px; }

.hero-card.is-paused .hc-pause::before {
  width: 0;
  height: 0;
  margin: 0 3px 0 0;
  border-radius: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--muted);
  background: transparent;
}

.hero-card.is-paused .hc-pause::after { display: none; }



/* ---------- Dark band (close-word CTA) ---------- */

.band-dark {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 56px 48px;
  margin: 0 0 56px;
}

.band-dark h2 { color: var(--cream); font-size: 34px; font-style: italic; margin-bottom: 8px; }
.band-dark p { color: rgba(246, 236, 219, 0.82); max-width: 60ch; margin-bottom: 22px; }
.band-dark a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.band-dark .btn-primary { background: var(--gold); color: var(--ink); }
.band-dark .btn-primary:hover { background: #c98f2a; color: var(--ink); }

/* ---------- Footer (dark endpaper) ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  background: var(--ink);
}

.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 4px; color: var(--cream); }

.foot-tag { color: rgba(246, 236, 219, 0.72); font-size: 14px; margin-bottom: 16px; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }

.foot-nav a { color: rgba(246, 236, 219, 0.72); font-size: 14px; }
.foot-nav a:hover { color: var(--gold); }

.foot-note { color: rgba(246, 236, 219, 0.5); font-size: 13px; margin: 0; }

/* ---------- Archetype chips ---------- */

.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }

.arch-chips a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.arch-chips a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-2px); }

/* ---------- Tool page ---------- */

.tool-panel { margin: 8px 0 48px; }
.tool-page .page-head { margin-bottom: 24px; }

/* ---------- Archetype result pages ---------- */

.arch-hero { margin-bottom: 8px; }

.arch-hero h1 { font-style: italic; font-size: clamp(38px, 4vw, 56px); }

.arch-hero .kicker { color: var(--grp, var(--accent)); }

.arch-hero .btn { margin-top: 12px; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 34ch;
  margin: 8px 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.arch-summary { font-size: 17px; max-width: 70ch; }

.arch-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }

.tri-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tri, var(--gold-deep));
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tri-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.tri-card:nth-child(2) { --tri: var(--accent); }
.tri-card:nth-child(3) { --tri: var(--freedom); }

.tri-card h2 {
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tri, var(--gold-deep));
  margin-bottom: 8px;
}

.tri-card p { margin: 0; font-size: 16px; }

.arch-section { margin: 40px 0; max-width: 70ch; }
.arch-section h2 { font-size: 26px; }

.strength-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.strength-list li {
  padding: 8px 16px;
  background: #fdf1e7;
  border: 1px solid rgba(194, 86, 47, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  transition: transform 0.15s ease;
}

.strength-list li:hover { transform: translateY(-2px); }

/* The shadow side: gold-edged panel */

.arch-shadow {
  background: #fbf3e4;
  border: 1px solid rgba(224, 160, 58, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 24px 26px;
  margin: 40px 0;
}

.arch-shadow h2 { margin-top: 0; font-size: 26px; }
.arch-shadow p { color: #4a3a28; margin-bottom: 12px; }
.arch-shadow p:last-child { margin-bottom: 0; }

/* Famous examples: small cards */

.example-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.example-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.example-list strong { color: var(--ink); }

/* Closing CTA on result pages sits inside the dark band */

.arch-next { margin-top: 48px; }

.band-dark .arch-chips a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(246, 236, 219, 0.25);
  color: var(--cream);
}

.band-dark .arch-chips a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }



/* ---------- FAQ ---------- */

.faq { margin-top: 48px; max-width: 70ch; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Legal ---------- */

.legal .page-body { color: var(--ink); }
.legal .page-body h2 { font-size: 22px; margin-top: 32px; }

/* ---------- Mobile ---------- */

@media (max-width: 1099px) {
  .hero-card { display: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 8px; min-height: auto; margin-bottom: 48px; }
  .hero-copy { grid-column: auto; padding-top: 0; }
  .hero-stage { grid-column: auto; min-height: 480px; margin-top: 8px; }
  .hero-window { left: 32px; top: 32px; }
  .hero h1 { font-size: clamp(38px, 6vw, 52px); }
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .hero { gap: 4px; margin-bottom: 48px; }
  .hero h1 { font-size: 38px; }
  .container { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 24px; }
  .hero-stage { min-height: 440px; border-radius: 14px; }
  .hero-window { left: 16px; top: 16px; padding: 18px 44px 72px 16px; }
  .hw-q { font-size: 18px; }
  .hw-opt { font-size: 13px; padding: 10px 12px; }
  .hw-opt:nth-child(n+3) { display: none; }
  .quadrant { grid-template-columns: 1fr; }
  .arch-tri { grid-template-columns: 1fr; }
  .example-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .site-head-in { flex-direction: column; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 14px; flex-wrap: wrap; row-gap: 2px; }
  .nav-item { display: inline-flex; gap: 8px; align-items: baseline; }
  .nav-item-name { font-size: 14px; white-space: nowrap; }
  .nav-item-sub { display: none; }
  .band-dark { padding: 36px 22px; border-radius: 16px; }
  .band-dark h2 { font-size: 26px; }
}

/* ---------- Reduced motion: everything rests ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-enter] { opacity: 1; transform: none; }
  .is-running .hc-step { opacity: 1; }
}


/* ---------- Tool-test pages: breadcrumbs, question preview, CTA links ---------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.crumbs a { color: var(--muted); border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.crumbs .crumb-sep { color: var(--gold-deep); }
.crumbs .crumb-here { color: var(--ink); font-weight: 600; }

.tool-page .page-head { margin-bottom: 20px; }
.tool-page .page-head h1 { margin-bottom: 8px; }

.qs-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 26px;
  margin: 0 0 48px;
  box-shadow: var(--shadow-sm);
  max-width: 70ch;
}

.qs-preview summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}

.qs-preview summary:hover { color: var(--accent); }

.qs-preview ol { margin: 16px 0 0; padding-left: 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.qs-preview li { margin-bottom: 6px; }

.cta-links { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }

.cta-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(246, 236, 219, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cta-link:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); }
.cta-link-name { font-weight: 600; }
.cta-link-sub { font-size: 13.5px; color: rgba(246, 236, 219, 0.72); }

@media (max-width: 640px) {
  /* Keep the whole first screen of the test answerable: the lede repeats
     the kicker line, and the note tightens instead of hiding. */
  .tool-page .lede { display: none; }
  .tool-page .page-head { margin-bottom: 16px; }
  .tool-page .page-head h1 { font-size: 34px; }
  .crumbs { margin-bottom: 6px; }
  .cta-links { max-width: none; }
}


/* ---------- Home: tests directory + chooser ---------- */

.home-tests { margin-bottom: 64px; }

.tests-lede { color: var(--muted); max-width: 70ch; }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

.test-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}

.test-card h3 { font-size: 21px; margin-bottom: 8px; }

.test-blurb { font-size: 15px; color: var(--muted); margin-bottom: 12px; }

.test-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.test-card .btn { margin-top: auto; }

.home-choose { margin-bottom: 64px; max-width: 70ch; }

.choose-list { list-style: none; padding: 0; margin: 16px 0 8px; }

.choose-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

.choose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px #fff7e0;
}

.choose-note { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Test pages: other-tests cross-links ---------- */

.other-tests { margin: 0 0 48px; }

.other-tests h2 { font-size: 26px; }

.other-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }

.other-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.other-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.other-card strong { font-family: var(--serif); font-weight: 700; font-size: 18px; }

.other-card span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

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

@media (max-width: 640px) {
  .other-grid { grid-template-columns: 1fr; }
  .other-tests { margin-bottom: 40px; }
}


/* Related pages with a reason line, inside dark next-step bands (sin + archetype pages) */
.band-dark .related-list { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; gap: 12px; }
.band-dark .related-list li { font-size: 14.5px; line-height: 1.55; color: rgba(246, 236, 219, 0.82); }
.band-dark .related-list li a { color: var(--cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246, 236, 219, 0.35); }
.band-dark .related-list li a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.band-dark .related-list .related-why { display: block; margin-top: 2px; font-weight: 400; }
