/* ChilledSites: /how-it-works page. Page-only styles, hw- prefix.
   Shares the get-found (gf-) and features (fx-) design language: same token
   set (article.css v10), same card, stage-layout and inverted-band
   components reused directly. Only components that don't already exist on
   get-found or features are defined here. */

.hw-page { background: var(--bg); }

/* ─── Hero: "Who does what" card ───────────────────────────────────────── */

.hw-vs-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.hw-vs-title { font-size: 15px; font-weight: var(--w-strong); color: var(--text-strong); margin-bottom: 16px; }
.hw-vs-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  padding-bottom: 6px;
}
.hw-vs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.hw-vs-col { display: flex; flex-direction: column; min-width: 0; }
.hw-vs-row {
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.hw-vs-col:last-child .hw-vs-row { color: var(--text-strong); font-weight: var(--w-med); }
.hw-vs-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-size: 12.5px;
  color: var(--faint);
}

/* ─── Step timeline ─────────────────────────────────────────────────────── */

.hw-timeline-section { padding: 72px 0; border-top: 1px solid var(--divider); }

.hw-timeline { position: relative; }
.hw-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--divider);
}
.hw-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 56px;
}
.hw-step:last-child { margin-bottom: 0; }
.hw-step-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--coral);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--w-strong);
}
.hw-step-body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .hw-timeline::before { left: 15px; }
  .hw-step { gap: 16px; }
  .hw-step-marker { width: 32px; height: 32px; font-size: 11px; }
}

/* ─── Step points list ──────────────────────────────────────────────────── */

.hw-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hw-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
.hw-points svg { flex-shrink: 0; color: var(--coral); margin-top: 2px; }

/* ─── Step 2 mock: building card ────────────────────────────────────────── */

.hw-build-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hw-build-head { display: flex; align-items: center; gap: 10px; }
.hw-build-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: hw-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hw-build-dot { animation: none; }
}
@keyframes hw-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hw-build-title { font-size: 14px; font-weight: var(--w-strong); color: var(--text-strong); }
.hw-build-list { display: flex; flex-direction: column; gap: 2px; }
.hw-build-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--divider);
}
.hw-build-row:last-child { border-bottom: none; }
.hw-build-row svg { flex-shrink: 0; }
.hw-build-row--done svg { color: var(--status-green); }
.hw-build-row--done span { color: var(--text-strong); }
.hw-build-row--progress svg { color: var(--coral); }
.hw-build-row--progress span { color: var(--text-strong); font-weight: var(--w-med); }
.hw-build-row--todo svg { color: var(--faint); }
.hw-progress { height: 5px; border-radius: 3px; background: var(--divider); overflow: hidden; }
.hw-progress-fill { height: 100%; background: var(--coral); border-radius: 3px; }
.hw-progress-70 { width: 70%; }

/* ─── Step 4 mock: published card ───────────────────────────────────────── */

.hw-published-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hw-published-head { display: flex; align-items: center; gap: 10px; }
.hw-published-head svg { color: var(--status-green); flex-shrink: 0; }
.hw-published-title { font-size: 15px; font-weight: var(--w-strong); color: var(--text-strong); }
.hw-published-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) - 2px);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-strong);
}
.hw-published-copy { color: var(--muted); flex-shrink: 0; display: flex; }
.hw-published-tree { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hw-published-tree svg { color: var(--coral); flex-shrink: 0; }

/* ─── Pricing (the one inverted --paper band) ───────────────────────────── */

.hw-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 640px) {
  .hw-price-grid { grid-template-columns: 1fr; }
}
.hw-price-card {
  border: 1px solid var(--paper-rule);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.hw-price-name {
  font-size: 13px;
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.hw-price-amount {
  font-family: 'Bricolage Grotesque', Didot, Georgia, serif;
  font-size: 34px;
  font-weight: var(--w-strong);
  color: var(--ink);
}
.hw-price-list { list-style: none; margin: 20px 0 0; padding: 0; }
.hw-price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-muted);
  border-top: 1px solid var(--paper-rule);
}
.hw-price-list li:first-child { border-top: none; }
.hw-price-list svg { flex-shrink: 0; color: var(--gold-dark); }
.hw-price-note { font-size: 13.5px; color: var(--ink-muted); text-align: center; margin-top: 28px; }
.hw-price-note a { color: var(--gold-dark); font-weight: var(--w-strong); text-decoration: underline; }

/* Step headings match the section headings on the sister pages. */
.hw-step h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--text-strong);
  margin-bottom: 12px;
}
.hw-step .gf-group-intro { margin-bottom: 20px; }
