/* ============================================================
   LFT v3 — Challenge (two-column) + How-it-works continuum
   Loaded after lft-voices-solutions.css
   ============================================================ */

/* ================= CHALLENGE: quotes left, video right ================= */

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}
@media (max-width: 940px) { .challenge-grid { grid-template-columns: 1fr; gap: 36px; } }

.voices-col { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.voices-col .voice {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px 19px 26px;
  display: flex;
  flex-direction: column;
}
.voices-col .qt {
  margin: 0;
  font-size: calc(18px * var(--scale));
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.voices-col .who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: calc(13px * var(--scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.voices-col .who .tick {
  width: 22px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

.challenge-video { position: relative; display: flex; flex-direction: column; }
.challenge-video .video-frame {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 260px;
}
@media (max-width: 940px) {
  .challenge-video .video-frame { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}
.challenge-video .vid-cap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: calc(12px * var(--scale));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 940px) {
  .challenge-video .vid-cap { position: static; margin-top: 14px; background: none; border: none; padding: 0; color: var(--muted); }
}
.challenge-video .vid-cap::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
html[data-amber="strict"] .challenge-video .vid-cap::before { background: var(--muted); }

/* ================= CONTINUUM: intake -> build list -> delivery ================= */

.continuum {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 128px minmax(150px, max-content) 92px minmax(280px, 1.15fr);
  align-items: center;
  margin-top: 4px;
}

.stage-label {
  font-family: var(--mono);
  font-size: calc(12px * var(--scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.stage-label .n { color: var(--amber); }
html[data-amber="strict"] .stage-label .n { color: var(--muted); }

/* intake stack */
.intake-stack { display: flex; flex-direction: column; gap: 18px; }
.intake-stack .card { padding: 24px 24px; }
.intake-stack .card h3 { font-size: calc(19px * var(--scale)); }
.intake-stack .card p { font-size: calc(16px * var(--scale)); }

/* build list node */
.bl-node {
  justify-self: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 26px;
  position: relative;
}
html[data-amber="standard"] .bl-node {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  box-shadow: 0 0 38px rgba(255, 157, 46, 0.12);
}
.bl-node .bl-title {
  font-family: var(--head);
  font-size: calc(18px * var(--scale));
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bl-node .bl-sub {
  font-family: var(--mono);
  font-size: calc(11px * var(--scale));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* horizontal connectors (desktop) */
.cx { align-self: center; width: 100%; height: 40px; display: block; }
.cx .cx-pipe { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cx .cx-head { fill: var(--line); }
.cx .cx-pulse {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 7 60;
}
html[data-amber="strict"] .cx .cx-pulse { stroke: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="full"] .cx .cx-pulse { animation: dashflow 2.6s linear infinite; }
}
.cx .cx-dot { fill: var(--amber); }
html[data-amber="strict"] .cx .cx-dot { fill: var(--muted); }
html[data-motion="calm"] .cx .cx-dot { display: none; }

/* delivery stack (vertical 4 phases) */
.delivery-stack { position: relative; display: flex; flex-direction: column; gap: 16px; }
.delivery-stack::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: var(--line);
}
.delivery-stack .runner {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
}
html[data-amber="strict"] .delivery-stack .runner { background: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="full"] .delivery-stack .runner {
    animation: drun 4.4s ease-in-out infinite;
  }
  @keyframes drun {
    0% { top: 26px; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { top: calc(100% - 26px); opacity: 0; }
  }
}
.dphase {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
}
.dnode {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: calc(15px * var(--scale));
  color: var(--muted);
  position: relative;
  z-index: 1;
}
html[data-amber="standard"] .dnode {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
}
.dphase h4 {
  font-family: var(--head);
  font-size: calc(18px * var(--scale));
  margin: 11px 0 5px 0;
  line-height: 1.15;
}
.dphase p {
  color: var(--muted);
  font-size: calc(16px * var(--scale));
  margin: 0;
  line-height: 1.45;
}

/* vertical connectors shown only on mobile */
.vx { display: none; }

@media (max-width: 980px) {
  .continuum { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-left: auto; margin-right: auto; }
  .cx { display: none; }
  .bl-node { justify-self: stretch; }
  .vx {
    display: block;
    width: 100%;
    height: 56px;
  }
  .vx .vx-pipe { fill: none; stroke: var(--line); stroke-width: 1.5; }
  .vx .vx-pulse { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 6 50; }
  html[data-amber="strict"] .vx .vx-pulse { stroke: var(--muted); }
  html[data-motion="full"] .vx .vx-pulse { animation: dashflow 2.4s linear infinite; }
  .delivery-stack { margin-top: 4px; }
}
