/* Leonidapad: page CSS. Only what sits inside a visual (the hero window, the grinder window,
   the curve calculator, the fee split) and the kit lacks. Everything else is the system's. */

/* ---------- shared product-window look ---------- */
.lp {
  --fx-bg: #ffffff; --fx-surface: #f4f4f2; --fx-ink: #0a0a0a; --fx-muted: #666666;
  --fx-accent: #1f6b3a; --fx-accent-ink: #ffffff;
  font: 400 13px/1.4 var(--font-text); color: var(--u-ink); font-variant-numeric: tabular-nums;
}
.lp code, .lp .lp-mono { font-family: var(--font-mono); }
.lp .lp-label { color: var(--u-muted); font-size: 13px; }
.lp button { font: inherit; color: inherit; }

/* the plate: a mint address set like a licence plate; the suffix is the point */
.lp-plate { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 10px;
  background: #fff; border: 2px solid var(--u-ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--u-line-2); min-width: 0; }
.lp-plate__addr { font: 500 17px/1.25 var(--font-mono); letter-spacing: -0.01em; text-align: center; overflow-wrap: anywhere; min-width: 0; }
.lp-plate__addr b { font-weight: 600; color: var(--u-accent); }
.lp-plate__screw { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--u-fill-3); box-shadow: inset 0 0 0 1px var(--u-line-2); }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-steps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; min-height: 28px; font-size: 13px; }
.lp-steps li span:last-child { color: var(--u-muted); }
.lp-steps b { font-weight: 500; color: var(--u-ink); margin-right: 6px; }
.lp-tick { width: 18px; height: 18px; border-radius: 50%; background: var(--u-tint-2); color: var(--u-accent-text); display: grid; place-items: center; }
.lp-tick svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp .ui-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- the hero window ---------- */
.lp-hero { display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.lp-hero__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); }
.lp-hero__bar b { font-weight: 500; }
.lp-list { padding: 10px; border-right: 1px solid var(--u-line); display: grid; align-content: start; gap: 2px; min-width: 0; }
.lp-list .lp-label { padding: 4px 10px 6px; }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 13px/1.3 var(--font-mono); cursor: pointer; }
.lp .lp-row { font: 500 13px/1.3 var(--font-mono); }
.lp-row:hover { background: var(--u-fill); }
.lp-row.is-on { background: var(--u-fill-2); }
.lp-row small { font: 400 12px/1.3 var(--font-text); color: var(--u-muted); }
.lp-row .lp-end { color: var(--u-accent-text); }
.lp-main { padding: 16px 20px 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.lp-main__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- the grinder (app frame) ---------- */
.app.ui { --fx-bg: #ffffff; --fx-surface: #f4f4f2; --fx-ink: #0a0a0a; --fx-muted: #666666; --fx-accent: #1f6b3a; --fx-accent-ink: #ffffff; }
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane--list::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app .lp-list { border-right: 0; padding: 16px; }
.app .lp-list__head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 8px; }
.app .lp .lp-row, .app.lp .lp-row { padding: 12px 10px; font-size: 14px; }
.app .lp-main { padding: 20px 28px 24px; gap: 16px; }
.lp-bar { height: 6px; border-radius: 99px; background: var(--u-fill-2); overflow: hidden; }
.lp-bar > i { display: block; height: 100%; width: 0; background: var(--u-accent); border-radius: inherit; transition: width .2s var(--u-ease); }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-stats div { display: grid; gap: 2px; }
.lp-stats dt { color: var(--u-muted); font-size: 13px; }
.lp-stats dd { margin: 0; font: 500 18px/1.2 var(--font-text); }
.lp-note { margin: 0; color: var(--u-muted); font-size: 13px; line-height: 1.5; }
.lp-status { min-height: 20px; margin: 0; font-size: 13px; }
.lp-status[data-tone="bad"] { color: #a02020; }
.lp .ui-btn { cursor: pointer; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app .lp-main { padding: 16px; }
  .lp-plate__addr { font-size: 14px; }
  .lp-stats dd { font-size: 16px; }
}

/* ---------- the curve calculator ---------- */
.lp-calc { display: grid; gap: 14px; padding: 18px 20px; width: 100%; }
.lp-field { display: grid; gap: 4px; }
.lp-field label { color: var(--u-muted); font-size: 13px; }
.lp-field .lp-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--u-line-2); border-radius: 10px; padding: 0 12px; height: 44px; background: var(--u-bg); }
.lp-field .lp-in:focus-within { outline: 2px solid var(--u-accent); outline-offset: 1px; }
.lp-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 18px/1 var(--font-text); color: var(--u-ink); font-variant-numeric: tabular-nums; }
.lp-field .lp-in span { color: var(--u-muted); font-weight: 500; }
.lp-field .lp-err { margin: 0; font-size: 13px; color: #a02020; min-height: 0; }
.lp-out { margin: 0; display: grid; gap: 0; }
.lp-out div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--u-line); }
.lp-out div:first-child { border-top: 0; }
.lp-out dt { color: var(--u-muted); }
.lp-out dd { margin: 0; font-weight: 500; text-align: right; }
.lp-chart { width: 100%; height: auto; display: block; overflow: visible; }
.lp-chart text { font: 400 11px var(--font-text); fill: var(--u-muted); }
.lp-chart .grid { stroke: var(--u-line); stroke-width: 1; }
.lp-chart .axis { stroke: var(--u-line-2); stroke-width: 1; }
.lp-chart .curve { fill: none; stroke: var(--u-ink); stroke-width: 2; }
.lp-chart .mark { fill: var(--u-accent); stroke: var(--u-bg); stroke-width: 2; }
.lp-chart .grad { stroke: var(--u-ink); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.lp-chart .gradpt { fill: var(--u-ink); stroke: var(--u-bg); stroke-width: 2; }
.lp-chart .drop { stroke: var(--u-accent); stroke-width: 1; stroke-dasharray: 3 3; }
.lp-chart .mk-label { fill: var(--u-ink); font-weight: 500; }
.lp-window { margin: 0; padding: 7px 10px; border-radius: 8px; background: var(--u-fill); font-size: 13px; }
.lp-window[data-state="bad"] { background: color-mix(in oklab, #c0392b 12%, var(--u-bg)); }
.lp-window[data-state="ok"] { background: var(--u-tint); }

/* ---------- the fee split (a card panel) ---------- */
.lp-split { display: grid; gap: 14px; padding: 18px 20px; }
.lp-split__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lp-split__bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.lp-split__bar i { display: block; height: 100%; }
.lp-split__legend { display: grid; gap: 6px; margin: 0; }
.lp-split__legend div { display: flex; align-items: center; gap: 8px; }
.lp-split__legend div::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.lp-split__legend dd { margin: 0 0 0 auto; font-weight: 500; }
.lp-split__legend dt { color: var(--u-text-2); }

/* what the create transaction does, in the grinder's open pane */
.lp-tx { display: grid; gap: 2px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--u-line); list-style: none; }
.lp-tx li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 26px; }
.lp-tx b { font-weight: 500; margin-right: 6px; }
.lp-tx li span:last-child { color: var(--u-muted); }

/* the fee ledger under the split card */
.lp-stack { display: grid; gap: 12px; }
.lp-ledger { padding: 0; overflow: hidden; }
.lp-ledger .ui-head { padding: 12px 16px; border-bottom: 1px solid var(--u-line); display: flex; align-items: center; gap: 8px; }
.lp-ledger table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-ledger th { text-align: right; font-weight: 400; color: var(--u-muted); padding: 8px 16px; }
.lp-ledger th:first-child, .lp-ledger td:first-child { text-align: left; }
.lp-ledger td { text-align: right; padding: 8px 16px; border-top: 1px solid var(--u-line); font-variant-numeric: tabular-nums; }
.lp-ledger td:first-child { font-weight: 500; }
.lp-ledger tr.is-sell td:first-child { color: var(--u-muted); }

/* ---------- card panel heights ---------- */
#rules .panel { --p-h: 300px; }
#coin .panel { --p-h: 215px; }
@media (max-width: 639px) { #rules .panel, #coin .panel { --p-h: 190px; } }

/* ---------- the launcher ---------- */
.lp-create { display: grid; gap: 12px; padding: 16px 18px 18px; width: 100%; }
.lp-create__head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.lp-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.lp-fs:disabled { opacity: .65; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.lp-create .lp-field { gap: 4px; min-width: 0; }
.lp-create .lp-in { height: 42px; }
.lp-create .lp-in--area { height: auto; padding: 8px 12px; }
.lp-create .lp-field input[type="text"] { font: 500 15px var(--font-text); }
.lp-in textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; font: 400 14px/1.4 var(--font-text); color: var(--u-ink); }
.lp-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-file input[type="file"] { flex: 1; min-width: 0; font: 400 13px var(--font-text); color: var(--u-muted); }
.lp-file input[type="file"]::file-selector-button { margin-right: 10px; min-height: 36px; padding: 0 14px; border: 1px solid var(--u-line-2); border-radius: 9px; background: var(--u-fill-2); color: var(--u-ink); font: 500 13px var(--font-text); cursor: pointer; }
.lp-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px #000; }
.lp-thumb[hidden] { display: none; }
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-prog { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--u-line); display: grid; gap: 1px; }
.lp-prog li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 24px; font-size: 13px; color: var(--u-muted); }
.lp-prog li b { font-weight: 500; }
.lp-prog em { font-style: normal; margin-left: 8px; overflow-wrap: anywhere; }
.lp-pdot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--u-line-2); justify-self: center; }
.lp-prog li[data-state="active"] { color: var(--u-ink); }
.lp-prog li[data-state="active"] .lp-pdot { border-color: var(--u-accent); background: var(--u-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--u-accent) 30%, transparent); }
.lp-prog li[data-state="done"] { color: var(--u-ink); }
.lp-prog li[data-state="done"] .lp-pdot { border-color: var(--u-accent); background: var(--u-accent); }
.lp-prog li[data-state="error"] { color: #ff8da0; }
.lp-prog li[data-state="error"] .lp-pdot { border-color: #ff8da0; background: #ff8da0; }
.lp-create .lp-status[data-tone="ok"] { color: #8ff0b4; }
.lp-done { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--u-line); }
.lp-done[hidden], .lp-actions[hidden], .lp-fs[hidden] { display: none; }
.lp-done__addr { font: 500 14px/1.4 var(--font-mono); overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: var(--u-fill); }
a.ui-btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--u-ink); }
@media (max-width: 420px) { .lp-two { grid-template-columns: minmax(0, 1fr); } }
.lp-create .lp-actions { margin-top: 4px; }

.lp-pair { margin: -4px 0 0; font-size: 13px; color: var(--u-muted); }
.lp-pair b { color: var(--u-ink); font-weight: 500; }
.lp-pair code { font: 400 12px var(--font-mono); margin-left: 4px; }


/* ---------- numbered steps: the rewards plan, how to buy, the stages ---------- */
.steps { list-style: none; margin-inline: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-logo); font-size: 18px; line-height: 1; color: #fff; background: var(--lc-postcard, #e8499f);
  box-shadow: 0 0 0 2.5px #000; text-shadow: 0 1px 0 #000;
}
.steps li > span { color: #f1e6f7; font-size: var(--t-body); line-height: 1.5; padding-top: 6px; }
.steps li b { color: #fff; font-weight: 600; }

/* a short section sits in the middle of its screen, not at the top of an empty one */
#buy > .wrap, #stages > .wrap { justify-content: center; }


/* ---------- the giveaway page ---------- */
.gw h1 { font-family: var(--font-logo); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; color: #fff; -webkit-text-stroke: 7px #000; paint-order: stroke fill; text-shadow: 0 5px 0 #000; margin: 0; }
.gw-card { display: grid; gap: var(--s-4); padding: var(--s-5); border: 2.5px solid #000; border-radius: var(--r-lg, 20px); background: #14081f; color: #fff4fb; box-shadow: 0 0 0 1.5px rgb(255 138 76 / .55), 0 24px 60px -28px rgb(224 57 159 / .55); }
.gw-card:empty { display: none; }
.gw-h { font-family: var(--font-logo); font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #000; margin: 0; }
.gw-card p { margin: 0; }
.gw-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.gw-note { color: var(--p-muted, #c3b0d3); font-size: 14px; line-height: 1.5; }
.gw-ok { color: #8ff0b4; }
.gw-bad { color: #ff8da0; }
.gw-win { font: 400 22px/1.2 var(--font-logo); text-transform: uppercase; color: #ffc07a; text-shadow: 0 2px 0 #000; }
.gw-status { min-height: 22px; margin: 0; font-size: 14px; }
.gw-status[data-tone="ok"] { color: #8ff0b4; } .gw-status[data-tone="bad"] { color: #ff8da0; }
.gw-bar { height: 14px; border-radius: 999px; background: #0c0514; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18); overflow: hidden; }
.gw-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--lc-postcard, linear-gradient(90deg, #8b3fd6, #ff4fa3, #ff8a4c)); transition: width .6s ease; }
.gw-count { font: 400 clamp(40px, 8vw, 64px)/1 var(--font-logo); letter-spacing: .02em; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 3px 0 #000; font-variant-numeric: tabular-nums; }
.gw-count.gw-urgent { color: #ff8da0; }
.gw-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.gw-card .btn { cursor: pointer; border: 0; font-family: inherit; }
.gw-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.gw-card .btn--secondary { background: #12041f; color: #fff; box-shadow: 0 0 0 2.5px #000, inset 0 0 0 1.5px rgb(255 255 255 / .28); }
.gw-card code { font: 500 14px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.gw-form { display: grid; gap: var(--s-4); }
.gw-seg { display: flex; gap: var(--s-2); }
.gw-pick { flex: 1; min-height: 48px; border-radius: 12px; border: 1.5px solid rgb(255 255 255 / .25); background: #0c0514; color: #fff; font: 500 16px var(--font-text); cursor: pointer; }
.gw-pick[aria-checked="true"] { border-color: var(--p-accent, #ff4fa3); background: #2a0f3f; box-shadow: 0 0 0 2px var(--p-accent, #ff4fa3); }
.gw-pick:focus-visible, .gw-select:focus-visible { outline: 2px solid var(--p-accent, #ff4fa3); outline-offset: 2px; }
.gw-select { height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgb(255 255 255 / .25); background: #0c0514; color: #fff; font: 500 16px var(--font-text); }
.gw-codebox { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: 14px; background: #0c0514; box-shadow: inset 0 0 0 1.5px rgb(255 192 122 / .5); }
.gw-code { display: block; padding: 14px; border-radius: 10px; background: #1b0a2b; font-size: 20px !important; letter-spacing: .06em; user-select: all; }
.gw-dl { display: grid; gap: 0; margin: 0; }
.gw-dl dt { margin-top: var(--s-3); font-size: 13px; color: #ffc07a; text-transform: uppercase; letter-spacing: .06em; }
.gw-dl dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: #fff4fb; }
.gw-past { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgb(255 255 255 / .14); }
.gw-checks { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.gw-turnstile { min-height: 66px; }
.gw .t-lead { color: #fff; text-shadow: 0 1px 0 #000; }
@media (max-width: 639px) { .gw-card { padding: var(--s-4); } .gw-seg { flex-direction: column; } }
