/* overview.css · the guided OVERVIEW DECK for the Halcyon candidate branch.
   ============================================================
   Restyles overview.html into a calm scroll-deck: a vertical
   sequence of clean, centered panels (job statement, five document jobs,
   the boundary, the result, the value model), each revealing on scroll with
   one calm gesture. Every color is a Datum token (halcyon.css), so theme.js
   flips light/dark for free.

   Legibility: text always sits in its own panel; AA on the ground color;
   readable measure (max-width on lede); no horizontal overflow at 375px.

   MOTION CONTRACT: all panel motion is OFF by default. Panels reveal only
   inside the @media (prefers-reduced-motion: no-preference) block via the
   .settle / .settle.in pair motion.js drives. Reduced motion shows the full
   deck instantly, fully readable, no movement.
   ============================================================ */

/* the deck is a centered single column of generous panels */
.deck {
  display: grid;
  gap: var(--space-8);
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: var(--space-10);
}

.deck-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.deck-panel h2 {
  margin: var(--space-3) 0 0;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.deck-panel h3 {
  margin: var(--space-3) 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.deck-step {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}
.deck-lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: var(--space-4) 0 0;
  max-width: 64ch;
}
.deck-foot {
  font-size: 14px;
  color: var(--text-dim);
  margin: var(--space-5) 0 0;
}
.deck-foot a { color: var(--accent); border-bottom: 1px solid var(--border-accent); }

/* the hero panel leads with an accent wash */
.deck-hero {
  background:
    radial-gradient(120% 90% at 0% 0%, var(--accent-pale), transparent 55%),
    var(--surface);
  border-color: var(--border-accent);
}
.deck-scope {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-dim);
}
.deck-scope strong { color: var(--accent); margin-right: 6px; }
.deck-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* the result panel reserves the gold accent for the deliverable */
.deck-result {
  background:
    radial-gradient(120% 90% at 100% 0%, var(--gold-pale), transparent 55%),
    var(--surface);
  border-color: var(--gold-soft);
}

/* ---- the five document-job cards ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.cap-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4) var(--space-4);
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cap-card h4 {
  margin: var(--space-2) 0 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.cap-card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.cap-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.cap-gate { border-color: var(--gold-soft); }
.cap-gate .cap-num {
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  color: var(--gold);
}

/* ---- the boundary cross cards ---- */
.cross-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  min-width: 0;
}
.cross-card .clean-list { margin-top: var(--space-2); }
.cross-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cross-in { border-left: 3px solid var(--accent); }
.cross-in .cross-tag { color: var(--accent); }
.cross-out { border-left: 3px solid var(--gold); }
.cross-out .cross-tag { color: var(--gold); }
.two-col { margin-top: var(--space-5); }

/* ============================================================
   STARTER QUESTIONS, the day-one asks under the hero CTAs.
   A quiet chip row. Each chip carries a tooltip (wired by tooltips.js) that
   says where the ask lands. Non-blocking. the page works with tips off.
   ============================================================ */
.pf-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.pf-starters-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 2px;
}
.pf-starter {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.pf-starter:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.pf-starter:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   PROCESS FLOW, the three acts (Source -> Packet -> Decision).
   Static layout and colors here. the draw/entrance motion is in enrich.css
   behind prefers-reduced-motion. Every color is a Datum token.
   ============================================================ */
.pf-live {
  /* a polite announcer for screen readers, small and calm, visible as a caption */
  margin: var(--space-4) 0 0;
  min-height: 1.2em;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
}
.pf-track {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.pf-act {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}
.pf-act-head { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.pf-act-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-pale);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.pf-act-num-gold {
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  color: var(--gold);
}
.pf-act-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
}
.pf-act-copy {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 46ch;
}
.pf-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  min-width: 0;
}
.pf-svg { display: block; width: 100%; height: auto; }

/* SVG element colors, all tokenized so theme.js flips light/dark */
.pf-line { stroke: var(--border-accent); }
.is-playing .pf-line { stroke: var(--accent); }   /* the drawn path reads accent */
.pf-glyph rect { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.pf-mark { stroke: var(--accent); }
.pf-dot { fill: var(--accent); }
.pf-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  fill: var(--text-dim);
}
.pf-cap-gold { fill: var(--gold); }
/* the source/metadata node ring in act 1 */
.pf-glyph-end .km-node-stroke { stroke: var(--accent); }
/* the gate in act 3 lands gold = a person decides */
.pf-glyph-gate rect { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.pf-gate-ring { stroke: var(--gold-soft); }
.pf-gate-core { fill: var(--gold-pale); stroke: var(--gold); stroke-width: 1.5; }
.pf-gate-check { stroke: var(--gold); }

/* ---- responsive ---- */
@media (max-width: 540px) {
  .deck { gap: var(--space-6); }
  .deck-cta-row { flex-direction: column; align-items: stretch; }
  /* stack the act so the copy reads above its stage, no overflow at 375px */
  .pf-act { grid-template-columns: 1fr; }
  .pf-stage { order: 2; }
}

/* ============================================================
   MOTION. The only place anything animates. Reduced motion stays still.
   Each panel rises into place once as it enters; cards inside the capability
   panel pick up a small built-in stagger so the row resolves left to right.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .deck-panel.settle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .deck-panel.settle.in {
    opacity: 1;
    transform: none;
  }
  /* cards rise after their panel, staggered */
  .deck-panel.settle .cap-card,
  .deck-panel.settle .cross-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .deck-panel.settle.in .cap-card,
  .deck-panel.settle.in .cross-card {
    opacity: 1;
    transform: none;
  }
  .deck-panel.settle.in .cap-card:nth-child(1) { transition-delay: 0.08s; }
  .deck-panel.settle.in .cap-card:nth-child(2) { transition-delay: 0.16s; }
  .deck-panel.settle.in .cap-card:nth-child(3) { transition-delay: 0.24s; }
  .deck-panel.settle.in .cap-card:nth-child(4) { transition-delay: 0.32s; }
  .deck-panel.settle.in .cap-card:nth-child(5) { transition-delay: 0.40s; }
  .deck-panel.settle.in .cross-card:nth-child(2) { transition-delay: 0.10s; }
  .cap-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
  }
  /* the three acts settle in with the same gesture, lightly staggered */
  .pf-act {
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .pf-act.in { border-color: var(--border-accent); }
  .pf-act:hover { transform: translateY(-2px); }
}
