/* ============================================================
   QMT HOW IT WORKS — Page-specific styles
   Extracted from howitworks.html inline <style> blocks
   ============================================================ */


/* ============================================================
   1. PROBLEM / SOLUTION COMPARISON  (.qmt-problem)
   ============================================================ */

.qmt-problem {
  width: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 80px);
  background: var(--qmt-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qmt-problem__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

/* ---- Heading block ---- */
.qmt-problem__heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.qmt-problem__eyebrow {
  font-family: var(--qmt-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmt-gold);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hairline rules either side of eyebrow */
.qmt-problem__eyebrow::before,
.qmt-problem__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(184, 150, 46, 0.35);
}

.qmt-problem__heading {
  font-family: var(--qmt-font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--qmt-text);
  line-height: 1.15;
  margin: 0;
}

/* Gold highlight on last line */
.qmt-problem__heading em {
  font-style: normal;
  color: var(--qmt-gold-accent);
}

/* ---- Body paragraph ---- */
.qmt-problem__body {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 0;
  position: relative;
}

.qmt-problem__body::before {
  content: '';
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--qmt-gold);
  opacity: 0.5;
}

.qmt-problem .qmt-problem__body p {
  font-family: var(--qmt-font-body);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
  color: var(--qmt-text-dim) !important;
  margin: 0;
  text-align: center;
}

.qmt-problem .qmt-problem__body p strong {
  color: var(--qmt-text) !important;
  font-weight: 600;
}

.qmt-problem .qmt-problem__body p em {
  font-style: normal;
  color: var(--qmt-gold-accent) !important;
}

/* ---- Problem: Responsive ---- */
@media (max-width: 768px) {
  .qmt-problem {
    padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 40px);
  }
}

@media (max-width: 480px) {
  .qmt-problem__heading {
    font-size: clamp(24px, 7vw, 32px);
  }
}


/* ============================================================
   2. HOW IT WORKS STEPS  (.qmt-hiw)
   ============================================================ */

.qmt-hiw {
  width: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 80px);
  background: var(--qmt-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qmt-hiw__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}

/* ---- Heading block ---- */
.qmt-hiw__heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.qmt-hiw__eyebrow {
  font-family: var(--qmt-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmt-gold);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qmt-hiw__eyebrow::before,
.qmt-hiw__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(184, 150, 46, 0.35);
}

.qmt-hiw__heading {
  font-family: var(--qmt-font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--qmt-text);
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

/* ---- Steps row ---- */
.qmt-hiw__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  align-items: start;
}

/* ---- Single step ---- */
.qmt-hiw__step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 24px 0 0;
  position: relative;
}

.qmt-hiw__step--last {
  padding-right: 0;
}

/* ---- Number + connector row ---- */
.qmt-hiw__step-num-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  height: 32px;
}

.qmt-hiw__step-num {
  font-family: var(--qmt-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--qmt-gold);
  flex-shrink: 0;
  line-height: 1;
}

/* The connecting line between steps */
.qmt-hiw__step-connector {
  flex: 1;
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(
    90deg,
    rgba(184, 150, 46, 0.4) 0%,
    rgba(184, 150, 46, 0.1) 60%,
    rgba(184, 150, 46, 0) 100%
  );
  position: relative;
}

/* Arrow head at end of connector */
.qmt-hiw__step-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-top: 1px solid rgba(184, 150, 46, 0.3);
  border-right: 1px solid rgba(184, 150, 46, 0.3);
  transform: translateY(-50%) rotate(45deg);
}

/* ---- Step body ---- */
.qmt-hiw__step-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 16px;
}

.qmt-hiw__step--last .qmt-hiw__step-body {
  padding-right: 0;
}

.qmt-hiw__step-title {
  font-family: var(--qmt-font-display);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qmt-text);
  line-height: 1.2;
  margin: 0;
}

.qmt-hiw__step-text {
  font-family: var(--qmt-font-body);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--qmt-text-muted);
  margin: 0;
}

/* ---- Footnote ---- */
.qmt-hiw__footnote {
  font-family: var(--qmt-font-body);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--qmt-text-faint);
  text-align: center;
  margin: 0;
  max-width: 560px;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.qmt-hiw__footnote em {
  font-style: normal;
  color: var(--qmt-text-dim);
}

/* ---- HIW: Responsive — tablet (2x2 grid) ---- */
@media (max-width: 860px) {
  .qmt-hiw__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .qmt-hiw__step {
    padding: 0 24px 0 0;
  }

  /* Hide connectors on the right column */
  .qmt-hiw__step:nth-child(2) .qmt-hiw__step-connector,
  .qmt-hiw__step:nth-child(4) .qmt-hiw__step-connector {
    display: none;
  }

  .qmt-hiw__step:nth-child(2),
  .qmt-hiw__step:nth-child(4) {
    padding-right: 0;
  }

  /* Step 3 gets a connector again (left of row 2) */
  .qmt-hiw__step:nth-child(3) .qmt-hiw__step-connector {
    display: block;
  }
}

/* ---- HIW: Responsive — mobile (single column) ---- */
@media (max-width: 560px) {
  .qmt-hiw {
    padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 32px);
  }

  .qmt-hiw__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .qmt-hiw__step {
    flex-direction: row;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .qmt-hiw__step--last {
    border-bottom: none;
  }

  .qmt-hiw__step-num-wrap {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 0;
    padding-top: 2px;
  }

  .qmt-hiw__step-connector {
    display: none;
  }

  .qmt-hiw__step-body {
    padding-right: 0;
    flex: 1;
  }
}


/* ============================================================
   3. THE LOGIC / EXPLAINER  (.qmt-explainer)
   ============================================================ */

.qmt-explainer {
  width: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 80px);
  background: var(--qmt-bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Slightly different bg from adjacent sections — creates separation */
.qmt-explainer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

/* ---- Left: Copy ---- */
.qmt-explainer__copy {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ---- Heading block ---- */
.qmt-explainer__heading-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qmt-explainer__eyebrow {
  font-family: var(--qmt-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmt-gold);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qmt-explainer__eyebrow::before,
.qmt-explainer__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(184, 150, 46, 0.35);
  flex-shrink: 0;
}

.qmt-explainer__heading {
  font-family: var(--qmt-font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--qmt-text);
  line-height: 1.15;
  margin: 0;
}

/* ---- Intro line ---- */
.qmt-explainer__intro {
  font-family: var(--qmt-font-body);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--qmt-text-muted);
  margin: 0;
}

/* ---- Scenario list ---- */
.qmt-explainer__scenario {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.qmt-explainer__scenario-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s;
}

.qmt-explainer__scenario-num {
  font-family: var(--qmt-font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--qmt-gold);
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.25s;
  min-width: 20px;
}

.qmt-explainer__scenario-item:hover .qmt-explainer__scenario-num {
  opacity: 1;
}

.qmt-explainer__scenario-text {
  font-family: var(--qmt-font-body);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--qmt-text-muted);
  transition: color 0.25s;
}

.qmt-explainer__scenario-item:hover .qmt-explainer__scenario-text {
  color: var(--qmt-text-dim);
}

/* ---- Right: Diagram wrapper ---- */
.qmt-explainer__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Subtle gold radial glow behind diagram */
.qmt-explainer__diagram::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    ellipse at center,
    rgba(184, 150, 46, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.qmt-explainer__diagram-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* ---- Explainer: Responsive ---- */
@media (max-width: 900px) {
  .qmt-explainer__inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 60px);
  }

  /* Diagram moves below copy on tablet/mobile */
  .qmt-explainer__diagram {
    order: 2;
  }

  .qmt-explainer__copy {
    order: 1;
  }

  .qmt-explainer__diagram-inner {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .qmt-explainer {
    padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 32px);
  }

  .qmt-explainer__heading {
    font-size: clamp(22px, 7vw, 32px);
  }

  .qmt-explainer__diagram-inner {
    max-width: 100%;
  }
}


/* ============================================================
   4. DOCUMENTATION / DOWNLOAD GUIDE  (.qmt-guide)
   ============================================================ */

.qmt-guide {
  font-family: var(--qmt-font-body);
  -webkit-font-smoothing: antialiased;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qmt-guide__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* ---- Left: Copy ---- */
.qmt-guide__copy {
  max-width: 560px;
}

.qmt-guide__eyebrow {
  font-family: var(--qmt-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmt-gold);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qmt-guide__eyebrow::before,
.qmt-guide__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(184, 150, 46, 0.35);
}

.qmt-guide__heading {
  font-family: var(--qmt-font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--qmt-off-white);
  line-height: 1.05;
  margin: 0 0 20px;
}

.qmt-guide__text {
  font-size: 14px;
  color: var(--qmt-text-dim);
  line-height: 1.8;
  margin: 0;
}

/* ---- Right: Card ---- */
.qmt-guide__card {
  flex-shrink: 0;
  width: 280px;
  border: 1px solid rgba(184, 150, 46, 0.22);
  background: rgba(184, 150, 46, 0.04);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qmt-guide__card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.qmt-guide__card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(184, 150, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qmt-gold);
}

.qmt-guide__card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qmt-guide__card-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qmt-text-dim);
}

.qmt-guide__card-name {
  font-family: var(--qmt-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qmt-off-white);
  line-height: 1.2;
}

.qmt-guide__card-type {
  font-size: 11px;
  color: var(--qmt-gold);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.qmt-guide__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--qmt-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qmt-bg);
  background: var(--qmt-gold);
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--qmt-gold);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--qmt-ease);
}

.qmt-guide__download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qmt-off-white);
  transform: translateX(-101%);
  transition: transform 0.4s var(--qmt-ease);
}

.qmt-guide__download:hover::after {
  transform: translateX(0);
}

.qmt-guide__download span,
.qmt-guide__download svg {
  position: relative;
  z-index: 1;
}

.qmt-guide__download svg {
  transition: transform 0.3s var(--qmt-ease);
}

.qmt-guide__download:hover svg {
  transform: translateY(2px);
}

/* ---- Guide: Responsive ---- */
@media (max-width: 960px) {
  .qmt-guide__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .qmt-guide__card {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .qmt-guide__inner {
    padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 32px);
  }
}
