/* Page styles for refer (owner: see CONTRIBUTING.md). Shared tokens live in /assets/site.css.
   Composition: type-led head with the closed-program status panel, a three-stop route on a dark stage
   (refer, review, reward: the planned program), ruled eligibility lists on mint, rewards, transparency rules, CTA. */

/* ================= Head: title left, status panel right ================= */
.refer-head { padding-block: clamp(3rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem); }
.refer-head-grid { display: grid; gap: 2rem 4rem; align-items: end; }
.refer-head h1 { max-width: 10ch; margin-bottom: 0.4em; }
.refer-head .lead { margin: 0; }
.status-panel { border-left: 4px solid var(--navy); }
.status-panel .status-title { font-size: var(--step-3); font-stretch: var(--title-stretch); line-height: 1.15; margin: 0 0 0.6rem; max-width: 20ch; }
.status-panel p { margin: 0 0 0.9rem; }
.status-panel p:last-child { margin-bottom: 0; }
.status-strong { color: var(--navy); font-weight: 650; }
@media (min-width: 60rem) { .refer-head-grid { grid-template-columns: 7fr 5fr; } }

/* ================= Route: three stops, vertical on phones, horizontal from 52rem ================= */
.route-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.route-head h2 { margin: 0; max-width: 14ch; }
.route-head .lead { margin: 0; align-self: end; }
@media (min-width: 60rem) { .route-head { grid-template-columns: 6fr 6fr; } }

.ref-route { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.75rem; display: grid; gap: 2.25rem; }
.ref-route::before { content: ""; position: absolute; left: 0.6rem; top: 0.5rem; bottom: 1.5rem; width: 2px; background: var(--teal);
  transform-origin: top; transition: transform 1100ms var(--ease-out); }
.ref-route li { position: relative; max-width: 34ch; }
.ref-route li::before { content: ""; position: absolute; left: -2.75rem; top: 0.25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--navy); border: 2.5px solid var(--teal);
  transition: transform 500ms var(--ease-out); }
.ref-route li:last-child::before { border-radius: 5px; background: var(--warm-white); border-color: var(--warm-white); }
.ref-route h3 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.on-navy .ref-route p { margin: 0; color: var(--mist); font-size: var(--step-1); }
.js .ref-route:not(.is-in)::before { transform: scaleY(0); }
.js .ref-route:not(.is-in) li::before { transform: scale(0.3); }
.ref-route li:nth-child(2)::before { transition-delay: 250ms; }
.ref-route li:nth-child(3)::before { transition-delay: 500ms; }
@media (min-width: 52rem) {
  .ref-route { padding: 2.75rem 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .ref-route::before { left: 0.6rem; right: calc((100% - 5rem) / 3 - 0.6rem); top: 0.6rem; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .js .ref-route:not(.is-in)::before { transform: scaleX(0); }
  .ref-route li::before { left: 0; top: -2.75rem; }
}
.on-navy .route-note { margin: clamp(2.5rem, 1.5rem + 2vw, 3.5rem) 0 0; padding-left: 1rem; border-left: 2px solid var(--teal); color: var(--mist); max-width: 60ch; }

/* ================= Eligibility: two ruled lists ================= */
.rules-grid { display: grid; gap: 2rem 4rem; margin-top: 2rem; }
.rules-grid h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { position: relative; max-width: none; padding: 0.85rem 0 0.85rem 2rem; border-top: 1px solid var(--rule); }
.rule-list li:last-child { border-bottom: 1px solid var(--rule); }
.rule-list li::before { content: ""; position: absolute; left: 0.1rem; top: 1.3rem; width: 0.7rem; height: 0.4rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.rule-list.is-excluded li::before { width: 0.75rem; height: 0; top: 1.55rem; border-left: 0; border-bottom: 2.5px solid var(--navy); transform: none; }
.rules-foot { margin: 2.5rem 0 0; border-left: 4px solid var(--navy); padding-left: 1rem; max-width: 62ch; }
@media (min-width: 60rem) { .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Rewards and partners ================= */
.reward-grid { display: grid; gap: 2rem 5rem; align-items: start; }
.reward-copy p:last-child { margin-bottom: 0; }
.status-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-raise); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.status-card h3 { font-size: var(--step-2); }
.status-card p { margin: 0 0 1rem; }
.status-chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-chips li { max-width: none; padding: 0.3rem 0.85rem; border: 1.5px solid var(--rule); border-radius: var(--radius-pill);
  color: var(--navy); font-size: var(--step-0); font-weight: 650; }
.status-chips li:last-child { border-color: var(--navy); }
.status-card .status-foot { margin: 0; color: var(--navy); font-weight: 650; }
@media (min-width: 60rem) { .reward-grid { grid-template-columns: 7fr 5fr; } }

/* ================= Transparency rules ================= */
.honesty-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0 2.5rem; }
.honesty-list li { position: relative; max-width: none; padding: 1.25rem 0 1.1rem; border-top: 1px solid var(--rule); }
.honesty-list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: var(--teal); }
.honesty-list h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.honesty-list p { margin: 0; }
@media (min-width: 48rem) { .honesty-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .honesty-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ================= Final CTA ================= */
.final-cta h2 { max-width: 22ch; }
.final-cta .lead { max-width: 52ch; }
.final-note { margin-top: 1.75rem; padding-left: 1rem; max-width: 56ch; border-left: 2px solid var(--teal); }
