/* ==========================================================================
   eHive — AssessEngine shared styles
   Used by the standalone assessment tool pages (brand-check, and later
   clarity-scorecard). Palette mirrors tokens.css; pages load only fonts.css,
   so the token values are duplicated here on purpose — keep in sync.
   ========================================================================== */

:root {
  --eh-coral-500: #da3a22;
  --eh-coral-400: #e4573f;
  --eh-coral-300: #f0a99b;
  --eh-coral-soft: rgba(218, 58, 34, 0.12);
  --eh-navy-950: #0b1526;
  --eh-navy-900: #0f1c3a;
  --eh-navy-800: #16264c;
  --eh-navy-700: #1e3157;
  --eh-paper-50: #faf8f2;
  --eh-paper-100: #f3f1ea;
  --eh-paper-200: #e4decf;
  --eh-ink-900: #141312;
  --eh-ink-600: #5f5c53;
  --eh-white: #ffffff;
  --eh-line-dark: rgba(255, 255, 255, 0.12);
  --eh-font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --eh-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eh-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --eh-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --eh-shadow-card: 0 1px 2px rgba(11, 21, 38, 0.05), 0 10px 28px rgba(11, 21, 38, 0.07);
  --eh-shadow-lift: 0 2px 4px rgba(11, 21, 38, 0.07), 0 16px 36px rgba(11, 21, 38, 0.13);
}

/* Tool pages load only fonts.css + assess.css — set the paper stage here. */
body {
  background: var(--eh-paper-50);
}
/* faint hexagon watermark behind the wizard/report */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  right: -130px;
  width: 440px;
  height: 480px;
  background: var(--eh-navy-900);
  opacity: 0.05;
  clip-path: var(--eh-hex);
  pointer-events: none;
  z-index: 0;
}
body.embed::before {
  display: none;
}
::selection {
  background: var(--eh-coral-soft);
  color: var(--eh-navy-950);
}

.assess-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 72px;
  font-family: var(--eh-font-body);
  background: transparent;
  color: var(--eh-ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.embed .assess-wrap {
  padding-top: 16px;
}

.assess-brand {
  display: inline-block;
  line-height: 0;
  background: var(--eh-navy-900);
  padding: 9px 14px;
  border-radius: 9px;
  transition: background 0.18s ease;
}
.assess-brand:hover {
  background: var(--eh-navy-800);
}
.assess-brand img {
  height: 22px;
  width: auto;
  display: block;
}
.assess-rule {
  height: 3px;
  width: 56px;
  background: var(--eh-coral-500);
  margin: 12px 0 0;
}

.assess-wrap h1 {
  font-family: var(--eh-font-display);
  font-size: clamp(27px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 22px 0 14px;
}
.assess-wrap h2 {
  font-family: var(--eh-font-display);
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 10px;
}
.assess-lede {
  font-size: 17px;
  color: var(--eh-ink-600);
  max-width: 62ch;
}

.assess-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
  padding: 16px 0;
  border-top: 1px solid var(--eh-paper-200);
  border-bottom: 1px solid var(--eh-paper-200);
}
.assess-meta div {
  font-size: 13px;
  color: var(--eh-ink-600);
}
.assess-meta b {
  display: block;
  font-family: var(--eh-font-display);
  font-size: 17px;
  color: var(--eh-navy-900);
}

/* Bare buttons only: the reset must not out-specify the component classes
   below (e.g. .assess-btn/.assess-sopt are (0,1,0) and would lose their
   background/border/color to this rule), or every styled <button> in the
   engine renders as plain text. */
.assess-wrap button:not([class]) {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.assess-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--eh-navy-900);
  color: var(--eh-white);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.16s var(--eh-ease-expo),
    box-shadow 0.2s var(--eh-ease-expo);
}
.assess-btn:hover {
  background: var(--eh-navy-800);
  box-shadow: 0 6px 18px rgba(11, 21, 38, 0.22);
}
.assess-btn:active {
  transform: translateY(1px) scale(0.99);
}
.assess-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.assess-btn-coral {
  background: var(--eh-coral-500);
}
.assess-btn-coral:hover {
  background: var(--eh-coral-400);
  box-shadow: 0 6px 18px rgba(218, 58, 34, 0.3);
}
.assess-btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  color: var(--eh-ink-600);
  padding: 12px 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.assess-btn-ghost:hover {
  color: var(--eh-navy-900);
}
.assess :focus-visible {
  outline: 2.5px solid var(--eh-coral-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.assess-hidden {
  display: none !important;
}

/* ---- progress ---------------------------------------------------------- */
.assess-prog {
  margin: 0 0 24px;
}
.assess-prog-track {
  height: 6px;
  background: var(--eh-paper-200);
  border-radius: 5px;
  overflow: hidden;
}
.assess-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--eh-coral-500), var(--eh-coral-400));
  border-radius: 5px;
  width: 0;
  transition: width 0.45s var(--eh-ease-expo);
}
.assess-prog-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eh-ink-600);
  margin-top: 8px;
}
.assess-prog-hex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.assess-hex {
  width: 16px;
  height: 18px;
  background: var(--eh-paper-200);
  clip-path: var(--eh-hex);
  transition:
    background 0.3s var(--eh-ease-expo),
    filter 0.3s var(--eh-ease-expo),
    transform 0.3s var(--eh-ease-expo);
}
.assess-hex.done {
  background: var(--eh-coral-300);
}
.assess-hex.done:hover {
  filter: drop-shadow(0 0 4px rgba(218, 58, 34, 0.3));
}
.assess-hex.now {
  background: var(--eh-coral-500);
  transform: scale(1.18);
  filter: drop-shadow(0 1px 5px rgba(218, 58, 34, 0.5));
  animation: assess-hex-pulse 2.4s var(--eh-ease-expo) infinite;
}
@keyframes assess-hex-pulse {
  0%,
  100% {
    filter: drop-shadow(0 1px 5px rgba(218, 58, 34, 0.5));
  }
  50% {
    filter: drop-shadow(0 1px 10px rgba(218, 58, 34, 0.85));
  }
}

.assess-step-no {
  font-family: var(--eh-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-coral-500);
  font-weight: 700;
  margin-bottom: 4px;
}
.assess-step-title {
  font-family: var(--eh-font-display);
  font-size: clamp(21px, 3.4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.assess-step-intro {
  font-size: 14.5px;
  color: var(--eh-ink-600);
  margin: 0 0 22px;
  max-width: 62ch;
}

/* ---- step transitions (transform/opacity only, replayed per render) ----- */
.assess-step-fwd {
  animation: assess-step-in 0.32s var(--eh-ease-expo) both;
}
.assess-step-back {
  animation: assess-step-out 0.32s var(--eh-ease-expo) both;
}
@keyframes assess-step-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes assess-step-out {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- questions ---------------------------------------------------------- */
.assess-q {
  margin: 0 0 14px;
  background: var(--eh-white);
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 12px;
  padding: 17px 18px 18px;
  box-shadow: var(--eh-shadow-card);
}
.assess-qlabel {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--eh-navy-950);
  margin: 0 0 4px;
}
.assess-qhint {
  font-size: 13px;
  color: var(--eh-ink-600);
  margin: 0 0 10px;
}
.assess-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eh-ink-600);
  margin: 0 0 6px;
  font-weight: 700;
}
.assess-textarea,
.assess-input,
.assess-select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 6px;
  background: var(--eh-white);
  color: var(--eh-ink-900);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  appearance: none;
  -webkit-appearance: none;
}
.assess-textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}
.assess-textarea:focus,
.assess-input:focus,
.assess-select:focus {
  border-color: var(--eh-coral-500);
  box-shadow: 0 0 0 3.5px var(--eh-coral-soft);
  outline: none;
}

/* 1–5 scale */
.assess-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.assess-sopt {
  flex: 1 1 0;
  min-width: 52px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--eh-paper-50);
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 8px;
  padding: 10px 6px;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--eh-ink-600);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s var(--eh-ease-expo),
    box-shadow 0.22s var(--eh-ease-expo);
}
.assess-sopt .assess-snum {
  font-family: var(--eh-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--eh-navy-900);
  transition: color 0.16s ease;
}
.assess-sopt:hover {
  border-color: var(--eh-coral-500);
  background: #fffdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 21, 38, 0.09);
}
.assess-sopt:active {
  transform: translateY(0) scale(0.96);
}
.assess-sopt.sel {
  border-color: var(--eh-navy-900);
  background: var(--eh-navy-900);
  color: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 1.5px var(--eh-coral-500),
    0 8px 18px rgba(11, 21, 38, 0.28);
  transform: translateY(-2px);
}
.assess-sopt.sel .assess-snum {
  color: var(--eh-coral-400);
}
.assess-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--eh-ink-600);
  margin-top: 8px;
}
.assess-scale-key {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--eh-coral-500);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s;
}
.assess-sopt .assess-scale-key {
  margin-left: 0;
  font-weight: 500;
}
.assess-sopt.sel .assess-scale-key {
  opacity: 1;
}

/* scored multiple choice */
.assess-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assess-copt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: var(--eh-paper-50);
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 8px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--eh-ink-900);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.18s var(--eh-ease-expo),
    box-shadow 0.22s var(--eh-ease-expo);
}
.assess-copt:hover {
  border-color: var(--eh-coral-500);
  background: #fffdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 21, 38, 0.09);
}
.assess-copt:active {
  transform: translateY(0) scale(0.99);
}
.assess-copt.sel {
  border-color: var(--eh-navy-900);
  background: var(--eh-navy-900);
  color: var(--eh-white);
  box-shadow:
    0 0 0 1.5px var(--eh-coral-500),
    0 10px 22px rgba(11, 21, 38, 0.26);
}
.assess-copt .assess-cdot {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--eh-paper-200);
  background: var(--eh-white);
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.assess-copt.sel .assess-cdot {
  border-color: var(--eh-coral-400);
  background: var(--eh-coral-400);
  box-shadow: 0 0 0 3px rgba(228, 87, 63, 0.25);
}
.assess-copt .assess-scale-key {
  margin-left: auto;
  align-self: center;
  color: var(--eh-coral-400);
}

.assess-field {
  margin-bottom: 16px;
}
.assess-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
@media (max-width: 540px) {
  .assess-grid2 {
    grid-template-columns: 1fr;
  }
}
.assess-err {
  color: #a5342b;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}
.assess-err.show {
  display: block;
  animation: assess-step-in 0.25s var(--eh-ease-expo) both;
}
.assess-fineprint {
  font-size: 12.5px;
  color: var(--eh-ink-600);
  margin-top: 16px;
  max-width: 64ch;
}
.assess-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--eh-ink-600);
  margin: 14px 0 4px;
  padding: 13px 14px;
  background: var(--eh-white);
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}
.assess-consent:hover {
  border-color: var(--eh-coral-300);
}
.assess-consent:has(input:checked) {
  border-color: var(--eh-coral-500);
  background: #fffdf8;
}
.assess-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--eh-coral-500);
  cursor: pointer;
}
.assess-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* submit / pay progress states */
#assessNext:disabled,
#assessPayBtn:disabled {
  opacity: 1;
  cursor: wait;
}
#assessNext[disabled]::after,
#assessPayBtn[disabled]::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--eh-white);
  border-radius: 50%;
  animation: assess-spin 0.8s linear infinite;
}
@keyframes assess-spin {
  to {
    transform: rotate(360deg);
  }
}

/* honeypot — off-screen, not display:none (bots check visibility less often) */
.assess-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ---- free summary ------------------------------------------------------- */
.assess-summary {
  margin-top: 8px;
}
.assess-ring-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
  animation: assess-rise 0.55s var(--eh-ease-expo) both;
}
@keyframes assess-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.assess-ring {
  flex: 0 0 auto;
  width: 148px;
  height: 148px;
}
.assess-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.assess-ring .assess-ring-bg {
  stroke: var(--eh-paper-200);
}
.assess-ring .assess-ring-fg {
  stroke: var(--eh-coral-500);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(218, 58, 34, 0.35));
  /* the draw is driven by rAF in animateRing — a CSS transition here would
   * retarget on every frame and make the ring lag the count-up */
}
.assess-ring-text {
  font-family: var(--eh-font-display);
  font-size: 34px;
  font-weight: 700;
  fill: var(--eh-navy-900);
}
.assess-ring-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--eh-ink-600);
}
.assess-band-label {
  font-family: var(--eh-font-display);
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--eh-navy-950);
  margin: 0;
}
.assess-band-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eh-coral-500);
  border: 1.5px solid var(--eh-coral-500);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.assess-exec {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--eh-ink-900);
  max-width: 64ch;
  margin: 12px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--eh-coral-500);
}

.assess-dimbars {
  margin: 30px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: assess-rise 0.55s var(--eh-ease-expo) 0.15s both;
}
.assess-dimbar {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr auto 42px;
  grid-template-areas: "name bar chip val";
  align-items: center;
  gap: 12px;
}
.assess-dimbar-name {
  grid-area: name;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--eh-navy-950);
}
.assess-dimbar-track {
  grid-area: bar;
  height: 9px;
  background: var(--eh-paper-200);
  border-radius: 5px;
  overflow: hidden;
}
.assess-dimbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--eh-navy-800), var(--eh-navy-700));
  border-radius: 5px;
  width: 0;
  transition: width 0.9s var(--eh-ease-expo);
}
.assess-dimbar.lowest .assess-dimbar-fill {
  background: linear-gradient(90deg, var(--eh-coral-500), var(--eh-coral-400));
}
.assess-dimbar.lowest .assess-dimbar-name {
  color: var(--eh-coral-500);
}
.assess-dimbar-chip {
  grid-area: chip;
  font-size: 10px;
  padding: 3px 9px;
  letter-spacing: 0.08em;
}
.assess-dimbar-val {
  grid-area: val;
  font-family: var(--eh-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--eh-navy-900);
  text-align: right;
}
.assess-dimbar.lowest .assess-dimbar-val {
  color: var(--eh-coral-500);
}

.assess-reclist {
  margin: 30px 0 0;
  counter-reset: assess-rec;
  animation: assess-rise 0.55s var(--eh-ease-expo) 0.3s both;
}
.assess-reclist h2 {
  margin-bottom: 14px;
}
.assess-rec {
  position: relative;
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 12px;
  background: var(--eh-white);
  box-shadow: var(--eh-shadow-card);
  padding: 16px 18px 16px 62px;
  margin-bottom: 12px;
  counter-increment: assess-rec;
  transition:
    transform 0.2s var(--eh-ease-expo),
    box-shadow 0.2s var(--eh-ease-expo);
}
.assess-rec:hover {
  transform: translateY(-2px);
  box-shadow: var(--eh-shadow-lift);
}
.assess-rec::before {
  content: counter(assess-rec, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 34px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eh-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--eh-coral-400);
  background: var(--eh-navy-900);
  clip-path: var(--eh-hex);
}
.assess-rec h3 {
  font-family: var(--eh-font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: var(--eh-navy-950);
}
.assess-rec p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--eh-ink-600);
  margin: 0 0 10px;
}
.assess-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.assess-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 10px;
  background: var(--eh-paper-100);
  color: var(--eh-ink-600);
}
.assess-tag.impact-high {
  background: var(--eh-coral-soft);
  color: var(--eh-coral-500);
}
.assess-tag.impact-medium {
  background: var(--eh-paper-100);
  color: var(--eh-navy-800);
}
.assess-rec-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--eh-coral-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.assess-rec-cta:hover {
  color: var(--eh-coral-400);
}

/* ---- unlock panel ------------------------------------------------------- */
.assess-unlock {
  position: relative;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--eh-navy-950), var(--eh-navy-900) 60%);
  color: var(--eh-white);
  padding: 28px 28px 26px;
  box-shadow: 0 18px 44px rgba(11, 21, 38, 0.28);
}
.assess-unlock::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -56px;
  width: 190px;
  height: 208px;
  background: rgba(255, 255, 255, 0.05);
  clip-path: var(--eh-hex);
  pointer-events: none;
}
.assess-unlock h2 {
  color: var(--eh-white);
  letter-spacing: -0.01em;
}
.assess-unlock p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
}
.assess-unlock-list {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.assess-unlock-list li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 22px;
  position: relative;
}
.assess-unlock-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 10px;
  background: var(--eh-coral-400);
  clip-path: var(--eh-hex);
}
.assess-unlock .assess-btn {
  margin-top: 4px;
}
.assess-unlock .assess-err {
  color: var(--eh-coral-300);
}
.assess-price-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

/* ---- launch-offer ribbon (sits where the unlock panel would) ------------ */
.assess-launch-ribbon {
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1.5px dashed var(--eh-coral-400);
  border-radius: 12px;
  background: linear-gradient(115deg, var(--eh-white), #fff6f2);
  box-shadow: 0 10px 26px rgba(218, 58, 34, 0.1);
  padding: 14px 18px;
}
.assess-launch-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--eh-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-white);
  background: linear-gradient(120deg, var(--eh-coral-500), var(--eh-coral-400));
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(218, 58, 34, 0.32);
}
.assess-launch-tag::before {
  content: "";
  width: 8px;
  height: 9px;
  background: var(--eh-white);
  clip-path: var(--eh-hex);
}
.assess-launch-copy {
  font-size: 14px;
  line-height: 1.45;
  color: var(--eh-ink-900);
}
.assess-launch-copy b {
  font-weight: 800;
  color: var(--eh-coral-500);
}
.assess-launch-was {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--eh-ink-600);
  white-space: nowrap;
}
.assess-launch-was s {
  text-decoration-color: var(--eh-coral-500);
  text-decoration-thickness: 1.5px;
}
.assess-launch-sub {
  display: block;
  font-size: 12px;
  color: var(--eh-ink-600);
  margin-top: 2px;
}

/* ---- full report -------------------------------------------------------- */
.assess-report {
  margin-top: 44px;
}
.assess-report-head {
  border-bottom: 2px solid var(--eh-navy-950);
  padding-bottom: 22px;
  margin-bottom: 34px;
}
.assess-report-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.assess-report-score .assess-big {
  font-family: var(--eh-font-display);
  font-size: clamp(48px, 9vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--eh-navy-950);
}
.assess-saved-note {
  font-size: 13px;
  color: var(--eh-ink-600);
  margin: 6px 0 0;
}
.assess-chip {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 99px;
  padding: 5px 14px;
}
.assess-chip.band-0 {
  background: var(--eh-coral-soft);
  color: var(--eh-coral-500);
}
.assess-chip.band-1 {
  background: #f5ead1;
  color: #8a6a1d;
}
.assess-chip.band-2 {
  background: #e2e9f5;
  color: var(--eh-navy-700);
}
.assess-chip.band-3 {
  background: #dff0e2;
  color: #2e6b3f;
}

.assess-rdim {
  margin: 0 0 42px;
  page-break-inside: avoid;
}
.assess-rdim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--eh-paper-200);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.assess-rdim-head h3 {
  font-family: var(--eh-font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  color: var(--eh-navy-950);
}
.assess-rdim-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assess-rdim-pct {
  font-family: var(--eh-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--eh-navy-900);
}
.assess-rdim p {
  font-size: 14.5px;
  line-height: 1.66;
  margin: 0 0 10px;
  max-width: 70ch;
}
.assess-rdim h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eh-font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-navy-800);
  margin: 18px 0 8px;
}
.assess-rdim h4::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 10px;
  background: var(--eh-coral-500);
  clip-path: var(--eh-hex);
}
.assess-watch {
  display: flex;
  gap: 12px;
  background: linear-gradient(90deg, var(--eh-coral-soft), rgba(218, 58, 34, 0.05));
  border: 1px solid rgba(218, 58, 34, 0.22);
  border-left: 4px solid var(--eh-coral-500);
  border-radius: 4px 12px 12px 4px;
  padding: 14px 16px;
  margin: 14px 0;
  box-shadow: 0 6px 16px rgba(218, 58, 34, 0.08);
}
.assess-watch svg {
  flex: 0 0 auto;
  margin-top: 2px;
}
.assess-watch p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--eh-ink-900);
  margin: 0;
}
.assess-watch b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-coral-500);
  margin-bottom: 4px;
}

.assess-roadmap {
  margin: 10px 0 38px;
}
.assess-roadmap h2 {
  margin-bottom: 14px;
}
.assess-phase {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--eh-white);
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 12px;
  box-shadow: var(--eh-shadow-card);
  page-break-inside: avoid;
}
.assess-phase-no {
  width: 34px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eh-navy-900);
  color: var(--eh-coral-400);
  font-family: var(--eh-font-display);
  font-weight: 700;
  font-size: 15px;
  clip-path: var(--eh-hex);
}
.assess-phase h4 {
  font-family: var(--eh-font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--eh-navy-950);
}
.assess-phase p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--eh-ink-600);
  margin: 0;
  max-width: 64ch;
}

.assess-block {
  border: 1.5px solid var(--eh-paper-200);
  border-radius: 12px;
  background: var(--eh-white);
  padding: 20px 22px;
  margin: 0 0 24px;
  box-shadow: var(--eh-shadow-card);
  page-break-inside: avoid;
}
.assess-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eh-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-navy-900);
  margin: 0 0 10px;
}
.assess-block h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 10px;
  background: var(--eh-coral-500);
  clip-path: var(--eh-hex);
}
.assess-block p,
.assess-block li {
  font-size: 13.5px;
  line-height: 1.64;
  color: var(--eh-ink-600);
  max-width: 72ch;
}
.assess-block p {
  margin: 0 0 8px;
}
.assess-block ul {
  margin: 0;
  padding-left: 18px;
}
.assess-ctx {
  margin-bottom: 10px;
}
.assess-ctx b {
  display: block;
  font-size: 13px;
  color: var(--eh-navy-900);
}
.assess-ctx span {
  font-size: 13px;
  color: var(--eh-ink-600);
  white-space: pre-wrap;
}

/* booking CTA — the conversion moment */
.assess-report-cta {
  position: relative;
  overflow: hidden;
  margin: 38px 0 0;
  background: linear-gradient(140deg, var(--eh-navy-950) 20%, var(--eh-navy-900) 70%, var(--eh-navy-800));
  color: var(--eh-white);
  border-radius: 14px;
  padding: 30px 30px 28px;
  box-shadow: 0 22px 50px rgba(11, 21, 38, 0.32);
  page-break-inside: avoid;
}
.assess-report-cta::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -56px;
  width: 220px;
  height: 240px;
  background: rgba(255, 255, 255, 0.045);
  clip-path: var(--eh-hex);
  pointer-events: none;
}
.assess-report-cta::after {
  content: "";
  position: absolute;
  bottom: -46px;
  left: -34px;
  width: 130px;
  height: 142px;
  background: rgba(228, 87, 63, 0.1);
  clip-path: var(--eh-hex);
  pointer-events: none;
}
.assess-cta-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eh-coral-400);
  margin-bottom: 10px;
}
.assess-report-cta h3 {
  position: relative;
  font-family: var(--eh-font-display);
  font-size: clamp(22px, 3.6vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 10px;
  max-width: 22ch;
}
.assess-cta-why {
  position: relative;
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.75);
  max-width: 58ch;
  margin: 0 0 18px;
}
.assess-cta-product {
  position: relative;
  display: inline-block;
  font-family: var(--eh-font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--eh-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.assess-cta-product::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2.5px;
  background: var(--eh-coral-400);
  border-radius: 2px;
}
.assess-cta-points {
  position: relative;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 56ch;
}
.assess-cta-points li {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 24px;
}
.assess-cta-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 10px;
  background: var(--eh-coral-400);
  clip-path: var(--eh-hex);
}
.assess-cta-btn {
  position: relative;
  padding: 16px 34px;
  font-size: 17px;
  box-shadow: 0 10px 26px rgba(218, 58, 34, 0.42);
}
.assess-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(218, 58, 34, 0.5);
}

.assess-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
.assess-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.assess-pdf-btn svg {
  flex: 0 0 auto;
}
.assess-pdf-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.assess-pdf-btn.assess-pdf-failed {
  background: #a5342b;
}

.assess-print-btn {
  margin: 18px 0 0;
}
.assess-actions .assess-print-btn {
  margin: 0;
}

/* ---- AI narrative upgrade ------------------------------------------------- */
.assess-report-ai {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  min-height: 20px;
}
.assess-ai-badge-slot {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.assess-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eh-navy-800);
  background: rgba(30, 49, 87, 0.08);
  border: 1px solid rgba(30, 49, 87, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.assess-aicross-head .assess-ai-badge {
  color: var(--eh-navy-800);
}
.assess-ai-note {
  font-size: 12px;
  color: var(--eh-ink-600);
  font-style: italic;
}

/* subtle shimmer on narrative blocks while the AI compose is in flight */
.assess-ai-shimmer {
  position: relative;
  border-radius: 4px;
  background-image: linear-gradient(
    100deg,
    rgba(30, 49, 87, 0) 30%,
    rgba(30, 49, 87, 0.07) 46%,
    rgba(218, 58, 34, 0.06) 54%,
    rgba(30, 49, 87, 0) 70%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: assess-ai-sheen 1.9s ease-in-out infinite;
}
@keyframes assess-ai-sheen {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

/* cross-cutting insights — distinct navy panel */
.assess-aicross {
  border: none;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 26px;
  page-break-inside: avoid;
  background: linear-gradient(145deg, var(--eh-navy-950), var(--eh-navy-900));
  color: var(--eh-white);
  box-shadow: 0 18px 40px rgba(11, 21, 38, 0.26);
}
.assess-aicross-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.assess-aicross h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eh-font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-white);
  margin: 0;
}
.assess-aicross h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 10px;
  background: var(--eh-coral-400);
  clip-path: var(--eh-hex);
}
.assess-aicross h4 {
  font-family: var(--eh-font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 14px 0 5px;
  color: var(--eh-coral-300);
}
.assess-aicross p {
  font-size: 13.5px;
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.78);
  max-width: 72ch;
  margin: 6px 0;
}
.assess-aicross ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.assess-aicross li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 72ch;
  margin-bottom: 6px;
}

/* ---- mobile -------------------------------------------------------------- */
@media (max-width: 640px) {
  .assess-wrap {
    padding: 24px 16px 88px;
  }
  .assess-q {
    padding: 15px 14px 16px;
  }
  .assess-sopt {
    min-width: 48px;
    min-height: 60px;
  }
  .assess-copt {
    padding: 14px;
  }
  /* sticky primary action while moving through steps */
  .assess-nav {
    position: sticky;
    bottom: 0;
    margin: 26px -16px -88px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgba(250, 248, 242, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--eh-paper-200);
    z-index: 30;
  }
  .assess-nav .assess-btn {
    flex: 1;
  }
  .assess-ring-wrap {
    justify-content: center;
    text-align: left;
  }
  .assess-dimbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "name chip val"
      "bar bar bar";
    row-gap: 7px;
  }
  .assess-rec {
    padding: 14px 14px 14px 54px;
  }
  .assess-rec::before {
    left: 12px;
    top: 13px;
  }
  .assess-unlock,
  .assess-report-cta {
    padding: 22px 20px;
  }
  .assess-cta-btn,
  .assess-unlock .assess-btn,
  #assessPayBtn {
    width: 100%;
  }
  .assess-launch-ribbon {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .assess-phase {
    grid-template-columns: 38px 1fr;
    padding: 14px;
  }
}

/* ---- print: only the report --------------------------------------------- */
@media print {
  body {
    background: #ffffff;
  }
  body::before {
    display: none;
  }
  body * {
    visibility: hidden;
  }
  #assess-report,
  #assess-report * {
    visibility: visible;
  }
  #assess-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0 8mm;
  }
  .assess-report-cta,
  .assess-print-btn,
  .assess-actions {
    display: none !important;
  }
  /* dark panels become light so text survives background stripping */
  .assess-aicross {
    background: #ffffff;
    border: 1.5px solid var(--eh-paper-200);
    box-shadow: none;
  }
  .assess-aicross h3 {
    color: var(--eh-navy-900);
  }
  .assess-aicross h4 {
    color: var(--eh-coral-500);
  }
  .assess-aicross p,
  .assess-aicross li {
    color: var(--eh-ink-600);
  }
  .assess-phase-no {
    background: none;
    color: var(--eh-navy-900);
  }
  .assess-watch,
  .assess-rec,
  .assess-phase,
  .assess-block {
    box-shadow: none;
  }
  .assess-ring .assess-ring-fg,
  .assess-dimbar-fill,
  .assess-prog-fill {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assess-wrap * {
    transition: none !important;
    animation: none !important;
  }
}
