/* Pricing & payments — the page an underwriter reads before approving us.
   Built from the shared design system; only the money-specific pieces live here. */

/* ── Worked example table ────────────────────────────────────────────────── */

.price-table {
  max-width: 680px;
  margin-inline: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.price-row:last-child { border-bottom: 0; }

.price-row__label { color: var(--color-ink); font-size: var(--text-base); }
.price-row__label em {
  display: block;
  font-style: normal;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  margin-top: 0.15rem;
}

.price-row__value {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  white-space: nowrap;
}
.price-row__value--credit { color: var(--color-teal-ink); }

.price-row--total {
  background: var(--color-accent);
  border-top: 2px solid var(--color-border-strong);
}
.price-row--total .price-row__label { font-weight: var(--weight-semibold); }
.price-row--total .price-row__value { font-size: var(--text-lg); color: var(--color-secondary); }

/* The deposit is deliberately outside the total — it is held, not charged. */
.price-row--muted { background: var(--color-bg-sunken); }
.price-row--muted .price-row__label,
.price-row--muted .price-row__value { color: var(--color-ink-secondary); }

.price-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: 680px;
  margin: var(--space-5) auto 0;
  color: var(--color-ink-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.price-note svg { width: 1.15rem; height: 1.15rem; color: var(--color-teal-ink); flex: none; margin-top: 0.1rem; }

.panel__aside {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}
.panel p + p { margin-top: var(--space-3); }

/* ── When money moves ────────────────────────────────────────────────────── */

.timeline {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

.timeline__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
}

/* Connector between the numbered discs. Drawn on the step rather than the list
   so it stops cleanly at the last one. */
.timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: calc(-1 * var(--space-5));
  width: 2px;
  background: var(--color-border);
}

.timeline__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

.timeline__step h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  margin-bottom: 0.2rem;
}
.timeline__step p { color: var(--color-ink-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.timeline__step strong { color: var(--color-ink); }

/* ── Deposit tiers ───────────────────────────────────────────────────────── */

.tier {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
}
.tier__name {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-teal-ink);
  font-weight: var(--weight-semibold);
}
.tier__amount {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-secondary);
  letter-spacing: var(--tracking-snug);
  line-height: 1.1;
}
.tier__amount small { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-ink-muted); display: block; }
.tier__who { color: var(--color-ink-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
