.mhd-page {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  --charcoal: #211B15;
  --charcoal-2: #2A2319;
  --parchment: #EFE6D3;
  --paper: #F7F1E4;
  --brass: #B08A4E;
  --brass-light: #D4B173;
  --crimson: #B23A32;
  --teal: #3E8C7E;
  --graphite: #6B6255;

  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  background: var(--charcoal);
  color: var(--parchment);
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
  padding: 72px 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 480px);
  gap: 64px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.mhd-page * { box-sizing: border-box; }

.mhd-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(212,177,115,0.08), transparent 55%);
}

.mhd-hero { position: sticky; top: 40px; padding-right: 20px; }

.mhd-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.mhd-page-h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.14;
  margin: 0 0 20px;
  color: var(--paper);
  max-width: 14ch;
}

.mhd-lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: #C9BFAE;
  max-width: 46ch;
  margin: 0 0 40px;
}

.mhd-trust {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--graphite);
  border-top: 1px solid rgba(212,177,115,0.2);
  padding-top: 16px;
  margin-top: 34px;
  max-width: 34ch;
}

.mhd-root {
  background: var(--charcoal-2);
  border: 1px solid rgba(212,177,115,0.22);
  border-radius: 8px;
  padding: 44px 38px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  min-width: 0;
}

.mhd-stage { display: none; animation: mhd-rise .5s ease; }
.mhd-stage.mhd-stage--active { display: block; }

@keyframes mhd-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mhd-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--paper);
}

.mhd-lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: #C9BFAE;
  max-width: 46ch;
  margin: 0 0 30px;
}

.mhd-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--paper);
  margin: 18px 0 8px;
}

.mhd-hint {
  font-size: 13px;
  color: var(--graphite);
  margin: 0 0 18px;
}

.mhd-progress {
  width: 100%;
  height: 3px;
  background: rgba(212,177,115,0.15);
  border-radius: 2px;
  margin-bottom: 26px;
  overflow: hidden;
}
.mhd-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transition: width .4s ease;
}

.mhd-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--charcoal-2);
  border: 1px solid rgba(212,177,115,0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color .2s;
}
.mhd-input:focus { border-color: var(--brass-light); }
.mhd-input::placeholder { color: #6B6255; font-family: var(--font-body); }

.mhd-choices { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }

.mhd-choice {
  text-align: left;
  background: var(--charcoal-2);
  border: 1px solid rgba(212,177,115,0.25);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s ease;
}
.mhd-choice:hover { border-color: var(--brass-light); background: #33291B; }
.mhd-choice.mhd-choice--selected {
  border-color: var(--brass-light);
  background: linear-gradient(90deg, rgba(212,177,115,0.18), transparent);
  box-shadow: inset 3px 0 0 var(--brass-light);
}

.mhd-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mhd-btn--primary {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: #211B15;
}
.mhd-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,177,115,0.25); }

.mhd-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--graphite);
  margin: 6px 0 22px;
}

/* --- Ticket spike, stage 0 --- */
.mhd-spike-preview {
  position: relative;
  height: 150px;
  margin: 10px 0 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mhd-spike {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 120px;
  background: linear-gradient(var(--brass-light), var(--brass));
  border-radius: 2px;
}
.mhd-spike::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--brass-light);
  border-radius: 50%;
}
.mhd-ticket {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal);
  background: var(--paper);
  padding: 7px 12px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
  animation: mhd-drop 0.6s ease backwards;
}
.mhd-ticket--1 { bottom: 96px; left: calc(50% - 6px); transform: rotate(-6deg); animation-delay: .1s; }
.mhd-ticket--2 { bottom: 70px; left: calc(50% + 4px); transform: rotate(4deg); animation-delay: .3s; }
.mhd-ticket--3 { bottom: 44px; left: calc(50% - 10px); transform: rotate(-3deg); animation-delay: .5s; }
.mhd-ticket--4 { bottom: 18px; left: calc(50% + 6px); transform: rotate(5deg); animation-delay: .7s; }

@keyframes mhd-drop {
  from { opacity: 0; transform: translateY(-24px) rotate(0deg); }
}

/* --- Gauge, stage 7 --- */
.mhd-gauge-wrap { text-align: center; margin-bottom: 10px; }
.mhd-gauge { width: 260px; max-width: 100%; }
.mhd-gauge-track {
  fill: none;
  stroke: rgba(212,177,115,0.15);
  stroke-width: 14;
  stroke-linecap: round;
}
.mhd-gauge-fill {
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1);
}
.mhd-needle {
  stroke: var(--crimson);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 120px 130px;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.mhd-gauge-hub { fill: var(--brass-light); }
.mhd-gauge-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 6px;
}

/* --- Cash register total, stage 7 --- */
.mhd-register {
  text-align: center;
  margin: 22px 0 26px;
  padding: 22px;
  background: var(--charcoal-2);
  border: 1px solid rgba(212,177,115,0.25);
  border-radius: 6px;
}
.mhd-register-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
}
.mhd-odometer {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 42px;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.mhd-findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.mhd-finding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--crimson);
  background: rgba(178,58,50,0.08);
  border-radius: 0 4px 4px 0;
}

.mhd-btn--ghost {
  background: transparent;
  color: var(--brass-light);
  border: 1px solid rgba(212,177,115,0.4);
}
.mhd-btn--ghost:hover { background: rgba(212,177,115,0.08); }

/* --- Full report, stage 9 --- */
.mhd-stage--report { max-height: 70vh; overflow-y: auto; padding-right: 6px; }
.mhd-report-section {
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(212,177,115,0.18);
}
.mhd-report-section:first-of-type { border-top: none; padding-top: 0; }
.mhd-report-h {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 10px;
}
.mhd-report-big {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 40px;
  color: var(--paper);
  margin-bottom: 10px;
}
.mhd-report-big span {
  font-size: 14px;
  color: var(--graphite);
  margin-left: 6px;
}
.mhd-report-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.mhd-report-table td { padding: 8px 0; border-bottom: 1px solid rgba(212,177,115,0.12); color: #C9BFAE; }
.mhd-report-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--paper); }
.mhd-report-table-total td { color: var(--paper); font-weight: 600; border-bottom: none; padding-top: 12px; }
.mhd-report-fixes { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.mhd-report-fixes li { font-size: 14px; line-height: 1.55; color: #C9BFAE; }
.mhd-report-fixes strong { color: var(--brass-light); }
.mhd-report-close p { font-size: 15px; line-height: 1.6; color: var(--paper); }
.mhd-report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 860px) {
  .mhd-page {
    grid-template-columns: 1fr;
    padding: 44px 5vw;
    gap: 40px;
  }
  .mhd-hero { position: static; padding-right: 0; }
  .mhd-page-h1 { font-size: 32px; max-width: none; }
  .mhd-root { padding: 32px 22px; }
  .mhd-odometer { font-size: 32px; }
}
