/* Cornerstone Gigs — How it works page (how-it-works.html).
   Load order: assets/nocturne.css → assets/base.css → this file.
   Tokens only; raw px below are geometry Nocturne doesn't carry
   (timeline node size, illustration proportions, the 768px breakpoint). */

/* ── Page hero ──────────────────────────────────────────────────────── */
.how-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
}
.how-hero h1 {
  font-size: 36px;
  margin-bottom: var(--space-2);
}
.how-hero p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--color-neutral-300);
}

/* ── Vertical timeline ──────────────────────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: var(--space-3) 0 0;
  max-width: 780px;
}
.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 170px;
  gap: var(--space-6);
}
.step:last-child .step-body { padding-bottom: 0; }

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-node {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent); /* short accent marks stay solid */
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
}
.step-line {
  width: 2px;
  flex: 1;
  min-height: var(--space-8);
  margin-block: var(--space-2);
  background: var(--color-divider);
}

.step-body { padding-bottom: var(--space-8); }
.step-title {
  font-size: 20px;
  margin-bottom: var(--space-2);
}
.step-body p {
  font-size: 14px;
  color: var(--color-neutral-300);
  max-width: 54ch;
}

/* ── Inline-drawn mini-UI illustrations (styled divs, not images) ───── */
.step-illus { align-self: start; }
.illus {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.illus-bar {
  height: 12px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.illus-bar-tall { height: 28px; }
.illus-btn {
  height: 14px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
}
.illus-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-accent);
  font-size: 13px;
}
.illus-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 10px;
  color: var(--color-neutral-400);
}
.illus-check .ph {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 10px;
}

/* Step 2: mini gigs board — rows rendered from Gigs data by how.js.
   Pay + duration stay visible on every row, per the site-wide rule. */
.illus-gig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
}
.illus-gig-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9px;
  color: var(--color-neutral-300);
}
.illus-gig-meta {
  flex: none;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-300);
  white-space: nowrap;
}

/* ── FAQ accordion ──────────────────────────────────────────────────── */
.faq {
  max-width: 720px;
  margin: var(--space-8) auto 0;
}
.faq > h2 {
  font-size: 25px;
  text-align: center;
  margin-bottom: var(--space-4);
}
.faq-q-wrap { margin: 0; }
.faq-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.faq-item + .faq-item { margin-top: var(--space-2); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--chrome-t);
}
.faq-q:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.faq-q:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.faq-icon {
  flex: none;
  color: var(--color-accent);
  font-size: 16px;
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--chrome-t);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-panel-inner p {
  margin: 0;
  padding: 0 var(--space-4) var(--space-3);
  font-size: 14px;
  color: var(--color-neutral-300);
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel { transition: none; }
}

/* ── Closing CTA ────────────────────────────────────────────────────── */
.how-cta {
  text-align: center;
  padding: var(--space-8) 0 var(--space-3);
}

/* ── Mobile: timeline stacks, illustrations drop below the copy ─────── */
@media (max-width: 767px) {
  .how-hero h1 { font-size: 30px; }
  .step {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .step-illus {
    grid-column: 2;
    max-width: 240px;
    margin: calc(var(--space-3) * -1) 0 var(--space-6);
  }
  .faq { max-width: none; }
}
