/* Help the Many: marketing site (pilot preview)
   Palette carried from the 1.0 placeholder: deep navy, warm cream,
   gold headings, a single cyan accent. No build step, no tracking. */

* { box-sizing: border-box; }

:root {
  --bg: #050a14;
  --bg-raise: #0a1220;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(240, 230, 200, 0.16);
  --ink: #f0e6c8;
  --ink-dim: #c9bfa5;
  --gold: #e8c96a;
  --terra: #e8875f;
  --cyan: #4de8f2;
  --muted: #a8b8cc;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem;
  padding: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 1.3rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; font-weight: 700;
}
.wordmark img { height: 1.5em; width: auto; vertical-align: -0.32em; margin-right: 0.45rem; }
nav.main { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
nav.main a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--cyan); }

.pilot-badge {
  display: inline-block; margin-top: 1.5rem; padding: 0.25rem 0.7rem;
  border: 1px solid var(--cyan); border-radius: 999px; color: var(--cyan);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}

h1 {
  font-size: 2.4rem; line-height: 1.15; margin: 1.2rem 0 0.5rem;
  color: var(--gold); letter-spacing: 0.02em;
}
h2 {
  font-size: 1.45rem; margin: 3rem 0 0.8rem; color: var(--gold);
  letter-spacing: 0.03em;
}
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; color: var(--ink); }
p { margin: 0.6rem 0; }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 44rem; }
.dim { color: var(--ink-dim); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
a { color: var(--cyan); }
strong { color: var(--ink); }

blockquote {
  margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--cyan);
}
blockquote p { font-size: 1.15rem; margin: 0; }

.steps { display: grid; gap: 1rem; margin: 1.2rem 0; }
@media (min-width: 44rem) { .steps { grid-template-columns: 1fr 1fr; } }
.step, .card, .door {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.2rem 1.3rem;
}
.step .num {
  display: inline-block; color: var(--bg); background: var(--gold);
  font-weight: 700; border-radius: 50%; width: 1.7rem; height: 1.7rem;
  line-height: 1.7rem; text-align: center; margin-bottom: 0.5rem;
}
.doors { display: grid; gap: 1rem; margin: 1.2rem 0; }
@media (min-width: 44rem) { .doors { grid-template-columns: 1fr 1fr; } }
.door h3 { margin-top: 0; color: var(--gold); }
/* The primary button, site-wide (Jason, 2026-10-25): terracotta,
   never gold, a yellow first button on every page read as
   caution, not as the main action. Dark text on #e8875f measures
   7.13:1; the hover lightens within the same family (#eda07e,
   8.79:1). Gold is off button duty entirely; it survives only as
   headings, the wordmark, and small accents. */
.btn {
  display: inline-block; margin-top: 0.7rem; padding: 0.65rem 1.2rem;
  background: var(--terra); color: #131313; font-weight: 700;
  border-radius: 6px; text-decoration: none; border: none;
  cursor: pointer; font-size: 0.95rem;
}
.btn:hover { background: #eda07e; }
.btn.ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
}
.btn.ghost:hover { background: rgba(77, 232, 242, 0.12); }
/* Receive's treatment is the secondary one: the cyan outline
   (.btn.ghost). Give, the featured path, takes the primary
   .btn above, like every other main action on the site. */

.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.cats li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.9rem; color: var(--ink-dim); font-size: 0.92rem;
}

.prompt {
  background: #02060d; border: 1px solid var(--line); border-radius: 10px;
  margin: 1rem 0 2rem; overflow: hidden;
}
.prompt-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.prompt-head .who { font-weight: 700; color: var(--gold); }
.prompt-head .copy-btn { margin-left: auto; }
.prompt pre {
  margin: 0; padding: 1rem 1.1rem; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem; line-height: 1.55; color: var(--ink);
  max-height: 26rem; overflow: auto;
}
.copy-btn {
  background: transparent; color: var(--cyan); border: 1px solid var(--cyan);
  border-radius: 6px; padding: 0.4rem 0.9rem; cursor: pointer;
  font-size: 0.85rem;
}
.copy-btn:hover { background: rgba(77, 232, 242, 0.12); }
.copy-btn.copied { color: var(--gold); border-color: var(--gold); }

table.endpoints { border-collapse: collapse; width: 100%; margin: 1rem 0; }
table.endpoints th, table.endpoints td {
  text-align: left; padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.endpoints th { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em; color: var(--cyan); word-break: break-all;
}
td code, li code { color: var(--cyan); }

.essay-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; }
.essay-list .card h3 { margin-top: 0; }
.essay-list a { text-decoration: none; }
article.essay { max-width: 44rem; }
article.essay p { margin: 0.9rem 0; }
.reflection-note {
  border: 1px dashed var(--line); border-radius: 10px;
  padding: 0.9rem 1.1rem; color: var(--ink-dim); font-size: 0.92rem;
  margin: 1.5rem 0;
}

/* Homepage and start-page layout (2026 redesign).
   The rules below add shape around the existing palette instead of
   replacing it: deep navy stays the ground, terracotta marks
   giving (Jason's call, 2026-10-25: gold read as caution on the
   featured path, gold stays for headings and small accents),
   and cyan marks receiving and interactive paths. */
body {
  background: var(--bg);
}

.hero {
  position: relative; overflow: hidden; margin-top: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--bg-raise);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.hero::after {
  content: ""; position: absolute; width: 25rem; height: 25rem;
  right: -11rem; top: -12rem; border: 1px solid rgba(77, 232, 242, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(77, 232, 242, 0.025), 0 0 0 7rem rgba(232, 201, 106, 0.02);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .pilot-badge { margin-top: 0; background: rgba(5, 10, 20, 0.55); }
.hero h1 {
  max-width: 12.5ch; margin-top: 1.4rem;
  font-size: clamp(2.65rem, 7vw, 4.9rem); line-height: 0.98;
}
.hero h1 .accent-terra { color: var(--terra); }
.hero h1 .accent-cyan { color: var(--cyan); }
.hero .lede { max-width: 43rem; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-actions .btn { margin-top: 0; }
.hero-note { max-width: 42rem; margin-top: 1.2rem; color: var(--ink-dim); }
.hero-quote {
  max-width: 42rem; margin-top: 2rem; padding: 1rem 1.1rem;
  border-left: 2px solid var(--gold); background: rgba(2, 6, 13, 0.36);
  color: var(--ink); font-size: 1.05rem;
}
.hero-quote p { margin: 0; }

.section-head { max-width: 45rem; margin-top: 4.5rem; }
.section-head h2 { margin-top: 0.45rem; }
.kicker {
  color: var(--cyan); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}

.direction-grid, .split-grid, .chooser-grid {
  display: grid; gap: 1rem; margin: 1.4rem 0;
}
@media (min-width: 48rem) {
  .direction-grid, .split-grid { grid-template-columns: 1fr 1fr; }
  .chooser-grid { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  position: relative; overflow: hidden; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}
.path-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--terra);
}
.path-card.receive::before { background: var(--cyan); }
.path-card .direction-label {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--terra);
}
.path-card.receive .direction-label { color: var(--cyan); }
.path-card h3 { font-size: 1.55rem; margin: 0.45rem 0 0.5rem; }
.path-card p { color: var(--ink-dim); }
.path-card a { font-weight: 700; }

.role-split {
  display: grid; gap: 1rem; margin-top: 1.2rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
@media (min-width: 38rem) { .role-split { grid-template-columns: 1fr 1fr; } }
.role-split h4 {
  margin: 0 0 0.4rem; color: var(--ink); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.role-split ul, .plain-list { margin: 0; padding-left: 1.15rem; }
.role-split li, .plain-list li { margin: 0.35rem 0; }

.journey {
  display: grid; gap: 0.8rem; margin: 1.4rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
}
.journey-step {
  min-width: 0; padding: 1.15rem; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(255, 255, 255, 0.035);
}
.journey-step .num {
  display: inline-block; color: var(--bg); background: var(--cyan);
  font-weight: 800; border-radius: 50%; width: 1.7rem; height: 1.7rem;
  line-height: 1.7rem; text-align: center; margin-bottom: 0.55rem;
}
.journey-step:nth-child(odd) .num { background: var(--gold); }
.journey-step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.journey-step p { color: var(--ink-dim); font-size: 0.94rem; margin: 0; }

.split-panel {
  padding: 1.6rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel);
}
.split-panel h3 { margin-top: 0; font-size: 1.35rem; }
.split-panel > p { color: var(--ink-dim); }

.trust-grid {
  display: grid; gap: 0.8rem; margin: 1.3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.trust-item {
  padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(2, 6, 13, 0.32);
}
.trust-item h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--gold); }
.trust-item p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; }

.mission-panel {
  margin-top: 1.4rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(232, 201, 106, 0.35); border-radius: 20px;
  background: linear-gradient(140deg, rgba(232, 201, 106, 0.1), rgba(77, 232, 242, 0.05));
}
.mission-panel h2 { margin-top: 0.4rem; }
.mission-panel .big-line {
  font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.25; color: var(--ink);
  max-width: 38rem;
}
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin-top: 3.5rem; padding: 1.5rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--bg-raise);
}
.cta-band h2 { margin: 0; font-size: 1.35rem; }
.cta-band p { margin: 0.25rem 0 0; color: var(--ink-dim); }
.cta-band .hero-actions { margin: 0 0 0 auto; }
.chooser-card {
  display: block; min-width: 0; padding: 1.2rem; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); text-decoration: none;
}
.chooser-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.3rem; }
.chooser-card span { color: var(--ink-dim); }
.chooser-card:hover { border-color: var(--cyan); }
.anchor-section { scroll-margin-top: 4.5rem; }

/* Setup page scroll-to bar: the setup page holds every prompt on one
   long page, so this bar is its map. It sticks under the top of the
   viewport while scrolling (plain CSS position: sticky, no script),
   and wraps on narrow screens instead of overflowing. */
.anchor-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
  margin: 1.6rem 0 0.5rem; padding: 0.7rem 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.anchor-bar a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.anchor-bar a:hover { color: var(--cyan); }

@media (max-width: 44rem) {
  .wrap { padding: 0 1rem 3rem; }
  .hero { border-radius: 18px; }
  .cta-band .hero-actions { margin-left: 0; }
}

footer.site {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
footer.site a { color: var(--muted); }

/* Accessibility (2026-10-25, WCAG 2.2 AA pass). The palette already
   clears contrast (weakest pair measured: muted on bg at 9.8:1);
   what was missing is a skip link and a guaranteed-visible focus
   indicator, browser-default outlines vary too much on a dark
   ground to rely on. The skip link stays off-screen until focused,
   which is the one moment its user needs it. */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--gold); color: #131313; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0 0 6px 6px;
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
/* The site has no animation today beyond the skip link's slide;
   this keeps it that way for anyone who asks their OS for calm. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal-on-scroll (homepage pitch, 2026-10-25). The hidden state
   exists ONLY under html.js-reveal, a class the site script adds
   after confirming IntersectionObserver support and no
   reduced-motion request. So with JS off, or for reduced-motion
   readers, content is simply visible: this CSS alone can never
   hide anything. The reveal is a fade + slight rise, once only. */
html.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1 !important; transform: none !important;
    transition: none !important;
  }
}
