/* Public pages (claim, status, donations). Flat "sticker" style taken from the
   pill logo: cream paper, thick dark-teal outlines, hard offset shadows. */
:root {
  --paper: #fbf5e8;
  --paper-2: #f3ead6;
  --card: #ffffff;
  --ink: #0f2b28;          /* outline + text, from the pill's outline */
  --ink-soft: #3f5a56;
  --muted: #6b7f7b;
  --mint: #53d692;         /* pill green */
  --mint-deep: #1c8a62;
  --mint-soft: #d9f6e6;
  --sun: #ffd23f;          /* sticker yellow */
  --sol: #9945ff;
  --bad: #d43d2f;
  --bad-soft: #fde3df;
  --warn: #8a5a00;
  --warn-soft: #fff1c9;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font: 16px/1.5 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--ink); }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ── ticker ─────────────────────────────────────── */
.ticker { background: var(--ink); color: var(--mint); overflow: hidden; white-space: nowrap; border-bottom: var(--line); }
.ticker-track { display: inline-flex; padding: 9px 0; animation: ticker 22s linear infinite; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.ticker-track span { padding: 0 14px; }
.ticker-track span:nth-child(even) { color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── layout ─────────────────────────────────────── */
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 38px; height: 38px; transform: rotate(-8deg); }
.chip-sol {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 700;
}
.chip-sol img { width: 22px; height: 22px; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px;
  border-radius: 16px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.quick a svg, .quick a img { width: 20px; height: 20px; color: var(--mint-deep); }
.quick a:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

/* ── hero ───────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 18px 0 6px; }
.pill-stage { position: relative; width: 190px; height: 190px; margin: 8px auto 0; }
.pill-stage > img:not(.confetti-pill) { width: 100%; height: 100%; animation: wobble 4.5s ease-in-out infinite; filter: drop-shadow(6px 8px 0 rgba(15, 43, 40, 0.18)); }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
.confetti-pill { position: absolute; height: auto; opacity: .95; pointer-events: none; }
.confetti-pill.p1 { top: 6%; left: -30%; transform: rotate(40deg); width: 34px; }
.confetti-pill.p2 { top: 62%; left: -40%; transform: rotate(-70deg); width: 26px; }
.confetti-pill.p3 { top: 0; right: -32%; transform: rotate(-25deg); width: 30px; }
.confetti-pill.p4 { top: 66%; right: -38%; transform: rotate(110deg); width: 40px; }
.amount-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 16px; border-radius: 12px;
  background: var(--sun); border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 16px; transform: rotate(-2.5deg);
}
.amount-chip .dot { display: none; }
h1 { font-weight: 800; font-size: clamp(44px, 13vw, 64px); line-height: .95; letter-spacing: -0.045em; margin: 18px 0 12px; }
h1 mark, .grad {
  background: linear-gradient(transparent 12%, var(--mint) 12%, var(--mint) 88%, transparent 88%);
  color: var(--ink); padding: 0 .08em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { color: var(--ink-soft); margin: 0 auto 22px; max-width: 390px; font-size: 17px; }

/* ── cards ──────────────────────────────────────── */
.card { position: relative; background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
label.field { display: block; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.input-row { display: flex; gap: 8px; }
input[type=text] {
  width: 100%; min-width: 0; padding: 15px 14px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper);
  font: 600 16px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); /* 16px stops iOS zoom */
}
input[type=text]::placeholder { color: #9aa9a5; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 500; }
input[type=text]:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px var(--mint-soft); }
button { font: inherit; cursor: pointer; }
.btn-paste { flex: none; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink); font-weight: 800; }
.btn-paste:active { transform: translate(2px, 2px); }
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 16px;
  border-radius: 16px; border: 3px solid var(--ink); background: var(--mint); color: var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.btn-cta:hover { background: #62e09f; }
.btn-cta:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-cta:disabled { opacity: .6; cursor: default; }
.btn-cta .arrow { transition: transform .15s; }
.btn-cta:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 13px;
  border-radius: 16px; border: 2px solid var(--ink); background: var(--card); font-weight: 700; text-align: center; text-decoration: none;
}
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(15, 43, 40, .25); border-top-color: var(--ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.note svg { flex: none; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 600; border: 2px solid currentColor; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }

/* ── how it works / trust ───────────────────────── */
.section-title { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; text-align: center; margin: 40px 0 14px; scroll-margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { position: relative; text-align: center; padding: 18px 8px 14px; border-radius: 18px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.step:nth-child(2) { transform: rotate(1.5deg); }
.step:nth-child(3) { transform: rotate(-1.5deg); }
.step .ico { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); border: 2px solid var(--ink); color: var(--ink); }
.step b { display: block; font-weight: 800; font-size: 17px; }
.step span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.3; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--ink); font-weight: 600; font-size: 15px; }
.trust li svg { flex: none; color: var(--mint-deep); }
.trust-link { color: inherit; text-decoration: none; }
.trust-link span { color: var(--mint-deep); }

/* ── what is $PUMP / wallet guide ───────────────── */
.what, .wallet { margin-top: 30px; scroll-margin-top: 16px; }
#form-card { scroll-margin-top: 16px; }
.wallet-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.wallet-head .ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); color: var(--ink); }
.wallet-head .pill-ico { background: var(--mint-soft); }
.wallet-head h2 { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.025em; margin: 2px 0 5px; }
.wallet-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.rate { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 16px; }
.rate > div { padding: 11px 13px; border-radius: 14px; background: var(--mint-soft); border: 2px solid var(--ink); }
.rate .k { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.rate b { display: block; font-weight: 800; font-size: 17px; line-height: 1.25; margin-top: 2px; }
.what-sub { font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { padding: 14px; border-radius: 16px; background: var(--paper); border: 2px solid var(--ink); }
.choice .c-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--mint); border: 2px solid var(--ink); }
.choice b { display: block; font-weight: 800; font-size: 16px; }
.choice span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }
.choice em, .wallet-steps em { font-style: normal; font-weight: 800; color: var(--ink); }
.wallet-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 6px; }
.wallet-steps li { counter-increment: s; position: relative; padding: 11px 0 11px 46px; border-top: 2px dashed #d8cfbb; }
.wallet-steps li:first-child { border-top: none; }
.wallet-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--mint); border: 2px solid var(--ink);
}
.wallet-steps b { display: block; font-size: 16px; }
.wallet-steps span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin-top: 1px; }

.foot { margin-top: 34px; text-align: center; color: var(--muted); font-size: 13px; }
.powered { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.powered img { width: 22px; height: 22px; }

/* ── success / status ───────────────────────────── */
.done { text-align: center; }
.check {
  width: 78px; height: 78px; margin: 2px auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
  animation: pop .45s cubic-bezier(.2,1.6,.4,1) both;
}
.check.info { background: var(--sun); }
.check svg path { stroke: var(--ink); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .2s ease-out forwards; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-weight: 800; font-size: 32px; letter-spacing: -0.03em; margin: 4px 0 6px; }
.done p { color: var(--ink-soft); margin: 0 0 14px; }
.addr { word-break: break-all; font-size: 12.5px; color: var(--ink-soft); padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 2px dashed #cfc5ae; margin: 0 0 6px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin: 6px 0 18px; }
.track .node { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.track .node i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--paper); border: 2px solid #b9b09b; color: var(--muted); }
.track .node.done { color: var(--ink); }
.track .node.done i { background: var(--mint); border-color: var(--ink); color: var(--ink); }
.track .node.now { color: var(--ink); }
.track .node.now i { background: var(--sun); border: 2px solid var(--ink); color: var(--ink); animation: bob 1.4s ease-in-out infinite; }
.track .node.stop i { background: var(--bad); border-color: var(--ink); color: #fff; }
.track .bar { height: 3px; min-width: 18px; background: #d8cfbb; border-radius: 2px; margin-bottom: 22px; }
.track .bar.done { background: var(--ink); }
@keyframes bob { 50% { transform: translateY(-3px); } }

@media (min-width: 720px) {
  .wrap { padding-top: 22px; }
  .pill-stage { width: 230px; height: 230px; }
  .quick { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 360px) {
  .steps, .choices, .rate { grid-template-columns: 1fr; }
  .step:nth-child(n) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
