/* ============================================================
   SWATrade | The Value Ladder
   ladder.css | v1 — loaded AFTER style.css on index, steward, custos
   ============================================================ */

/* ── THE ASCENT (homepage ladder) ─────────────────────────── */
.ladder { background: var(--bg-2); border-top: 1px solid var(--border); }
.ladder__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.ladder__header {
  max-width: 640px;
  margin-bottom: 56px;
}
.ladder__header p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}
.ladder__header p + p { margin-top: 16px; }
.ladder__header em { color: var(--text); font-style: italic; }

.ascent { display: flex; flex-direction: column; }
.rung {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.rung:hover { background: var(--bg-3); border-color: rgba(196,147,58,0.35); }
.rung + .rung::before {
  content: '';
  position: absolute;
  left: 60px; top: -17px;
  height: 17px; width: 1px;
  background: rgba(196,147,58,0.35);
}
.rung__key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--border);
  padding: 28px 12px;
  text-align: center;
}
.rung__glyph {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.rung__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.rung__body { padding: 30px 36px 28px; }
.rung__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 6px;
}
.rung__head h3 {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--text);
  line-height: 1.2;
}
.rung__head h3 i { color: var(--accent); font-style: italic; }
.rung__price {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.rung__line {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}
.rung__list {
  list-style: none;
  margin-bottom: 26px;
}
.rung__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 7px 0;
}
.rung__list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}
.rung--apex {
  background: linear-gradient(180deg, rgba(196,147,58,0.07), var(--bg-2));
  border-color: rgba(196,147,58,0.4);
}
.rung--apex:hover { background: linear-gradient(180deg, rgba(196,147,58,0.10), var(--bg-3)); }
.rung--apex .rung__glyph { font-size: 26px; }
.rung--apex .rung__head h3 { font-size: 27px; }
.ladder__note {
  font-size: 13px;
  color: var(--text-subtle);
  font-style: italic;
  margin-top: 28px;
  max-width: 640px;
  line-height: 1.7;
}

/* ── BOOK CARD (proof section) ────────────────────────────── */
.proof__book {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.proof__book img {
  width: 68px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid rgba(196,147,58,0.35);
}
.proof__book-title {
  font-family: var(--font-d);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.proof__book-year {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proof__book-line {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TIER PAGES (steward.html / custos.html) ──────────────── */
.tpage-hero {
  padding: 160px 0 80px;
  background: linear-gradient(160deg, #060D1A 0%, #081020 50%, #0A1428 100%);
  position: relative;
  overflow: hidden;
}
.tpage-hero::before {
  content: '';
  position: absolute;
  top: 10%; right: 8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196,147,58,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.tpage-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.tpage-hero__title {
  font-family: var(--font-d);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
}
.tpage-hero__title i { color: var(--accent); font-style: italic; }
.tpage-hero__price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.tpage-hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
}

.tsec { padding: 80px 0; border-top: 1px solid var(--border); }
.tsec__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.tsec__inner > .h2 { margin-bottom: 28px; }
.tsec .prose { max-width: 680px; }

.tlist-flat { list-style: none; margin-top: 8px; }
.tlist-flat li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tlist-flat li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}
.tlist-flat li strong { color: var(--text); font-weight: 500; }

.fence {
  margin-top: 40px;
  padding: 32px 36px;
  background: rgba(196,147,58,0.05);
  border-left: 3px solid var(--accent);
}
.fence p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.fence p + p { margin-top: 14px; }
.fence strong { color: var(--text); font-weight: 500; }

.paybox {
  margin-top: 8px;
  border: 1px solid rgba(196,147,58,0.3);
  background: linear-gradient(180deg, rgba(18,27,42,0.55), rgba(8,13,22,0.5));
  padding: 40px 44px;
}
.paybox__price {
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--text);
  margin-bottom: 8px;
}
.paybox__price span { font-size: 0.45em; color: var(--text-muted); letter-spacing: 0.06em; }
.paybox__terms {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.paybox__terms strong { color: var(--text); font-weight: 500; }
.paybox .btn { margin-top: 28px; }

.tcta { padding: 96px 0; border-top: 1px solid var(--border); text-align: center; }
.tcta__inner { max-width: 640px; margin: 0 auto; padding: 0 32px; }
.tcta__inner .h2 { margin-bottom: 18px; }
.tcta__inner p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 36px; }
.tcta__fineprint {
  font-size: 12px;
  color: var(--text-subtle);
  font-style: italic;
  margin-top: 22px;
  line-height: 1.7;
}

.tdisclaimer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 72px;
}
.tdisclaimer p {
  font-size: 11.5px;
  color: var(--text-subtle);
  line-height: 1.7;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ── CUSTOS PAGE — apex identity (EB Garamond, parchment, gold) ── */
.custos-body {
  --c-gold: #c9a44a;
  --c-parch: #e9e2d2;
  --c-muted: #978d78;
  font-family: 'EB Garamond', Georgia, serif;
}
.custos-body .tpage-hero,
.custos-body .tsec,
.custos-body .tcta { background-color: transparent; }
.custos-body .tpage-hero__title,
.custos-body .h2, .custos-body .h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--c-parch);
}
.custos-body .tpage-hero__title i,
.custos-body .h2 i { color: var(--c-gold); }
.custos-body .tpage-hero__price { color: var(--c-gold); font-family: 'Inter', sans-serif; }
.custos-body .tpage-hero__lead,
.custos-body .prose p,
.custos-body .tlist-flat li,
.custos-body .fence p { font-size: 17px; color: var(--c-muted); }
.custos-body .prose p em,
.custos-body .fence strong,
.custos-body .tlist-flat li strong { color: var(--c-parch); }
.custos-body .tlist-flat li::before { content: '·'; color: var(--c-gold); font-size: 22px; line-height: 1.1; }

.custos-icon {
  margin: 36px auto 44px;
  max-width: 340px;
  text-align: center;
}
.custos-hero__inner {
  max-width: 1000px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
}
.custos-icon--hero {
  margin: 0;
  max-width: none;
}
@media (max-width: 820px) {
  .custos-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .custos-icon--hero { max-width: 280px; margin: 0 auto; }
}
.custos-icon img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.6));
}
.custos-icon figcaption {
  margin-top: 6px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--c-parch);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.custos-icon__latin {
  font-size: 18px;
  color: var(--c-gold);
}

.custos-quote {
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-parch);
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--c-gold);
  margin: 36px 0;
}
.custos-quote .attr {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--c-muted);
}

.custos-motto {
  text-align: center;
  padding: 72px 32px;
  border-top: 1px solid var(--border);
}
.custos-motto__latin {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: var(--c-gold);
  margin-bottom: 10px;
}
.custos-motto__trans {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-family: 'Inter', sans-serif;
}
.custos-motto__body {
  max-width: 560px;
  margin: 20px auto 0;
  font-style: italic;
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* Custos inquiry form (inline, reuses wl-field inputs) */
.cq-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.cq-form textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  background: rgba(0,0,0,0.35);
  border: 1px solid #162030;
  border-radius: 8px;
  color: #F2F0ED;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.15s;
}
.cq-form textarea:focus { outline: none; border-color: #C4933A; box-shadow: 0 0 0 3px rgba(196,147,58,0.13); }
.cq-success { display: none; text-align: center; padding: 28px 0; }
.cq-success__icon { font-size: 32px; color: #C4933A; margin-bottom: 16px; }
.cq-success h3 { font-family: var(--font-d); font-size: 21px; color: #E3C789; margin-bottom: 14px; }
.cq-success p { color: #8A8880; font-size: 14px; line-height: 1.75; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .rung { grid-template-columns: 84px 1fr; }
  .rung + .rung::before { left: 42px; }
  .rung__body { padding: 24px 22px; }
  .tpage-hero { padding: 130px 0 64px; }
  .tsec { padding: 64px 0; }
  .paybox { padding: 30px 26px; }
}
