/* ============================================================
   CONTENT FORGE — landing scenes.
   The product's own hero artefact and idea scenes; the shared
   grammar (hold/stage, ritual, panels) lives in foundry-scene.css.
   Loaded only on this site's front page (inc/enqueue.php).
   Fail-safe: static markup IS the end state — the scrub in
   assets/js/scenes/draftforge.js only replays how it got there.
   ============================================================ */

.cf-grid { display: grid; grid-template-columns: 1.36fr .72fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
/* ============================================================
   CONTENT — «The gate»: drafts, verdicts, the tally
   ============================================================ */
.cf-stack {
  position: relative; padding: 18px 20px; display: grid; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.1);
}
.cf-stack__head {
  display: flex; justify-content: space-between; padding-bottom: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--fdry-ink-faint, #6B7299); border-bottom: 1px solid rgba(255,255,255,.1);
}
.cf-draft {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title verdict" "meta verdict";
  gap: 2px 14px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid transparent; will-change: transform, opacity;
}
.cf-draft__title   { grid-area: title; color: var(--fdry-ink, #ECEEF7); font-size: .95rem; }
.cf-draft__meta    { grid-area: meta; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; color: var(--fdry-ink-faint, #6B7299); }
.cf-draft__verdict { grid-area: verdict; align-self: center; font-size: .74rem; letter-spacing: .04em; white-space: nowrap; }
.cf-draft--pass.is-through {
  border-color: color-mix(in srgb, #4C9C77 34%, transparent);
  background: color-mix(in srgb, #4C9C77 9%, transparent);
}
.cf-draft--pass .cf-draft__verdict { color: #6FBF95; }
.cf-draft--held.is-held {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.cf-draft--held .cf-draft__verdict { color: var(--accent-light, #8CCCC8); }
.cf-draft--held .cf-draft__title { opacity: .74; }
.cf-bar {
  position: absolute; left: 20px; right: 20px; bottom: 12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; will-change: transform, opacity; transform-origin: 0 50%;
}
.cf-side { display: grid; gap: 16px; justify-items: start; }
.cf-tally { display: grid; justify-items: start; gap: 2px; }
.cf-tally__num {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 2.6rem; line-height: 1;
  color: var(--accent-light, #8CCCC8); font-variant-numeric: tabular-nums;
}
.cf-tally__of  { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; color: var(--fdry-ink-soft, #A7AEC8); }
.cf-tally__cap { font-size: .78rem; color: var(--fdry-ink-faint, #6B7299); }
.cf-thresholds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cf-thresholds li { font-size: .88rem; color: var(--fdry-ink-soft, #A7AEC8); }
.cf-thresholds span { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--accent-light, #8CCCC8); font-weight: 600; }
.cf-side__note { color: var(--fdry-ink-soft, #A7AEC8); font-size: .93rem; line-height: 1.6; margin: 0; }
/* Content — the two meters */
.cf-meter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.cf-meter {
  padding: 24px; border-radius: 18px; display: grid; gap: 10px; align-content: start;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
}
.cf-meter--pro { border-color: color-mix(in srgb, var(--accent) 42%, transparent); background: color-mix(in srgb, var(--accent) 7%, rgba(255,255,255,.045)); }
.cf-meter__tag {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light, #8CCCC8);
}
.cf-meter h3 { margin: 0; font-size: 1.15rem; color: var(--fdry-ink, #ECEEF7); }
.cf-meter ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cf-meter li { font-size: .92rem; line-height: 1.55; color: var(--fdry-ink-soft, #A7AEC8); }
.cf-meter__note { margin: 4px 0 0; font-size: .82rem; color: var(--fdry-ink-faint, #6B7299); }
.cf-meters__foot {
  margin: clamp(18px, 2.4vw, 28px) auto 0; max-width: 760px; text-align: center;
  font-size: .92rem; line-height: 1.6; color: var(--fdry-ink-soft, #A7AEC8);
}

/* ============================================================
   HERO ARTEFACT — the gate (hero-draftforge.php)
   ============================================================ */
.cfh { max-width: 430px; margin-inline: auto; }
.cfh-page { display: grid; gap: 9px; padding: 18px 20px 14px; }
.cfh-line {
  height: 8px; width: var(--w, 90%); border-radius: 4px;
  background: rgba(255,255,255,.13); transform-origin: 0 50%;
}
/* An internal link is a different kind of line, and the gate counts them. */
.cfh-line--link { background: color-mix(in srgb, var(--accent-light, #8CCCC8) 55%, transparent); }
.cfh-lamps { list-style: none; margin: 0; padding: 0 20px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cfh-lamp {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem;
  color: var(--fdry-ink-faint, #6B7299);
}
.cfh-lamp i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.cfh-lamp.is-ok { color: var(--fdry-ink-soft, #A7AEC8); }
.cfh-lamp.is-ok i { background: #7ED9A6; box-shadow: 0 0 8px rgba(126,217,166,.6); }
.cfh-lamp.is-bad { color: #E88C82; }
.cfh-lamp.is-bad i { background: #E88C82; box-shadow: 0 0 8px rgba(232,140,130,.6); }
.cfh-verdict {
  display: grid; gap: 8px; padding: 13px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cfh-verdict .fgi-stamp { justify-self: start; }

/* ============================================================
   SCENE 3 — the tick, and what it wrote down afterwards
   ============================================================ */
.cf-run { max-width: 980px; }
.cf-run__body { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.4vw, 26px); }
.cf-run__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cf-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 15px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.cf-item__what { display: grid; gap: 3px; min-width: 0; }
.cf-item__what b { color: var(--fdry-ink, #ECEEF7); font-size: .95rem; font-weight: 500; }
.cf-item__what em { font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem; color: var(--fdry-ink-faint, #6B7299); }
.cf-item__verdict { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; white-space: nowrap; }
.cf-item.is-pass { border-color: rgba(126,217,166,.4); background: rgba(126,217,166,.07); }
.cf-item.is-pass .cf-item__verdict { color: #7ED9A6; }
/* Held is amber, not red: the draft is not wrong, it is not finished. */
.cf-item.is-held { border-color: rgba(214,166,96,.42); background: rgba(214,166,96,.07); }
.cf-item.is-held .cf-item__verdict { color: #E0B27E; }
.cf-run__side { display: grid; gap: 16px; align-content: start; }
.cf-summary { display: grid; gap: 9px; }
.cf-summary p { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: .84rem; color: var(--fdry-ink-soft, #A7AEC8); }
.cf-summary b { font-size: 1.7rem; color: #7ED9A6; min-width: 2ch; }
.cf-summary__held { color: #E0B27E !important; }
.cf-run__note { margin: 0; font-size: .84rem; line-height: 1.6; color: var(--fdry-ink-faint, #6B7299); }
.cf-run.is-unlicensed .cf-item { opacity: .4; }
@media (max-width: 899px) { .cf-run__body { grid-template-columns: 1fr; } }

/* Phone: one column (see the note in clearwayforge.css). */
@media (max-width: 899px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-meter-grid { grid-template-columns: 1fr; }
}
