/* =============================================================================
   Support — the supporter tier ladder.
   Every colour is a site.css token; this sheet introduces no new palette, so a
   theme change in one place moves this page with it.
   ============================================================================= */

.sub-h1 { font-size: clamp(27px, 4vw, 38px); }
.sub-h2 { font-size: clamp(20px, 3vw, 26px); }
.sub-lede { max-width: 60ch; }

/* --- the caller's own state, above the ladder ------------------------------ */
/* One panel with five possible states, and EVERY one of them is a sentence.
   A member must never have to guess whether this page knows who they are. */
.sub-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), #0A1119);
  box-shadow: var(--shadow);
}
.sub-status[data-state="member"] { border-color: var(--line-2); }
.sub-status[data-state="degraded"] { border-color: var(--warn); }

.sub-status-line {
  flex: 1 1 20ch;
  min-width: 0;
  margin: 0;
  color: var(--silver-dim);
  font-size: 14.6px;
  line-height: 1.55;
}
.sub-status-line b { color: var(--moon); font-weight: 600; }
.sub-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* The badge for the tier the caller is actually on. */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--moon);
  font: 600 11.5px/1 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sub-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}
.sub-badge.is-free { color: var(--silver-mut); }
.sub-badge.is-free::before { background: var(--stone); box-shadow: none; }

/* --- the ladder meter ------------------------------------------------------ */
/* A BLOCK element with a class, and the percentage arrives as a custom
   property rather than an inline width: an inline <span> is inline-level, and
   an inline box ignores both height and a percentage width, which is how a bar
   ships as an invisible sliver (a bug inherited from the shared card sheet). */
.tier-meter {
  flex: 0 0 auto;
  width: 100%;
  max-width: 190px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tier-meter-fill {
  display: block;
  height: 100%;
  width: calc(var(--pct, 0) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width .7s var(--ease-out, ease);
}
@media (prefers-reduced-motion: reduce) {
  .tier-meter-fill { transition: none; }
}

/* --- the three cards ------------------------------------------------------- */
.sub-tiers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 21px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), #0A1119);
  box-shadow: var(--shadow);
  position: relative;
  transition: border-color .18s, transform .18s;
}
/* the chiselled top edge, same motif as .card in site.css */
.tier-card::before {
  content: "";
  position: absolute; left: 13px; right: 13px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,199,216,.30), transparent);
}
.tier-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .tier-card, .tier-card:hover { transition: none; transform: none; }
}

/* THE CALLER'S CURRENT TIER. Not colour alone — the ribbon carries the same
   fact in words, so it survives a colour-blind reader and a mono screenshot. */
.tier-card.is-current {
  border-color: var(--accent);
  box-shadow: var(--glow), var(--shadow);
}
.tier-ribbon {
  position: absolute;
  top: -1px; right: 16px;
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #DCE4EA, #AFC0CD);
  color: #0A121C;
  font: 700 10.5px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tier-name {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--moon);
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.tier-amount {
  font: 700 30px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  color: var(--moon);
}
.tier-interval { color: var(--silver-mut); font-size: 13.4px; }

.tier-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
}
.tier-perk {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--silver-dim);
  font-size: 14.2px;
  line-height: 1.5;
}
.tier-perk b { color: var(--moon); font-weight: 600; }
.tier-perk-ico {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  color: var(--accent);
}
.tier-perk-ico svg { width: 16px; height: 16px; }

.tier-action { margin-top: 2px; }
.tier-action .btn { width: 100%; }
.tier-note {
  margin: 0;
  color: var(--silver-mut);
  font-size: 12.6px;
  line-height: 1.5;
  min-height: 1.5em;
}
.tier-note.is-error { color: var(--down); }

/* --- narrow ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .sub-tiers { grid-template-columns: 1fr; }
  .tier-meter { max-width: none; }
}
