/* ============================================================
   Survival Instinct Assessment — dark aesthetic
   Matches the Emotional Language Wheel design system.
   Small Square and Big Jumbler character colours preserved
   as concept-critical hues.
   ============================================================ */

:root {
  /* Surfaces */
  --navy:         #262E3B;
  --navy-deep:    #1B222D;
  --navy-lift:    #2E3849;
  --navy-elev:    #35415A;
  --surface-2:    #333E52;

  /* Text */
  --white:        #FFFFFF;
  --muted:        rgba(255, 255, 255, 0.66);
  --muted-2:      rgba(255, 255, 255, 0.42);
  --dim:          rgba(255, 255, 255, 0.28);

  /* Hairlines */
  --line:         rgba(255, 255, 255, 0.10);
  --line-strong:  rgba(255, 255, 255, 0.18);

  /* Accent */
  --teal:         #18C0C0;
  --teal-soft:    rgba(24, 192, 192, 0.18);
  --teal-tint:    rgba(24, 192, 192, 0.10);
  --teal-glow:    rgba(24, 192, 192, 0.35);
  --gold:         #E8B551;

  /* Semantic */
  --green:        #5FCB89;
  --amber:        #E8B551;
  --red:          #E38070;

  /* Character palette (concept-critical, tuned for navy) */
  --ss-deep:      #0F5F60;
  --ss-mid:       #18C0C0;
  --ss-light:     #4CDCDC;
  --bj-deep:      #8F3A2E;
  --bj-mid:       #E38070;
  --bj-light:     #F0A99A;

  /* Typography */
  --font-body: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:      680px;
  --container-wide: 960px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  18px;
  --radius-xl:  22px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.18);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.28), 0 16px 40px rgba(0, 0, 0, 0.24);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: radial-gradient(ellipse at 26% 22%,
                              var(--navy-elev) 0%,
                              var(--navy) 56%,
                              var(--navy-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.orb.a {
  width: 560px; height: 560px;
  left: -220px; top: 12%;
  background: radial-gradient(circle, rgba(24, 192, 192, 0.18), rgba(24, 192, 192, 0) 65%);
}
.orb.b {
  width: 640px; height: 640px;
  right: -260px; top: 58%;
  background: radial-gradient(circle, rgba(227, 128, 112, 0.14), rgba(227, 128, 112, 0) 65%);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; color: inherit; }
::selection { background: var(--teal-soft); color: var(--white); }

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
a:hover { color: #4CDCDC; border-bottom-color: var(--teal); }

#app {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 120px;
  z-index: 1;
  animation: fadeUp 500ms var(--ease-out) both;
}
.result-view, .compare-view { max-width: var(--container-wide); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 1.6em 0 0.4em;
}
h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-top: 0.2em;
}
h1 .teal, h1 .accent { color: var(--teal); }
h2 { font-size: clamp(26px, 3.8vw, 36px); letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.015em; margin-top: 2em; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h5 { font-size: 16px; font-weight: 600; }

p { margin: 0.7em 0; color: var(--muted); font-size: 17px; font-weight: 300; }
em { font-style: italic; color: var(--white); }
strong { color: var(--white); font-weight: 600; }
ul { padding-left: 1.4em; }
ul li { margin: 0.5em 0; color: var(--muted); font-weight: 300; }

.meta { font-size: 13px; color: var(--muted-2); line-height: 1.5; font-weight: 400; }
.lede {
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 56ch;
}

.step-label, .eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

hr.section-break { border: none; border-top: 1px solid var(--line); margin: 72px 0 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn.lg { padding: 17px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn.primary {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(24, 192, 192, 0.18);
}
.btn.primary:not(:disabled):hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px rgba(24, 192, 192, 0.28);
}
.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
  font-weight: 600;
}
.btn.ghost:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Welcome ---------- */
.welcome { text-align: left; padding-top: 0; }
.site-mark {
  display: block;
  width: 44px;
  margin: 0 auto 44px;
  line-height: 0;
  border: none;
}
.site-mark img {
  width: 44px; height: 44px;
  opacity: 0.85;
  filter: brightness(1.05);
  transition: opacity var(--dur) var(--ease-out);
}
.site-mark:hover img { opacity: 1; }

.welcome .duo {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 0 0 40px;
  animation: heroFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.4));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.welcome h1 { text-align: center; margin-bottom: 10px; }
.welcome-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--muted-2);
  margin: 0 0 44px;
  font-weight: 500;
  text-transform: uppercase;
}
.welcome .lede { margin: 24px 0 32px; max-width: 100%; }
.welcome .btn { display: block; margin: 28px auto 8px; min-width: 240px; }
.welcome .meta { text-align: center; margin: 24px 0 0; }

.invite-banner {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
  font-weight: 300;
}
.invite-banner strong { color: var(--teal); font-weight: 600; }

.resume-banner {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin: 40px 0 8px;
  text-align: center;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.resume-banner p { margin: 0 0 24px; color: var(--muted); font-size: 17px; font-weight: 300; }
.resume-banner strong { color: var(--white); font-weight: 600; }
.resume-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Inputs ---------- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.20);
  color: var(--white);
  margin: 4px 0;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-tint);
  background: rgba(0, 0, 0, 0.28);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); font-weight: 300; }

/* ---------- Lead capture ---------- */
.lead-capture {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin: 40px 0 24px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lead-capture .lead-title {
  font-size: clamp(24px, 3vw, 28px);
  margin: 0 0 10px;
  text-align: left;
  letter-spacing: -0.02em;
  color: var(--white);
  font-weight: 800;
}
.lead-capture .lead-body {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 300;
}
.lead-capture .form-row { margin: 18px 0; }
.lead-capture .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.client-question { border: none; margin: 28px 0 8px; padding: 0; }
.client-question legend {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding: 0;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.form-error { color: var(--red); font-size: 14px; margin: 12px 0 0; min-height: 1em; font-weight: 500; }
.lead-capture .btn { display: block; width: 100%; margin: 24px 0 0; min-width: 0; }

/* ---------- Context questions ---------- */
.context-q {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 22px 0;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.context-q > label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
.radio-pill:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.radio-pill input { margin: 0; cursor: pointer; accent-color: var(--teal); }
.radio-pill.selected {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 500;
}

/* ---------- Progress ---------- */
.progress {
  position: sticky;
  top: 0;
  background: rgba(27, 34, 45, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 20px 0 16px;
  z-index: 10;
  margin: -24px 0 32px;
  border-bottom: 1px solid var(--line);
}
.progress-bar {
  height: 2px;
  background: var(--teal);
  border-radius: 999px;
  transition: width var(--dur-slow) var(--ease-out);
  min-width: 2px;
  box-shadow: 0 0 8px var(--teal-glow);
}
.progress-text {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ---------- Chapter intro ---------- */
.chapter-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 44px 40px;
  box-shadow: var(--shadow-1);
  margin: 8px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chapter-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: -0.2em 0 24px;
  font-weight: 300;
  letter-spacing: -0.005em;
  font-style: normal;
}
.chapter-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 20px 0 32px;
  font-weight: 300;
}
.chapter-intro p { margin: 18px 0; color: var(--muted); font-weight: 300; }
.chapter-intro em { color: var(--white); }
.chapter-count { text-align: right; margin-bottom: 20px; color: var(--muted-2); }

/* ---------- Question card ---------- */
.question-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-1);
  margin: 8px 0 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.question {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--white);
}

/* ---------- Tell me more ---------- */
.tell-more { margin: 6px 0 22px; font-size: 14.5px; }
.tell-more summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.tell-more summary::-webkit-details-marker { display: none; }
.tell-more summary::before {
  content: '+';
  font-weight: 500;
  font-size: 1.1em;
  width: 1em;
  display: inline-block;
  text-align: center;
}
.tell-more[open] summary::before { content: '−'; }
.tell-more summary:hover { color: var(--teal); }
.tell-more-body {
  padding: 16px 20px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 300;
}

/* ---------- Likert ---------- */
.likert { display: flex; flex-direction: column; gap: 6px; margin: 20px 0 28px; }
.likert-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  text-align: left;
  width: 100%;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.likert-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.likert-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.likert-btn.selected {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--white);
  font-weight: 600;
}
.likert-btn.selected .likert-num {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy);
}

/* ---------- Nav ---------- */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Reflection ---------- */
.reflection-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-1);
  margin: 24px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reflection-card h3 {
  margin-top: 0;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.reflection-prompt {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  font-style: normal;
  margin: 16px 0;
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* ---------- Closing ---------- */
.closing-view h2 { margin-top: 0.3em; }

/* ---------- Result ---------- */
.result-greeting {
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: 5px;
  font-weight: 500;
  text-transform: uppercase;
  font-style: normal;
}
.result-band {
  font-size: clamp(36px, 5.5vw, 58px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
}
.result-band.band-S { color: var(--teal); }
.result-band.band-J { color: var(--bj-mid); }
.result-band.band-B { color: var(--white); }

.character-art {
  display: flex;
  justify-content: center;
  margin: 36px 0 44px;
  animation: charFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.35));
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Continuum ---------- */
.continuum { margin: 32px 0 24px; }
.continuum-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lbl-s { color: var(--teal); }
.lbl-j { color: var(--bj-mid); }

.continuum-bar {
  position: relative;
  height: 5px;
  background: linear-gradient(90deg,
    var(--teal) 0%,
    rgba(24, 192, 192, 0.4) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(227, 128, 112, 0.4) 75%,
    var(--bj-mid) 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.continuum-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(255,255,255,0.4);
  transition: left 900ms var(--ease-out);
}
.continuum.couples .continuum-bar { height: 7px; }
.couple-marker {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(255,255,255,0.4);
  transition: left 900ms var(--ease-out);
}
.couple-marker.marker-a { border: 2px solid var(--teal); }
.couple-marker.marker-b { border: 2px solid var(--bj-mid); }
.couple-marker .couple-name {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  background: var(--navy-lift);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  letter-spacing: 0.02em;
}
.couple-marker.marker-b .couple-name { top: auto; bottom: 130%; }

.continuum-score {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.summary {
  font-size: 18px;
  line-height: 1.65;
  margin: 32px 0;
  padding: 32px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--muted);
  box-shadow: var(--shadow-1);
  letter-spacing: -0.005em;
  font-weight: 300;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.summary strong { color: var(--white); font-weight: 600; }

/* ---------- Dimensions ---------- */
.dimensions, .dim-compare { margin: 20px 0 40px; }
.dim-row, .dim-compare-row {
  margin: 14px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dim-row:hover, .dim-compare-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.dim-head { margin-bottom: 14px; }
.dim-head strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.dim-bar {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg,
    var(--teal), rgba(24, 192, 192, 0.35) 35%, rgba(255,255,255,0.12) 50%, rgba(227, 128, 112, 0.35) 65%, var(--bj-mid));
  border-radius: 999px;
}
.dim-compare-row .dim-bar { height: 5px; }
.dim-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 6px rgba(255,255,255,0.3);
  transition: left 900ms var(--ease-out);
}
.dim-marker.marker-a { border-color: var(--teal); width: 15px; height: 15px; }
.dim-marker.marker-b { border-color: var(--bj-mid); width: 15px; height: 15px; }
.dim-score {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dim-score-compare {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}

/* ---------- Practices ---------- */
.practices { margin: 20px 0 40px; }
.practice {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  margin: 14px 0;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.practice:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.practice h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--white);
  font-weight: 700;
}
.practice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

/* ---------- Dance ---------- */
.dance-title { text-align: center; margin-top: 20px; }
.dance {
  background: linear-gradient(180deg, rgba(24, 192, 192, 0.14), rgba(24, 192, 192, 0.04));
  border: 1px solid var(--teal);
  color: var(--white);
  padding: 44px 44px 40px;
  border-radius: var(--radius-xl);
  margin: 32px 0;
  box-shadow: var(--shadow-1), 0 0 60px rgba(24, 192, 192, 0.12);
}
.dance h3 {
  margin-top: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  text-align: center;
  color: var(--white);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.dance-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.005em;
  font-weight: 300;
}
.dance-body p { color: var(--muted); font-weight: 300; }
.dance-body strong { color: var(--white); font-weight: 600; }

/* ---------- Share / session ---------- */
.share-box { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
#share-url {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.20);
  color: var(--muted);
}
#share-status, #result-url-status {
  min-height: 1.2em;
  color: var(--teal);
  font-weight: 500;
  font-size: 13.5px;
  margin-top: 8px;
}

.session-box {
  background: linear-gradient(180deg, rgba(24, 192, 192, 0.14), rgba(24, 192, 192, 0.04));
  border: 1px solid var(--teal);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  margin: 16px 0;
  box-shadow: var(--shadow-1), 0 0 60px rgba(24, 192, 192, 0.12);
}
.session-box h3 { margin-top: 0; letter-spacing: -0.02em; color: var(--white); }
.session-box p { color: var(--muted); }
.session-box .btn.primary { background: var(--teal); color: var(--navy); }
.session-box .btn.ghost { color: var(--white); border-color: var(--line-strong); }
.session-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 4px; }

/* ---------- SVG character motion (kept, gentler) ---------- */
.small-square .ss-arrows {
  animation: ssArrowsPulse 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ssArrowsPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(0.94); }
}
.big-jumbler .bj-rays {
  animation: bjRaysPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes bjRaysPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 0.9;  transform: scale(1.06); }
}

/* ---------- Signoff (if present) ---------- */
.signoff {
  margin: 56px auto 8px;
  max-width: 560px;
  text-align: center;
  padding: 40px 24px 8px;
}
.signoff p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}
.signoff .signature {
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 400;
}
.signoff .signature .name { color: var(--teal); font-weight: 600; }

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
  margin: 40px auto 0;
  padding: 40px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.site-footer-logo { border: none; }
.site-footer-logo img {
  height: 34px;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1) opacity(0.75);
}
.site-footer-text {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
  font-weight: 300;
}
.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.site-footer-links a {
  color: var(--muted-2);
  border-bottom: none;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer-links a:hover { color: var(--teal); }
@media (max-width: 480px) { .site-footer { padding: 32px 18px 48px; } }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  #app { padding: 40px 20px 96px; }
  .chapter-card { padding: 32px 28px 28px; }
  .question-card, .reflection-card { padding: 28px 24px 24px; }
  .lead-capture, .context-q, .session-box { padding: 28px 24px; }
  .dance { padding: 32px 28px 28px; }
  .summary { padding: 26px 26px; }
  .orb { display: none; }
}

/* ---------- Accessibility ---------- */
.btn:focus-visible,
.likert-btn:focus-visible,
.radio-pill:focus-within,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff !important; color: #000; font-size: 12pt; }
  body::before { display: none; }
  .orb, .site-footer, .nav-row, .session-box, .share-box,
  #share-url, #share-status, #result-url-status,
  .progress, .tell-more { display: none !important; }
  #app { max-width: 100%; padding: 0; }
  .character-art { animation: none; }
  .small-square .ss-arrows, .big-jumbler .bj-rays { animation: none; }
  .dim-row, .practice, .summary, .dance, .chapter-card, .question-card, .lead-capture, .context-q, .reflection-card {
    background: #fff !important;
    color: #000;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4, p, li, .lede, .signoff p, .question { color: #000 !important; }
  h1 .teal { color: #005f5f !important; }
  .dance, .dance-body, .dance-body p { color: #000 !important; background: #fff !important; }
  .result-band { color: #000 !important; }
  hr.section-break { page-break-before: always; border: none; margin: 0; }
  h2, h3 { page-break-after: avoid; }
  a { color: #000; text-decoration: none; border: none; }
}
