/* =============================================================================
   The Four Colours — DISC Workshop
   Clean, modern, professional design. Light theme with the four DISC accents.
   ========================================================================== */

:root {
  --red: #e63946;
  --yellow: #f0a500;
  --green: #2a9d5c;
  --blue: #2e6fd6;

  --ink: #14181f;
  --ink-2: #3b4453;
  --muted: #6b7688;
  --line: #e6e9f0;
  --bg: #f6f8fc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-2: #fbfcfe;

  --brand: #2e6fd6;
  --brand-ink: #1f52a8;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05), 0 4px 14px rgba(20, 24, 31, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 24, 31, 0.09);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.wrap-narrow { width: min(760px, 100% - 2.5rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a { color: var(--brand-ink); }

/* ============================ NAV ============================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand-dots { display: inline-flex; gap: 4px; }
.brand-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 13px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Language switcher */
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
}
.lang-switch button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: var(--brand); color: #fff; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 38%, transparent);
}
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-2px); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 12% 0%, rgba(230, 57, 70, 0.10), transparent 60%),
    radial-gradient(55% 55% at 88% 4%, rgba(46, 111, 214, 0.12), transparent 60%),
    radial-gradient(60% 60% at 78% 100%, rgba(240, 165, 0, 0.10), transparent 60%),
    radial-gradient(50% 50% at 22% 100%, rgba(42, 157, 92, 0.10), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 18px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-2);
}
.hero-lead em { color: var(--ink); font-style: italic; }
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hero-card span { font-size: 1.6rem; }
.hero-card b { font-size: 1.02rem; color: var(--ink); }
.hero-card small { color: var(--muted); font-size: 0.78rem; }

/* ============================ SECTIONS ============================ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 54px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-sub { color: var(--ink-2); font-size: 1.05rem; }
.section-sub em { font-style: italic; color: var(--ink); }

/* ============================ COLOUR CARDS ============================ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.color-card {
  --c: var(--blue);
  position: relative;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.color-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--c);
}
.color-card:hover,
.color-card.selected {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
}
.color-card.selected { box-shadow: 0 0 0 2px var(--c), var(--shadow-md); }
.cc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  margin-bottom: 14px;
}
.cc-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.1;
}
.cc-label {
  color: var(--c);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.cc-tag { color: var(--ink-2); font-size: 0.95rem; }
.cc-more {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- Detail drawer ---- */
.detail {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--c);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.detail-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.detail-title { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--ink); }
.detail-sub { color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.detail-close {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--card-2);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
}
.detail-close:hover { color: var(--ink); border-color: var(--muted); }
.detail-summary { color: var(--ink-2); font-size: 1.06rem; margin: 14px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: color-mix(in srgb, var(--c) 82%, #000);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.85rem;
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.detail-cell h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-cell p { color: var(--ink-2); font-size: 0.97rem; }
.detail-cell ul { list-style: none; }
.detail-cell li {
  color: var(--ink-2);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
.detail-cell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.detail-cell.neg li::before { background: var(--muted); }

/* ============================ MATRIX ============================ */
.matrix-block {
  margin-top: 40px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
}
.matrix-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; }
.matrix-controls { max-width: 560px; margin: 22px auto 0; }
.matrix-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.matrix-lbl { width: 68px; text-align: right; font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick {
  --c: var(--blue);
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}
.pick:hover { border-color: var(--c); color: var(--ink); }
.pick.on { background: var(--c); border-color: var(--c); color: #fff; }
.matrix-result {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  color: var(--ink-2);
  font-size: 1.02rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================ QUIZ SHELL ============================ */
.quiz-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 48px);
  box-shadow: var(--shadow-md);
}
.quiz-intro { text-align: center; }
.quiz-intro-icon { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.quiz-intro h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.quiz-intro p { color: var(--ink-2); max-width: 440px; margin: 0 auto 22px; }

.name-input {
  display: block;
  width: min(360px, 100%);
  margin: 0 auto 20px;
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.name-input:focus { outline: none; border-color: var(--brand); }

.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue));
  transition: width 0.4s var(--ease);
}
.quiz-progress-text { font-weight: 600; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.quiz-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 26px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
}

/* Likert */
.likert {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.likert button {
  border: 1.5px solid var(--line);
  background: var(--card-2);
  border-radius: var(--radius-sm);
  padding: 18px 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  position: relative;
}
.likert button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--muted);
  transition: all 0.18s var(--ease);
}
.likert button:nth-child(1)::before { border-color: var(--red); }
.likert button:nth-child(2)::before { border-color: color-mix(in srgb, var(--red) 60%, var(--muted)); }
.likert button:nth-child(4)::before { border-color: color-mix(in srgb, var(--green) 60%, var(--muted)); }
.likert button:nth-child(5)::before { border-color: var(--green); }
.likert button:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.likert button:hover::before { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.likert button.chosen { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* Options (observe + quick) */
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  --c: var(--blue);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--card-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.opt::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent);
}
.opt:hover {
  border-color: var(--c);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.opt.chosen { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.options-quick .opt { justify-content: flex-start; }

/* Colour-blind answering: neutralise every colour cue on the options */
.options.colours-hidden .opt { --c: var(--muted); }
.options.colours-hidden .opt::before { visibility: hidden; }

.colour-toggle {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0 auto 20px;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.colour-toggle:hover { border-color: var(--brand); color: var(--ink-2); }
.colour-toggle-track {
  flex: none;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: background 0.18s var(--ease);
}
.colour-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease);
}
.colour-toggle[aria-checked="true"] { border-color: var(--brand); color: var(--brand-ink); }
.colour-toggle[aria-checked="true"] .colour-toggle-track { background: var(--brand); }
.colour-toggle[aria-checked="true"] .colour-toggle-knob { transform: translateX(13px); }

.quiz-back {
  margin-top: 22px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 0;
}
.quiz-back:hover { color: var(--ink); }

/* ============================ OBSERVE LIVE ============================ */
.observe-run {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.quiz-stage[hidden] { display: none; }
.reading-who {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.reading-who b { color: var(--brand-ink); }
.live-panel {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: sticky;
  top: 90px;
  text-align: center;
}
.live-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.live-lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  min-height: 1.5em;
  margin-bottom: 12px;
}
.live-bars, .result-bars { display: flex; flex-direction: column; gap: 10px; }
.live-bars { margin-top: 14px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-key {
  width: 54px;
  flex: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.bar-track {
  flex: 1;
  height: 12px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--c);
  transition: width 0.5s var(--ease);
}
.bar-val { width: 40px; flex: none; text-align: right; font-weight: 700; font-size: 0.82rem; color: var(--ink); }

/* ============================ RESULTS ============================ */
.result-head { text-align: center; margin-bottom: 30px; }
.result-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.result-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.result-blurb { color: var(--ink-2); max-width: 560px; margin: 0 auto; font-size: 1.04rem; }
.confidence {
  display: inline-block;
  margin-top: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}
.result-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
}
.result-chart { display: grid; place-items: center; }
.result-detail {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-left: 6px solid var(--c);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin-bottom: 28px;
}
.result-detail h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.result-detail p { color: var(--ink-2); margin-bottom: 12px; }
.result-detail p:last-child { margin-bottom: 0; }
.result-detail .rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.result-detail .rd-grid h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.result-detail .rd-grid ul { list-style: none; }
.result-detail .rd-grid li { padding-left: 18px; position: relative; font-size: 0.94rem; color: var(--ink-2); margin-bottom: 3px; }
.result-detail .rd-grid li::before { content: "›"; position: absolute; left: 2px; color: var(--c); font-weight: 800; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================ QUICK ============================ */
.quick-shell { max-width: 620px; }
.quick-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.quick-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); transition: background 0.3s var(--ease);
}
.quick-dots i.done { background: var(--brand); }
.quick-result { text-align: center; }
.quick-result .qr-badge {
  width: 84px; height: 84px; border-radius: 22px;
  display: grid; place-items: center; font-size: 2.4rem;
  margin: 0 auto 16px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.quick-result h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; margin-bottom: 6px; }
.quick-result .qr-label { color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 14px; }
.quick-result p { color: var(--ink-2); max-width: 460px; margin: 0 auto 22px; }

/* ============================ TIPS ============================ */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.tip-card {
  --c: var(--blue);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--c);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.tip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tip-badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--c) 15%, transparent); }
.tip-head b { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.tip-list { list-style: none; margin-bottom: 16px; }
.tip-list.last { margin-bottom: 0; }
.tip-list h5 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 8px; font-weight: 700; }
.tip-list.do h5 { color: var(--green); }
.tip-list.dont h5 { color: var(--red); }
.tip-list li { padding-left: 22px; position: relative; font-size: 0.93rem; color: var(--ink-2); margin-bottom: 5px; }
.tip-list.do li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.tip-list.dont li::before { content: "✕"; position: absolute; left: 2px; color: var(--red); font-weight: 800; }

/* ============================ FAQ ============================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-2); font-size: 0.98rem; }
.faq-item .faq-a em { font-style: italic; color: var(--ink); }

/* ============================ FOOTER ============================ */
.footer { background: var(--ink); color: #c7cfdd; padding: 44px 0; }
.footer-inner { text-align: center; }
.footer-note { max-width: 620px; margin: 0 auto 14px; font-size: 0.92rem; line-height: 1.6; }
.footer-note em { font-style: italic; color: #fff; }
.footer-support {
  max-width: 620px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
  color: #e7ecf5;
}
.footer-support strong { color: #fff; }
.footer-support em { font-style: italic; }
.footer-meta { font-size: 0.85rem; color: #8b95a8; }
.footer-meta a { color: #fff; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ============================ EXTRAS (v2) ============================ */
.quiz-alt { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.quiz-alt a { color: var(--brand-ink); font-weight: 600; }

.result-cta { text-align: center; margin-bottom: 22px; }

/* Communication card links (index #cards) */
.cards-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 8px 0 16px;
}
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 34px; }
.cards-grid-pairs { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.comm-link {
  --c: var(--blue);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.comm-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.comm-link-icon { font-size: 1.5rem; flex: none; }
.comm-link-duo { display: inline-flex; flex: none; }
.comm-link-duo i {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-block; border: 2px solid var(--card);
}
.comm-link-duo i:last-child { margin-left: -7px; }
.comm-link-body { flex: 1; min-width: 0; }
.comm-link-body b { display: block; color: var(--ink); font-size: 1.02rem; }
.comm-link-body small { color: var(--muted); font-size: 0.82rem; }
.comm-link-pair { border-left: 0; border-top: 4px solid var(--c1); }
.comm-link-go { color: var(--c, var(--brand)); font-weight: 800; font-size: 1.2rem; flex: none; }
.comm-link-pair .comm-link-go { color: var(--c2); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .observe-run { grid-template-columns: 1fr; }
  .live-panel { position: static; order: -1; }
  .result-body { grid-template-columns: 1fr; }
  .result-chart { max-width: 280px; margin: 0 auto; }
  .cards-grid-pairs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav { gap: 8px; }
  .nav-right { gap: 6px; }
  .brand { font-size: 1.02rem; min-width: 0; }
  .brand-text { white-space: nowrap; }
  .lang-switch button { padding: 5px 7px; font-size: 0.68rem; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .cards-grid-pairs { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .brand-text { display: none; }
  .color-grid { grid-template-columns: 1fr; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .likert button { padding: 14px 2px; font-size: 0.66rem; }
  .likert button::before { width: 13px; height: 13px; margin-bottom: 6px; }
}

/* ============================ PRINT ============================ */
@media print {
  .topbar, .hero, .nav-toggle, .quiz-back, .result-actions,
  .footer, .matrix-block, .quiz-progress, .skip-link, .lang-switch { display: none !important; }
  body { background: #fff; }
  .section, .section.alt { padding: 12px 0; border: 0; background: #fff; }
  .quiz-shell { box-shadow: none; border: 1px solid #ccc; }
  .quiz-stage[hidden] { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
