/* ===== Cash Cage — landing page (consumes tokens from legal.css) ===== */

.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 56px 24px 0; }

/* ---- landing header: no nav, centered wordmark ---- */
.topbar--landing { justify-content: center; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px; align-items: start; margin-bottom: 24px;
}
.hero__brand {
  display: block; width: 56px; height: 56px; border-radius: 14px;
  object-fit: cover; border: 1px solid var(--hairline);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4); margin-bottom: 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05; letter-spacing: -1px; color: var(--text); margin-bottom: 18px;
}
.hero__sub { font-size: 17px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta {
  display: inline-block; padding: 15px 28px; background: var(--accent); color: #0A0A0A;
  font-family: var(--display); font-size: 15px; font-weight: 700; border-radius: 12px;
  text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.cta:hover { transform: translateY(-1px); background: #c08ac9; }
.cta--ghost { color: var(--muted); font-family: var(--mono); font-size: 13px; text-decoration: none; }
.cta--ghost:hover { color: var(--accent); }

/* ---- signature: "The Cage" settlement card ---- */
.cage {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1d1d1f 0%, var(--surface) 100%);
  border: 1px solid #262626; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.cage__head {
  display: flex; align-items: center; gap: 10px; padding: 13px 22px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid var(--hairline);
}
.cage__bars { display: flex; gap: 3px; flex-shrink: 0; }
.cage__bars i { width: 2px; height: 13px; background: var(--brass); opacity: .7; border-radius: 1px; }
.cage__when {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.cage__body { padding: 18px 22px 22px; }
.cage__label {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}

/* ---- settle-up panel: balances -> payoff number -> payments ---- */
.balances { width: 100%; border-collapse: collapse; }
.balances td { padding: 5px 0; font-size: 15px; }
.balances__name { font-family: var(--sans); color: var(--body); }
.balances__net { text-align: right; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.balances__net.up { color: var(--up); }
.balances__net.down { color: var(--down); }

.cage__pivot { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.cage__rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); opacity: .5; }
.cage__numwrap { display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.cage__num { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: .9; color: var(--accent); letter-spacing: -1px; }
.cage__unit { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--text); }

.payments { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.payment { display: grid; grid-template-columns: 1fr auto 1fr 56px; gap: 8px; align-items: center; font-size: 15px; }
.payment__from { color: var(--down); font-weight: 600; }
.payment__arrow { color: var(--faint); font-family: var(--mono); }
.payment__to { color: var(--up); font-weight: 600; }
.payment__amt { font-family: var(--mono); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

/* ---- features: chip-denomination rows (no emoji) ---- */
.features { display: grid; gap: 14px; margin: 64px 0 0; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 20px 22px;
}
.chip { width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  border: 2px dashed rgba(255,255,255,.35); }
.chip--p { background: var(--accent); border-color: rgba(255,255,255,.45); }
.chip--g { background: var(--up); border-color: rgba(255,255,255,.45); }
.chip--r { background: var(--down); border-color: rgba(255,255,255,.45); }
.feature h3 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---- how it works (real sequence; reuses ol.steps from legal.css) ---- */
.how { margin: 64px 0 0; }
.how h2 { font-family: var(--display); font-size: 20px; color: var(--text); margin-bottom: 20px; }

/* ---- phone screenshots, de-glowed ---- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 600px; margin: 64px auto 0; }
.shot { border: 8px solid var(--surface); border-radius: 36px; background: var(--surface); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero__order-ledger { order: 2; }
  .shots { grid-template-columns: 1fr; max-width: 300px; }
}

/* ---- settle resolve animation (only active when JS opts in) ---- */
.cage.is-settling .balances tr,
.cage.is-settling .cage__pivot,
.cage.is-settling .payment {
  opacity: 0; transform: translateY(6px);
}
.cage.is-settling.is-resolved .balances tr,
.cage.is-settling.is-resolved .cage__pivot,
.cage.is-settling.is-resolved .payment {
  opacity: 1; transform: none;
  transition: opacity .45s ease, transform .45s ease;
}
/* balances appear first (staggered) */
.cage.is-settling.is-resolved .balances tr:nth-child(2) { transition-delay: .06s; }
.cage.is-settling.is-resolved .balances tr:nth-child(3) { transition-delay: .12s; }
.cage.is-settling.is-resolved .balances tr:nth-child(4) { transition-delay: .18s; }
.cage.is-settling.is-resolved .balances tr:nth-child(5) { transition-delay: .24s; }
.cage.is-settling.is-resolved .balances tr:nth-child(6) { transition-delay: .30s; }
/* then the payoff number */
.cage.is-settling.is-resolved .cage__pivot { transition-delay: .42s; }
/* then the solved payments */
.cage.is-settling.is-resolved .payment:nth-child(1) { transition-delay: .54s; }
.cage.is-settling.is-resolved .payment:nth-child(2) { transition-delay: .62s; }
.cage.is-settling.is-resolved .payment:nth-child(3) { transition-delay: .70s; }
.cage.is-settling.is-resolved .payment:nth-child(4) { transition-delay: .78s; }

@media (prefers-reduced-motion: reduce) {
  .cage.is-settling .balances tr,
  .cage.is-settling .cage__pivot,
  .cage.is-settling .payment { opacity: 1; transform: none; transition: none; }
}
