/* CreatorPay: a light, plain product page */
:root { --bg: #FAFAFA; --ink: #0B0B0E; --ink2: #3f4148; --dim: #6b6e76; --line: #e7e7ea; --card: #fff; --green: #86EFAC; --green2: #16a34a; --greenbg: #effdf4; --red: #dc2626; --amber: #b45309; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 250, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { text-decoration: none; color: var(--dim); font-size: 14.5px; font-weight: 500; } nav a:hover { color: var(--ink); }
@media (max-width: 760px) { nav { display: none; } .bar #wallet { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 15px Geist, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.btn:hover { border-color: #cfd0d4; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: default; }
.btn.green { background: var(--green); border-color: var(--green); } .btn.green:hover { background: #74e89d; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.dark:hover { background: #26262b; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; color: var(--ink2); }
.kicker img { width: 20px; height: 20px; }
h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 700; margin: 18px 0 22px; }
.lead { font-size: 18px; color: var(--ink2); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--dim); }
.hero-side { display: grid; gap: 18px; justify-items: center; }
.coin-wrap { width: min(300px, 56vw); aspect-ratio: 1; }
.coin { width: 100%; height: 100%; object-fit: contain; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(11, 11, 14, .14)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .coin { animation: none; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 11, 14, .04), 0 8px 24px rgba(11, 11, 14, .04); }
.feed { width: 100%; padding: 16px 18px; }
.feed-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .feed-h b { font-size: 15px; } .feed-h span { font-size: 13px; color: var(--dim); }
.fi { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fi:first-child { border-top: 0; }
.fi img, .fi .av { width: 28px; height: 28px; border-radius: 50%; background: #eee; flex: none; }
.fi .w { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fi .w small { color: var(--dim); margin-left: 6px; }
.fi .amt { font-weight: 600; color: var(--green2); white-space: nowrap; }
.feed .none { padding: 14px 0 6px; color: var(--dim); font-size: 14px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; } .hero-side { grid-template-columns: 1fr; } }

/* live counter */
.counter { padding-bottom: 24px; }
.big { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 32px; }
.big-main > span { display: block; color: var(--dim); font-size: 15px; font-weight: 500; }
.big-main b { display: block; font-size: clamp(44px, 6vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big-main small { font-size: .4em; color: var(--dim); font-weight: 600; letter-spacing: 0; }
.big-rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-left: 32px; border-left: 1px solid var(--line); }
.big-rest dt { color: var(--dim); font-size: 14px; } .big-rest dd { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .big { grid-template-columns: 1fr; gap: 20px; padding: 22px; } .big-rest { grid-template-columns: repeat(2, 1fr); padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

/* sections */
.sec { padding-top: 72px; }
.head { max-width: 680px; margin-bottom: 26px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--green2); margin-bottom: 8px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.head p { margin-top: 12px; color: var(--ink2); font-size: 17px; }
.muted { color: var(--dim); }

/* campaigns */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.camp { padding: 22px; display: grid; gap: 14px; }
.camp header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.camp h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.camp .lk { font-size: 14px; color: var(--green2); text-decoration: none; word-break: break-all; } .camp .lk:hover { text-decoration: underline; }
.rate { font-size: 28px; font-weight: 700; letter-spacing: -.03em; } .rate span { font-size: 14px; font-weight: 500; color: var(--dim); margin-left: 8px; letter-spacing: 0; }
.meter { height: 8px; border-radius: 8px; background: #f0f0f2; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--green); border-radius: 8px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .kv small { display: block; color: var(--dim); font-size: 13px; } .kv b { font-size: 16px; font-variant-numeric: tabular-nums; }
.camp footer { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #f1f1f3; color: var(--ink2); white-space: nowrap; }
.chip.live { background: var(--greenbg); color: var(--green2); } .chip.held { background: #fff7ed; color: var(--amber); } .chip.gone, .chip.rejected { background: #fef2f2; color: var(--red); }
.empty-card { grid-column: 1 / -1; padding: 28px; border: 1px dashed #d6d6da; border-radius: 18px; color: var(--dim); background: #fff; } .empty-card b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* lists */
.list { padding: 6px 0; overflow: hidden; }
.tr { display: grid; grid-template-columns: 40px 1fr 110px 120px 150px; gap: 14px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.tr:first-child { border-top: 0; }
.tr.h { color: var(--dim); font-size: 13.5px; font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
#payTable .tr { grid-template-columns: 110px 1fr 120px 130px; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; text-decoration: none; }
.who img { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #eee; }
.who div { min-width: 0; } .who b { display: block; } .who small { display: block; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; } .acc { color: var(--green2); font-weight: 600; } .dim { color: var(--dim); }
.rs { display: block; font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.tx { color: var(--green2); text-decoration: none; font-variant-numeric: tabular-nums; } .tx:hover { text-decoration: underline; }
.none { padding: 26px 22px; color: var(--dim); border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .tr, #payTable .tr { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; }
  .tr.h { display: none; } .tr > :first-child.dim.num { display: none; }
  #clipTable .tr > .num.dim { display: none; }
  .none { border-top: 0; }
}

/* how it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; } .steps p { color: var(--ink2); font-size: 15px; }
.rules { margin-top: 18px; color: var(--ink2); font-size: 15px; max-width: 860px; } .rules b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* join panels */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 28px; } .panel h2 { font-size: 28px; } .panel .muted { margin: 8px 0 20px; }
.flow { list-style: none; display: grid; gap: 16px; }
.flow li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.flow li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1f1f3; font-weight: 700; font-size: 14px; }
.flow b { display: block; } .flow small { display: block; color: var(--dim); font-size: 14px; margin: 2px 0 8px; }
.row { display: flex; gap: 8px; margin-top: 6px; } .row input { flex: 1; min-width: 0; }
.sub { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; } .sub > b { font-size: 17px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; } label small { color: var(--dim); font-weight: 400; }
input, select { height: 44px; width: 100%; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font: 400 15px Geist, sans-serif; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--green2); box-shadow: 0 0 0 3px rgba(134, 239, 172, .45); }
.form { display: grid; gap: 14px; } .two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.out { display: block; font-size: 14px; color: var(--dim); min-height: 1em; } .out.err { color: var(--red); } .out.ok { color: var(--green2); } .out a { color: inherit; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } .panel { padding: 22px; } }

/* token */
.token { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; padding: 32px; }
.token > img { width: 100%; filter: drop-shadow(0 18px 24px rgba(11, 11, 14, .12)); }
.token p { margin: 12px 0 20px; color: var(--ink2); max-width: 600px; }
.token dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; } .token dt { color: var(--dim); font-size: 14px; } .token dd { font-weight: 600; word-break: break-all; } .token dd a { color: var(--green2); text-decoration: none; }
@media (max-width: 720px) { .token { grid-template-columns: 1fr; padding: 22px; } .token > img { width: 150px; } .token dl { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--dim); transition: transform .2s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink2); }

footer { display: flex; gap: 24px; align-items: flex-start; padding-top: 64px; padding-bottom: 48px; margin-top: 72px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .xl { color: var(--ink); font-weight: 600; text-decoration: none; flex: none; } footer .brand { color: var(--ink); flex: none; font-size: 15px; } footer .brand img { width: 24px; height: 24px; border-radius: 7px; }
@media (max-width: 720px) { footer { flex-direction: column; gap: 12px; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
