:root {
  --purple: #1b1247;
  --accent: #981098;
  --accent-soft: #f0e6f4;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --warning: #fff7ed;
  --error: #b91c1c;
  font-family: Georgia, "Georgia Pro", "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fbfafc 0%, #f7f3f8 100%);
  color: var(--ink);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 54px);
}
.brand-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}
.logo { width: 220px; max-width: 100%; height: auto; }
.eyebrow {
  margin: 0 0 7px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
h1, h2, h3 { color: var(--purple); margin: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 0.95; letter-spacing: -0.03em; }
.lede { font-size: 18px; max-width: 760px; line-height: 1.55; margin: 14px 0 0; color: var(--muted); }

.layout {
  max-width: 1180px;
  margin: 28px auto 60px;
  padding: 0 clamp(18px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(27, 18, 71, 0.06);
  padding: 24px;
}
.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-heading h2 { font-size: 24px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.step-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-weight: 700;
  color: var(--purple);
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: white;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(152, 16, 152, 0.14);
  border-color: var(--accent);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hidden { display: none !important; }
.privacy-note {
  margin: 15px 0 0;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--purple);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.45;
}
.actions, .report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
button:hover { transform: translateY(-1px); }
.primary { background: var(--accent); color: white; box-shadow: 0 9px 20px rgba(152, 16, 152, 0.22); }
.alt-primary { background: var(--purple); }
.compare-primary { background: #4b164c; }
.secondary { background: var(--purple); color: white; }
.ghost { background: transparent; color: var(--purple); border: 1px solid var(--line); }

.empty-state { text-align: center; padding: 24px 0 8px; color: var(--muted); }
.animal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 22px; }
.animal-grid div {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 16px;
  padding: 16px 10px;
  display: grid;
  gap: 5px;
}
.animal-grid span { font-size: 68px; }
.animal-grid strong { color: var(--purple); }
.animal-grid small { color: var(--muted); }

.loading { text-align: center; padding: 42px 0; color: var(--purple); }
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 14px; border-radius: 12px; color: var(--error); background: #fee2e2; }

.report { display: grid; gap: 18px; }
.mode-pill {
  justify-self: start;
  background: var(--warning);
  color: #92400e;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.hero-result {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--purple);
  color: white;
}
.hero-result h2, .hero-result .eyebrow { color: white; }
.hero-result h2 { font-size: 36px; margin-bottom: 8px; }
.summary { line-height: 1.5; margin: 0; color: rgba(255,255,255,0.88); }
.confidence-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  align-content: center;
  text-align: center;
}
.animal-emoji { font-size: 96px; }
.confidence-card strong { font-size: 18px; margin-top: 7px; }
.confidence-card small { color: rgba(255,255,255,0.8); line-height: 1.4; }

.scorecard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.score-box {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 14px;
  padding: 12px;
}
.score-box strong { display: flex; justify-content: space-between; color: var(--purple); }
.bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--accent); }

.dimension-list { display: grid; gap: 10px; }
.dimension-card {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  padding: 12px;
}
.dimension-card strong { color: var(--purple); }
.dimension-card p { margin: 5px 0 0; line-height: 1.45; }
.three-col-report { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.three-col-report > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: white;
}
ul { padding-left: 19px; margin: 8px 0 0; }
li { margin-bottom: 7px; line-height: 1.38; }
.next-steps { display: grid; gap: 12px; }
.next-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: white;
}
.next-card h4 { margin: 0 0 6px; color: var(--purple); }
.next-card p { margin: 5px 0; line-height: 1.45; }
.quote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--purple);
  font-style: italic;
}
.disclaimer {
  background: var(--accent-soft);
  border: 1px solid #d8b4e2;
  color: var(--purple);
  border-radius: 14px;
  padding: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .brand-wrap, .layout, .hero-result, .three-col-report { grid-template-columns: 1fr; }
  .logo { width: 180px; }
}
@media (max-width: 560px) {
  .two-col, .scorecard, .animal-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: 16px; }
}
@media print {
  body { background: white; }
  .input-panel, .site-header, .no-print, .section-heading p { display: none !important; }
  .layout { display: block; margin: 0; padding: 0; }
  .panel { box-shadow: none; border: none; }
  .output-panel { padding: 0; }
  .hero-result { color: #1f2937; background: white; border: 1px solid #ddd; }
  .hero-result h2, .hero-result .eyebrow { color: #1b1247; }
  .summary, .confidence-card small { color: #1f2937; }
}

.compare-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}
.compare-animal {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.compare-animal .animal-emoji { font-size: 96px; line-height: 1; }
.compare-animal small {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.compare-link {
  font-size: 40px;
  line-height: 1;
  color: rgba(255,255,255,0.88);
}
.compare-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.compare-profile-emoji {
  font-size: 64px;
  line-height: 1;
}

.compare-report { display: grid; gap: 18px; }
.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.compare-profile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 16px;
}
.compare-profile h3 {
  margin: 4px 0 6px;
  color: var(--purple);
  font-size: 24px;
}
.compare-profile small { color: var(--muted); line-height: 1.4; }
.compare-hero h2 { font-size: 32px; }
.compare-three-col > div { background: white; }
@media (max-width: 900px) {
  .compare-pair { grid-template-columns: 1fr; }
  .compare-icons { gap: 10px; }
  .compare-animal .animal-emoji { font-size: 80px; }
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.objective-check-card {
  border: 1px solid rgba(152, 16, 152, 0.2);
  background: linear-gradient(180deg, #fff 0%, #fcf8fd 100%);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.objective-check-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.objective-check-head h3 {
  font-size: 24px;
}
.objective-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.objective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.objective-grid > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
}
.objective-grid strong, .objective-note strong {
  display: block;
  color: var(--purple);
  margin-bottom: 6px;
}
.objective-grid p, .objective-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}
.objective-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.45;
}
.objective-note {
  border-left: 4px solid var(--accent);
  background: white;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
}
.next-objective-step {
  background: var(--accent-soft);
}
@media (max-width: 900px) {
  .objective-grid { grid-template-columns: 1fr; }
  .objective-check-head { flex-direction: column; }
}


/* v0.8.1 comparison layout fixes */
.compare-hero {
  grid-template-columns: 1fr;
  overflow: hidden;
}
.compare-card {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}
.compare-icons {
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}
.compare-animal {
  min-width: 0;
}
.compare-animal .animal-emoji {
  font-size: clamp(70px, 9vw, 96px);
}
.compare-link {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .compare-hero { grid-template-columns: 1fr; }
}

/* v0.8.2 icon, layout and PDF polish */
.animal-icon,
.animal-emoji,
.compare-profile-emoji,
[data-animal-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.animal-icon svg,
.animal-emoji svg,
.compare-profile-emoji svg,
[data-animal-icon] svg {
  width: 1em;
  height: 1em;
  display: block;
}
.animal-grid [data-animal-icon] { font-size: 68px; }
.compare-animal {
  width: 132px;
  max-width: 132px;
}
.compare-animal small {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  max-width: 132px;
  text-align: center;
}
.compare-card { overflow: visible; }
.compare-icons { gap: 14px; }
.next-card, .objective-check-card, .hero-result, .compare-profile, .three-col-report > div {
  break-inside: avoid;
  page-break-inside: avoid;
}
h3 { break-after: avoid; page-break-after: avoid; }
.quote { overflow-wrap: break-word; word-break: normal; }
@media print {
  .compare-card { overflow: visible; }
  .compare-animal { width: 126px; max-width: 126px; }
  .compare-animal small { font-size: 9px; letter-spacing: 0.04em; }
  .next-card, .objective-check-card, .hero-result, .compare-profile, .three-col-report > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


/* v0.8.2 icon rollback: restore emoji-style animal icons while keeping Lion as the Tiger-facing label. */
.animal-emoji,
.compare-profile-emoji,
[data-animal-icon] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}
.compare-animal {
  width: 150px;
  max-width: 150px;
}
.compare-animal small {
  display: block;
  max-width: none;
  width: max-content;
  margin: 0 auto;
  white-space: nowrap;
}
@media print {
  .compare-animal { width: 150px; max-width: 150px; }
  .compare-animal small { max-width: none; width: max-content; white-space: nowrap; }
}


/* v0.8.6.0 animal icon hover prescriptions */
.animal-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  line-height: 1;
  overflow: visible;
}
.animal-icon-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.animal-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  width: min(360px, 78vw);
  padding: 12px 14px;
  border-radius: 12px;
  background: #1b1247;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 35px rgba(27, 18, 71, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.animal-tooltip::before {
  content: "";
  position: absolute;
  z-index: 1001;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #1b1247;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.animal-tooltip:hover::after,
.animal-tooltip:focus::after,
.animal-tooltip:hover::before,
.animal-tooltip:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.animal-tooltip:hover::before,
.animal-tooltip:focus::before {
  transform: translateX(-50%);
}
.confidence-card,
.compare-card,
.compare-profile,
.animal-grid div,
.hero-result,
.report {
  overflow: visible;
}
@media print {
  .animal-tooltip::after,
  .animal-tooltip::before { display: none; }
}


/* colour-backed Instinct icons on the v0.8.6.0 functional baseline */
.animal-icon-inner {
  min-width: 96px;
  min-height: 96px;
  padding: 10px;
  border-radius: 24px;
  box-sizing: border-box;
  box-shadow: 0 10px 20px rgba(27, 18, 71, 0.12);
}
.animal-bg-lion {
  background: linear-gradient(180deg, #c5162e 0%, #8f1022 100%);
}
.animal-bg-owl {
  background: linear-gradient(180deg, #1f3f8f 0%, #12295f 100%);
}
.animal-bg-elephant {
  background: linear-gradient(180deg, #20a364 0%, #127545 100%);
}
.animal-bg-fox {
  background: linear-gradient(180deg, #e6a11a 0%, #bf7b00 100%);
}
.animal-bg-mixed-unclear {
  background: linear-gradient(180deg, #bdbfc8 0%, #8e93a3 100%);
}

.animal-grid .animal-icon-inner {
  min-width: 104px;
  min-height: 104px;
}
.confidence-card .animal-icon-inner,
.compare-animal .animal-icon-inner,
.compare-profile .animal-icon-inner,
.hero-result .animal-icon-inner {
  min-width: 110px;
  min-height: 110px;
}
.animal-icon-inner .animal-emoji,
.animal-icon-inner {
  font-size: 72px;
}
@media (max-width: 720px) {
  .animal-icon-inner {
    min-width: 84px;
    min-height: 84px;
    border-radius: 20px;
  }
  .animal-grid .animal-icon-inner,
  .confidence-card .animal-icon-inner,
  .compare-animal .animal-icon-inner,
  .compare-profile .animal-icon-inner,
  .hero-result .animal-icon-inner {
    min-width: 92px;
    min-height: 92px;
  }
}
@media print {
  .animal-icon-inner {
    box-shadow: none;
  }
}


/* v0.8.6.0 sample navigation, objective expansion and blended animal icons */
#objective {
  min-height: 58px;
  resize: vertical;
  overflow: hidden;
}

.sample-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sample-controls button {
  margin: 0;
}

.sample-nav {
  min-width: 38px;
  padding-left: 13px;
  padding-right: 13px;
}

.animal-blend-icon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--primary-colour) 0%,
    var(--primary-colour) var(--primary-share),
    var(--secondary-colour) var(--primary-share),
    var(--secondary-colour) 100%
  );
}

.animal-blend-icon .blend-half {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: inherit;
}

.animal-blend-icon .blend-primary {
  clip-path: inset(0 calc(100% - var(--primary-share)) 0 0);
}

.animal-blend-icon .blend-secondary {
  clip-path: inset(0 0 0 var(--primary-share));
}

.animal-blend-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: var(--primary-share);
  width: 1px;
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(-0.5px);
}

@media (max-width: 720px) {
  .sample-controls {
    width: 100%;
  }
  .sample-controls #sampleBtn {
    flex: 1;
  }
}




/* v0.8.6.0 branded icon refinement pass */
.animal-grid .animal-icon-inner,
.confidence-card .animal-icon-inner,
.compare-animal .animal-icon-inner,
.compare-profile .animal-icon-inner,
.hero-result .animal-icon-inner {
  position: relative;
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 12px 24px rgba(31, 41, 55, 0.10);
}

.animal-bg-lion,
.animal-bg-owl,
.animal-bg-elephant,
.animal-bg-fox,
.animal-bg-mixed-unclear {
  position: relative;
}

.animal-bg-lion::before,
.animal-bg-owl::before,
.animal-bg-elephant::before,
.animal-bg-fox::before,
.animal-bg-mixed-unclear::before,
.animal-blend-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.18), transparent 45%),
              linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}

.animal-icon-inner img,
.animal-icon-inner svg,
.blend-half img,
.blend-half svg {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(17,24,39,0.16));
}

.animal-emoji .animal-tooltip,
.compare-profile-emoji .animal-tooltip {
  font-size: inherit;
}

.animal-blend-icon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary-colour) 0%, var(--primary-colour) var(--primary-share), var(--secondary-colour) var(--primary-share), var(--secondary-colour) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 12px 24px rgba(31, 41, 55, 0.12);
}

.animal-blend-icon .blend-half {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: inherit;
  padding: 0;
}

.animal-blend-icon .blend-primary {
  clip-path: inset(0 calc(100% - var(--primary-share)) 0 0);
}

.animal-blend-icon .blend-secondary {
  clip-path: inset(0 0 0 var(--primary-share));
}

.animal-blend-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: var(--primary-share);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
  transform: translateX(-50%);
}

.animal-blend-icon[data-share="60"]::after { opacity: 0.9; }



/* v0.8.6.0 report UX polish */
.output-panel { position: relative; }
.report-shell { display: grid; gap: 18px; }
.report-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(27, 18, 71, 0.04);
}
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-header-row h3 { font-size: 22px; margin: 0; }
.section-header-row p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.glance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.glance-card {
  border: 1px solid rgba(152, 16, 152, 0.14);
  background: linear-gradient(180deg, #fff 0%, #f9f5fb 100%);
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 90px;
}
.glance-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.glance-card strong {
  display: block;
  color: var(--purple);
  font-size: 22px;
  line-height: 1.15;
}
.hero-result {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 32px rgba(27, 18, 71, 0.12);
}
.score-section .scorecard { margin-top: 4px; }
.score-box {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  padding: 14px;
}
.score-box strong span:first-child { font-size: 15px; }
.bar { height: 10px; margin-top: 10px; }
.bar span { border-radius: 999px; }
.dimension-list { gap: 12px; }
.dimension-card {
  border-left-width: 5px;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
  padding: 14px;
}
.three-col-report { gap: 12px; }
.three-col-report > div {
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
  padding: 16px;
  border-radius: 16px;
}
.three-col-report > div h3 { font-size: 20px; }
ul { margin-top: 10px; }
li { margin-bottom: 8px; line-height: 1.44; }
.next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.next-card {
  background: linear-gradient(180deg, #fff 0%, #fcfbfe 100%);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(27, 18, 71, 0.05);
}
.next-card h4 { font-size: 19px; line-height: 1.25; }
.quote { margin-top: 10px; background: var(--accent-soft); padding: 10px 12px; border-radius: 10px; border-left-width: 4px; }
.missing-section ul, .style-match {
  border: 1px dashed rgba(152, 16, 152, 0.24);
  border-radius: 14px;
  padding: 16px 18px 8px 34px;
  background: linear-gradient(180deg, #fff 0%, #faf8fc 100%);
}
.report-note.disclaimer {
  background: linear-gradient(180deg, #f7eef8 0%, #f3e7f6 100%);
  border: 1px solid #d8b4e2;
  padding: 16px;
}
.compare-report .compare-pair { margin-top: 2px; }
.compare-profile { background: linear-gradient(180deg, #fff 0%, #f9fafc 100%); }
.compare-profile-top { align-items: center; }
.compare-profile-emoji { font-size: 68px; }
.compare-three-col > div { background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%); }
.objective-check-card {
  box-shadow: 0 10px 24px rgba(152,16,152,0.05);
}
.objective-grid > div, .objective-note {
  background: linear-gradient(180deg, #fff 0%, #fcfbfe 100%);
}
.report-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .glance-strip, .next-steps, .three-col-report, .scorecard { grid-template-columns: 1fr; }
  .report-section { padding: 16px; }
}
@media print {
  .report-section, .objective-check-card { box-shadow: none; }
  .glance-card, .score-box, .next-card, .three-col-report > div, .compare-profile { box-shadow: none; }
  .glance-strip, .next-steps { grid-template-columns: 1fr 1fr 1fr; }
}


/* v0.8.6.0 UX polish: stacked layout and darker Compare & Adapt panel */
.layout {
  max-width: 980px;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.input-panel,
.output-panel {
  width: 100%;
}

.output-panel {
  scroll-margin-top: 18px;
}

.compare-hero {
  background: linear-gradient(180deg, #140a3a 0%, #0c0628 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 42px rgba(12, 6, 40, 0.24);
}

.compare-hero .confidence-card.compare-card {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.compare-hero .compare-card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

@media (min-width: 1180px) {
  .layout {
    max-width: 1040px;
  }
}

@media print {
  .layout {
    max-width: none;
  }
}


/* v0.8.6.0 UX fixes: reliable scroll target, icon sizing and section order */
.output-panel {
  scroll-margin-top: 14px;
}

.compare-profile-top {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.compare-profile-emoji {
  width: 116px;
  height: 116px;
  min-width: 116px;
  max-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  line-height: 1;
}

.compare-profile-emoji .animal-tooltip,
.compare-profile-emoji .animal-icon-inner {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  max-height: 112px !important;
}

.compare-profile-emoji .animal-icon-inner img,
.compare-profile-emoji .animal-icon-inner svg,
.compare-profile-emoji .blend-half img,
.compare-profile-emoji .blend-half svg {
  width: 78% !important;
  height: 78% !important;
  object-fit: contain;
}

.compare-profile h3,
.compare-profile small {
  overflow-wrap: anywhere;
}

.compare-profile {
  min-height: 154px;
}

.compare-profile .animal-tooltip::after {
  width: min(320px, 70vw);
}

@media (max-width: 720px) {
  .compare-profile-top {
    grid-template-columns: 106px minmax(0, 1fr);
  }
  .compare-profile-emoji {
    width: 98px;
    height: 98px;
    min-width: 98px;
    max-width: 98px;
  }
  .compare-profile-emoji .animal-tooltip,
  .compare-profile-emoji .animal-icon-inner {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

@media print {
  .compare-profile-emoji,
  .compare-profile-emoji .animal-tooltip,
  .compare-profile-emoji .animal-icon-inner {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    min-height: 86px !important;
  }
  .compare-profile-top {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}


/* v0.8.6.0 enterprise context and stakeholder polish */
.form-section {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(152, 16, 152, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcf9fd 100%);
}

.form-section:first-of-type {
  margin-top: 10px;
}

.form-section-heading {
  margin-bottom: 12px;
}

.form-section-heading h3 {
  font-size: 22px;
  margin: 0;
  color: var(--purple);
}

.form-section-heading .eyebrow {
  margin-bottom: 6px;
}

.engagement-context-section {
  background: linear-gradient(180deg, #fff 0%, #fbf4fb 100%);
}

.stakeholder-section {
  background: linear-gradient(180deg, #fff 0%, #f9fafc 100%);
}

.evidence-input-section {
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}

.report-metadata {
  border: 1px solid rgba(152, 16, 152, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fbf6fc 100%);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(27, 18, 71, 0.04);
}

.section-header-row.compact {
  margin-bottom: 10px;
}

.section-header-row.compact h3 {
  font-size: 20px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metadata-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
  min-height: 76px;
}

.metadata-chip span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 7px;
}

.metadata-chip strong {
  display: block;
  color: var(--purple);
  font-size: 16px;
  line-height: 1.25;
}

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

@media print {
  .form-section,
  .report-metadata,
  .metadata-chip {
    box-shadow: none;
  }
  .metadata-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v0.8.6.0 account context polish */
.account-field-row {
  margin-bottom: 14px;
}
.account-field-row label {
  margin-top: 0;
}
.account-field-row input {
  max-width: 100%;
}
.account-field-row .field-help {
  margin-bottom: 0;
}
.metadata-chip:first-child {
  border-color: rgba(152, 16, 152, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fbf3fc 100%);
}


/* v0.8.6.0 CRM context preview */
.crm-preview-card,
.crm-report-preview {
  margin-top: 14px;
  border: 1px solid rgba(152, 16, 152, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf3fb 100%);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(27, 18, 71, 0.05);
}

.crm-report-preview {
  margin-top: 0;
}

.crm-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.crm-preview-head span {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.crm-preview-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.crm-preview-card p,
.crm-report-preview p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.45;
}

.crm-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.crm-context-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 10px;
  color: var(--purple);
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .crm-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .crm-context-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .crm-preview-card,
  .crm-report-preview {
    box-shadow: none;
  }
}


/* v0.8.6.0 UX simplification and extra stakeholders */
.site-header .lede {
  display: none;
}

.section-heading > div > p {
  display: none;
}

.form-section-heading {
  margin-bottom: 10px;
}

.form-section-heading h3:empty {
  display: none;
}

.extra-stakeholders {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.extra-stakeholder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.add-stakeholder-btn {
  margin-top: 12px;
}

.remove-stakeholder-btn {
  padding: 11px 14px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .extra-stakeholder-row {
    grid-template-columns: 1fr;
  }
  .remove-stakeholder-btn {
    justify-self: start;
  }
}


/* v0.8.6.0 multi-stakeholder UX and report polish */
.stakeholder-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.stakeholder-card,
.extra-stakeholder-row {
  border: 1px solid rgba(152, 16, 152, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9fd 100%);
  padding: 14px;
}

.stakeholder-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stakeholder-card-head span,
.next-target,
.speaker-confidence-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stakeholder-field-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.extra-stakeholders {
  display: grid;
  gap: 12px;
}

.extra-stakeholder-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.7fr) minmax(0, 1.1fr) auto;
  gap: 12px;
  align-items: end;
}

.extra-stakeholder-row label {
  margin-top: 0;
}

.add-stakeholder-btn {
  margin-top: 10px;
}

.next-target {
  margin-bottom: 8px;
  background: #f3e7f6;
}

.speaker-confidence-badge.high { background: #dcfce7; color: #166534; }
.speaker-confidence-badge.medium { background: #fef3c7; color: #92400e; }
.speaker-confidence-badge.low { background: #fee2e2; color: #991b1b; }

.speaker-confidence-note {
  border: 1px solid rgba(152, 16, 152, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbf6fc 100%);
  padding: 14px;
}

.speaker-confidence-note > strong {
  color: var(--purple);
  display: block;
  margin-bottom: 6px;
}

.speaker-confidence-note p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.speaker-match-grid,
.stakeholder-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.speaker-match-grid span {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stakeholder-reading-grid {
  margin-top: 12px;
}

.stakeholder-reading-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 14px;
}

.stakeholder-reading-top {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.stakeholder-reading-top span {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stakeholder-reading-top strong {
  color: var(--purple);
  font-size: 18px;
  line-height: 1.2;
}

.stakeholder-reading-card p {
  margin: 7px 0 0;
  line-height: 1.42;
}

@media (max-width: 900px) {
  .stakeholder-core-grid,
  .extra-stakeholder-row,
  .speaker-match-grid,
  .stakeholder-reading-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .stakeholder-card,
  .extra-stakeholder-row,
  .stakeholder-reading-card,
  .speaker-confidence-note {
    box-shadow: none;
  }
}


/* v0.8.6.3 heraldic icon presentation refresh */
.brand-wrap--crest {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
}
.header-octopus {
  width: min(180px, 34vw);
  max-width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(27, 18, 71, 0.14));
}
.site-header {
  padding-top: 20px;
  padding-bottom: 10px;
}

/* Remove coloured tiles behind the heraldic icons across the experience */
.animal-icon-inner,
.animal-grid .animal-icon-inner,
.confidence-card .animal-icon-inner,
.compare-animal .animal-icon-inner,
.compare-profile .animal-icon-inner,
.hero-result .animal-icon-inner,
.compare-profile-emoji .animal-icon-inner {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.animal-bg-lion,
.animal-bg-owl,
.animal-bg-elephant,
.animal-bg-fox,
.animal-bg-mixed-unclear,
.animal-bg-lion::before,
.animal-bg-owl::before,
.animal-bg-elephant::before,
.animal-bg-fox::before,
.animal-bg-mixed-unclear::before {
  background: transparent !important;
}

.animal-blend-icon,
.animal-blend-icon::before {
  background: transparent !important;
  box-shadow: none !important;
}

.animal-grid [data-animal-icon],
.compare-animal,
.compare-profile-emoji,
.hero-result .animal-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.animal-icon-inner img,
.animal-icon-inner svg,
.blend-half img,
.blend-half svg,
.compare-profile-emoji .animal-icon-inner img,
.compare-profile-emoji .animal-icon-inner svg,
.compare-profile-emoji .blend-half img,
.compare-profile-emoji .blend-half svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(17,24,39,0.14));
}

/* Keep the split logic but without coloured background plates */
.animal-blend-icon::after {
  top: 6px !important;
  bottom: 6px !important;
  width: 2px !important;
  border-radius: 999px;
  background: rgba(75, 55, 120, 0.24) !important;
  box-shadow: none !important;
}

/* Slightly rebalance icon footprint after removing the coloured plates */
.animal-grid .animal-icon-inner {
  min-width: 120px !important;
  min-height: 120px !important;
}
.confidence-card .animal-icon-inner,
.compare-animal .animal-icon-inner,
.compare-profile .animal-icon-inner,
.hero-result .animal-icon-inner {
  min-width: 128px !important;
  min-height: 128px !important;
}
.compare-profile-emoji .animal-tooltip,
.compare-profile-emoji .animal-icon-inner {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
}
@media (max-width: 720px) {
  .header-octopus {
    width: min(132px, 42vw);
  }
  .animal-grid .animal-icon-inner {
    min-width: 92px !important;
    min-height: 92px !important;
  }
  .confidence-card .animal-icon-inner,
  .compare-animal .animal-icon-inner,
  .compare-profile .animal-icon-inner,
  .hero-result .animal-icon-inner,
  .compare-profile-emoji .animal-tooltip,
  .compare-profile-emoji .animal-icon-inner {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}


/* v0.8.6.3 header and Compare & Adapt refinements */
.brand-wrap--instinct {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
}
.brand-wrap--instinct .header-octopus {
  width: 118px;
  max-width: 118px;
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(27, 18, 71, 0.14));
}
.instinct-brand-title {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.instinct-brand-title span {
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.site-header {
  padding-top: 18px;
  padding-bottom: 14px;
}

.compare-icons .compare-animal {
  display: grid !important;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
}
.compare-icons .compare-animal .animal-emoji {
  grid-row: 1;
}
.compare-icons .compare-animal > small {
  grid-row: 2;
  display: block;
  margin-top: 0;
  text-align: center;
  width: 100%;
}
.compare-icons .compare-link {
  align-self: center;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .brand-wrap--instinct {
    gap: 14px;
  }
  .brand-wrap--instinct .header-octopus {
    width: 86px;
    max-width: 86px;
  }
  .instinct-brand-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .instinct-brand-title span {
    display: block;
    margin-top: 5px;
    font-size: 0.45em;
    white-space: normal;
  }
}

/* Public demo guardrails */
.demo-banner {
  background: var(--purple);
  color: white;
  padding: 12px clamp(18px, 4vw, 54px);
}
.demo-banner > div {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.demo-banner strong {
  letter-spacing: 0.08em;
}
.input-panel input[readonly],
.input-panel textarea[readonly],
.input-panel select:disabled {
  background: #f7f7f9;
  color: var(--ink);
  opacity: 1;
  cursor: default;
}
.input-panel select:disabled {
  -webkit-text-fill-color: var(--ink);
}
@media (max-width: 640px) {
  .demo-banner > div { display: block; }
  .demo-banner strong { display: block; margin-bottom: 4px; }
}
