/* ============================================================
   Value Stack Builder — Design System
   CTCSP-themed (brand colors pulled the way live auto-fill will:
   from the practitioner's own site CSS).
   Vanilla CSS, no build step. Cloudflare Pages ready.
   ============================================================ */

:root {
  /* Brand theme — auto-filled from the analyzed site.
     These CTCSP values came straight from the site's stylesheet. */
  --ink:        #1A1814;
  --ink-mid:    #3D3830;
  --ink-light:  #6B6355;
  --cream:      #F5F0E8;
  --cream-2:    #ECE5D8;
  --gold:       #8B6914;
  --gold-light: #C4922A;
  --rule:       #D4C9B0;
  --white:      #FFFFFF;
  --green:      #3F6B52;
  --red:        #9B4A3A;

  --shadow: 0 18px 50px rgba(26, 24, 20, 0.16);
  --shadow-sm: 0 6px 18px rgba(26, 24, 20, 0.10);
  --radius: 14px;
  --maxw: 1180px;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

/* CSS default = visible. JS only enhances. (Progressive enhancement rule.) */
.reveal { opacity: 1; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

header.masthead {
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 0;
  border-bottom: 3px solid var(--gold-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: baseline; gap: 0.6rem; }
.brand .mark { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark em { color: var(--gold-light); font-style: italic; }
.brand .tag { font-size: 0.8rem; color: var(--rule); letter-spacing: 0.04em; }
.masthead .status { font-size: 0.8rem; color: var(--rule); }

/* ---------- Step rail ---------- */
.steps { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 1.2rem 0 0; }
.step-pill {
  font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-light); background: var(--cream-2);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.step-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.step-pill.done { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- Hero / website-first front door ---------- */
.frontdoor { padding: 4.5rem 0 3rem; text-align: center; }
.frontdoor .eyebrow {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; font-weight: 600;
}
.frontdoor h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04; font-weight: 600; letter-spacing: -0.02em;
  max-width: 16ch; margin: 0 auto 1.1rem;
}
.frontdoor h1 em { color: var(--gold); font-style: italic; }
.frontdoor .sub {
  font-size: 1.2rem; color: var(--ink-mid); max-width: 46ch;
  margin: 0 auto 2.4rem;
}
.url-row {
  display: flex; gap: 0.6rem; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 0.5rem; box-shadow: var(--shadow-sm);
}
.url-row input {
  flex: 1; border: none; outline: none; font-size: 1.1rem;
  padding: 0.7rem 0.9rem; background: transparent; color: var(--ink);
  font-family: var(--sans);
}
.url-row .hint { font-size: 0.9rem; color: var(--ink-light); margin-top: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  border: none; border-radius: 10px; padding: 0.8rem 1.5rem;
  cursor: pointer; transition: transform .08s ease, background .15s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-light); color: var(--ink); }
.btn-primary:hover { background: var(--gold); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-mid); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-lg { font-size: 1.1rem; padding: 0.95rem 1.8rem; }

/* ---------- Panels ---------- */
.panel { display: none; padding: 2.5rem 0 4rem; }
.panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-head { margin-bottom: 1.6rem; }
.section-head .eyebrow {
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin-top: 0.3rem;
}
.section-head p.lead { font-size: 1.1rem; color: var(--ink-mid); max-width: 60ch; margin-top: 0.6rem; }

/* ---------- Scanning animation ---------- */
.scanner { max-width: 620px; margin: 1.5rem auto 0; text-align: left; }
.scan-line {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  font-size: 1rem; color: var(--ink-mid); opacity: 0.35;
  transition: opacity .3s ease;
}
.scan-line.hit { opacity: 1; color: var(--ink); }
.scan-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); flex: none; }
.scan-line.hit .dot { background: var(--green); }
.scan-line .what { flex: 1; }
.scan-line .val { font-weight: 600; color: var(--gold); font-size: 0.92rem; text-align: right; }

/* ---------- Verify form ---------- */
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-mid); display: flex; align-items: center; gap: 0.5rem; }
.field .src {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.1rem 0.45rem; border-radius: 999px; font-weight: 700;
}
.src-scraped { background: #E3EFE7; color: var(--green); }
.src-inferred { background: #FBF1DC; color: var(--gold); }
.src-ai-i    { background: #EDE4F6; color: #6B4A9B; border: 1px dashed #6B4A9B; }
.src-verify  { background: #F6E1DC; color: var(--red); }

/* Inline src badges inside stack layers + why-yes paragraphs */
.stack-layer .ttl .src, .whyyes p .src, .founder .who .src {
  font-size: 0.6rem; padding: 0.05rem 0.4rem; margin-left: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; font-weight: 700;
  vertical-align: middle;
}

/* Risk reversal layer renders distinctly — protection, not a $ value */
.stack-layer.risk-layer { background: #F6E1DC22; border-left: 3px solid var(--red); }
.stack-layer.risk-layer .worth { color: var(--red); font-style: italic; }

/* Verify-note legend — color-codes the four badges in one inline strip */
#verifyNote .src { margin-right: 0.15rem; }

/* Honesty disclosure under the stack total — names what's still ungrounded.
   Solid cream panel: must read clearly against the dark stack-visual background. */
.stack-disclosure {
  margin: 0.8rem 0 0; padding: 0.9rem 1.1rem;
  background: var(--cream); border-left: 4px solid #6B4A9B;
  border-radius: 8px; font-size: 0.9rem; line-height: 1.6; color: var(--ink);
}
.stack-disclosure em { font-style: italic; color: var(--ink-mid); }
.stack-disclosure .src { margin-right: 0.25rem; vertical-align: middle; }

/* Worth column: badge + citation line under each £/mo */
.worth-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; min-width: 130px; }
.worth-col .worth { display: flex; align-items: center; gap: 0.4rem; }
.worth-cite { font-size: 0.7rem; color: var(--ink-light); font-style: italic; text-align: right; max-width: 240px; line-height: 1.35; }

/* Consent box on the front door — visible, not buried */
.consent {
  margin: 1.2rem auto 0; max-width: 720px; padding: 0.85rem 1.1rem;
  background: var(--cream-2); border: 1px solid var(--rule); border-radius: 10px;
  font-size: 0.85rem; line-height: 1.55; color: var(--ink-mid); text-align: left;
}
.consent p { margin: 0; }
.consent strong { color: var(--ink); }

/* Handoff action row */
.handoff-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* ---- Component activation bar — the bundle as UI ---- */
.component-toggles {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 1.2rem 0 1.8rem; padding: 0.8rem;
  background: var(--cream-2); border-radius: 10px; border: 1px solid var(--rule);
}
.component-toggles .toggle {
  font-size: 0.85rem; font-weight: 600; padding: 0.5rem 0.95rem;
  border-radius: 999px; border: 1.5px solid var(--rule);
  background: var(--white); color: var(--ink-mid);
  cursor: pointer; transition: all 0.15s ease;
}
.component-toggles .toggle.on {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.component-toggles .toggle:hover { border-color: var(--gold-light); }

/* Component panel spacing — each component owns its panel */
.component-panel { margin-bottom: 2rem; }
.component-panel:empty { display: none; }

/* Client Journey stub styles — placeholder until Journey-OS merges in */
.journey-section {
  padding: 1.4rem 1.5rem; border-radius: 10px;
  background: var(--cream); border: 1px solid var(--rule);
}
.journey-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: var(--gold-light); color: var(--ink); margin-bottom: 0.6rem;
}
.journey-head h3 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--ink); margin: 0 0 0.5rem; line-height: 1.2;
}
.journey-intro { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.6; margin: 0 0 1.2rem; }
.journey-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.journey-card {
  padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--rule); border-radius: 8px;
}
.journey-card .eyebrow { color: var(--gold); margin-bottom: 0.4rem; font-size: 0.7rem; }
.journey-card h4 {
  font-family: var(--serif); font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--ink);
}
.journey-card p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-mid); margin: 0; }
.journey-card-pending {
  background: var(--cream-2); border-style: dashed; border-color: var(--gold-light);
}
@media (max-width: 760px) { .journey-preview { grid-template-columns: 1fr; } }
.journey-download {
  font-size: 0.8rem; color: var(--ink-mid); text-decoration: underline;
  margin-left: 0.4rem; cursor: pointer;
}
.journey-download:hover { color: var(--gold); }

/* Toast — bottom-center confirmation after Send to Journey-OS */
.vsb-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream); padding: 0.85rem 1.2rem;
  border-radius: 999px; box-shadow: var(--shadow); font-size: 0.88rem; line-height: 1.45;
  max-width: min(720px, 92vw); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
.vsb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Header: Journey-OS link on the right ---- */
.masthead .wrap { flex-wrap: wrap; }
.journey-link {
  color: var(--cream); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.45rem 0.9rem; border: 1.5px solid var(--gold-light); border-radius: 999px;
  transition: all 0.18s ease; white-space: nowrap;
}
.journey-link:hover { background: var(--gold-light); color: var(--ink); }
.masthead .status-row { padding-top: 0.4rem; padding-bottom: 0; }
.masthead .status-row .status {
  font-size: 0.78rem; color: var(--cream); opacity: 0.7; letter-spacing: 0.04em;
}

/* ---- Cost of Standing Still — the negative-value section ---- */
.cost-section {
  margin: 1.6rem 0 0; padding: 1.4rem 1.5rem;
  background: linear-gradient(to bottom, #2A1814, #1A1814);
  border-left: 4px solid var(--red); border-radius: 10px;
  color: var(--cream);
}
.cost-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: var(--red); color: var(--cream); margin-bottom: 0.6rem;
}
.cost-head h3 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--cream); margin: 0 0 0.5rem; line-height: 1.2;
}
.cost-intro { font-size: 0.95rem; color: #DDD0B8; line-height: 1.55; margin: 0 0 1rem; }
.cost-points { display: grid; gap: 0.85rem; }
.cost-point {
  padding: 0.85rem 1rem; background: rgba(245, 240, 232, 0.05);
  border-left: 2px solid var(--red); border-radius: 6px;
  font-size: 0.92rem; line-height: 1.55; color: var(--cream);
}
.cost-point strong { color: var(--gold-light); display: inline; margin-right: 0.3rem; }
.cost-point .src { margin-left: 0.5rem; vertical-align: middle; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: 9px; padding: 0.65rem 0.8rem;
  background: var(--white); outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--gold-light); }
.field textarea { min-height: 64px; }

.verify-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.verify-actions .note { font-size: 0.9rem; color: var(--ink-light); }

/* ---------- The Value Stack visual ---------- */
.stack-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .stack-layout { grid-template-columns: 1fr; } .verify-grid { grid-template-columns: 1fr; } }

.stack-visual {
  background: var(--ink); border-radius: var(--radius); padding: 2rem 1.8rem;
  color: var(--cream); box-shadow: var(--shadow);
}
.stack-visual .vh { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.stack-layer {
  background: linear-gradient(180deg, rgba(196,146,42,0.16), rgba(196,146,42,0.06));
  border: 1px solid rgba(196,146,42,0.4); border-left: 4px solid var(--gold-light);
  border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  animation: layerIn .45s ease both;
}
@keyframes layerIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.stack-layer .ttl { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.stack-layer .desc { font-size: 0.82rem; color: var(--rule); margin-top: 0.15rem; }
.stack-layer .worth { font-family: var(--serif); font-weight: 600; color: var(--gold-light); font-size: 1.1rem; white-space: nowrap; }

.stack-total {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1.5px dashed rgba(212,201,176,0.4);
  display: flex; justify-content: space-between; align-items: baseline;
}
.stack-total .lbl { font-size: 0.95rem; color: var(--rule); }
.stack-total .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--white); }
.stack-price {
  margin-top: 1rem; background: rgba(63,107,82,0.18); border: 1px solid var(--green);
  border-radius: 8px; padding: 0.9rem 1rem; text-align: center;
}
.stack-price .you-pay { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rule); }
.stack-price .amt { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--white); }
.stack-price .amt sup { font-size: 1rem; vertical-align: super; color: var(--gold-light); }
.stack-price .frame { font-size: 0.9rem; color: var(--cream); font-style: italic; margin-top: 0.3rem; }

/* ---------- Why-yes column ---------- */
.whyyes h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.9rem; }
.whyyes .model {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.whyyes .model p { color: var(--ink-mid); margin-bottom: 0.7rem; }
.whyyes .model p:last-child { margin-bottom: 0; }
.whyyes .model strong { color: var(--ink); }
.founder {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cream-2); border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--rule);
}
.founder .avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.founder .q { font-style: italic; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.founder .who { font-size: 0.85rem; color: var(--ink-light); margin-top: 0.4rem; font-weight: 600; }

/* ---------- Footer / handoff strip ---------- */
.handoff {
  margin-top: 2.5rem; background: var(--white); border: 1px dashed var(--gold-light);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.handoff .txt { font-size: 0.98rem; color: var(--ink-mid); max-width: 52ch; }
.handoff .txt strong { color: var(--ink); }

footer.foot { background: var(--ink); color: var(--rule); padding: 2rem 0; margin-top: 3rem; font-size: 0.85rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.foot em { color: var(--gold-light); font-style: normal; }

.demo-banner {
  background: var(--gold-light); color: var(--ink); text-align: center;
  font-size: 0.85rem; font-weight: 600; padding: 0.45rem 1rem; letter-spacing: 0.02em;
}

/* ---------- Brand logo placements ---------- */
.brand-found {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 0.7rem 1rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.brand-found img { height: 46px; width: auto; border-radius: 4px; }
.brand-found span { font-size: 0.92rem; color: var(--green); font-weight: 600; letter-spacing: 0.02em; }

.brand-crest { text-align: center; margin-bottom: 1.2rem; }
.brand-crest img {
  max-width: 360px; width: 70%; height: auto;
  filter: drop-shadow(0 8px 24px rgba(26,24,20,0.14));
}

/* ============================================================
   Client Journey component — six-stage track rendered from the
   shared intake store. Sits inside #client-journey panel.
   ============================================================ */
.cj-section {
  padding: 1.6rem 1.6rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.cj-head { margin-bottom: 1.4rem; }
.cj-head h3 {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 700;
  color: var(--ink); margin: 0.4rem 0 0.6rem; line-height: 1.25;
}
.cj-intro {
  font-size: 1rem; color: var(--ink-mid); line-height: 1.6; margin: 0;
  max-width: 64ch;
}
.cj-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 820px) { .cj-track { grid-template-columns: 1fr; } }

.cj-stage {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1rem;
  display: flex; flex-direction: column;
  position: relative;
}
.cj-stage-head {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.cj-stage-idx {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.12em;
}
.cj-stage-ttl {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 700;
  color: var(--ink); margin: 0; line-height: 1.25;
}
.cj-stage-body { flex: 1; }
.cj-body {
  font-size: 0.95rem; line-height: 1.55; color: var(--ink-mid);
  margin: 0 0 0.7rem;
}
.cj-pillars { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.7rem; }
.cj-pillar {
  font-size: 0.92rem; line-height: 1.5; color: var(--ink-mid);
  padding: 0.45rem 0.65rem; background: var(--white);
  border-left: 3px solid var(--gold-light); border-radius: 4px;
}
.cj-layers { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.7rem; }
.cj-layer {
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: 0.5rem 0.7rem;
}
.cj-layer-ttl {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 700;
  color: var(--ink);
}
.cj-layer-desc {
  font-size: 0.85rem; line-height: 1.45; color: var(--ink-mid); margin-top: 0.15rem;
}
.cj-quote {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0.4rem 0 0.6rem;
}
.cj-quote-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.3rem;
}
.cj-quote-text {
  font-family: var(--serif); font-style: italic; font-size: 0.98rem;
  line-height: 1.5; color: var(--ink);
}
.cj-quote-src { margin-top: 0.35rem; }
.cj-stage-lift {
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px dashed var(--gold-light);
}
.cj-lift-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.3rem;
}
.cj-lift-text {
  font-size: 0.95rem; line-height: 1.5; color: var(--ink);
  font-weight: 500; margin: 0;
}
.cj-summary {
  background: var(--ink); color: var(--cream);
  padding: 1.1rem 1.3rem; border-radius: 10px;
  margin-top: 0.5rem;
}
.cj-summary-label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.4rem;
}
.cj-summary-text {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Section-header treatment carried from the masthead:
   ink background, cream text, gold underline. Applied to the
   client-journey and journey-infographic component panels so
   the journey side of the tool reads with the same brand voice
   as the VSB header. (Brian's design directive 2026-06-07.)
   ============================================================ */
.cj-section, .ji-section {
  border: none;
  background: transparent;
  padding: 0;
}
.cj-head, .ji-section-head {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 4px solid var(--gold-light);
  padding: 1.5rem 1.6rem 1.4rem;
  border-radius: 12px 12px 0 0;
  margin-bottom: 1.2rem;
}
.cj-head .journey-pill, .ji-section-head .journey-pill {
  background: var(--gold-light); color: var(--ink);
}
.cj-head h3, .ji-section-head h3 {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 700;
  margin: 0.5rem 0 0.5rem; line-height: 1.25;
}
.cj-intro, .ji-intro {
  color: var(--rule);
  font-size: 0.98rem; line-height: 1.55; margin: 0;
  max-width: 64ch;
}
.cj-track {
  padding: 0 1.6rem;
}
.cj-summary {
  margin: 0.5rem 1.6rem 0;
}

/* ============================================================
   Infographic posters — operator perspective + client perspective.
   HTML/CSS poster artifact, deterministic, print-clean.
   ============================================================ */
.ji-posters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  padding: 0 1.6rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 980px) { .ji-posters { grid-template-columns: 1fr; } }

.ji-poster {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ji-head {
  background: var(--ink); color: var(--cream);
  border-bottom: 4px solid var(--gold-light);
  padding: 1rem 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.ji-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  background: var(--cream); border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.ji-head-text { flex: 1; min-width: 0; }
.ji-eyebrow {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.25rem;
}
.ji-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--cream); margin: 0; line-height: 1.25;
}
.ji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  flex: 1;
}
@media (max-width: 600px) { .ji-grid { grid-template-columns: repeat(2, 1fr); } }

.ji-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-light);
  border-radius: 6px;
  padding: 0.7rem 0.75rem;
  display: flex; flex-direction: column;
  min-height: 130px;
}
.ji-num {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.15em; color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.ji-card-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.35rem;
}
.ji-card-line {
  font-size: 0.85rem; line-height: 1.4;
  color: var(--ink-mid); flex: 1;
}
.ji-foot {
  padding: 0.85rem 1.1rem;
  background: var(--ink); color: var(--cream);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: 0.78rem;
}
.ji-foot-line { color: var(--rule); font-style: italic; }
.ji-foot-brand { color: var(--gold-light); font-weight: 700; letter-spacing: 0.04em; }

.ji-actions {
  padding: 0 1.6rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ji-actions-note {
  font-size: 0.82rem; color: var(--ink-light); font-style: italic;
}

/* Print mode — when body has .ji-printing, only the two posters print. */
@media print {
  body.ji-printing > *:not(#journey-infographic),
  body.ji-printing #journey-infographic .ji-section-head,
  body.ji-printing #journey-infographic .ji-actions { display: none !important; }
  body.ji-printing #journey-infographic { display: block !important; }
  body.ji-printing .ji-posters {
    grid-template-columns: 1fr; padding: 0; gap: 0;
  }
  body.ji-printing .ji-poster {
    page-break-after: always;
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }
  body.ji-printing .ji-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Polish pass — 2026-06-07 evening
   Owner photo support · readability lifts to the 0.8rem UI floor
   · jargon-out · clarity on small print.
   These overrides intentionally come AFTER all earlier styles.
   ============================================================ */

/* Owner photo in the founder block (was initials only). */
.avatar.avatar-photo {
  background: transparent !important;
  color: transparent;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.avatar.avatar-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Owner photo in the cj-head section header — sits opposite the title. */
.cj-head-row {
  display: flex; align-items: flex-start; gap: 1.2rem;
  justify-content: space-between;
}
.cj-head-text { flex: 1; min-width: 0; }
.cj-owner-pic {
  width: 84px; height: 84px;
  object-fit: cover; border-radius: 50%;
  border: 3px solid var(--gold-light);
  flex-shrink: 0;
  background: var(--cream);
}
@media (max-width: 720px) {
  .cj-head-row { flex-direction: column-reverse; align-items: flex-start; }
  .cj-owner-pic { width: 64px; height: 64px; }
}

/* Owner photo in the ji-poster head — round, sits beside the title. */
.ji-logo.ji-photo {
  border-radius: 50%;
  background: var(--cream);
  padding: 0;
  border: 2px solid var(--gold-light);
  width: 48px; height: 48px;
  object-fit: cover;
}
.ji-who {
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--rule); margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ---- Readability floor — 0.8rem minimum for UI chrome (per CLAUDE.md). ---- */
/* Source badges (were 0.6rem — illegible). */
.badge, .src-badge, [class*="src-"][class*="badge"],
.scraped-badge, .inferred-badge, .verify-badge, .ai-i-badge { font-size: 0.8rem !important; padding: 0.15rem 0.5rem !important; }

/* Verify form labels + badges that drove below floor. */
.field label { font-size: 0.95rem; }
.field .badge { font-size: 0.78rem !important; padding: 0.1rem 0.45rem !important; }

/* Worth citation under each layer — was 0.7rem. */
.worth-cite { font-size: 0.82rem !important; line-height: 1.45; }

/* Step rail pills + component toggles — bumped from 0.85 -> 0.9. */
.step-pill { font-size: 0.9rem !important; padding: 0.55rem 1.05rem !important; }
.toggle { font-size: 0.9rem !important; padding: 0.5rem 1rem !important; }

/* Eyebrows / labels — keep tight letter-spacing but lift size. */
.eyebrow, .stack-eyebrow, .section-head .eyebrow { font-size: 0.82rem !important; letter-spacing: 0.15em !important; }
.journey-pill, .ji-eyebrow, .demo-label { font-size: 0.82rem !important; }
.cj-stage-idx, .cj-lift-label, .cj-quote-label, .cj-summary-label,
.ji-num, .ji-foot { font-size: 0.82rem !important; }

/* Footer line — was 0.78rem. */
.foot, .foot * { font-size: 0.86rem !important; }
.foot { line-height: 1.55; }

/* Hint + consent text — lifted from 0.78rem. */
.hint, .consent { font-size: 0.92rem !important; line-height: 1.6; }

/* Status row above the step rail. */
.status, .status-row .status, #brandStatus { font-size: 0.92rem !important; color: var(--rule); }

/* Demo banner: soften the dev-jargon by making it a quiet attribution strip. */
.demo-banner {
  font-size: 0.78rem !important;
  background: var(--cream-2);
  color: var(--ink-light);
  text-align: center;
  padding: 0.4rem 1rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule);
}

/* The "Each component below renders from the same intake" lead — soften meta-tone. */
.section-head p.lead { color: var(--ink-mid); }

/* Handoff footer — keep visible only the Start over button. */
.handoff { padding: 1rem 0 1.4rem; }
.handoff .handoff-actions { display: flex; justify-content: center; }

/* ============================================================
   Multi-host support — for businesses with two principals
   (CTCSP: Brian + Scott). Renders both faces and both quotes,
   stacked or side-by-side per surface. Single-host businesses
   keep the original layout untouched.
   ============================================================ */

/* Value Stack founder block: side-by-side cards when two hosts. */
.founder.founder-multi {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  padding: 0;
}
.founder.founder-multi .founder-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.founder.founder-multi .founder-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}
.founder.founder-multi .founder-text { flex: 1; min-width: 0; }
.founder.founder-multi .q {
  font-family: var(--serif); font-style: italic;
  font-size: 0.95rem; line-height: 1.5; color: var(--ink);
}
.founder.founder-multi .who {
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-mid);
  margin-top: 0.4rem;
}
/* Keep the single-host layout consistent: render the same .founder-card shell. */
.founder:not(.founder-multi) .founder-card {
  display: flex; align-items: flex-start; gap: 0.85rem;
}

/* Client Journey head: stack photos overlapping when multiple hosts. */
.cj-owner-stack {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.cj-owner-stack img {
  width: 84px; height: 84px;
  object-fit: cover; border-radius: 50%;
  border: 3px solid var(--gold-light);
  background: var(--cream);
  margin: 0;
}
.cj-owner-stack[data-count="2"] img:nth-child(2) {
  margin-left: -22px; /* gentle overlap signals "two hosts" */
}
@media (max-width: 720px) {
  .cj-owner-stack img { width: 60px; height: 60px; }
  .cj-owner-stack[data-count="2"] img:nth-child(2) { margin-left: -16px; }
}

/* Infographic poster head: side-by-side photos for co-hosts. */
.ji-photos {
  display: flex; align-items: center; flex-shrink: 0;
}
.ji-photos .ji-photo {
  margin: 0;
}
.ji-photos[data-count="2"] .ji-photo:nth-child(2) {
  margin-left: -14px;
  z-index: 1;
}
