/* ==========================================================
   Elisio — payouts.css  (payouts.html only)
   Rail cards, schedule-tier track, "things we don't do" band.
   ========================================================== */

/* the hero already carries the bottom spacing */
.rails { padding-top: 0; }

/* ========== RAILS ========== */
.rails__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(139, 115, 242, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--night-2) 100%);
}
.rail__name {
  font-weight: 600;
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  letter-spacing: -0.025em;
}
.rail__desc {
  margin-top: var(--s-3);
  font-size: var(--fs-small);
  color: var(--text-2);
  max-width: 46ch;
}
.rail__terms {
  margin-top: auto;
  padding-top: var(--s-6);
}
.rail__min {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--s-4);
}
.rail__min dt,
.rail__row dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--lilac);
}
.rail__min dd {
  font-weight: 700;
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.rail__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--s-4);
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.rail__row dt { color: var(--text-3); font-size: var(--fs-small); font-weight: 600; }
.rail__row dd {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rail__row:last-child { padding-bottom: 0; }
@media (min-width: 640px) {
  .rails__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .rails__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========== SCHEDULE TIERS ========== */
.tiers__track {
  position: relative;
  display: grid;
  gap: var(--s-7);
  counter-reset: tier;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  counter-increment: tier;
}
.tier__node {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 0 0 6px var(--night);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--lilac);
}
.tier__node::before { content: counter(tier); }
.tier--vip .tier__node {
  border-color: transparent;
  background: radial-gradient(circle at 36% 32%, #FFF0D6 0%, #FFB547 40%, #C98A5E 100%);
  color: var(--on-amber);
  box-shadow: 0 0 0 6px var(--night), 0 0 36px rgba(255, 181, 71, 0.35);
}
.tier__name { margin-top: var(--s-5); }
.tier__when {
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--lilac);
}
.tier__body {
  margin-top: var(--s-3);
  color: var(--text-2);
  max-width: 40ch;
}
.tiers__key { margin-top: var(--s-3); font-size: var(--fs-xs); }
/* payout cadence: one beat, weekly, daily, continuous — dots on a thin timeline */
.tier__beat {
  display: block;
  height: 10px;
  margin-top: var(--s-5);
  max-width: 240px;
  background-color: transparent;
  /* one dot at the close of each payout period, over a hairline baseline */
  background-image:
    radial-gradient(circle at calc(100% - 5px) 50%, var(--lilac) 0 2.5px, transparent 3px),
    linear-gradient(var(--line-2), var(--line-2));
  background-size: calc(100% / var(--n, 1)) 100%, 100% 1px;
  background-position: 0 0, 0 50%;
  background-repeat: repeat-x, no-repeat;
}
.tier__beat--live {
  height: 6px;
  margin-block: calc(var(--s-5) + 2px) 2px;
  border-radius: var(--r-pill);
  background-image: linear-gradient(90deg, rgba(255, 181, 71, 0.35), var(--amber));
  background-size: auto;
  background-repeat: no-repeat;
  box-shadow: 0 0 18px rgba(255, 181, 71, 0.3);
}
/* the path the tiers travel along */
.tiers__track::before {
  content: '';
  position: absolute;
  background: linear-gradient(180deg, var(--line-2), rgba(255, 181, 71, 0.6));
}
@media (min-width: 1000px) {
  .tiers__track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
  .tiers__track::before {
    top: 26px; left: 26px; right: calc(25% - 50px);
    height: 1px;
    background: linear-gradient(90deg, var(--line-2), rgba(255, 181, 71, 0.6));
  }
  .tier__beat { margin-top: auto; }
  .tier__beat--live { margin-bottom: 2px; }
  .tier__body { margin-bottom: var(--s-5); }
  @supports (grid-template-rows: subgrid) {
    /* lock node / name / condition / body / bar rows across all four columns */
    .tiers__track { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .tier { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .tier__node { justify-self: start; }
    .tier__beat { align-self: end; }
  }
}
@media (max-width: 999px) {
  /* vertical: one connector per step, node centre to next node centre */
  .tiers__track { padding-left: 76px; }
  .tiers__track::before { content: none; }
  .tier:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -50px; top: 26px;
    width: 1px;
    height: calc(100% + var(--s-7));
    background: var(--line-2);
  }
  .tier:nth-last-child(2)::before { background: linear-gradient(180deg, var(--line-2), rgba(255, 181, 71, 0.6)); }
  .tier__node { position: absolute; left: -76px; top: 0; }
  .tier__name { margin-top: 12px; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .tier {
    display: grid;
    grid-template-columns: minmax(0, 40ch) minmax(180px, 1fr);
    column-gap: var(--s-7);
    align-content: start;
  }
  .tier__name, .tier__when, .tier__body { grid-column: 1; }
  .tier__beat {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    max-width: 280px;
    margin-top: 0;
  }
  .tier__beat--live { margin-block: 0; }
}
@media (max-width: 420px) {
  .tiers__track { padding-left: 64px; }
  .tier__node { left: -64px; width: 44px; height: 44px; font-size: 1rem; }
  .tier:not(:last-child)::before { left: -42px; top: 22px; }
  .tier__name { margin-top: 8px; }
}

/* ========== THINGS WE DON'T DO ========== */
.refusals__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--s-8);
}
.refusal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--s-5);
  align-content: start;
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-2);
}
.refusal__mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-top: 8px;
  color: var(--lilac);
}
.refusal__mark svg { width: 28px; height: 28px; }
.refusal__stmt {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding-top: 6px;
}
.refusal__why {
  margin-top: var(--s-3);
  color: var(--text-2);
  max-width: 44ch;
}
.refusal__why .money { font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .refusals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refusal:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 899px) {
  .refusal:last-child { border-bottom: 1px solid var(--line-2); }
}
