/* Ponzi Pump: the banknote world. Comes after base.css and restyles what makes the project itself. */

body { background: var(--bg); }
h1, h2, .display { font-weight: 900; }
.lede b { color: var(--ink); font-weight: 700; }
.accent { color: var(--accent); }
.accent-gold { color: var(--gold); }
.kicker { color: var(--ink-2); font-weight: 600; }
.kicker-dot { background: var(--accent); }
.label { color: var(--muted); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- header ---------- */
#top { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: var(--rule); }
.brand { line-height: 0; }
.brand svg { height: 30px; width: auto; }
.nav a { color: var(--ink-2); font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.demo-strip { background: var(--ink); color: #DCE5DB; }
.demo-strip b { color: var(--gold); }

/* ---------- buttons: printed stamps ---------- */
.btn { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--stamp); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.btn:hover { border-color: var(--ink); background: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent-hi); filter: none; }
.btn.sm { box-shadow: 0 2px 0 var(--ink); }
.btn.sm:active { transform: translateY(2px); }
.btn[disabled] { box-shadow: none; }
.icon-btn:hover { background: var(--surface-2); }
.link { color: var(--ink-2); }
.link-arrow { color: var(--accent); font-weight: 700; }
.link-arrow:hover { color: var(--ink); }

/* ---------- chips, controls ---------- */
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
.chip.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.chip.demo { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.seg { border: 1.5px solid var(--ink); background: var(--surface); }
.seg button { color: var(--ink-2); font-weight: 600; }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chips button { border: 1.5px solid var(--line-2); }
.input, .prefix { background: #fff; border: 1.5px solid var(--line-2); }
.input:focus, .prefix:focus-within { border-color: var(--accent); }

/* ---------- the note (a banknote panel) ---------- */
.note { position: relative; background: var(--surface); border: var(--rule); border-radius: 22px; padding: 30px clamp(18px, 3.4vw, 44px) 0; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7.5px var(--ink), 0 18px 40px -28px rgba(14, 38, 25, 0.5); overflow: hidden; }
.note::before, .note::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--band) repeat-x; }
.note::before { top: 8px; }
.note::after { bottom: 8px; }
.note-top { position: relative; display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); padding-top: 4px; }
.note-pay { color: var(--accent); font-weight: 600; }
.hero-note { padding-top: clamp(22px, 3.6vw, 44px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 34px) 0 30px; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy h1 { font-size: clamp(44px, 5.5vw, 80px); line-height: 0.93; }
.hero-copy h1 span { display: block; }
.hero-copy .lede { margin-top: 20px; }
.ctas { margin-top: 26px; }
.ticks { display: grid; gap: 8px; margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 10px; }
.tick { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), 0 0 0 1.5px var(--accent); }
.hero-copy .ca { background: var(--bg); border: 1.5px dashed var(--line-2); }

/* the climb */
.climb { position: relative; display: grid; gap: 12px; padding: 18px 18px 20px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--ink); }
.climb-head { display: flex; justify-content: space-between; }
.climb-py { width: 100%; max-width: 470px; justify-self: center; }
.climb-py svg { width: 100%; height: auto; }
.climb-readout { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.climb-mult { font: 900 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.climb-held { color: var(--ink-2); font-size: 14px; }
.climb-slider { position: relative; display: grid; gap: 8px; padding-bottom: 26px; }
.climb-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; touch-action: pan-y; margin: 0; }
.climb-range::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; border: 1.5px solid var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--p, 0%) 100% no-repeat, var(--surface); }
.climb-range::-moz-range-track { height: 10px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--surface); }
.climb-range::-moz-range-progress { height: 10px; border-radius: 6px; background: var(--accent); }
.climb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.climb-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.climb-range:focus-visible { outline: none; }
.climb-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.climb-marks { position: absolute; left: 13px; right: 13px; bottom: 0; height: 22px; }
.climb-marks button { position: absolute; transform: translateX(-50%); border: 0; background: none; padding: 2px 4px; font: 600 11.5px/1 var(--font-mono); color: var(--muted); cursor: pointer; white-space: nowrap; }
.climb-marks button:first-child { transform: none; }
.climb-marks button:last-child { transform: translateX(-100%); }
.climb-marks button:hover { color: var(--ink); }
.climb-note { font-size: 15px; color: var(--ink-2); text-align: center; min-height: 3em; }
.climb-example { font-size: 13.5px; text-align: center; }

/* totals along the foot of the note */
.note-totals { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-top: var(--rule); margin: 0 calc(-1 * clamp(18px, 3.4vw, 44px)); padding: 16px clamp(18px, 3.4vw, 44px) 34px; background: var(--surface-2); }
.total { display: grid; gap: 4px; }
.total .num { font: 600 clamp(17px, 1.7vw, 22px)/1.1 var(--font-mono); color: var(--ink); }
.total .num.paid::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
.total.next .clock { font: 600 clamp(17px, 1.7vw, 22px)/1.1 var(--font-mono); color: var(--accent); }

/* ---------- terms ---------- */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.term { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--ink); }
.term-pic { height: 150px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; }
.term-pic > div { width: 100%; height: 100%; display: grid; place-items: center; padding: 10px; }
.term-pic svg { max-height: 128px; width: auto; max-width: 100%; }
.term-n { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.term h3 { font-size: 18px; }
.term p { font-size: 14.5px; }
.split-pic { width: 86%; display: grid; gap: 8px; }
.split-bar { display: flex; height: 40px; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; font: 600 12.5px/1 var(--font-mono); }
.split-h { flex: 1; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.split-u { width: 36px; display: grid; place-items: center; background: var(--surface); border-left: 1.5px solid var(--ink); color: var(--muted); }
.split-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.fineprint { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); display: grid; gap: 12px; }
.fineprint h3 { font-size: 15px; color: var(--ink-2); }
.fineprint dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13.5px; }
.fineprint dt { color: var(--muted); }
.fineprint dd { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- coin cards: small notes ---------- */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.coin-card { position: relative; gap: 12px; padding: 14px 16px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 0 0 4px var(--surface) inset, 0 0 0 5px var(--line-2) inset; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.coin-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 0 0 4px var(--surface) inset, 0 0 0 5px var(--line-2) inset, 0 4px 0 var(--ink); }
.note-serial { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); padding: 2px 4px 0; }
.coin-card-head { gap: 12px; }
.coin-name { font-weight: 700; font-size: 16.5px; }
.coin-sym { color: var(--muted); font-size: 12.5px; }
.coin-art { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--ink); }
.coin-art img, .coin-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin-art.drawn { background: none; }
.coin-card-body { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg); }
.mini-py svg { width: 100%; height: auto; }
.coin-card-nums { display: grid; gap: 7px; }
.coin-card-nums > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed var(--line-2); padding-bottom: 5px; }
.coin-card-nums > div:last-child { border-bottom: 0; padding-bottom: 0; }
.coin-card-nums dd { font: 600 14px/1 var(--font-mono); }
.coin-card-last { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.paid-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); }
.coin-card.preview { box-shadow: 0 0 0 4px var(--surface) inset, 0 0 0 5px var(--line-2) inset; }
.skeleton .sk { background: linear-gradient(90deg, var(--surface-2), var(--bg), var(--surface-2)); background-size: 200% 100%; }
.sk-block { height: 110px; }

/* ---------- the ledger ---------- */
.ledger { border: 1.5px solid var(--ink); border-radius: var(--r-lg); background: var(--surface); padding: 4px 18px; }
.feed-row { grid-template-columns: 14px 84px 1fr auto 70px; border-bottom: 1px dashed var(--line-2); }
.feed-row:last-child { border-bottom: 0; }
.feed-kind { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.feed-row.payout .feed-kind { background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); }
.feed-row.launch .feed-kind { background: var(--accent); }
.feed-row.graduated .feed-kind { background: var(--ink); }
.feed-sym { color: var(--accent); font-weight: 600; }
.feed-sym:hover { text-decoration: underline; }
.ledger-empty { padding: 18px 0; }
.clock { color: var(--accent); font-weight: 600; }
.section-head .clock { font-size: 14px; padding: 6px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--accent); }

/* ---------- the closing band ---------- */
.band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--ink); color: var(--surface); position: relative; overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--band-light) repeat-x; opacity: 0.5; }
.band::before { top: 8px; } .band::after { bottom: 8px; }
.band-mark { width: clamp(84px, 10vw, 128px); }
.band-copy { display: grid; gap: 8px; }
.band h2 { color: var(--surface); }
.band p { color: #C9D3CA; }
.band .btn.primary { box-shadow: 0 3px 0 #000; }

/* ---------- footer ---------- */
#foot { border-top: var(--rule); background: var(--surface-2); }
.foot-lockup { display: flex; align-items: center; gap: 12px; }
.foot-mark { width: 44px; }
.foot-word svg { height: 34px; width: auto; }
.foot-brand p { max-width: 34em; }
.foot-links a { font-weight: 600; }
.foot-base { border-top: 1px solid var(--line-2); }

/* ---------- empty states ---------- */
.empty-art { width: 84px; opacity: 0.9; }

/* ---------- toasts, modal ---------- */
.toast { background: var(--ink); color: var(--surface); }
.modal-panel { background: var(--surface); border: var(--rule); }
.modal-veil { background: rgba(14, 38, 25, 0.45); }
.flow-steps li.done .flow-mark { background: var(--accent); color: var(--on-accent); }

/* ---------- phones ---------- */
@media (max-width: 1080px) {
  .terms { grid-template-columns: repeat(2, 1fr); }
  .note-totals { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .note-pay { display: none; }
  .band { grid-template-columns: 1fr; justify-items: start; }
  .feed-row { grid-template-columns: 12px 70px 1fr 56px; }
}
@media (max-width: 560px) {
  .terms { grid-template-columns: 1fr; }
  .note-totals { grid-template-columns: 1fr 1fr; }
  .note { border-radius: 16px; padding-top: 26px; }
  .note-top { font-size: 10.5px; }
  .climb { padding: 14px 12px 16px; }
  .fineprint dl { grid-template-columns: 1fr; gap: 2px; }
  .fineprint dd { margin-bottom: 8px; }
  .coin-card-body { grid-template-columns: 96px 1fr; }
}

/* fixes after the first look */
.coin-card-nums { grid-template-columns: 1fr; }
.coin-card-nums dt { white-space: nowrap; }
.term-pic > .split-pic { width: 86%; height: auto; display: grid; place-items: stretch; padding: 0; gap: 8px; }

/* ---------- coin page ---------- */
.coin-head { padding-top: 36px; }
.coin-h-sym { font-size: 0.42em; letter-spacing: 0; vertical-align: 0.35em; }
.coin-head .coin-art { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--surface), 0 0 0 7.5px var(--ink); }
.coin-stats .stat { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); }
.stat-clock .clock { font: 600 22px/1.2 var(--font-mono); }
.card { background: var(--surface); border: 1.5px solid var(--ink); box-shadow: none; }
.coin-grid { grid-template-columns: 1fr 400px; }
.coin-side { display: grid; gap: 18px; align-content: start; }
.py-big { max-width: 560px; margin: 6px auto 0; }
.py-big svg { width: 100%; height: auto; }
.py-note { margin-top: 10px; font-size: 14px; }
.small { font-size: 12px; }
.ledger-card .feed-row { grid-template-columns: 12px 1fr auto 58px; font-size: 13.5px; }
.chart-line { stroke: var(--accent); }
.chart-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.facts dd b { color: var(--accent); }

/* ---------- launch ---------- */
.step-card { border-radius: var(--r-lg); }
.step-title .step-n { border: 1.5px solid var(--ink); background: var(--bg); }
.locked-chip { margin-left: auto; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.terms-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.terms-py svg { width: 100%; height: auto; }
.terms-facts { margin-top: 0; }
.split { border: 1.5px solid var(--ink); }
.split span { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.drop { background: var(--bg); border: 1.5px dashed var(--line-2); }
.costs .total { border-top: 1.5px solid var(--ink); }
.notes .icon { color: var(--accent); }
.launch-side .preview-box .coin-card { pointer-events: none; }

/* ---------- how ---------- */
.steps .step { background: var(--surface); border: 1.5px solid var(--ink); }
.step-n { color: var(--accent); font-weight: 600; }
.faq details { background: var(--surface); border: 1.5px solid var(--ink); }
.faq summary { font-weight: 700; }
.risks { display: grid; gap: 8px; max-width: 760px; margin-top: 18px; }
.risks li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.risks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--bad); transform: translateY(-1px) rotate(45deg); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.calc-in { display: grid; gap: 14px; }
.calc-out { display: grid; gap: 8px; padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); }
.calc-big { font: 900 clamp(38px, 4.4vw, 54px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); }
.curve { width: 100%; height: auto; }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 64px 16px; }
.lost-art { width: min(280px, 70vw); }

@media (max-width: 980px) {
  .coin-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .terms-grid { grid-template-columns: 1fr; }
  .terms-py { max-width: 220px; justify-self: center; }
  .locked-chip { display: none; }
}
.calc-wallet { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); }
.calc-wallet .field { margin-top: 6px; gap: 6px; }
.calc-wallet .input { height: 42px; }
.calc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.calc-row b { font-size: 22px; color: var(--accent); }

/* second look */
.terms-facts { grid-template-columns: 1fr auto; }
.terms-facts dd { text-align: right; white-space: nowrap; }
.steps.big { grid-template-columns: repeat(4, 1fr); }
.calc { grid-template-columns: 1fr; }
.calc-in { grid-template-columns: 1fr 1fr; }
.calc-wallet .two { grid-template-columns: 1fr; gap: 0; }
.calc-out { grid-template-columns: 1fr; }
@media (max-width: 1080px) { .steps.big { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .steps.big { grid-template-columns: 1fr; }
  .calc-in { grid-template-columns: 1fr; }
  .terms-facts dd { white-space: normal; }
}
.terms-grid { grid-template-columns: 160px 1fr; }
.terms-facts { grid-template-columns: max-content 1fr; }
.terms-facts dd { white-space: normal; text-align: right; }
.section-head { flex-wrap: wrap; }
@media (max-width: 560px) {
  .climb-marks button:nth-child(2), .climb-marks button:nth-child(4) { display: none; }
}

/* phones, last so they win over the rules above */
.launch-grid > *, .launch-steps > *, .coin-grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .terms-grid { grid-template-columns: 1fr; }
  .terms-py { max-width: 210px; width: 100%; justify-self: center; }
  .terms-facts { grid-template-columns: 1fr auto; }
  .terms-facts dd { white-space: nowrap; text-align: right; font-size: 13px; }
  .notes li { min-width: 0; }
}

/* the All-seeing pyramid as the logo mark */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-seer { width: 34px; height: 34px; flex: none; }
.brand-seer svg, .foot-mark svg, .band-mark svg, .empty-art svg { width: 100%; height: auto; display: block; }
.brand-word { line-height: 0; }
.brand-word svg { height: 28px; width: auto; }
.foot-mark { width: 46px; }
.band-mark { padding: 14px; border-radius: 22px; background: #19C964; width: clamp(96px, 11vw, 136px); }
.empty-art { width: 92px; opacity: 1; }
@media (max-width: 400px) { .brand-seer { width: 30px; height: 30px; } .brand-word svg { height: 24px; } }
