:root {
  --ink: #151519;
  --muted: #6f6b73;
  --dim: #a7a2aa;
  --line: #e8e3de;
  --line-soft: #f2eee9;
  --paper: #faf9f6;
  --cream: #fff3e6;
  --card: #ffffff;
  --orange: #ff642d;
  --orange-2: #e8521c;
  --orange-soft: #ffe6da;
  --lav: #e4ddff;
  --mint: #d3f2e3;
  --sky: #d6efff;
  --ok: #1f9d5f;
  --warn: #e0491a;
  --info: #3b7fc4;
  --head: "Space Grotesk", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --shadow: 4px 4px 0 var(--sh);
  --shadow-soft: 6px 6px 0 #e6dfd6;
  --edge: #151519;
  --sh: #151519;
  --sh-soft: #e6dfd6;
  --surface: #fffaf5;
  --hover: #fff6ef;
  --err-bg: #fff3ee;
  --dots: #e7e1dc;
  --text-2: #57535b;
  --blob: #ffd9c7;
  --conf-med: #fff1c9;
  --conf-low: #ffe0d6;
  --tag-info: #e6f1fb;
  --tag-ok: #e0f4ea;
  --header-bg: rgba(250, 249, 246, 0.9);
  --f2: #fff3e6; --f3: #e4ddff; --f4: #d3f2e3;
  --amber: var(--orange); /* legacy name used by app.js inline styles */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: var(--orange-2); }
button { font-family: var(--sans); cursor: pointer; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 22px; }
.hero .wrap, header.top .wrap, .features .wrap, footer .wrap { max-width: 1180px; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; }
.dim { color: var(--dim); }

/* ---------------- header ---------------- */
header.top { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(8px); border-bottom: 2px solid var(--edge); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -1.2px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; margin-right: 10px; flex: none; box-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .25s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo.small .logo-mark { width: 28px; height: 28px; border-radius: 8px; margin-right: 8px; }
.logo i { font-style: normal; color: var(--orange); }
.logo.small { font-size: 20px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: background 0.2s; }
.nav a:hover { background: var(--orange-soft); }
.nav a.active { background: var(--ink); color: #fff; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 430px; }
.pill { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; white-space: nowrap; }
.pill::before { content: "●"; margin-right: 4px; }
.pill.live::before { color: var(--ok); }
.pill.live-unofficial::before, .pill.live-limited::before, .pill.partial::before { color: #e0a32a; }
.pill.not-connected::before, .pill.unsupported::before { color: var(--dim); }
.demo-banner { background: #151519; color: #fff; border-bottom: 1px solid #3a3338; text-align: center; padding: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--edge); background: var(--ink); color: #fff; border-radius: 13px; padding: 11px 18px; font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sh); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--sh); }
.btn.orange { background: var(--orange); }
.btn.light { background: var(--card); color: var(--ink); }
.btn.small { padding: 5px 11px; font-size: 12px; box-shadow: 2px 2px 0 var(--sh); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 64px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--blob) 0%, transparent 68%); animation: blob 9s ease-in-out infinite; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; position: relative; }
.hero-copy { position: relative; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--orange-soft); border: 2px solid var(--edge); border-radius: 8px; padding: 5px 9px; box-shadow: 2px 2px 0 var(--sh); transform: rotate(-2deg); display: inline-block; white-space: nowrap; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(54px, 8vw, 108px); line-height: 0.92; letter-spacing: -0.075em; margin: 26px 0 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero h1 em { font-style: normal; color: var(--orange); text-shadow: 3px 3px 0 var(--sh); display: inline-block; animation: wobble 4s ease-in-out 1.4s infinite; transform-origin: 30% 80%; }
.lede { color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 540px; margin: 0; opacity: 0; animation: fadeUp 0.8s 0.45s forwards; }

.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--edge); border-radius: 17px; padding: 7px 7px 7px 18px; max-width: 690px; margin-top: 28px; box-shadow: var(--shadow-soft); transition: box-shadow 0.25s, transform 0.25s; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; }
.search:focus-within { box-shadow: 6px 6px 0 var(--orange); transform: translate(-2px, -2px); }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 15px; background: transparent; font-family: var(--sans); color: var(--ink); padding: 10px 0; }
.search input.kw { flex: 0 0 105px; font-size: 12.5px; border-left: 1.5px dashed var(--line); padding-left: 10px; color: var(--muted); }
.search input.kw:focus { flex-basis: 170px; }
.search svg { flex-shrink: 0; color: var(--ink); }
.tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s 0.75s forwards; }
.tag { font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; color: var(--text-2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: border-color 0.2s, transform 0.2s; }
.tag:hover { border-color: var(--orange); transform: translateY(-2px); }
.demo-toggle input { accent-color: var(--orange); margin: 0; }

/* stickers */
.sticker { color: #151519; position: absolute; z-index: 3; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 7px 11px; border: 2px solid var(--edge); border-radius: 10px; box-shadow: 3px 3px 0 var(--sh); white-space: nowrap; pointer-events: none; }
.sticker.s1 { background: var(--mint); left: 370px; top: -40px; --r: -9deg; }
.sticker.s2 { background: #ffd6ec; right: -8px; top: -46px; --r: 8deg; }
.sticker.s3 { background: var(--sky); right: -20px; bottom: -40px; --r: -7deg; }
.sticker.s4 { background: #ffc9b0; left: -70px; bottom: 26px; --r: 7deg; }
.float { animation: floaty 5s ease-in-out infinite; }
.float.slow { animation-duration: 7s; animation-delay: -2s; }

/* split stage */
.split-wrap { position: relative; }
.split-stage { position: relative; background: var(--card); border: 2px solid var(--edge); border-radius: 24px; box-shadow: 8px 8px 0 var(--sh); padding: 18px 20px; min-height: 410px; overflow: hidden; transform: rotate(1.4deg); transition: transform 0.4s; }
.split-stage:hover { transform: rotate(0deg) scale(1.01); }
.split-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 18px 18px; opacity: 0.6; pointer-events: none; }
.stage-top, .stage-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; }
.stage-bottom { border-top: 1.5px dashed var(--line); padding-top: 12px; margin-top: 8px; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 0; animation: pulse 1.4s infinite; }
.split-lines { position: absolute; left: 20px; right: 20px; top: 92px; width: calc(100% - 40px); height: 150px; overflow: visible; }
.split-lines path { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; stroke-dashoffset: 0; animation: dash 1.6s linear infinite; opacity: 0; }
.split-stage.play .split-lines path { animation: dash 1.6s linear infinite, fadeIn 0.4s 0.5s forwards; }
.disc { width: 74px; height: 74px; border-radius: 50%; border: 2.5px solid var(--edge); background: var(--orange-soft); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--sh); }
.disc.origin { position: relative; margin: 16px auto 0; background: var(--orange); color: #fff; width: 82px; height: 82px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.disc.origin small { font-family: var(--mono); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.copies { position: relative; display: flex; justify-content: space-between; margin-top: 70px; padding: 0 4%; }
.copy { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; opacity: 0; transform: scale(0.3) translateY(20px); }
.copy small { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.copy:nth-child(2) .disc { background: var(--card); }
.copy:nth-child(3) .disc { background: var(--surface); }
.split-stage.play .copy { animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.split-stage.play .copy:nth-child(1) { animation-delay: 0.9s; }
.split-stage.play .copy:nth-child(2) { animation-delay: 1.15s; }
.split-stage.play .copy:nth-child(3) { animation-delay: 1.4s; }
.stamp { position: absolute; top: -14px; right: -26px; background: var(--ok); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; padding: 4px 8px; border: 2px solid var(--edge); border-radius: 7px; transform: rotate(14deg) scale(3); opacity: 0; }
.split-stage.play .stamp { animation: slam 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 2.6s forwards; }
.split-stage.play .copy.real .disc { animation: glow 1.2s ease 2.8s 2; }
.stage-title { position: relative; text-align: center; font-family: var(--head); font-weight: 700; font-size: 30px; letter-spacing: -1.4px; margin: 22px 0 12px; }
.stage-title em { font-style: normal; color: var(--orange); display: inline-block; animation: wiggle 2.2s ease-in-out infinite; }
.mini { border: 1.5px solid var(--edge); background: var(--orange-soft); border-radius: 8px; font-size: 11px; font-weight: 800; padding: 4px 9px; }
.mini:hover { background: var(--orange); color: #fff; }

/* marquee */
.marquee { background: var(--orange); border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); overflow: hidden; white-space: nowrap; padding: 12px 0; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #151519; }
.track { display: inline-block; animation: marquee 32s linear infinite; }
.track span { padding: 0 20px; }
.track b { color: #fff; }
.marquee:hover .track { animation-play-state: paused; }

/* ---------------- blocks ---------------- */
.block { margin: 44px 0; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.05em; margin: 4px 0 0; line-height: 1; }
.block-head .dot { color: var(--orange); }
.block-head .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eyebrow #invId { color: var(--orange); }
.count { font-family: var(--mono); font-size: 14px; color: #fff; background: var(--orange); border: 2px solid var(--edge); border-radius: 99px; padding: 2px 9px; vertical-align: middle; letter-spacing: 0; }
.count:empty { display: none; }
.card { background: var(--card); border: 2px solid var(--edge); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-soft); }
.card.flush { padding: 0; overflow: hidden; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.small-text { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 14px 0 0; }
.chip { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border: 1.5px solid var(--edge); border-radius: 99px; background: var(--orange-soft); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- pipeline ---------------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.stages li { background: var(--card); border: 2px solid var(--edge); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 22px 1fr; gap: 3px 8px; box-shadow: 3px 3px 0 var(--sh-soft); transition: transform 0.3s, box-shadow 0.3s, background 0.3s; animation: fadeUp 0.45s both; }
.stages li:nth-child(2) { animation-delay: 0.05s; } .stages li:nth-child(3) { animation-delay: 0.1s; } .stages li:nth-child(4) { animation-delay: 0.15s; }
.stages li:nth-child(5) { animation-delay: 0.2s; } .stages li:nth-child(6) { animation-delay: 0.25s; } .stages li:nth-child(7) { animation-delay: 0.3s; }
.stages .ico { font-weight: 800; font-size: 15px; }
.stages .lbl { font-weight: 800; font-size: 13.5px; }
.stages .det { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.stages .pending { opacity: 0.5; }
.stages .running { background: var(--orange-soft); box-shadow: 4px 4px 0 var(--sh); transform: translate(-2px, -2px); }
.stages .running .ico { color: var(--orange); display: inline-block; animation: spin 0.9s linear infinite; }
.stages .done .ico { color: var(--ok); display: inline-block; animation: tick 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
.stages .failed { background: var(--err-bg); }
.stages .failed .ico { color: var(--warn); }
.stages .skipped .ico, .stages .skipped .lbl { color: var(--dim); }

/* ---------------- verdicts ---------------- */
.verdict { background: var(--card); border: 2px solid var(--edge); border-radius: 22px; padding: 22px 22px 24px; position: relative; min-height: 190px; box-shadow: 6px 6px 0 var(--sh); transition: transform 0.25s, box-shadow 0.25s; opacity: 0; animation: cardIn 0.6s cubic-bezier(0.25, 1.4, 0.5, 1) forwards; }
.verdict:nth-child(2) { animation-delay: 0.12s; background: var(--orange-soft); }
.verdict:nth-child(3) { animation-delay: 0.24s; }
.verdict:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: 9px 9px 0 var(--sh); }
.verdict .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.verdict .v { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--ink); margin: 26px 0 4px; letter-spacing: -0.05em; overflow-wrap: anywhere; line-height: 1; }
.verdict:nth-child(2) .v { color: var(--orange); }
.verdict .v.none { color: var(--muted); font-size: 22px; letter-spacing: -0.03em; }
.verdict .m { font-size: 10.5px; color: var(--dim); font-family: var(--mono); overflow-wrap: anywhere; }
.verdict .x { font-size: 13px; color: var(--text-2); margin-top: 12px; line-height: 1.55; }
.conf { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; padding: 4px 10px; border: 1.5px solid var(--edge); border-radius: 99px; background: var(--card); text-transform: capitalize; }
.conf.high { background: var(--mint); }
.conf.medium { background: var(--conf-med); }
.conf.low { background: var(--conf-low); }
.verdict .win-stamp { position: absolute; right: 16px; bottom: 16px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 8px; border: 2px solid var(--ok); color: var(--ok); border-radius: 7px; transform: rotate(-10deg) scale(2.5); opacity: 0; animation: slam 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.verdict:nth-child(1) .win-stamp { animation-delay: 0.7s; } .verdict:nth-child(2) .win-stamp { animation-delay: 0.85s; } .verdict:nth-child(3) .win-stamp { animation-delay: 1s; }
.verdict .win-stamp.tie { border-color: #c98a00; color: #c98a00; }
.verdict .win-stamp.none { border-color: var(--dim); color: var(--muted); }

/* ---------------- weights ---------------- */
.weights { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.weights b { color: var(--ink); font-family: var(--head); font-size: 18px; }
.weights input[type=range] { -webkit-appearance: none; appearance: none; width: 240px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--p, 60%), var(--line) var(--p, 60%)); border: 1.5px solid var(--edge); outline: none; }
.weights input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--edge); box-shadow: 2px 2px 0 var(--sh); cursor: grab; transition: transform 0.15s; }
.weights input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
.weights input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--edge); cursor: grab; }

/* ---------------- table ---------------- */
table.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
table.cmp th { text-align: left; color: var(--muted); padding: 12px 7px; border-bottom: 2px solid var(--edge); white-space: nowrap; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; font-weight: 700; background: var(--surface); }
table.cmp td { padding: 10px 7px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
table.cmp tr.row { cursor: pointer; transition: background 0.2s; }
table.cmp.animate tr.row { animation: rowIn 0.45s both; }
table.cmp tr.row:hover td { background: var(--hover); }
table.cmp tr.row.lead td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
table.cmp td.num, table.cmp th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tokcell { display: flex; gap: 10px; align-items: center; }
.tokcell img, .tokcell .noimg { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 2px solid var(--edge); background: var(--orange-soft); flex: none; transition: transform 0.3s; }
tr.row:hover .tokcell img { transform: rotate(-10deg) scale(1.1); }
.tokcell .nm { font-weight: 800; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tokcell img, .tokcell .noimg { width: 30px; height: 30px; }
.tokcell .sym { color: var(--orange-2); font-weight: 800; }
.tokcell .mint { color: var(--dim); font-size: 10.5px; font-family: var(--mono); }
.bar { height: 8px; background: var(--line-soft); width: 44px; display: inline-block; vertical-align: middle; margin-left: 6px; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; transform-origin: left; animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tag-s, .tag { }
td .tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--line-soft); color: var(--muted); margin-left: 5px; border: 0; }
td .tag.bonding_curve { color: var(--info); background: var(--tag-info); }
td .tag.graduated { color: var(--ok); background: var(--tag-ok); }
td .tag.ref { color: #fff; background: var(--orange); }
.flagn { color: var(--warn); font-weight: 800; }
.unk { color: var(--dim); }

tr.detail td { background: var(--surface); white-space: normal; padding: 20px; animation: fadeUp 0.35s both; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.detail-grid > div { min-width: 0; }
.scroll-hint { display: none; font-size: 12px; color: var(--muted); padding: 8px 14px; border-bottom: 1px dashed var(--line); }
@media (max-width: 1240px) { table.cmp .bar { display: none; } }
@media (max-width: 1100px) { table.cmp .c-tx { display: none; } }
@media (max-width: 1060px) { table.cmp .c-liq { display: none; } .tokcell .nm { max-width: 180px; } }
@media (max-width: 900px) { .scroll-hint { display: block; } }
.detail-grid h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.sig { display: grid; grid-template-columns: 1fr 44px 48px; gap: 4px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sig .d { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; }
.sig .w { color: var(--dim); text-align: right; }
.sig .val { text-align: right; color: var(--orange-2); font-weight: 800; }
.kv { font-size: 12.5px; line-height: 1.75; overflow-wrap: anywhere; }
.kv .k { color: var(--muted); }
.src { color: var(--dim); font-size: 9.5px; text-decoration: none; border-bottom: 1px dotted var(--dim); margin-left: 4px; font-family: var(--mono); }
.flags { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.flags li { padding: 4px 0; line-height: 1.45; }
.flags .warn::before { content: "▲ "; color: var(--warn); }
.flags .info::before { content: "● "; color: var(--info); }

/* ---------------- evidence / timeline / flow ---------------- */
.evidence .item { border: 1.5px solid var(--edge); border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: var(--cream); }
.evidence .item b { display: block; margin-bottom: 4px; }
.evidence .item p { margin: 4px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.timeline { position: relative; padding-left: 22px; border-left: 2px dashed var(--edge); margin-left: 6px; }
.timeline .ev { position: relative; padding: 0 0 14px; font-size: 13px; }
.timeline .ev::before { content: ""; position: absolute; left: -30px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--orange); }
.timeline .ev.source::before { background: var(--orange); border-color: var(--edge); }
.timeline .t { color: var(--dim); font-size: 11px; font-family: var(--mono); }
.notes { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.flow-row { display: grid; grid-template-columns: 150px 1fr 110px; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 0; }
.flow-bar { height: 14px; display: flex; background: var(--line-soft); border-radius: 99px; overflow: hidden; border: 1.5px solid var(--edge); transform-origin: left; animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.flow-bar .b { background: var(--ok); }
.flow-bar .s { background: var(--orange); }
#graph svg { width: 100%; height: auto; display: block; }
#graph svg g { transform-box: fill-box; transform-origin: center; animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
#graph svg line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s ease forwards; }

/* ---------------- audit / history ---------------- */
table.audit { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.audit td, table.audit th { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.audit th { color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; background: var(--surface); border-bottom: 2px solid var(--edge); }
table.audit tr:hover td { background: var(--hover); }
table.audit td.u { color: var(--dim); overflow-wrap: anywhere; max-width: 460px; font-family: var(--mono); font-size: 10.5px; }
table.audit .ok { color: var(--ok); } table.audit .bad { color: var(--warn); }
#fees table.audit { margin-top: 10px; border: 1.5px solid var(--line); border-radius: 12px; }

/* ---------------- share ---------------- */
.share .card { gap: 20px; }
.share img { width: 100%; border-radius: 14px; border: 2px solid var(--edge); display: block; transition: transform 0.3s; }
.share img:hover { transform: rotate(-1deg) scale(1.02); }
.share textarea { width: 100%; background: var(--cream); color: var(--ink); border: 1.5px solid var(--edge); border-radius: 14px; font-family: var(--mono); padding: 12px; font-size: 12px; min-height: 140px; resize: vertical; }
.share .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ---------------- features ---------------- */
.features { background: var(--surface); border-top: 2px solid var(--edge); padding: 70px 0 80px; margin-top: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { border: 2px solid var(--edge); border-radius: 20px; padding: 22px; min-height: 190px; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 4px 4px 0 var(--sh); }
.feature:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 6px 10px 0 var(--sh); }
.feature:hover .ficon { animation: wiggle 0.6s ease 2; }
.feature.f1 { background: var(--card); } .feature.f2 { background: var(--f2); } .feature.f3 { background: var(--f3); } .feature.f4 { background: var(--f4); }
.feature:nth-child(2) { transition-delay: 0.05s; } .feature:nth-child(3) { transition-delay: 0.1s; } .feature:nth-child(4) { transition-delay: 0.15s; }
.ficon { font-size: 28px; display: inline-block; }
.feature h3 { font-family: var(--head); font-size: 20px; letter-spacing: -0.03em; margin: 12px 0 6px; }
.feature p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0; }

.error { border: 2px solid var(--warn); color: var(--warn); padding: 12px 16px; margin: 24px 0; background: var(--err-bg); border-radius: 14px; font-weight: 600; box-shadow: 4px 4px 0 var(--warn); animation: shake 0.4s; }
.hidden { display: none !important; }
.scroll-x { overflow-x: auto; }

footer { border-top: 2px solid var(--edge); padding: 26px 0 44px; color: var(--muted); font-size: 13px; }
footer .pills { justify-content: flex-start; max-width: none; margin-top: 10px; flex-basis: 100%; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }

/* confetti */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
#confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border: 1.5px solid var(--edge); border-radius: 2px; animation: fall 1.8s cubic-bezier(0.3, 0.5, 0.5, 1) forwards; }

/* ---------------- keyframes ---------------- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes wobble { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(3deg); } 97% { transform: rotate(-1deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.6)); } }
@keyframes blob { 50% { transform: translate(-30px, 30px) scale(1.12); } }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
@keyframes dash { to { stroke-dashoffset: -26; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slam { 0% { opacity: 0; transform: rotate(14deg) scale(3); } 70% { opacity: 1; transform: rotate(14deg) scale(0.92); } 100% { opacity: 1; transform: rotate(14deg) scale(1); } }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(31, 157, 95, 0.25), 3px 3px 0 var(--sh); background: var(--mint); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: 0.9; } }


/* ---------------- dark theme (default) ---------------- */
:root[data-theme="dark"] {
  --ink: #f3eee8;
  --muted: #a39ca5;
  --dim: #6e6870;
  --line: #2e2a30;
  --line-soft: #241f25;
  --paper: #0c0b0d;
  --cream: #1f1611;
  --card: #151317;
  --orange-soft: #3a1c10;
  --edge: #3a3338;
  --sh: #000000;
  --sh-soft: #2a1a12;
  --surface: #1b181c;
  --hover: #221c1d;
  --err-bg: #2a130c;
  --dots: #2a2629;
  --text-2: #b9b2bb;
  --blob: #4a1e0e;
  --conf-med: #3a2f0c;
  --conf-low: #3d1a10;
  --tag-info: #10263a;
  --tag-ok: #0f2a1d;
  --header-bg: rgba(12, 11, 13, 0.88);
  --f2: #2a1a10; --f3: #221d3a; --f4: #10291d;
  --lav: #2a2546; --mint: #12301f; --sky: #10283a;
  color-scheme: dark;
}
:root[data-theme="dark"] .hero h1 em { text-shadow: 3px 3px 0 #000, 0 0 40px rgba(255, 100, 45, 0.35); }
:root[data-theme="dark"] .sticker { box-shadow: 3px 3px 0 #000; }
:root[data-theme="dark"] .btn { box-shadow: 4px 4px 0 #000; }
:root[data-theme="dark"] .btn:not(.orange):not(.light) { background: #f3eee8; color: #0c0b0d; border-color: #f3eee8; }
:root[data-theme="dark"] .btn.light { background: var(--card); color: var(--ink); }
:root[data-theme="dark"] .nav a.active { background: var(--orange); color: #fff; }
:root[data-theme="dark"] .split-stage, :root[data-theme="dark"] .verdict { box-shadow: 8px 8px 0 #000, 0 0 0 1px #3a3338; }
:root[data-theme="dark"] .split-stage { box-shadow: 8px 8px 0 #2a1a12; }
:root[data-theme="dark"] .verdict:nth-child(2) .v, :root[data-theme="dark"] .stage-title em { text-shadow: 0 0 24px rgba(255, 100, 45, 0.35); }
:root[data-theme="dark"] .marquee { border-color: #000; }
:root[data-theme="dark"] .disc { color: var(--ink); }
:root[data-theme="dark"] .disc.origin { color: #fff; }
:root[data-theme="dark"] .sticker.s1 { background: #c9efdd; } :root[data-theme="dark"] .sticker.s3 { background: #d6efff; }

.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--edge); background: var(--card); color: var(--ink); font-size: 17px; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--sh); transition: transform 0.25s, box-shadow 0.15s; }
.theme-btn:hover { transform: rotate(-14deg); }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: inline; }
html.theme-anim, html.theme-anim * { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.25s ease !important; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .split-wrap { max-width: 460px; margin: 30px auto 0; width: 100%; }
  .sticker.s1, .sticker.s4 { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  #topCta { display: none; }
  .search { flex-wrap: wrap; padding: 10px 12px; }
  .search input.kw { flex: 1 1 100%; border-left: 0; border-top: 1.5px dashed var(--line); padding-left: 0; }
  .search .btn { width: 100%; }
  .grid2, .grid3, .detail-grid, .feature-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 90px 1fr 90px; }
  .hero { padding-top: 40px; }
  .sticker.s2 { right: 6px; } .sticker.s3 { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .lede, .search, .tags, .copy, .verdict { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none !important; }
  .split-lines path, .stamp, .verdict .win-stamp { opacity: 1 !important; }
  .stamp { transform: rotate(14deg) !important; }
}

/* ================================================================ How it works page */
body.on-how .hero, body.on-how .marquee, body.on-how #features { display: none; }
body.on-history .hero, body.on-history .marquee, body.on-history #features { display: none; }
body.on-report .hero, body.on-report .marquee, body.on-report #features { display: none; }
body.on-report #progress, body.on-report #report { padding-top: 26px; }
body.on-history #history { padding-top: 34px; min-height: 60vh; }
body.on-history #history h2 { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.05em; line-height: 1; animation: fadeUp 0.6s both; }
body.on-history #history .dot { color: var(--orange); }
body.on-history #history .card { animation: fadeUp 0.6s 0.12s both; }
.how { padding: 26px 0 40px; }
.how .wrap { max-width: 1180px; }
.how h2 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.05em; line-height: 1.02; margin: 6px 0 14px; }
.how .dot, .how h1 em, .how .hl { color: var(--orange); font-style: normal; }
.how code { font-family: var(--mono); font-size: 12.5px; background: var(--orange-soft); border: 1.5px solid var(--edge); border-radius: 7px; padding: 1px 6px; }
.how-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 30px 0 20px; }
.how-hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.06em; line-height: 0.95; margin: 10px 0 18px; animation: fadeUp 0.8s both; }
.how-lede { color: var(--text-2); font-size: 16.5px; line-height: 1.65; margin: 0 0 22px; max-width: 560px; animation: fadeUp 0.8s 0.15s both; }
.how-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp 0.8s 0.3s both; }
.btn.big { padding: 15px 26px; font-size: 16px; }

/* scanner */
.scanner { position: relative; border: 2px solid var(--edge); border-radius: 24px; background: var(--card); box-shadow: 8px 8px 0 var(--sh-soft); padding: 26px 18px 18px; overflow: hidden; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.3px); background-size: 18px 18px; animation: cardIn 0.9s 0.2s both; }
.scan-news { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--orange); color: #fff; border: 2px solid var(--edge); box-shadow: 3px 3px 0 var(--sh); display: grid; place-content: center; text-align: center; font-family: var(--head); font-weight: 700; font-size: 20px; animation: floaty 4s ease-in-out infinite; }
.scan-news small { font-family: var(--mono); font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.scan-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scoin { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--edge); background: var(--surface); display: grid; place-content: center; font-family: var(--head); font-weight: 700; font-size: clamp(12px, 1.5vw, 18px); color: var(--ink); }
.how-hero .scanner .scoin { font-size: min(18px, max(10px, 3vw)); }
@media (min-width: 981px) { .how-hero .scanner .scoin { font-size: clamp(12px, 1.25vw, 17px); } }
.scoin i { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(-8deg) scale(0); font-style: normal; font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 3px 6px; border-radius: 6px; border: 1.5px solid var(--edge); white-space: nowrap; background: #ffd6d0; color: #8a1c0c; animation: stampIn 7s infinite; }
.scoin.top { border-color: var(--ok); animation: topGlow 7s infinite; }
.scoin.top i { background: #c9efdd; color: #0d5a35; }
.scoin.v4 i { background: #151519; color: #ff8a65; }
.scoin.v1 i { animation-delay: 0.6s; } .scoin.v2 i { animation-delay: 1.2s; } .scoin.top i { animation-delay: 1.8s; } .scoin.v3 i { animation-delay: 2.4s; } .scoin.v4 i { animation-delay: 3s; }
.scan-beam { position: absolute; top: 0; bottom: 0; width: 70px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255, 100, 45, 0.35), transparent); animation: beam 7s linear infinite; pointer-events: none; }
.scan-foot { margin-top: 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.blink { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.2s infinite; }
@keyframes beam { 0% { left: -80px; } 45%, 100% { left: 110%; } }
@keyframes stampIn { 0%, 8% { transform: translateX(-50%) rotate(-8deg) scale(0); } 12% { transform: translateX(-50%) rotate(-8deg) scale(1.35); } 15%, 80% { transform: translateX(-50%) rotate(-8deg) scale(1); } 88%, 100% { transform: translateX(-50%) rotate(-8deg) scale(0); } }
@keyframes topGlow { 0%, 25% { box-shadow: none; } 32%, 80% { box-shadow: 0 0 0 6px rgba(31, 157, 95, 0.25); background: var(--mint); } 90%, 100% { box-shadow: none; } }

/* pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 14px; margin-top: 34px; }
.pipe-line { position: absolute; left: 6%; right: 6%; top: 25px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.pipe-line span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.pipeline.in .pipe-line span { animation: grow 1.8s 0.2s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
.pstep { position: relative; background: var(--card); border: 2px solid var(--edge); border-radius: 18px; padding: 54px 16px 18px; box-shadow: 4px 4px 0 var(--sh); opacity: 0; transform: translateY(20px); transition: transform 0.25s; }
.pipeline.in .pstep { animation: fadeUp 0.6s forwards; }
.pipeline.in .pstep:nth-child(3) { animation-delay: 0.35s; } .pipeline.in .pstep:nth-child(4) { animation-delay: 0.7s; } .pipeline.in .pstep:nth-child(5) { animation-delay: 1.05s; } .pipeline.in .pstep:nth-child(6) { animation-delay: 1.4s; }
.pstep:hover { transform: translateY(-6px) rotate(-1deg); }
.pstep b { position: absolute; top: -2px; left: 14px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; background: var(--orange); color: #fff; border: 2px solid var(--edge); font-family: var(--head); font-size: 20px; box-shadow: 2px 2px 0 var(--sh); }
.pstep h3 { font-family: var(--head); font-size: 18px; letter-spacing: -0.03em; margin: 0 0 6px; }
.pstep p { color: var(--text-2); font-size: 13px; line-height: 1.55; margin: 0; }

/* split rows */
.how-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; margin: 70px 0; }
.how-split.rev .how-text { order: 2; }
.how-text p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.how-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 9px; }
.how-list li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.how-list li::before { content: "✱"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 700; }
.how-list b, .how-text b { color: var(--ink); }
.how-small { font-size: 13px !important; color: var(--muted) !important; }
.how-small.center { text-align: center; max-width: 720px; margin: 16px auto 0 !important; }
.how-visual.card { padding: 24px; }
.vis-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.vis-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 14px 0 0; }

/* weight bars */
.wbar { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; font-weight: 600; }
.wbar i { height: 14px; border-radius: 8px; background: var(--line-soft); border: 1.5px solid var(--edge); position: relative; overflow: hidden; }
.wbar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) / 0.35); max-width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.how-visual.in .wbar i::after { transform: scaleX(1); }
.how-visual.in .wbar:nth-child(3) i::after { transition-delay: 0.1s; } .how-visual.in .wbar:nth-child(4) i::after { transition-delay: 0.2s; } .how-visual.in .wbar:nth-child(5) i::after { transition-delay: 0.3s; } .how-visual.in .wbar:nth-child(6) i::after { transition-delay: 0.4s; } .how-visual.in .wbar:nth-child(7) i::after { transition-delay: 0.5s; }
.wbar em { font-style: normal; font-family: var(--mono); font-size: 12px; text-align: right; }

/* fee jars */
.jars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jar { position: relative; height: 250px; border: 2px solid var(--edge); border-top: none; border-radius: 0 0 22px 22px; background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 12px; text-align: center; overflow: hidden; }
.jar::before { content: ""; position: absolute; top: 0; left: -2px; right: -2px; height: 10px; border: 2px solid var(--edge); border-radius: 6px; background: var(--card); }
.jar .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(31, 157, 95, 0.35), rgba(31, 157, 95, 0.6)); transition: height 2.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.4s; }
.jar.bot .fill { background: linear-gradient(180deg, rgba(224, 73, 26, 0.35), rgba(224, 73, 26, 0.6)); }
.how-visual.in .jar.real .fill { height: 62%; }
.how-visual.in .jar.bot .fill { height: 3%; }
.jar b, .jar small, .jar .pill { position: relative; z-index: 1; }
.jar b { font-family: var(--head); font-size: 16px; }
.jar small { color: var(--text-2); font-size: 11.5px; margin: 3px 0 8px; }
.pill { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--edge); }
.pill.ok { background: #c9efdd; color: #0d5a35; } .pill.bad { background: #ffd6d0; color: #8a1c0c; }
.drops { position: absolute; inset: 0; pointer-events: none; }
.drops i { position: absolute; top: -20px; width: 16px; height: 16px; border-radius: 50%; background: #ffcf4a; border: 1.5px solid var(--edge); opacity: 0; }
.how-visual.in .drops i { animation: drop 2.2s ease-in infinite; }
.drops i:nth-child(1) { left: 20%; } .drops i:nth-child(2) { left: 45%; animation-delay: 0.35s !important; } .drops i:nth-child(3) { left: 70%; animation-delay: 0.7s !important; } .drops i:nth-child(4) { left: 32%; animation-delay: 1.05s !important; } .drops i:nth-child(5) { left: 58%; animation-delay: 1.4s !important; } .drops i:nth-child(6) { left: 80%; animation-delay: 1.75s !important; }
.jar.bot .drops i { left: 48%; width: 7px; height: 7px; animation-duration: 6s !important; }
@keyframes drop { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; transform: translateY(150px); } 100% { opacity: 0; transform: translateY(170px) scale(0.6); } }

/* wallet grids */
.wallets-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: center; }
.wallets-pair b { display: block; font-family: var(--head); font-size: 17px; margin-top: 10px; }
.wallets-pair small { color: var(--muted); font-size: 12px; }
.wgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.wgrid i { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); transform: scale(0); }
.how-visual.in .wgrid i { animation: tick 0.35s forwards; }

/* timeline */
.timeline { position: relative; height: 150px; margin: 10px 6px 0; }
.tl-axis { position: absolute; left: 0; right: 0; top: 92px; height: 3px; background: var(--edge); border-radius: 3px; }
.tl-news { position: absolute; left: 30%; top: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--orange); color: #fff; border: 1.5px solid var(--edge); border-radius: 8px; padding: 4px 8px; }
.tl-news::after { content: ""; position: absolute; left: 50%; top: 100%; height: 56px; border-left: 2px dashed var(--orange); }
.tl-coin { position: absolute; left: var(--x); top: 70px; transform: translateX(-50%) scale(0); width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; text-align: center; font-family: var(--head); font-weight: 700; font-size: 12px; line-height: 1.05; background: var(--surface); border: 2px solid var(--edge); }
.tl-coin.old { opacity: 0.45; font-size: 9.5px; text-decoration: line-through; }
.tl-coin.top { background: var(--mint); border-color: var(--ok); box-shadow: 0 0 0 5px rgba(31, 157, 95, 0.2); }
.how-visual.in .tl-coin { animation: popC 0.5s var(--d, 0s) cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes popC { to { transform: translateX(-50%) scale(1); } }

/* formula */
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 28px; }
.fx { display: inline-flex; flex-direction: column; align-items: center; border: 2px solid var(--edge); border-radius: 14px; padding: 12px 16px; font-family: var(--head); font-weight: 700; font-size: 17px; box-shadow: 3px 3px 0 var(--sh); opacity: 0; transform: translateY(14px) rotate(-2deg); }
.fx small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.fx.s { background: var(--f3); } .fx.m { background: var(--sky); } .fx.g { background: var(--f2); } .fx.d { background: var(--surface); } .fx.r { background: var(--mint); border-color: var(--ok); flex-direction: row; align-items: baseline; gap: 2px; }
.fx.r b { font-size: 34px; color: var(--ink); }
.op { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--orange); opacity: 0; }
.formula.in .fx, .formula.in .op { animation: fadeUp 0.5s forwards; }
.formula.in > :nth-child(2) { animation-delay: 0.15s; } .formula.in > :nth-child(3) { animation-delay: 0.3s; } .formula.in > :nth-child(4) { animation-delay: 0.45s; } .formula.in > :nth-child(5) { animation-delay: 0.6s; } .formula.in > :nth-child(6) { animation-delay: 0.75s; } .formula.in > :nth-child(7) { animation-delay: 0.9s; } .formula.in > :nth-child(8) { animation-delay: 1.05s; } .formula.in > :nth-child(9) { animation-delay: 1.2s; }

/* verdict cards */
.verdict-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vcard { border: 2px solid var(--edge); border-radius: 18px; padding: 20px; background: var(--card); box-shadow: 4px 4px 0 var(--sh); transition: transform 0.25s; }
.vcard:hover { transform: translateY(-6px) rotate(1deg); }
.vcard span { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; padding-left: 10px; border-left: 6px solid currentColor; }
.vcard b { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 8px 0; }
.vcard p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.vcard.good span { color: #1f9d5f; } .vcard.bad span { color: #e8402f; } .vcard.mid span { color: #d49a12; } .vcard.none span { color: var(--muted); }
.verdict-grid .vcard:nth-child(2) { transition-delay: 0.06s; } .verdict-grid .vcard:nth-child(3) { transition-delay: 0.12s; } .verdict-grid .vcard:nth-child(4) { transition-delay: 0.18s; }

/* X mock */
.xmock { border: 2px solid var(--edge); border-radius: 22px; background: #000; color: #e7e9ea; padding: 6px 0; box-shadow: 8px 8px 0 var(--sh-soft); font-size: 14px; }
.xpost { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 16px; }
.xpost + .xpost { border-top: 1px solid #2f3336; }
.xpost .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6b5cff, #ff6fb5); }
.xpost .av.v { background: none; } .xpost .av img { width: 40px; height: 40px; border-radius: 50%; }
.xpost span { color: #71767b; font-size: 13px; }
.xpost p { margin: 4px 0 0; line-height: 1.45; }
.xpost .hl { color: #1d9bf0; }
.mono-s { font-family: var(--mono); font-size: 12px; }
.xpost.reply { opacity: 0; }
.how-visual.in .xpost.reply { animation: fadeUp 0.6s 0.9s forwards; }
.typing { clip-path: inset(0 100% 0 0); }
.how-visual.in .typing { animation: typeIn 2.4s 1.4s steps(60) forwards; }
@keyframes typeIn { to { clip-path: inset(0 0 0 0); } }
.xcard { margin-top: 10px; border: 1px solid #2f3336; border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; align-items: center; background: #16181c; opacity: 0; }
.how-visual.in .xcard { animation: pop 0.5s 3.8s forwards; }
.xcard i { font-style: normal; font-family: var(--head); font-weight: 700; font-size: 22px; color: #2fd47f; border-left: 5px solid #2fd47f; padding-left: 8px; }
.xcard span { font-family: var(--head); font-weight: 700; font-size: 20px; }

/* honest */
.honest { padding: 30px; background: var(--surface); }
.honest h2 { margin-bottom: 18px; }
.honest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.honest-grid p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.honest-grid b { display: block; color: var(--ink); font-family: var(--head); font-size: 16px; margin-bottom: 4px; }
.how-end { text-align: center; margin: 36px 0 10px; }

@media (max-width: 980px) {
  .how-hero, .how-split { grid-template-columns: 1fr; }
  .how-split.rev .how-text { order: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe-line { display: none; }
  .verdict-grid, .honest-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pipeline, .verdict-grid, .honest-grid, .jars { grid-template-columns: 1fr; }
  .wbar { grid-template-columns: 110px 1fr 40px; font-size: 12px; }
  .tl-coin { width: 36px; height: 36px; font-size: 10px; }
  .tl-coin.old { font-size: 8px; }
  .scoin i { font-size: 7.5px; padding: 2px 4px; }
  .formula { gap: 8px; padding: 18px 12px; }
  .fx { font-size: 14px; padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .scoin i, .scoin.top, .scan-beam, .scan-news, .drops i { animation: none !important; }
  .scoin i { transform: translateX(-50%) rotate(-8deg) scale(1); }
  .pstep, .fx, .op, .xpost.reply, .xcard { opacity: 1 !important; transform: none !important; animation: none !important; }
  .typing { clip-path: none !important; animation: none !important; }
  .wgrid i, .tl-coin { transform: scale(1) !important; animation: none !important; }
  .tl-coin { transform: translateX(-50%) !important; }
  .pipe-line span, .wbar i::after { transform: scaleX(1) !important; }
  .jar.real .fill { height: 62%; } .jar.bot .fill { height: 3%; }
}

/* X link: one tile splits into three on hover; only the TOP COIN one goes to X */
.xsplit { position: relative; width: 40px; height: 40px; flex: none; }
.xsplit::before { content: ""; position: absolute; left: -90px; right: -90px; top: -6px; height: 0; }
.xsplit:hover::before, .xsplit:focus-within::before { height: 140px; }
.xs-tile { position: absolute; inset: 0; border-radius: 12px; border: 2px solid var(--edge); background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--sh); text-decoration: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px); background-size: 7px 7px;
  transition: transform 0.5s cubic-bezier(0.3, 1.45, 0.45, 1), opacity 0.25s, background-color 0.25s, color 0.25s, box-shadow 0.15s; }
.xs-tile svg { width: 17px; height: 17px; fill: currentColor; }
.xs-l, .xs-r { opacity: 0; pointer-events: none; color: var(--muted); }
.xs-main { z-index: 2; }
.xs-main:hover { box-shadow: 1px 1px 0 var(--sh); }
.xs-tile em { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) rotate(-6deg) scale(0); font-family: var(--mono); font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.8px; padding: 3px 6px; border-radius: 6px; border: 1.5px solid var(--edge); white-space: nowrap; box-shadow: 2px 2px 0 var(--sh); pointer-events: none;
  transition: transform 0.35s 0.12s cubic-bezier(0.3, 1.7, 0.5, 1); }
.xs-l em, .xs-r em { background: #ffd6d0; color: #8a1c0c; }
.xs-main em { background: #c9efdd; color: #0d5a35; transform: translateX(-50%) rotate(4deg) scale(0); }
.xsplit:hover .xs-l, .xsplit:focus-within .xs-l { opacity: 1; pointer-events: auto; transform: translate(-62px, 46px) rotate(-12deg); }
.xsplit:hover .xs-r, .xsplit:focus-within .xs-r { opacity: 1; pointer-events: auto; transform: translate(62px, 46px) rotate(12deg); }
.xsplit:hover .xs-main, .xsplit:focus-within .xs-main { transform: translateY(58px) scale(1.12); background-color: var(--orange); color: #fff; border-color: var(--edge); }
.xsplit:hover .xs-tile em, .xsplit:focus-within .xs-tile em { transform: translateX(-50%) rotate(-6deg) scale(1); }
.xsplit:hover .xs-main em, .xsplit:focus-within .xs-main em { transform: translateX(-50%) rotate(4deg) scale(1); }
.xs-tile.nope { animation: xsNope 0.45s; }
@keyframes xsNope { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
@media (prefers-reduced-motion: reduce) { .xs-tile, .xs-tile em { transition: none; } .xs-tile.nope { animation: none; } }
/* Touch screens: no hover, so the tile is just the X link */
@media (hover: none) { .xsplit::before { display: none; } .xsplit .xs-l, .xsplit .xs-r { display: none; } .xsplit .xs-main, .xsplit:focus-within .xs-main { transform: none; background-color: var(--card); color: var(--ink); } .xsplit .xs-tile em { display: none; } }

/* Project contract address with copy button */
.ca-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 26px; padding: 7px 8px 7px 8px; border: 2px solid var(--edge); border-radius: 13px; background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--sh); cursor: pointer; font: inherit; text-align: left; transition: transform 0.15s, box-shadow 0.15s; animation: fadeUp 0.8s 0.8s both; }
.ca-pill:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh); }
.ca-pill .ca-k { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; background: var(--orange); color: #fff; border-radius: 7px; padding: 4px 7px; flex: none; }
.ca-pill code { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-pill .ca-short { display: none; }
.ca-pill .ca-copy { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700; border: 1.5px solid var(--edge); border-radius: 7px; padding: 4px 8px; background: var(--orange-soft); }
.ca-pill.copied .ca-copy { background: #c9efdd; color: #0d5a35; }
.ca-pill.small { margin-top: 0; animation: none; box-shadow: 2px 2px 0 var(--sh); }
.ca-pill.small code { font-size: 12px; }
@media (max-width: 640px) { .ca-pill .ca-full { display: none; } .ca-pill .ca-short { display: inline; } }
