/* RewardGPT /airdrop — v2 brand (dark, ember, Geist). Builds on brand.css tokens + components. */
body.ad { background: radial-gradient(1200px 600px at 78% -10%, rgba(255,106,26,.07), transparent 60%), var(--bg); background-attachment: fixed; }
main { position: relative; z-index: 1; }
#ad-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* ---------- hero ---------- */
.ad-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.ad-chip { height: auto; min-height: 30px; padding: 7px 12px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ad-chip .dot-live { background: var(--muted); animation: none; box-shadow: none; }
.ad-chip.live { border-color: rgba(255,106,26,.35); color: var(--ember-2); background: var(--ember-soft); }
.ad-chip.live .dot-live { background: var(--ember); animation: pulse 2s infinite; }
.ad-h1 { margin: 26px 0 22px; font-weight: 560; font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.05em; }
.ad-h1 .ln { display: inline-block; }
.ad-h1 .tk { position: relative; color: #fff; }
.ad-ul { position: absolute; left: 0; right: 0; bottom: -.06em; width: 100%; height: .16em; overflow: visible; }
.ad-ul path { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: adDraw 1.1s var(--ease-out) .7s forwards; }
@keyframes adDraw { to { stroke-dashoffset: 0; } }
.ad-lead { max-width: 520px; }
.ad-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 30px; border: 1px solid var(--line); border-radius: var(--r); width: fit-content; max-width: 100%; background: rgba(255,255,255,.015); }
.ad-stat { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px; min-width: 140px; }
.ad-stat + .ad-stat { border-left: 1px solid var(--line); }
.ad-stat .label { font-size: 10.5px; color: var(--muted); }
.ad-stat b { font-weight: 560; font-size: 30px; line-height: 1; letter-spacing: -.035em; }
.ad-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.ad-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; }
.ad-art canvas { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.ad-art .hud { position: absolute; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.ad-art .hud::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--line-3); }
.ad-art .tl { top: 2%; left: 2%; padding-left: 18px; } .ad-art .tl::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.ad-art .tr { top: 2%; right: 2%; padding-right: 18px; color: var(--ember-2); } .ad-art .tr::before { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.ad-art .bl { bottom: 2%; left: 2%; padding-left: 18px; } .ad-art .bl::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.ad-art .br { bottom: 2%; right: 2%; padding-right: 18px; } .ad-art .br::before { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* ---------- steps ---------- */
.ad-flow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; padding-top: 40px; padding-bottom: 80px; align-items: start; scroll-margin-top: 72px; }
.ad-flow:has(.ad-form[hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ad-card { padding: 30px; }
.ad-step { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 22px; }
.ad-step .label { color: var(--muted); font-size: 11px; width: 100%; }
.ad-step .h-3 { font-size: 22px; }
.ad-count { margin-left: auto; font-size: 13px; color: var(--text-2); padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--pill); }
.ad-note { display: flex; gap: 12px; align-items: flex-start; margin: -4px 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(255,106,26,.35); background: rgba(255,106,26,.05); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.ad-note .ico { color: var(--ember); flex: none; margin-top: 1px; }

.ad-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ad-task { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .3s, background .3s; }
.ad-task:hover { border-color: var(--line-2); }
.ad-task .tile { color: var(--text-2); transition: color .3s, border-color .3s; }
.ad-task .tx { min-width: 0; }
.ad-task .tx b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ad-task .tx small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.ad-task .ok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--on-ember); transition: background .35s, border-color .35s, transform .45s var(--ease-out); }
.ad-task .ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .45s var(--ease-out) .12s; }
.ad-task.done { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.ad-task.done .tile { color: var(--text); }
.ad-task.done .ok { background: var(--ember); border-color: var(--ember); transform: scale(1.06); box-shadow: 0 0 18px -2px var(--ember-glow); }
.ad-task.done .ok svg { stroke-dashoffset: 0; }
.ad-task.missing { border-color: rgba(255,106,26,.6); background: rgba(255,106,26,.07); }
.ad-task.missing .tile { color: var(--ember); border-color: rgba(255,106,26,.35); }
.ad-task.missing .ok { border-color: var(--ember); animation: adMiss 1.6s var(--ease) infinite; }
.ad-task.missing .ok::after { content: "!"; font: 600 13px/1 var(--mono); color: var(--ember); }
.ad-task.missing .ok svg { display: none; }
@keyframes adMiss { 0% { box-shadow: 0 0 0 0 var(--ember-glow); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,106,26,0); } }
.ad-task.locked .js-do { opacity: .35; pointer-events: none; }
.ad-task.locked .tile { color: var(--muted); }

.ad-progress { position: relative; margin: 26px 6px 14px; height: 10px; }
.ad-progress .trk { position: absolute; left: 0; right: 0; top: 4.5px; height: 1px; background: var(--line-2); }
.ad-progress i { position: absolute; left: 0; top: -.5px; height: 2px; width: 0; background: linear-gradient(90deg, rgba(255,106,26,.25), var(--ember)); transition: width .8s var(--ease-out); }
.ad-progress i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px 2px var(--ember-glow); opacity: 0; transition: opacity .3s; }
.ad-progress[data-n]:not([data-n="0"]) i::after { opacity: 1; }
.ad-progress .nd { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-3); transition: background .4s, border-color .4s; }
.ad-progress .nd.on { background: var(--ember); border-color: var(--ember); }
.ad-fine { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.ad-form { position: sticky; top: 88px; }
.ad-field { margin-bottom: 16px; }
.ad-submit { width: 100%; margin-top: 22px; }
.ad-msg { min-height: 22px; margin: 14px 0 0; font: 400 13px/1.5 var(--mono); color: var(--text-2); }
.ad-msg.bad { color: var(--ember-2); }

/* result */
.ad-result { text-align: center; padding: 40px 30px; overflow: hidden; }
.ad-result::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px 220px at 50% 0%, rgba(255,106,26,.12), transparent 70%); pointer-events: none; }
.ad-done-art { width: 128px; height: 128px; margin: 0 auto 18px; position: relative; }
.ad-done-art svg { width: 100%; height: 100%; overflow: visible; }
.ad-done-art circle, .ad-done-art path { fill: none; }
.d-trk { stroke: var(--line); stroke-width: 1; }
.d-arc { stroke: var(--text); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 85.6 100; }
.d-tok { fill: var(--ember) !important; transform: translate(88.3px, 31.7px); }
.d-rip { stroke: var(--ember); stroke-width: 1.2; opacity: 0; transform-origin: 60px 60px; }
.d-chk { stroke: var(--on-ember); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ad-result.play .d-tok { animation: dTok .9s cubic-bezier(.6,0,.25,1.35) .25s both; }
.ad-result.play .d-arc { animation: dArc .8s var(--ease-out) .65s both; }
.ad-result.play .d-chk { animation: dChk .45s var(--ease-out) 1.1s both; }
.ad-result.play .d-rip { animation: dRip 1.4s var(--ease-out) 1.05s both; }
.ad-result:not(.play) .d-tok { transform: translate(60px, 60px) scale(2.7); }
.ad-result:not(.play) .d-arc { stroke-dasharray: 100 0; }
.ad-result:not(.play) .d-chk { stroke-dashoffset: 0; }
@keyframes dTok { 0% { transform: translate(88.3px, 31.7px) scale(1); } 45% { transform: translate(80px, 18px) scale(1.25); } 100% { transform: translate(60px, 60px) scale(2.7); } }
@keyframes dArc { from { stroke-dasharray: 85.6 100; } to { stroke-dasharray: 100 0; } }
@keyframes dChk { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes dRip { 0% { opacity: .8; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.5); } }
.ad-result-tag { justify-content: center; color: var(--text-2); }
.ad-result h3 { margin: 14px 0 12px; }
.ad-result p { position: relative; margin: 0 auto 26px; max-width: 520px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.ad-row { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- why band ---------- */
.ad-why { padding-bottom: 80px; scroll-margin-top: 72px; }
.ad-band { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 56px; overflow: hidden; }
.ad-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); }
.ad-band-copy { position: relative; }
.ad-band h2 { margin: 18px 0 16px; }
.ad-band p { margin: 0 0 28px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; max-width: 460px; }
.ad-flowviz { position: relative; }
.fv { width: 100%; height: auto; overflow: visible; }
.fv-tall { display: none; max-width: 360px; margin: 0 auto; }
.fv-lines path { fill: none; stroke: var(--line-2); stroke-width: 1; }
.fv-pulse path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 7; opacity: .9; animation: fvFlow 2.6s linear infinite; }
.fv-pulse .p2 { animation-delay: -.9s; } .fv-pulse .p3 { animation-delay: -1.7s; }
.fv-pulse .out { stroke: var(--ember); stroke-width: 2; stroke-dasharray: 18 82; stroke-dashoffset: 18; animation-duration: 1.3s; filter: drop-shadow(0 0 4px var(--ember-glow)); }
@keyframes fvFlow { to { stroke-dashoffset: -93; } }
.fv-node rect { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; }
.fv-node.mid rect { stroke: var(--line-3); }
.fv-node use { color: var(--text-2); fill: currentColor; }
.fv-node text { fill: var(--text); font: 500 14px var(--font); letter-spacing: -.01em; }
.fv-node text.s { font-size: 12.5px; }
.fv-node text.m { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--text); }
.fv-node .port { fill: var(--bg); stroke: var(--line-3); }
.fv .cap { fill: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.fv .cap.em { fill: var(--ember-2); }
.fv-ring .ring { fill: none; stroke: var(--text); stroke-width: 7; stroke-linecap: round; }
.fv-ring .halo { fill: none; stroke: var(--line); stroke-dasharray: 2 5; transform-box: fill-box; transform-origin: center; animation: fvSpin 30s linear infinite; }
.fv-ring .tok { fill: var(--ember); transform-box: fill-box; transform-origin: center; animation: fvTok 1.3s var(--ease) infinite; }
@keyframes fvSpin { to { transform: rotate(360deg); } }
@keyframes fvTok { 0%, 70% { transform: scale(1); } 85% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ad-flowviz.paused * { animation-play-state: paused !important; }

/* ---------- faq ---------- */
.ad-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding-bottom: 96px; }
.ad-faq-head .h-2 { margin-top: 16px; }
.ad-faq-list { border-top: 1px solid var(--line); }
.ad-faq details { border-bottom: 1px solid var(--line); }
.ad-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-weight: 500; font-size: 17px; letter-spacing: -.015em; transition: color .2s; }
.ad-faq summary::-webkit-details-marker { display: none; }
.ad-faq summary:hover { color: #fff; }
.ad-faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.ad-faq summary i::before, .ad-faq summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: var(--text-2); transition: transform .3s var(--ease); }
.ad-faq summary i::after { transform: rotate(90deg); }
.ad-faq details[open] summary i::after { transform: rotate(0); }
.ad-faq details[open] summary i::before { background: var(--ember); }
.ad-faq details p { margin: -6px 0 22px; padding-right: 30px; color: var(--text-2); line-height: 1.65; }

.site-foot .brand { font-size: 15px; color: var(--text); }
.site-foot .brand img { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .ad-hero { grid-template-columns: 1fr; padding-top: 36px; gap: 8px; }
  .ad-art { justify-self: center; max-width: 440px; margin-top: 8px; }
  .ad-flow, .ad-flow:has(.ad-form[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .ad-form { position: relative; top: 0; }
  .ad-band { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .ad-faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .ad-hero { padding-top: 28px; }
  .ad-h1 { margin: 22px 0 18px; font-size: clamp(38px, 12vw, 56px); }
  .ad-stats { width: 100%; }
  .ad-stat { flex: 1 1 0; min-width: 0; padding: 14px 16px; }
  .ad-stat b { font-size: 24px; }
  .ad-cta .btn { flex: 1 1 auto; }
  .ad-art { max-width: 340px; }
  .ad-card { padding: 22px 16px; border-radius: 20px; }
  .ad-task { grid-template-columns: 40px minmax(0, 1fr) 28px; grid-template-areas: "ic tx ok" "do do do"; gap: 12px; padding: 12px; }
  .ad-task .tile { grid-area: ic; } .ad-task .tx { grid-area: tx; } .ad-task .ok { grid-area: ok; } .ad-task .js-do { grid-area: do; width: 100%; }
  .ad-result { padding: 32px 18px; }
  .ad-row .btn { flex: 1 1 100%; }
  .ad-band { padding: 30px 18px; border-radius: 20px; }
  .fv-wide { display: none; } .fv-tall { display: block; }
  .ad-faq summary { font-size: 16px; padding: 18px 2px; }
  .ad-faq details p { padding-right: 0; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 360px) {
  .ad-chip { font-size: 10px; letter-spacing: .05em; padding: 7px 10px; gap: 7px; }
  .ad-stat { padding: 12px 12px; }
  .ad-stat .label { letter-spacing: .08em; }
  .ad-art .hud { font-size: 9.5px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-ul path { stroke-dashoffset: 0; animation: none; }
  .fv-pulse path { animation: none; opacity: 0; }
}
/* the shared .toast slides only 160% of its own height: an empty/short toast still peeks above the edge */
#ad-toast { transform: translate(-50%, calc(100% + 40px)); }
#ad-toast.on { transform: translate(-50%, 0); }

/* intro (CSS keyframes, no JS timing dependency) */
@keyframes adIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes adInLine { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
@keyframes adInArt { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.ad-go .ad-chip { animation: adIn .5s var(--ease-out) both; }
.ad-go .ad-h1 .ln { animation: adInLine .9s var(--ease-out) both; }
.ad-go .ad-h1 .ln:nth-child(2) { animation-delay: .08s; } .ad-go .ad-h1 .ln:nth-child(3) { animation-delay: .16s; }
.ad-go .ad-lead { animation: adIn .7s var(--ease-out) .3s both; }
.ad-go .ad-stats { animation: adIn .7s var(--ease-out) .38s both; }
.ad-go .ad-cta { animation: adIn .7s var(--ease-out) .46s both; }
.ad-go .ad-art { animation: adInArt 1.4s var(--ease-out) .1s both; }
.ad-go .ad-task { animation: adIn .55s var(--ease-out) both; }
.ad-go .ad-task:nth-child(2) { animation-delay: .07s; } .ad-go .ad-task:nth-child(3) { animation-delay: .14s; } .ad-go .ad-task:nth-child(4) { animation-delay: .21s; }
