/* ============================================================
   SPEAKER DNA  ·  Complete-Presenter edition
   Card-with-header-bar layout  ·  violet/indigo theme
   (palette derived from the Speaker DNA gradient #667eea → #764ba2)
   ============================================================ */

:root {
  /* ---- brand gradient + primary ---- */
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-soft: linear-gradient(135deg, #7d8ff0 0%, #8a63b8 100%);
  --primary: #6a4fd6;
  --primary-strong: #5a3fc0;
  --primary-ink: #4a2f96;
  --primary-tint: #f1effc;       /* selected option bg */
  --primary-tint-2: #f7f5fe;
  --primary-glow: rgba(118, 75, 162, 0.22);
  --primary-ring: rgba(106, 79, 214, 0.18);

  /* ---- neutrals (cool, violet-leaning ink) ----
     Body text + surfaces defer to the active theme's tokens when present
     (Salient exposes --nectar-font-color / --nectar-bg-color), otherwise
     the original Speaker DNA values apply. Secondary/tertiary inks stay on
     the violet-grey scale that is part of the quiz's identity. */
  --bg: var(--nectar-bg-color, #FAFAFE);
  --ink: var(--nectar-font-color, #2A2540);
  --ink-2: #645f7a;
  --ink-3: #938fa8;
  --card: var(--nectar-bg-color, #ffffff);
  --border: rgba(42, 37, 64, 0.10);
  --border-strong: rgba(42, 37, 64, 0.18);

  /* ---- warm spark accent (used sparingly, like CP's sand) ---- */
  --warm: #f0a868;
  --warm-tint: #fff5ec;
  /* amber progress fill — deliberately OFF the violet header so it reads clearly */
  --progress: linear-gradient(90deg, #F5A623 0%, #FFCF5C 100%);

  /* ---- archetype accents — harmonised violet family ---- */
  --spark: #8257f0;        --spark-2: #9b5de5;
  --cartographer: #5a63e0; --cartographer-2: #6e54c8;
  --magnet: #9a5fd8;       --magnet-2: #c25bbf;
  --beacon: #6f55cf;       --beacon-2: #4b3b96;

  --shadow-card: 0 24px 60px -20px rgba(58, 38, 110, 0.30), 0 8px 24px -12px rgba(58, 38, 110, 0.18);
  --shadow-sm: 0 2px 8px rgba(58, 38, 110, 0.08);
  --shadow-btn: 0 10px 24px -8px var(--primary-glow);

  /* Corner radii follow the theme's global setting (Salient:
     --nectar-border-radius) so cards, buttons and inputs match the site.
     Falls back to the original Speaker DNA radii off-theme. Pills stay round. */
  --radius: var(--nectar-border-radius, 18px);
  --radius-card: var(--nectar-border-radius, 20px);
  --radius-sm: var(--nectar-border-radius, 11px);
  --radius-btn: var(--nectar-border-radius, 12px);
  --radius-full: 9999px;

  /* Typography now follows the active theme (Salient / Harbor).
     --font resolves to `inherit` wherever it is referenced, so buttons,
     inputs and links pick up the theme body face (Inter Tight on this site).
     --font-italic mirrors Salient routing <i>/<em> to a serif italic. */
  --font: inherit;
  --font-italic: "Crimson Text", Georgia, "Times New Roman", serif;
}

/* Scoped reset — confined to the quiz subtree via :where() (zero specificity)
   so it never disturbs the host theme's margins, box model or page canvas. */
:where(#sdna-app, #sdna-app *, #sdna-app *::before, #sdna-app *::after) {
  box-sizing: border-box;
}
:where(#sdna-app) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, fieldset, button, input, textarea, select) {
  margin: 0;
  padding: 0;
}
:where(#sdna-app) :where(button, input, textarea, select) {
  font: inherit;
  color: inherit;
}

/* universal icon sizing helper */
.ico { display: inline-block; vertical-align: middle; flex: none; }

/* ============================================================
   Shell + brand header
   ============================================================ */
#sdna-app {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(16px, 3.5vw, 40px) clamp(14px, 5vw, 56px) clamp(40px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: inherit;
  line-height: var(--nectar-body-line-height, 1.6);
  /* No panel background: the quiz cards sit directly on the theme's page
     canvas like native content blocks, so it "uses the page" rather than
     living inside a boxed frame. (Was a fixed full-viewport <body> gradient.) */
  background: transparent;
}

.sdna-brandbar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.sdna-brandbar .mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.sdna-brandbar .mark .ico { width: 21px; height: 21px; }
.sdna-brandbar .wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.sdna-brandbar .by {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================================
   The signature CARD (header bar + body)
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-head {
  background: var(--head-grad, var(--grad));
  color: #fff;
  padding: 15px 26px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.card-head .ch-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  flex: none;
}
.card-head .ch-ico .ico { width: 17px; height: 17px; }
.card-head .ch-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.card-head .ch-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
}

.card-body { padding: 28px 26px 26px; }

/* thin progress line sitting right under the header bar */
.card-progress {
  height: 6px;
  background: rgba(42, 37, 64, 0.10);
  position: relative;
}
.card-progress > i {
  position: absolute; inset: 0 auto 0 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--progress);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.45);
  /* animated via JS */
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease, color .18s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  height: 52px;
  padding: 0 26px;
  background: var(--grad);
  background-size: 140% 140%;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--primary-glow); background-position: 100% 0; }

.btn-ghost {
  height: 46px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: rgba(42, 37, 64, 0.04); }

.btn-block { width: 100%; }

/* ============================================================
   INTRO
   ============================================================ */
.intro .card-body { padding: 34px 30px 30px; }
.intro .eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 13px;
}
.intro h1 {
  font-weight: 800;
  font-size: clamp(28px, 5.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.intro h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary);
}
.intro p.lead {
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 22px;
  text-wrap: pretty;
}
/* honesty note — replaces the category spoilers */
.honesty {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--primary-tint-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  margin-bottom: 24px;
}
.honesty .h-ico {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid; place-items: center;
}
.honesty .h-ico .ico { width: 19px; height: 19px; }
.honesty .h-body strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.honesty .h-body span { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.intro .meta {
  margin-top: 18px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.intro .meta span { display: inline-flex; align-items: center; gap: 7px; }
.intro .meta .ico { width: 15px; height: 15px; color: var(--primary); }

/* ============================================================
   QUESTION
   ============================================================ */
.sdna-stage { position: relative; }

.q-card .card-body { padding: 26px 26px 24px; }

.q-title {
  font-weight: 800;
  font-size: clamp(22px, 4vw, 27px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 11px;
  text-wrap: balance;
}
.q-scenario {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}

.q-options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: transform .18s ease;
  font-family: inherit;
}
.opt:hover { border-color: var(--border-strong); background: var(--primary-tint-2); transform: translateX(3px); }
.opt .letter {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--primary-tint);
  color: var(--primary);
}
.opt .opt-text {
  font-size: 15px; line-height: 1.5; color: var(--ink);
  padding-top: 4px; text-wrap: pretty;
}
.opt .check {
  margin-left: auto; flex: none;
  width: 24px; height: 24px; align-self: center;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--grad);
  opacity: 0; transform: scale(0.5);
}
.opt .check .ico { width: 14px; height: 14px; }
.opt.selected { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px var(--primary-ring); }
.opt.selected .letter { background: var(--grad); color: #fff; }
.opt.selected .check { opacity: 1; transform: scale(1); }
.opt.pop { animation: optPop .3s ease; }
@keyframes optPop { 0% { transform: scale(0.99);} 55% { transform: scale(1.015);} 100% { transform: scale(1);} }

.q-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.q-nav .next-wrap {
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
}
.q-nav .next-wrap.show { opacity: 1; pointer-events: auto; }

/* enter/exit — transform-only so content stays VISIBLE even if the animation
   clock is frozen (backgrounded tab) or in print/PDF */
/* Smooth theme-style cross-fade between steps — opacity + a tiny rise only,
   no horizontal slide (which read as a "shake" and shifted the layout). */
.screen { animation: screenIn .34s cubic-bezier(.22,1,.36,1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.q-card.slide-in { animation: qCardIn .34s cubic-bezier(.22,1,.36,1) both; }
.q-card.slide-out { animation: qCardOut .14s ease forwards; }
@keyframes qCardIn { from { transform: translateY(5px);} to { transform: translateY(0);} }
@keyframes qCardOut { from { opacity: 1;} to { opacity: 0; transform: translateY(-4px);} }

/* ============================================================
   EMAIL GATE
   ============================================================ */
.gate .card-body { padding: 32px 30px 30px; text-align: center; }
.gate h2 { font-weight: 800; font-size: clamp(24px, 4.6vw, 31px); letter-spacing: -0.02em; margin-bottom: 10px; text-wrap: balance; }
.gate p.sub { font-size: 16px; color: var(--ink-2); margin: 0 auto 24px; max-width: 420px; line-height: 1.5; }
.field-group { display: flex; flex-direction: column; gap: 11px; max-width: 400px; margin: 0 auto; text-align: left; }
.sdna-input {
  height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.sdna-input::placeholder { color: var(--ink-3); }
.sdna-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.sdna-input.error { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.gate .gate-btn { margin: 16px auto 0; max-width: 400px; }
.gate .privacy { margin-top: 15px; font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.gate .privacy .ico { width: 14px; height: 14px; }
.gate .skip { display: block; margin: 13px auto 0; background: none; border: none; color: var(--ink-3); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--font); }
.gate .skip:hover { color: var(--ink-2); }

/* ============================================================
   LOADING
   ============================================================ */
.loading .card-body { padding: 52px 24px; text-align: center; }
.loading .helix-loader { width: 76px; height: 104px; margin: 0 auto 26px; }
.loading h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin-bottom: 9px; }
.loading .cycle { font-size: 14.5px; color: var(--ink-2); min-height: 20px; transition: opacity .18s ease; }
.helix-loader .strand { animation: helixSpin 2s linear infinite; transform-origin: 38px 52px; }
@keyframes helixSpin { to { transform: rotateY(360deg);} }

/* ============================================================
   RESULT
   ============================================================ */
.result-root { display: flex; flex-direction: column; gap: 16px; }

/* hero */
.result-hero { text-align: center; }
.result-hero .card-body { padding: 8px 28px 34px; }
.hero-badge {
  width: 92px; height: 92px;
  margin: -46px auto 16px;
  border-radius: 24px;
  background: var(--head-grad, var(--grad));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 18px 36px -12px var(--primary-glow);
  border: 4px solid #fff;
  position: relative; z-index: 2;
}
.hero-badge .ico { width: 44px; height: 44px; }
.result-hero .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px;
}
.result-hero h1 {
  font-weight: 800;
  font-size: clamp(30px, 6vw, 46px); line-height: 1.04;
  letter-spacing: -0.03em; color: var(--arch); margin-bottom: 12px;
  text-wrap: balance;
}
.result-hero .tagline { font-size: 17px; color: var(--ink-2); max-width: 460px; margin: 0 auto; line-height: 1.5; text-wrap: pretty; }
.result-hero .combo-line {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 18px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--primary-tint-2);
  padding: 8px 15px; border-radius: var(--radius-full); border: 1px solid var(--border);
}
.result-hero .combo-line b { color: var(--arch); }

/* ============================================================
   SIGNATURE METRICS — Three circular score rings, one row
   ============================================================ */
.gauges { position: relative; }
.gauges .gauges-intro {
  text-align: center;
  margin-bottom: 4px;
}
.gauges .gauges-intro .gi-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gauges .card-body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.metric-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* the ring */
.mi-ring {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
}
.mi-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mi-ring circle {
  fill: none;
  stroke-linecap: round;
}
.mi-ring .ring-bg {
  stroke: rgba(42, 37, 64, 0.07);
  stroke-width: 9;
}
.mi-ring .ring-fill {
  stroke: var(--arch);
  stroke-width: 9;
  stroke-dasharray: var(--dash-array);
  stroke-dashoffset: var(--dash-offset);
}

/* score in the centre of the ring */
.mi-ring .mi-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mi-ring .mi-score {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--arch);
}
.mi-ring .mi-score-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.metric-item .mi-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  line-height: 1.3;
  max-width: 110px;
  text-wrap: balance;
}

/* ============================================================
   REDESIGNED INSIGHT CARDS — Dynamic, engaging layouts
   ============================================================ */
.res-card.in { animation: cardRise .5s cubic-bezier(.22,1,.36,1); }
@keyframes cardRise { from { transform: translateY(14px);} to { transform: translateY(0);} }

.res-card { 
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
  box-shadow: 0 8px 24px -8px rgba(58, 38, 110, 0.12), 0 2px 6px -2px rgba(58, 38, 110, 0.08);
}

/* Subtle animated gradient bg pattern */
.res-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, var(--arch) 0%, transparent 30%),
              radial-gradient(circle at 95% 15%, var(--arch) 0%, transparent 25%);
  opacity: 0.03;
  pointer-events: none;
}

.res-card .card-body { 
  padding: 32px 28px;
  position: relative;
  z-index: 1;
}

.res-card .res-head { 
  display: flex; 
  align-items: flex-start;
  gap: 16px; 
  margin-bottom: 18px;
}

.res-card .res-ico {
  width: 48px; height: 48px; 
  border-radius: 14px; 
  flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ic-bg) 0%, rgba(255,255,255,0.4) 100%);
  color: var(--ic-fg);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.6);
}
.res-card .res-ico .ico { width: 24px; height: 24px; }

.res-card h3 { 
  font-weight: 800; 
  font-size: 20px; 
  letter-spacing: -0.015em; 
  flex: 1;
  color: var(--ink);
  margin: 0;
}

.res-card p { 
  font-size: 15.5px; 
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0;
}

.res-card ul { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 14px;
}

.res-card li { 
  display: flex; 
  gap: 14px; 
  font-size: 15px; 
  line-height: 1.6;
  color: var(--ink);
  align-items: flex-start;
}

.res-card li .tick { 
  flex: none; 
  width: 28px; 
  height: 28px; 
  border-radius: 8px;
  background: linear-gradient(135deg, var(--arch) 0%, rgba(var(--arch-rgb), 0.8) 100%);
  color: #fff; 
  display: grid; 
  place-items: center;
  margin-top: 0px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.12);
}

.res-card li .tick .ico { 
  width: 15px; 
  height: 15px; 
}

.res-card li span:last-child {
  flex: 1;
  padding-top: 2px;
}

/* ============================================================
   VIDEO BLOCK — Redesigned presentation
   ============================================================ */
.video-block .card-body { padding: 32px 28px; text-align: center; }
.video-block h3 { font-weight: 800; font-size: 21px; letter-spacing: -0.015em; margin-bottom: 20px; color: var(--ink); }
.video-frame {
  position: relative; 
  width: 100%; 
  aspect-ratio: 16/9;
  border-radius: 16px; 
  overflow: hidden;
  background: linear-gradient(135deg, var(--arch-tint) 0%, rgba(255,255,255,0.6) 100%);
  display: grid; 
  place-items: center; 
  border: 2px solid rgba(var(--arch-rgb), 0.15);
  box-shadow: 0 12px 32px -8px rgba(58, 38, 110, 0.15);
}
.video-frame > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.video-frame .play-btn {
  width: 68px; 
  height: 68px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--arch) 0%, rgba(var(--arch-rgb), 0.9) 100%);
  display: grid; 
  place-items: center; 
  color: #fff;
  box-shadow: 0 12px 28px -6px rgba(58, 38, 110, 0.25);
  animation: floatPulse 3s ease-in-out infinite;
  border: 3px solid rgba(255,255,255,0.3);
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.video-frame .play-btn .ico { width: 28px; height: 28px; margin-left: 2px; }
.video-frame.is-embed { background: #000; border-color: rgba(var(--arch-rgb), 0.2); display: block; }
.video-frame.is-embed iframe,
.video-frame.is-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: cover; }
.video-frame .vf-label { 
  font-size: 13px; 
  font-weight: 600; 
  letter-spacing: 0.06em; 
  text-transform: uppercase; 
  color: var(--ink-2);
}

/* ============================================================
   SNEAK-PEEK GATE — Redesigned unlock experience
   ============================================================ */
.peek-zone { position: relative; }
.peek-back {
  position: absolute; 
  inset: 0;
  display: flex; 
  flex-direction: column; 
  gap: 16px;
  overflow: hidden;
  filter: blur(12px) saturate(0.85);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 35%, transparent 75%);
  mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 35%, transparent 75%);
}
.peek-back .res-card { opacity: 1; transform: none; }

.peek-gate {
  position: relative;
  margin-top: 44px;
  border: 2px solid var(--primary-ring);
  box-shadow: 0 32px 80px -24px rgba(58, 38, 110, 0.35), 0 12px 28px -12px rgba(58, 38, 110, 0.18);
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
}
.peek-gate .card-body { 
  padding: 32px 28px; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.peek-gate .peek-lock {
  width: 62px; 
  height: 62px; 
  margin: 0 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--arch) 0%, rgba(var(--arch-rgb), 0.9) 100%);
  color: #fff;
  display: grid; 
  place-items: center;
  box-shadow: 0 12px 28px -6px rgba(58, 38, 110, 0.28);
  border: 3px solid rgba(255,255,255,0.5);
  animation: lockBounce 2s ease-in-out infinite;
}
@keyframes lockBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.peek-gate .peek-lock .ico { width: 28px; height: 28px; }
.peek-gate .peek-eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 11.5px; 
  font-weight: 700; 
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--arch);
  background: linear-gradient(135deg, var(--arch-tint) 0%, rgba(255,255,255,0.5) 100%);
  padding: 8px 16px; 
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--arch-rgb), 0.2);
  margin-bottom: 15px;
}
.peek-gate h3 { 
  font-weight: 800; 
  font-size: clamp(22px, 4.4vw, 28px); 
  letter-spacing: -0.02em; 
  line-height: 1.15; 
  margin-bottom: 12px; 
  text-wrap: balance;
  color: var(--ink);
}
.peek-gate p { 
  font-size: 15.5px; 
  line-height: 1.65; 
  color: var(--ink-2); 
  max-width: 460px; 
  margin: 0 auto 26px; 
  text-wrap: pretty;
}
.peek-gate p b { color: var(--ink); font-weight: 700; }
.peek-gate .field-group { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  max-width: 400px; 
  margin: 0 auto 16px; 
  text-align: left;
}
.peek-gate .btn-primary { 
  max-width: 400px; 
  margin: 0 auto; 
  height: 54px;
}
.peek-gate .privacy { 
  margin-top: 16px; 
  font-size: 12.5px; 
  color: var(--ink-3); 
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  justify-content: center; 
  line-height: 1.5;
}
.peek-gate .privacy .ico { width: 15px; height: 15px; flex: none; }

/* in-result confirmation */
.res-email .card-body { padding: 22px 24px; }
.res-email .done-note { 
  color: var(--arch); 
  font-weight: 700; 
  font-size: 15px; 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  line-height: 1.5;
}
.res-email .done-note .ico { width: 20px; height: 20px; flex: none; }

/* dark CTA */
.cta-dark {
  padding: 48px 36px; 
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #1a1128 0%, #2d1b4e 50%, #1f1535 100%),
              radial-gradient(circle at 15% 8%, rgba(118, 75, 162, 0.4), transparent 50%),
              radial-gradient(circle at 88% 92%, rgba(130, 87, 240, 0.3), transparent 45%);
  background-attachment: fixed;
  color: #fff; 
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 400px at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle 600px at 80% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-dark h2 { 
  font-weight: 800; 
  font-size: clamp(26px, 5.2vw, 36px); 
  line-height: 1.15; 
  letter-spacing: -0.02em; 
  margin-bottom: 14px; 
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.cta-dark h2 .accent { 
  background: linear-gradient(135deg, #b69bff 0%, #d4a5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.cta-dark p { 
  font-size: 16px; 
  color: rgba(255,255,255,0.75); 
  max-width: 480px; 
  margin: 0 auto 28px; 
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.cta-dark .btn-primary { 
  background: linear-gradient(135deg, #fff 0%, #f5f2ff 100%); 
  color: #1a1128;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.cta-dark .btn-primary:hover { 
  background: linear-gradient(135deg, #f5f2ff 0%, #ede6ff 100%);
  transform: translateY(-2px);
}

/* upcoming sessions — replaces the plain booking button on the CTA */
.sessions {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.sessions-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  text-align: center;
}
.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  color: #fff;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.session-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.28); }
.session-card .session-main { flex: 1; min-width: 0; }
.session-card .session-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 4px; text-wrap: pretty; }
.session-card .session-meta { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }
.session-card .session-arrow { flex: none; color: rgba(255,255,255,0.7); display: grid; place-items: center; }
.session-card .session-arrow .ico { width: 18px; height: 18px; }
.session-card:hover .session-arrow { color: #fff; }

/* related archetypes */
.related { position: relative; }
.related .rel-title { 
  font-weight: 800; 
  font-size: 20px; 
  letter-spacing: -0.015em; 
  margin-bottom: 20px; 
  text-align: center;
  color: var(--ink);
}
.related .rel-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px;
}
.rel-card {
  padding: 24px 18px; 
  text-align: center; 
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
  border: 1.5px solid rgba(var(--rc-color-rgb), 0.12);
  cursor: pointer; 
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.rel-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 40px -12px rgba(var(--rc-color-rgb), 0.25);
  border-color: rgba(var(--rc-color-rgb), 0.28);
  background: linear-gradient(135deg, #fff 0%, rgba(var(--rc-color-rgb), 0.03) 100%);
}
.rel-card .rc-ico {
  width: 52px; 
  height: 52px; 
  margin: 0 auto 13px; 
  border-radius: 13px;
  display: grid; 
  place-items: center; 
  background: linear-gradient(135deg, var(--rc-tint) 0%, rgba(255,255,255,0.4) 100%);
  color: var(--rc-color);
  border: 1px solid rgba(var(--rc-color-rgb), 0.15);
  box-shadow: 0 4px 12px -2px rgba(var(--rc-color-rgb), 0.15);
}
.rel-card .rc-ico .ico { width: 26px; height: 26px; }
.rel-card .rc-name { 
  font-weight: 800; 
  font-size: 16px; 
  margin-bottom: 6px; 
  color: var(--rc-color);
  letter-spacing: -0.01em;
}
.rel-card .rc-tag { 
  font-size: 12px; 
  color: var(--ink-2); 
  line-height: 1.5;
  font-weight: 500;
}

/* retake button — deliberately prominent so it isn't missed */
.retake {
  text-align: center;
  padding-top: 8px;
}
.retake-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.retake-copy {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.btn-retake {
  height: 52px;
  padding: 0 26px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-retake:hover { background: var(--primary-tint); transform: translateY(-2px); }

/* ============================================================
   Responsive
   ============================================================ */
/* roomier type on large screens (width is handled fluidly on #sdna-app +
   the v2.4.0 full-width layout block below) */
@media (min-width: 720px) {
  .intro h1 { font-size: 44px; }
}

@media (max-width: 600px) {
  #sdna-app { padding: 18px 14px 34px; }
  .sdna-brandbar { margin-bottom: 15px; }
  .sdna-brandbar .by { display: none; }

  .card-head { padding: 13px 16px; }
  .card-head .ch-count { font-size: 11px; }
  .card-body { padding: 22px 17px; }
  .intro .card-body { padding: 24px 18px 22px; }
  .q-card .card-body { padding: 20px 16px 18px; }

  .opt { padding: 13px 12px; gap: 11px; }
  .opt .letter { width: 29px; height: 29px; font-size: 13px; }
  .opt .opt-text { font-size: 14.2px; }

  .q-nav { gap: 8px; }
  .q-nav .next-wrap, .q-nav .next-wrap .btn-primary { width: 100%; }
  .btn-ghost { padding: 0 12px; }

  /* METRICS — keep all three rings in one row, scaled down */
  .gauges .card-body { padding: 26px 14px; gap: 18px; }
  .metric-rings { gap: 6px; }
  .mi-ring { width: 92px; height: 92px; }
  .mi-ring .ring-bg, .mi-ring .ring-fill { stroke-width: 8; }
  .mi-ring .mi-score { font-size: 23px; }
  .mi-ring .mi-score-sub { font-size: 9px; }
  .metric-item { gap: 11px; }
  .metric-item .mi-label { font-size: 10px; letter-spacing: 0.04em; max-width: 96px; }
  
  /* HERO */
  .hero-badge { width: 78px; height: 78px; margin-top: -39px; }
  .hero-badge .ico { width: 36px; height: 36px; }
  .result-hero .card-body { padding: 6px 20px 28px; }
  .result-hero h1 { font-size: clamp(26px, 7vw, 40px); }
  .combo-line { flex-direction: column; gap: 6px; }
  
  /* RESULT CARDS */
  .res-card .card-body { padding: 20px 18px; }
  .res-card .res-head { gap: 12px; flex-direction: column; }
  .res-card .res-ico { width: 42px; height: 42px; align-self: flex-start; }
  .res-card .res-ico .ico { width: 20px; height: 20px; }
  .res-card h3 { font-size: 17px; }
  .res-card p { font-size: 14.5px; }
  .res-card li { font-size: 14px; gap: 10px; }
  .res-card li .tick { width: 24px; height: 24px; min-width: 24px; }
  
  /* VIDEO */
  .video-block .card-body { padding: 22px 18px 24px; }
  .video-frame { aspect-ratio: 16/9; }
  .video-frame .play-btn { width: 52px; height: 52px; }
  .video-block h3 { font-size: 18px; margin-bottom: 14px; }

  /* PEEK GATE */
  .peek-gate { margin-top: 50px; }
  .peek-gate .card-body { padding: 28px 20px 24px; }
  .peek-gate .peek-lock { width: 56px; height: 56px; margin: 0 0 16px; }
  .peek-gate h3 { font-size: 20px; }
  .peek-gate p { font-size: 14px; }
  .peek-gate .field-group { max-width: 100%; }
  .peek-gate .btn-primary { max-width: 100%; }
  .peek-back { gap: 12px; }

  /* CTA DARK */
  .cta-dark { padding: 28px 20px; }
  .cta-dark h2 { font-size: 22px; margin-bottom: 12px; }
  .cta-dark p { font-size: 14px; margin-bottom: 20px; }
  .session-card { padding: 14px 15px; gap: 10px; }
  .session-card .session-title { font-size: 14px; }
  .session-card .session-meta { font-size: 12px; }

  /* RELATED */
  .related .rel-title { font-size: 18px; margin-bottom: 16px; }
  .related .rel-grid { grid-template-columns: 1fr; gap: 12px; }
  .rel-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; }
  .rel-card .rc-ico { margin: 0; width: 40px; height: 40px; }
  .rel-card .rc-name { font-size: 15px; }
  .rel-card .rc-tag { font-size: 12px; }

  /* EMAIL CONFIRMATION */
  .res-email .card-body { padding: 20px 18px; }
  .res-email .done-note { font-size: 14px; }

  /* RETAKE */
  .retake { padding-top: 4px; }
  .retake-copy { font-size: 13px; }
  .btn-retake { width: 100%; }
}

/* very small phones */
@media (max-width: 360px) {
  .intro h1 { font-size: 26px; }
  .q-title { font-size: 21px; }
  .result-hero h1 { font-size: 28px; }
  .meta { gap: 10px !important; font-size: 12px; }
  /* shrink rings so all three stay on one row on tiny screens */
  .gauges .card-body { padding: 24px 10px; }
  .mi-ring { width: 84px; height: 84px; }
  .mi-ring .mi-score { font-size: 20px; }
  .metric-item .mi-label { font-size: 9px; max-width: 88px; }
}

@media (max-height: 560px) { #sdna-app { min-height: auto; } }
@media (prefers-reduced-motion: reduce) {
  #sdna-app, #sdna-app * { animation-duration: .001ms !important; transition-duration: .05ms !important; }
}

/* ============================================================
   THEME TYPOGRAPHY INHERITANCE  ·  v2.2.0
   The quiz inherits fonts from the active theme instead of loading
   its own web-font. Tuned against Salient / Harbor, which ships
   Inter Tight in weights 400 / 500 / 600 only (heavier weights render
   as synthetic bold, so weights are capped at 600) and routes
   <i>/<em> to Crimson Text italic. Colours are deliberately untouched.
   ============================================================ */

/* 1 · Families follow the theme -------------------------------------- */
#sdna-app,
#sdna-app input,
#sdna-app select,
#sdna-app textarea,
#sdna-app button {
  font-family: inherit;
}

/* italic accent — mirror Salient's serif italic routing */
#sdna-app i,
#sdna-app em {
  font-family: var(--font-italic);
  font-style: italic;
  letter-spacing: -0.02em;
}

/* 2 · Weight + tracking scale — align with the theme ---------------- */
/* display / heading text: theme headings are light (400) with neutral
   tracking; the quiz keeps a touch more weight for hierarchy but never
   exceeds the 600 the font file actually provides. */
#sdna-app h1,
#sdna-app h2,
#sdna-app h3,
#sdna-app h4,
#sdna-app h5,
#sdna-app h6,
#sdna-app .q-title,
#sdna-app .rel-title,
#sdna-app .rc-name,
#sdna-app .mi-ring .mi-score,
#sdna-app .sdna-brandbar .wordmark,
#sdna-app .intro h1 .grad-text,
#sdna-app .cta-dark h2 .accent {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

/* bold inline text — theme uses 600 for strong/b */
#sdna-app strong,
#sdna-app b,
#sdna-app .bold,
#sdna-app .honesty .h-body strong,
#sdna-app .peek-gate p b,
#sdna-app .session-card .session-title {
  font-weight: 600;
  letter-spacing: normal;
}

/* buttons — theme buttons run at weight 500 */
#sdna-app .btn { font-weight: 500; }

/* small uppercase eyebrows / labels — 600 instead of synthetic 700 */
#sdna-app .eyebrow,
#sdna-app .card-head .ch-eyebrow,
#sdna-app .result-hero .eyebrow,
#sdna-app .gauges .gauges-intro .gi-eyebrow,
#sdna-app .mi-ring .mi-score-sub,
#sdna-app .metric-item .mi-label,
#sdna-app .sessions-eyebrow,
#sdna-app .peek-gate .peek-eyebrow,
#sdna-app .opt .letter {
  font-weight: 600;
}

/* ============================================================
   FULL-WIDTH RESPONSIVE LAYOUT  ·  v2.4.0
   The quiz now flows to the theme's content width instead of a
   fixed ~680px "tab". Question screens use the horizontal space
   (text left / options right) so each step fits without scrolling,
   and nav stays reachable on every screen size.
   ============================================================ */

/* ---- 1 · Single-focus screens stay a centred focal card;
        only the question + results content use the full width ----- */
.screen > .intro,
.screen > .gate,
.screen > .loading,
.result-hero {
  max-width: 760px;
  margin-inline: auto;
}
.intro p.lead { max-width: 60ch; }

/* results: readable measure inside the now-wide column */
.gauges .card-body { max-width: 760px; margin-inline: auto; }
.related .rel-grid { max-width: 920px; margin-inline: auto; }
.res-card .card-body { max-width: 900px; margin-inline: auto; }
.cta-dark h2,
.cta-dark p { max-width: 720px; margin-inline: auto; }

/* ---- 2 · QUESTION SCREEN — two-column on wider viewports -------- */
@media (min-width: 880px) {
  .q-card .card-body {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(30px, 4.5vw, 64px);
    row-gap: 14px;
    align-items: start;
    padding: clamp(30px, 3.4vw, 46px) clamp(30px, 3.4vw, 50px) clamp(28px, 3vw, 40px);
  }
  .q-card .q-title    { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .q-card .q-scenario { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .q-card .q-nav      { grid-column: 1; grid-row: 3; align-self: end; margin-top: 26px; }
  .q-card .q-options  { grid-column: 2; grid-row: 1 / -1; }

  /* a touch larger so the right column reads as the primary action area */
  .q-card .q-title    { font-size: clamp(24px, 2.4vw, 30px); }
  .q-options .opt     { padding: 17px 18px; }
  .opt .opt-text      { font-size: 15.5px; }
}

/* very wide screens: don't let a single question sprawl */
@media (min-width: 1240px) {
  .q-card .card-body { max-width: 1180px; margin-inline: auto; }
}

/* ---- 3 · MID SIZES (tablet / small laptop) --------------------- */
@media (min-width: 620px) and (max-width: 879.98px) {
  .card-body { padding: 28px clamp(22px, 4vw, 34px) 26px; }
  .q-options .opt { padding: 16px 16px; }
}

/* ---- 4 · MOBILE — bigger tap targets, tighter rhythm ---------- */
@media (max-width: 640px) {
  .opt {
    padding: 15px 14px;
    gap: 12px;
    min-height: 58px;
    align-items: center;
  }
  .opt .opt-text { font-size: 15px; }
  .opt .letter { width: 30px; height: 30px; }
  .q-options { gap: 9px; }

  /* full-width action buttons — easy to hit with a thumb.
     (Auto-advance means "Next" is only a fallback / the final step.) */
  .q-nav { margin-top: 18px; }
  .q-nav .next-wrap,
  .q-nav .next-wrap .btn-primary { width: 100%; }
  .q-nav .btn-primary { height: 50px; }
}

/* ---- 5 · SHORT / LANDSCAPE viewports ------------------------- */
@media (max-height: 620px) and (min-width: 880px) {
  .q-card .card-body { row-gap: 10px; padding-block: 26px; }
}

/* ============================================================
   RESULTS + FLOW POLISH  ·  v2.5.0
   Fixes theme-override text colours on dark blocks, makes the
   retake action visible, restyles the "other archetypes" cards,
   and tightens the analysing / results responsiveness.
   ============================================================ */

/* ---- 1 · Result stack rhythm -------------------------------- */
.result-root { gap: clamp(16px, 2.4vw, 24px); }
.result-root > .card,
.result-root > .peek-zone,
.result-root > .cta-dark,
.result-root > .related { scroll-margin-top: 24px; }

/* clearer section anchor on each insight card */
.res-card { border-left: 3px solid var(--arch); }
@media (max-width: 600px) { .res-card { border-left-width: 3px; } }

/* gauges: give the eyebrow real presence so the section reads as a unit */
.gauges .gauges-intro { margin-bottom: 14px; }
.gauges .gauges-intro .gi-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.gauges .card-body { padding: clamp(24px, 3.5vw, 32px) clamp(16px, 3vw, 28px); }

/* ---- 2 · Dark CTA — force light text over the theme's own
        `#ajax-content-wrap h2 { color:#1e1e1e }` rule.
        #sdna-app prefix + !important so it wins regardless of the
        active theme's heading-colour specificity. -------------- */
#sdna-app .cta-dark h2,
#sdna-app .cta-dark h2 * { color: #fff !important; }
#sdna-app .cta-dark p { color: rgba(255,255,255,0.80) !important; }
#sdna-app .cta-dark .sessions-eyebrow { color: rgba(255,255,255,0.6) !important; }
#sdna-app .cta-dark .session-card,
#sdna-app .cta-dark .session-card .session-title { color: #fff !important; }
#sdna-app .cta-dark .session-card .session-meta { color: rgba(255,255,255,0.62) !important; }
/* keep the gradient word ("Spark") intact */
#sdna-app .cta-dark h2 .accent {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* ---- 3 · Retake — make it an obvious, tappable CTA ---------- */
.retake {
  text-align: center;
  margin-top: 6px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--border);
}
.retake-inner { gap: 14px; }
.retake-copy { color: var(--ink-2); font-size: 14px; font-weight: 500; }
#sdna-app .btn-retake {
  height: 52px;
  padding: 0 32px;
  background: var(--grad);
  background-size: 140% 140%;
  color: #fff !important;
  border: none;
  box-shadow: var(--shadow-btn);
}
#sdna-app .btn-retake .ico { color: #fff; }
.btn-retake:hover {
  background: var(--grad);
  background-position: 100% 0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px var(--primary-glow);
}

/* ---- 4 · "Other archetypes" — proper feature cards --------- */
.related { padding-top: 4px; }
.related .rel-title {
  font-size: clamp(19px, 2.4vw, 22px);
  margin-bottom: clamp(16px, 2.2vw, 22px);
}
.related .rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 16px);
}
.rel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: clamp(20px, 2.4vw, 26px) clamp(18px, 2vw, 22px) clamp(46px, 4vw, 52px);
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid rgba(var(--rc-color-rgb), 0.16);
  border-top: 3px solid var(--rc-color);
  box-shadow: 0 6px 20px -12px rgba(var(--rc-color-rgb), 0.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--rc-color-rgb), 0.4);
  box-shadow: 0 20px 44px -16px rgba(var(--rc-color-rgb), 0.4);
  background: var(--card);
}
.rel-card .rc-ico {
  width: 46px; height: 46px; margin: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rc-tint) 0%, rgba(255,255,255,0.5) 100%);
  color: var(--rc-color);
  border: 1px solid rgba(var(--rc-color-rgb), 0.18);
}
.rel-card .rc-ico .ico { width: 24px; height: 24px; }
.rel-card .rc-body { display: flex; flex-direction: column; gap: 6px; }
.rel-card .rc-name { font-size: 16px; font-weight: 600; color: var(--rc-color); letter-spacing: -0.01em; margin: 0; }
.rel-card .rc-tag { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.rel-card::after {
  content: "Preview →";
  position: absolute;
  left: clamp(18px, 2vw, 22px);
  bottom: clamp(16px, 2vw, 20px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rc-color);
  opacity: 0.85;
}
.rel-card:hover::after { opacity: 1; }

@media (max-width: 720px) {
  .related .rel-grid { grid-template-columns: 1fr; }
  .rel-card {
    flex-direction: row;
    align-items: center;
    padding: 16px 18px;
  }
  .rel-card .rc-ico { flex: none; width: 42px; height: 42px; }
  .rel-card .rc-body { flex: 1; }
  .rel-card::after { position: static; margin-left: auto; white-space: nowrap; }
}

/* ---- 5 · Analysing screen — fully fluid -------------------- */
.loading .card-body {
  padding: clamp(40px, 9vw, 56px) clamp(20px, 6vw, 28px);
}
.loading .helix-loader {
  width: clamp(62px, 16vw, 76px);
  height: auto;
  aspect-ratio: 76 / 104;
}
.loading h2 { font-size: clamp(20px, 3.6vw, 24px); }
.loading .cycle { font-size: clamp(13.5px, 2.6vw, 14.5px); padding-inline: 8px; }

/* ---- 6 · Peek gate — sharper focal point ------------------- */
.peek-gate { box-shadow: 0 30px 70px -22px rgba(58, 38, 110, 0.34), 0 10px 26px -12px rgba(58, 38, 110, 0.18); }
.peek-gate .card-body { padding: clamp(26px, 3.4vw, 34px) clamp(20px, 3vw, 30px); }

/* ---- 7 · Result hero — responsive headline + keep archetype colour --- */
#sdna-app .result-hero h1 {
  font-size: clamp(28px, 6.4vw, 44px);
  line-height: 1.06;
  color: var(--arch);
}
.result-hero .tagline { font-size: clamp(15px, 2.6vw, 17px); }
.result-hero .card-body { padding-inline: clamp(20px, 4vw, 28px); }

/* insight-card headings + related title also defer to the quiz ink,
   not the theme's heading colour */
#sdna-app .res-card h3 { color: var(--ink); }
#sdna-app .related .rel-title { color: var(--ink); }
#sdna-app .peek-gate h3 { color: var(--ink); }
