/* ============================================================
   Relationship Vision Alignment — premium visual system
   Restrained neutrals, hairline borders, generous whitespace,
   confident typography, and gentle motion. Teal is used as a
   quiet accent, not chrome.
   ============================================================ */

:root {
  /* Neutrals: cool, editorial off-whites through to near-black */
  --paper:        #FCFCFB;
  --paper-elev:   #FFFFFF;
  --paper-warm:   #F6F5F1;
  --surface-1:    #FFFFFF;
  --surface-2:    #F5F5F3;
  --hairline:     rgba(20, 22, 24, 0.09);
  --hairline-strong: rgba(20, 22, 24, 0.16);
  --ink:          #0E1112;
  --ink-2:        #2A2F31;
  --ink-3:        #55595B;
  --muted:        #83898B;
  --muted-2:      #A9AEB0;

  /* Accents */
  --teal:         #297E7B;
  --teal-deep:    #1F5F5C;
  --teal-tint:    rgba(41, 126, 123, 0.08);
  --teal-tint-2:  rgba(41, 126, 123, 0.14);
  --gold:         #B8941F;
  --gold-tint:    rgba(184, 148, 31, 0.10);

  /* Semantic (muted, editorial) */
  --green:        #4E8E63;
  --green-tint:   rgba(78, 142, 99, 0.10);
  --amber:        #B48022;
  --amber-tint:   rgba(180, 128, 34, 0.10);
  --red:          #B24F44;
  --red-tint:     rgba(178, 79, 68, 0.09);

  /* Partner colours on comparison */
  --you:          #1F5F5C;
  --partner:      #B24F44;

  /* Typography */
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

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

  /* Elevation — soft, layered */
  --shadow-1: 0 1px 2px rgba(15, 20, 22, 0.04), 0 2px 6px rgba(15, 20, 22, 0.04);
  --shadow-2: 0 1px 2px rgba(15, 20, 22, 0.05), 0 8px 24px rgba(15, 20, 22, 0.06);
  --shadow-3: 0 2px 4px rgba(15, 20, 22, 0.06), 0 20px 40px rgba(15, 20, 22, 0.08);

  /* 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: 180ms;
  --dur: 280ms;
  --dur-slow: 420ms;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

#app {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 120px;
  animation: fadeUp 500ms var(--ease-out) both;
}
.result-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(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 1.6em 0 0.4em;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-top: 0.2em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 700;
}
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(--ink-2); font-size: 17px; }
em { font-style: italic; color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }
ul { padding-left: 1.4em; }
ul li { margin: 0.5em 0; color: var(--ink-2); }

.meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.5;
}
.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  font-weight: 400;
}

.step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 13px 26px;
  border-radius: 999px;
  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),
              box-shadow var(--dur) var(--ease-out);
}
.btn.lg { padding: 16px 34px; font-size: 16px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(0.97); }

.btn.primary {
  background: var(--ink);
  color: #fff;
}
.btn.primary:not(:disabled):hover {
  background: var(--ink-2);
  box-shadow: var(--shadow-2);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--hairline-strong);
}
.btn.ghost:not(:disabled):hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

/* ---------- 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;
  transition: opacity var(--dur) var(--ease-out);
}
.site-mark:hover img { opacity: 1; }

.welcome h1 { text-align: center; margin-bottom: 10px; }
.welcome-subtitle {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 44px;
  font-weight: 500;
  text-transform: uppercase;
}
.welcome .lede { margin: 20px 0 32px; text-align: left; }
.welcome .meta { text-align: center; margin: 24px 0 0; }

.hero-visual {
  display: flex;
  justify-content: center;
  margin: 8px 0 40px;
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

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

.resume-banner {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin: 40px 0 8px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.resume-banner p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 17px;
}
.resume-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Inputs ---------- */
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 15px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--paper-elev);
  color: var(--ink);
  margin: 4px 0;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow 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(--ink);
  box-shadow: 0 0 0 4px var(--teal-tint);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

/* ---------- Lead capture ---------- */
.lead-capture {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin: 40px 0 24px;
  box-shadow: var(--shadow-1);
}
.lead-capture .lead-title {
  font-size: clamp(24px, 3vw, 28px);
  margin: 0 0 10px;
  text-align: left;
  letter-spacing: -0.02em;
}
.lead-capture .lead-body {
  color: var(--ink-3);
  margin: 0 0 24px;
  font-size: 16px;
}
.lead-capture .form-row { margin: 18px 0; }
.lead-capture .form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  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: 600;
  color: var(--ink);
  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;
}
.lead-capture .btn {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  min-width: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  font-size: 16px;
  color: var(--ink-2);
}
.radio-pill:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-2);
}
.radio-pill input {
  margin: 0;
  cursor: pointer;
  accent-color: var(--ink);
}
.radio-pill.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 500;
}
.radio-pill.selected input { accent-color: #fff; }

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

/* ---------- Chapter intro ---------- */
.chapter-card {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 48px 44px 40px;
  box-shadow: var(--shadow-1);
  margin: 8px 0;
}
.chapter-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: -0.2em 0 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.chapter-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 20px 0 32px;
}
.chapter-intro p { margin: 18px 0; }
.chapter-count { text-align: right; margin-bottom: 20px; color: var(--muted); }

/* ---------- Question card ---------- */
.question-card {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-1);
  margin: 8px 0 24px;
}
.question {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

/* ---------- Answer / predict split ---------- */
.answer-block {
  margin: 24px 0;
  padding: 0;
}
.answer-block + .answer-block {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.answer-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.answer-label .who {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.answer-label .who.you {
  color: var(--you);
  background: var(--teal-tint);
  border-color: var(--teal-tint-2);
}
.answer-label .who.predict {
  color: var(--partner);
  background: var(--red-tint);
  border-color: rgba(178, 79, 68, 0.18);
}
.answer-label .hint {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

/* ---------- Likert (segmented on wide, stacked on narrow) ---------- */
.likert {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.likert-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  width: 100%;
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.likert-btn:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-2);
}
.likert-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  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(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 500;
}
.likert-btn.selected .likert-num {
  border-color: rgba(255,255,255,0.5);
  background: transparent;
  color: #fff;
}
.predict-side .likert-btn:hover {
  border-color: rgba(178, 79, 68, 0.35);
  background: var(--red-tint);
}
.predict-side .likert-btn.selected {
  background: var(--partner);
  border-color: var(--partner);
  color: #fff;
}
.predict-side .likert-btn.selected .likert-num {
  border-color: rgba(255,255,255,0.5);
  background: transparent;
  color: #fff;
}

/* ---------- Rank builder ---------- */
.rank-builder { display: flex; flex-direction: column; gap: 6px; }
.rank-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  width: 100%;
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.rank-option:hover:not(.ranked) {
  border-color: var(--hairline-strong);
  background: var(--surface-2);
}
.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.rank-option.ranked {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 500;
}
.rank-option.ranked .rank-badge {
  border-color: rgba(255,255,255,0.5);
  background: transparent;
  color: #fff;
}
.rank-option.top-pick {
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.rank-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 12px;
  line-height: 1.5;
}
.rank-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  font-weight: 500;
  align-self: flex-start;
}
.rank-clear:hover { color: var(--ink); border-bottom-color: var(--ink); }

.predict-side .rank-option:hover {
  border-color: rgba(178, 79, 68, 0.35);
  background: var(--red-tint);
}
.predict-side .rank-option.ranked {
  background: var(--partner);
  border-color: var(--partner);
  color: #fff;
}
.predict-side .rank-option.ranked .rank-badge {
  border-color: rgba(255,255,255,0.5);
  background: transparent;
  color: #fff;
}

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

.incomplete-banner {
  background: var(--red-tint);
  border: 1px solid rgba(178, 79, 68, 0.25);
  color: #7a2a1e;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Result ---------- */
.result-greeting {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}
.result-title {
  font-size: clamp(36px, 5.5vw, 56px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.radar-wrap {
  margin: 32px 0 24px;
  display: flex;
  justify-content: center;
}
.radar-wrap svg { width: 100%; max-width: 560px; height: auto; }

.radar-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.radar-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  vertical-align: 0;
  margin-right: 8px;
}
.radar-legend .swatch.you { background: var(--you); }
.radar-legend .swatch.partner { background: var(--partner); }

/* ---------- Heatmap (dot cards) ---------- */
.heatmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 40px;
}
.heatmap-cell {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  cursor: default;
  box-shadow: var(--shadow-1);
}
.heatmap-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.heatmap-cell::before {
  content: '';
  position: absolute;
  top: 22px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted-2);
}
.heatmap-cell.green::before { background: var(--green); }
.heatmap-cell.amber::before { background: var(--amber); }
.heatmap-cell.red::before   { background: var(--red); }
.heatmap-cell .cell-domain {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.heatmap-cell .cell-score {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 6px 0 4px;
  color: var(--ink);
}
.heatmap-cell .cell-band {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}
@media (max-width: 640px) {
  .heatmap { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .heatmap-cell { padding: 18px; }
  .heatmap-cell .cell-score { font-size: 34px; }
}

/* ---------- Overall alignment tag ---------- */
.overall-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 40px;
  font-size: 15px;
  color: var(--muted);
  flex-wrap: wrap;
}
.overall-tag .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.overall-tag .num.green { color: var(--green); }
.overall-tag .num.amber { color: var(--amber); }
.overall-tag .num.red   { color: var(--red); }
.overall-tag .band-label {
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- Domain detail (conversation prompts) ---------- */
.domain-detail {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 16px 0;
  box-shadow: var(--shadow-1);
}
.domain-detail.red   { background: linear-gradient(180deg, var(--red-tint), var(--paper-elev) 60%); }
.domain-detail.amber { background: linear-gradient(180deg, var(--amber-tint), var(--paper-elev) 60%); }
.domain-detail h4 {
  margin: 0 0 10px;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  letter-spacing: -0.015em;
}
.domain-detail .score-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--hairline);
}
.domain-detail.red   .score-pill { background: var(--red);   color: #fff; border-color: transparent; }
.domain-detail.amber .score-pill { background: var(--amber); color: #fff; border-color: transparent; }
.domain-detail.green .score-pill { background: var(--green); color: #fff; border-color: transparent; }
.domain-detail .prompt-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 8px 0 0;
}

/* ---------- Top pick call ---------- */
.top-pick-row {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 14px 0;
  box-shadow: var(--shadow-1);
}
.top-pick-row .tp-domain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.top-pick-row .tp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (max-width: 520px) {
  .top-pick-row .tp-grid { grid-template-columns: 1fr; }
}
.tp-cell {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.tp-cell .tp-who {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--muted);
}
.tp-cell.you {
  background: var(--teal-tint);
  border-color: var(--teal-tint-2);
}
.tp-cell.you .tp-who { color: var(--you); }
.tp-cell.partner {
  background: var(--red-tint);
  border-color: rgba(178, 79, 68, 0.18);
}
.tp-cell.partner .tp-who { color: var(--partner); }
.tp-cell .tp-value { color: var(--ink); font-weight: 500; }
.tp-call {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tp-call.correct { color: var(--green); font-weight: 500; }
.tp-call.miss    { color: var(--amber); font-weight: 500; }
.tp-call::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

/* ---------- Prediction accuracy bars ---------- */
.pred-bars {
  margin: 24px 0 32px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-1);
}
.pred-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.pred-row:last-child { border-bottom: none; }
.pred-row .pr-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
}
.pred-row .pr-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.pred-row .pr-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width 900ms var(--ease-out);
}
.pred-row .pr-score {
  text-align: right;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ---------- 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(--hairline-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: var(--paper-elev);
  color: var(--ink-3);
}
#share-status, #result-url-status, #crossref-status {
  min-height: 1.2em;
  color: var(--green);
  font-weight: 500;
  font-size: 13.5px;
  margin-top: 8px;
}

.session-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  margin: 16px 0;
  box-shadow: var(--shadow-2);
}
.session-box h3 {
  margin-top: 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.session-box p { color: rgba(255,255,255,0.7); }
.session-box .btn.primary {
  background: #fff;
  color: var(--ink);
}
.session-box .btn.primary:hover { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.session-box .btn.ghost {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.session-box .btn.ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.session-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
}
.session-box #result-url-status { color: rgba(255,255,255,0.8); }

.crossref-box {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin: 16px 0;
  box-shadow: var(--shadow-1);
}
.crossref-box h3 { margin-top: 0; letter-spacing: -0.02em; }

/* ---------- Signoff ---------- */
.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(--ink-2);
  letter-spacing: -0.005em;
}
.signoff .signature {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.signoff .signature .name {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Site footer ---------- */
.site-footer {
  max-width: var(--container-wide);
  margin: 40px auto 0;
  padding: 40px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.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; }
.site-footer-text {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
  letter-spacing: 0;
}
.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.site-footer-links a {
  color: var(--muted);
  border-bottom: none;
  font-weight: 500;
  letter-spacing: 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer-links a:hover {
  color: var(--ink);
}
@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 { padding: 28px 24px 24px; }
  .lead-capture { padding: 32px 28px; }
  .session-box, .crossref-box { padding: 28px 24px; }
  .pred-row { grid-template-columns: 110px 1fr 56px; gap: 12px; }
  .pred-bars { padding: 20px 22px; }
  .answer-block + .answer-block { margin-top: 24px; padding-top: 24px; }
}

/* ---------- Accessibility ---------- */
.btn:focus-visible,
.likert-btn:focus-visible,
.rank-option:focus-visible,
.radio-pill:focus-within,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  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; font-size: 12pt; color: #000; }
  .site-footer, .nav-row, .session-box, .share-box, .crossref-box,
  #share-url, #share-status, #result-url-status, #crossref-status,
  .progress { display: none !important; }
  #app { max-width: 100%; padding: 0; }
  .heatmap-cell, .domain-detail, .top-pick-row, .pred-bars {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  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; }
}
