/* ============================================================
   WFPULSE — MARKETING CLARITY ASSESSMENT
   Uses tokens.css variables; matches the site's editorial style.
   ============================================================ */

.asmt { min-height: calc(100vh - 200px); }
.asmt-container {
  max-width: 840px;
  padding-top: 96px;
  padding-bottom: 120px;
}
.asmt-container--wide { max-width: 980px; }
.asmt-nav-label { display: inline-block; }

.asmt-step[hidden] { display: none; }

/* fade-up entrance, consistent with site motion */
.asmt-step {
  animation: asmt-fade 0.5s var(--ease-out, ease-out) both;
}
@keyframes asmt-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .asmt-step { animation: none; }
}

/* ---------- Type ---------- */
.asmt-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.asmt-title em {
  font-style: italic;
  color: var(--sage-700);
}
.asmt-title--sm { font-size: clamp(32px, 4.4vw, 52px); }
.asmt-lede {
  margin: 28px 0 0;
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: var(--ink-700);
  max-width: 620px;
}
.asmt-h3 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  letter-spacing: var(--ls-tight);
  font-weight: 400;
}

/* ---------- Intro ---------- */
.asmt-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 36px 0 40px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.asmt-disclosure {
  margin: 24px 0 0;
  font-size: var(--t-sm);
  color: var(--ink-500);
  line-height: var(--lh-body);
  max-width: 520px;
}

/* ---------- Progress ---------- */
.asmt-progress { margin-bottom: 56px; }
.asmt-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.asmt-progress__track {
  height: 2px;
  background: var(--rule);
}
.asmt-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--ink-900);
  transition: width 0.35s var(--ease-out, ease-out);
}

/* ---------- Question ---------- */
.asmt-q {
  border: 0;
  margin: 0;
  padding: 0;
}
.asmt-q__text {
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 760px;
}
.asmt-q__options {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}
.asmt-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  color: var(--ink-900);
  cursor: pointer;
  transition: color var(--dur-fast, 0.15s) var(--ease-out, ease-out);
}
.asmt-option:last-child { border-bottom: 1px solid var(--rule); }
.asmt-option:hover { color: var(--accent-deep); }
.asmt-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.asmt-option__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink-400);
  position: relative;
  justify-self: start;
}
.asmt-option__input:focus-visible ~ .asmt-option__mark {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.asmt-option__input:checked ~ span:last-child { font-weight: 500; }
.asmt-option__input:checked ~ .asmt-option__mark { border-color: var(--ink-900); }
.asmt-option__input:checked ~ .asmt-option__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink-900);
}
.asmt-title:focus, .asmt-title--sm:focus, .asmt-q__text:focus { outline: none; }

.asmt-quiz__controls {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.asmt-back { color: var(--ink-500); }
#next-btn[disabled], #view-report-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Contact form ---------- */
.asmt-form { margin-top: 48px; }
.asmt-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.asmt-field { margin-bottom: 32px; }
.asmt-label {
  display: block;
  margin-bottom: 4px;
}
.asmt-optional { text-transform: none; letter-spacing: 0; color: var(--ink-400); }
.asmt-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}
.asmt-form textarea.input { resize: vertical; }
.asmt-form__error {
  margin: 0 0 24px;
  font-size: var(--t-sm);
  color: #8a2b1d;
}
.input[aria-invalid="true"] { border-bottom-color: #8a2b1d; }

/* ---------- Results ---------- */
.asmt-score__band {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 32px;
}
.asmt-score__category {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-lg);
  letter-spacing: var(--ls-tight);
  color: var(--sage-700);
}

.asmt-chart { margin-top: 80px; }
.asmt-chart__rows { display: flex; flex-direction: column; }
.asmt-chart__row {
  display: grid;
  grid-template-columns: 240px 1fr 150px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.asmt-chart__row:last-child { border-bottom: 1px solid var(--rule); }
.asmt-chart__name { font-size: var(--t-sm); color: var(--ink-900); }
.asmt-chart__track {
  height: 10px;
  background: var(--paper-100);
  border: 1px solid var(--rule);
}
.asmt-chart__bar {
  height: 100%;
  background: var(--ink-900);
  transition: width 0.6s var(--ease-out, ease-out);
}
.asmt-chart__value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.asmt-chart__pct { font-family: var(--font-mono); font-size: 13px; }
.asmt-chart__status { font-size: 12px; color: var(--ink-500); }

.asmt-results__cols {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.asmt-block { margin-top: 0; }
.asmt-recs { margin-top: 80px; }
.asmt-item { padding: 20px 0; border-top: 1px solid var(--rule); }
.asmt-item__name {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: var(--t-base);
  font-weight: 500;
}
.asmt-item__text {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-700);
  line-height: var(--lh-body);
}
.asmt-recs__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rec;
}
.asmt-recs__list li {
  counter-increment: rec;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm);
  color: var(--ink-700);
  line-height: var(--lh-body);
}
.asmt-recs__list li::before {
  content: "0" counter(rec);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  padding-top: 2px;
}

.asmt-disclaimer {
  margin: 64px 0 0;
  font-size: var(--t-sm);
  color: var(--ink-500);
  line-height: var(--lh-body);
  max-width: 680px;
}

.asmt-final-cta {
  margin-top: 80px;
  padding: 56px 48px;
  background: var(--ink-950);
  color: var(--paper-50);
  border-radius: var(--r-md);
}
.asmt-final-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--paper-50);
}
.asmt-final-cta__title em { font-style: italic; color: var(--sage-300); }
.asmt-final-cta__text {
  margin: 20px 0 32px;
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: rgba(251, 248, 241, 0.7);
  max-width: 560px;
}
.asmt-final-cta .btn-primary {
  background: var(--paper-50);
  color: var(--ink-900);
}
.asmt-final-cta .btn-primary:hover { background: var(--paper-100); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .asmt-container { padding-top: 56px; padding-bottom: 80px; }
  .asmt-form__row { grid-template-columns: 1fr; gap: 0; }
  .asmt-results__cols { grid-template-columns: 1fr; gap: 48px; }
  .asmt-chart__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .asmt-chart__value { flex-direction: row; justify-content: space-between; text-align: left; }
  .asmt-nav-label { display: none; }
  .asmt-final-cta { padding: 40px 24px; }
  .asmt-quiz__controls { margin-top: 40px; }
}
