/* Public journey pages (2026-10-06): /how-it-works, its four paths, /sample-brief, /coffee.
   Built on styles.css (same tokens, SPYN look). Everything reads top to bottom without JavaScript; pages.js turns the
   stages into a click-through when it runs (.stages.js). */
.pubpage .topbar .wrap { justify-content: space-between; }
.pubnav { display: flex; flex-wrap: wrap; gap: .1rem; }
.pubmain { padding-top: 1.5rem; padding-bottom: 3rem; }
.pubmain h1 { color: var(--heading); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: .2rem 0 .6rem; }
.pubmain h2 { color: var(--heading); font-size: 1.2rem; margin: 0 0 .5rem; }
.pubmain h3 { color: var(--heading); font-size: 1.02rem; margin: 0 0 .35rem; }
.pubmain a { color: var(--accent-text); }
.pubhero { max-width: 760px; margin-bottom: 1.6rem; }
.lede { font-size: 1.08rem; color: var(--text-2); margin: 0 0 .6rem; }
.story { color: var(--text); background: var(--surface); border-left: 3px solid var(--logo-2); padding: .7rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 0; }
.crumbs { color: var(--muted); margin: 0 0 .6rem; }

/* hub */
.pathcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.pathcard { display: flex; flex-direction: column; gap: .3rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.pathcard:hover, .pathcard:focus-visible { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-ring); }
.pathcard p { margin: 0; flex: 1; color: var(--text-2); }
.pathcard .go { color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.briefteaser, .pilotcontact, .consentstrip, .coffeebox, .investorbox, .aboutbrief, .outcome > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem;
  margin-bottom: 1rem; }
.briefteaser p, .pilotcontact p { margin: 0; }
.consentstrip ol { margin: 0 0 .5rem; padding-left: 1.2rem; }
.consentstrip li { margin-bottom: .25rem; }
.investorbox { border-style: dashed; padding: .7rem 1rem; }
.investorbox p { margin: 0 0 .45rem; }

/* path: stages read top to bottom; pages.js shows one at a time with Back / Next */
.stages { display: grid; gap: 1.4rem; margin-bottom: 1.2rem; }
.stages.js { gap: .8rem; }
.stage { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stagenum { color: var(--amber); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .2rem; }
.stage figcaption { max-width: 760px; margin-bottom: .7rem; }
.stage figcaption p { margin: 0; font-size: 1rem; color: var(--text); }
.stage img { display: block; width: 100%; max-width: 960px; height: auto; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); box-shadow: 0 4px 18px var(--shadow); }
.stages.js .stage { display: none; }
.stages.js .stage.on { display: block; }
.stagenav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; max-width: 960px; }
.stagedots { display: flex; gap: .35rem; }
.stagedots button { width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2);
  padding: 0; cursor: pointer; }
.stagedots button[aria-current="step"] { background: var(--accent); border-color: var(--accent); }
.aside { margin: 0 0 1rem; }
.outcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.outcome > div { margin: 0; }
.outcome p { margin: 0; }
.ctabar { margin: 1.4rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.btn.big { font-size: 1.05rem; padding: .75rem 1.3rem; }

/* sample brief */
.samplebadge { display: inline-block; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; padding: .15rem .6rem; border-radius: 999px; margin: 0 0 .6rem; }
.briefdoc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.bfield { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; }
.bfield h3 { color: var(--amber); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.bfield p, .bfield ul { margin: 0; }
.bfield ul { padding-left: 1.1rem; }
.aboutbrief ul { margin: 0 0 .5rem; padding-left: 1.1rem; }

/* open fake doors */
.interestform { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.interestform .optional { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.interestform input[type=text], .interestform input[type=email], .interestform input[type=number] {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: .45rem .65rem; min-width: 0; width: 100%; max-width: 360px; box-sizing: border-box; }
.interestform .optional input { flex: 1 1 200px; width: auto; }
.interestform input.custom { width: 6rem; }
.interestform.inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.interestform.inline input[type=text], .interestform.inline input[type=email] { flex: 1 1 200px; width: auto; }
.interestform.inline .formmsg { flex-basis: 100%; }
.interestform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formmsg { margin: 0; font-size: .92rem; }
.formmsg.ok { color: var(--ok); }
.formmsg.err { color: var(--danger); }
.pubfoot p { margin: 0 0 .5rem; max-width: 760px; }

@media (max-width: 640px) {
  .pubpage .brand span { display: none; }
  .pubnav a { padding: .3rem .45rem; font-size: .82rem; }
  .stage { padding: .7rem; }
}
