/* ══════════════════════════════════════════════════════════════════
   Agent Check ($CHECK)
   ══════════════════════════════════════════════════════════════════ */

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
  p { text-wrap: pretty; }
  ul, ol { list-style: none; padding: 0; }
  dialog { border: 0; padding: 0; color: inherit; }
}

@layer base {
  :root {
    --bg:            #0a0708;
    --bg-soft:       #120d0e;
    --panel:         rgba(255, 255, 255, 0.032);
    --panel-2:       rgba(255, 255, 255, 0.055);
    --line:          rgba(255, 255, 255, 0.09);
    --line-soft:     rgba(255, 255, 255, 0.055);
    --text:          #e9edf6;
    --muted:         #8d96ad;
    --dim:           #616b83;

    /* Sampled straight off the PFP. */
    --blood:         #e00202;
    --ember:         #ff5a2c;
    --wine:          #7a0d14;

    /* The verdict scale stays semantic. Brand red and "this will rug you" red
       would be the same colour otherwise, and a safety tool cannot afford to
       make clean and guilty look alike. */
    --excellent:     #35c46a;
    --good:          #8fbf3a;
    --caution:       #e0a52a;
    --risky:         #f07023;
    --danger:        #ff2a1c;

    --radius:        18px;
    --radius-sm:     12px;
    --wrap:          1180px;

    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    /* Typewriter voice for labels: bold + uppercase + wide tracking is what
       gives it the case-file feel, not the family alone. */
    --type: "Courier New", "Courier", monospace;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
    --glow-red: 0 0 0 1px rgba(224, 2, 2, 0.3), 0 12px 44px -12px rgba(224, 2, 2, 0.5);
  }

  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
  }

  ::selection { background: var(--blood); color: #fff; }

  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: #0a0708; }
  ::-webkit-scrollbar-thumb { background: #2a1d1e; border-radius: 99px; border: 3px solid #0a0708; }
  ::-webkit-scrollbar-thumb:hover { background: #2a3145; }

  :focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; border-radius: 6px; }

  .wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

  @media (max-width: 640px) { .wrap { width: min(100% - 1.75rem, var(--wrap)); } }
}

/* ══════════════════════ ambience ══════════════════════ */
@layer components {
  .bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

  .bg-grid {
    position: absolute; inset: -50%;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 72%);
    transform: perspective(600px) rotateX(0deg);
  }

  .bg-orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
  .bg-orb--1 { width: 640px; height: 640px; top: -260px; left: -140px; background: radial-gradient(circle, rgba(224, 2, 2, 0.5), transparent 68%); animation: drift 26s ease-in-out infinite; }
  .bg-orb--2 { width: 720px; height: 720px; top: -180px; right: -220px; background: radial-gradient(circle, rgba(122, 13, 20, 0.55), transparent 68%); animation: drift 32s ease-in-out infinite reverse; }
  .bg-orb--3 { width: 560px; height: 560px; top: 46%; left: 40%; background: radial-gradient(circle, rgba(255, 90, 44, 0.2), transparent 70%); animation: drift 40s ease-in-out infinite; }

  @keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(60px, 50px, 0) scale(1.12); }
  }

  .bg-scan {
    position: absolute; inset-inline: 0; height: 240px; top: -240px;
    background: linear-gradient(180deg, transparent, rgba(224, 2, 2, 0.055), transparent);
    animation: sweep 9s linear infinite;
  }
  @keyframes sweep { to { transform: translateY(calc(100dvh + 240px)); } }

  .bg-noise {
    position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  }

  @media (prefers-reduced-motion: reduce) {
    .bg-orb, .bg-scan { animation: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  /* ══════════════════════ nav ══════════════════════ */
  .nav {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; gap: 1.5rem;
    width: min(100% - 2.5rem, var(--wrap)); margin: 0.6rem auto 0;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
    background: rgba(8, 10, 17, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(18px) saturate(160%);
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s, opacity 0.25s;
  }
  .nav.is-stuck { box-shadow: var(--shadow); border-color: rgba(224, 2, 2, 0.184); }

  .nav__brand { display: flex; align-items: center; gap: 0.55rem; }
  .nav__mark {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 1px solid rgba(224, 2, 2, 0.55);
    box-shadow: 0 0 12px rgba(224, 2, 2, 0.35);
  }
  .nav__mark img { width: 100%; height: 100%; object-fit: cover; }
  .nav__word { font-weight: 800; letter-spacing: -0.03em; font-size: 1.075rem; }
  .nav__sub { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.04em; text-transform: uppercase; }

  .nav__links { display: flex; gap: 0.5rem; margin-left: auto; }
  .nav__links a {
    padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--muted);
    font-family: var(--type); font-size: 0.95rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.13em;
    transition: color 0.2s, background 0.2s;
  }
  .nav__links a:hover { color: var(--text); background: var(--panel-2); }

  .nav__actions { display: flex; align-items: center; gap: 0.5rem; }

  @media (max-width: 860px) {
    .nav__sub { display: none; }
    .nav__links { display: none; }
  }

  /* Three action buttons plus the wordmark overflow a narrow phone. The PFP
     is the logo, so the name is what gives way — not a button. */
  @media (max-width: 560px) {
    .nav__word { display: none; }
    .nav__actions { gap: 0.35rem; }
    .btn--rpc { padding: 0.5rem 0.7rem; letter-spacing: 0.08em; }
  }

  /* ══════════════════════ buttons ══════════════════════ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.62rem 1.15rem; border-radius: 999px;
    font-size: 0.9rem; font-weight: 650; letter-spacing: -0.01em;
    border: 1px solid transparent; white-space: nowrap;
    transition: transform 0.15s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.2s;
  }
  .btn:active { transform: scale(0.97); }

  .btn--primary {
    background: linear-gradient(135deg, #ff2a1c, #e00202 55%, #a80505);
    color: #ffffff; box-shadow: 0 8px 30px -10px rgba(224, 2, 2, 0.635);
  }
  .btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(224, 2, 2, 0.799); transform: translateY(-1px); }

  .btn--ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
  .btn--ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.18); }

  .btn--icon { padding: 0.6rem; border-radius: 50%; color: var(--muted); background: var(--panel); border-color: var(--line); }
  .btn--icon:hover { color: var(--text); }

  /* Says what it is. A gear read as a sun and told nobody anything. */
  .btn--rpc {
    padding: 0.5rem 0.95rem;
    font-family: var(--type); font-size: 0.88rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.13em;
  }

  .btn--lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
  .btn[disabled] { opacity: 0.5; pointer-events: none; }

  .btn--scan {
    position: relative; overflow: hidden;
    padding: 0 1.7rem; height: 60px; flex-shrink: 0; gap: 0.7rem;
    background: linear-gradient(135deg, #ff2a1c, #e00202 55%, #a80505);
    color: #ffffff; font-weight: 800; font-size: 1rem; letter-spacing: 0.06em;
    border-radius: 14px;
    box-shadow: 0 10px 36px -12px rgba(224, 2, 2, 0.758);
  }
  .btn--scan::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%);
    transform: translateX(-120%);
  }
  .btn--scan:hover::after { animation: shine 0.9s ease; }
  @keyframes shine { to { transform: translateX(120%); } }
  .btn--scan.is-busy { pointer-events: none; }
  .btn--scan.is-busy .btn__label { opacity: 0.35; }
  .btn--scan svg { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)); }

  /* ══════════════════════ hero ══════════════════════ */
  .hero { padding: clamp(0.7rem, 2vw, 1.4rem) 0 2.5rem; text-align: center; }

  .hero__title { font-size: clamp(2.3rem, 7vw, 4.75rem); font-weight: 850; letter-spacing: -0.045em; }
  .hero__title .strike { position: relative; color: var(--muted); }
  .hero__title .strike::after {
    content: ''; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.09em;
    background: var(--danger); border-radius: 4px; box-shadow: 0 0 22px var(--danger);
    transform: rotate(-2.5deg) scaleX(0); transform-origin: left; animation: strike 0.7s 0.35s cubic-bezier(.2,.9,.3,1) forwards;
  }
  @keyframes strike { to { transform: rotate(-2.5deg) scaleX(1); } }
  /* The wordmark stands in for the word "Get", so it has to sit on the text
     baseline like a word rather than float like an image.

     The artwork is slanted upward to the right, and the K — the letter that
     butts against "the score first." — has its baseline at just 50.6% of the
     image height; the remaining half is swoosh and glow. So the bottom margin
     is pulled down by roughly half the image height to bring that K down onto
     the text baseline, rather than the small nudge the padding would suggest. */
  .hero__title .hero__wordmark {
    display: inline-block; vertical-align: baseline;
    /* Tighter cropping raised the aspect ratio from 2.17 to 2.82, so the same
       height is now ~30% wider — hence the modest number for a bigger mark.
       The K's baseline sits at 50.4% of the image, so half the height is
       pulled below the text baseline to line them up. */
    height: 1.8em; width: auto;
    margin: 0 -0.24em -0.88em -0.16em;
    filter: drop-shadow(0 0 12px rgba(224, 2, 2, 0.2));
  }

  .hero__title .grad {
    background: linear-gradient(100deg, #ff5a2c 0%, #ff2a1c 38%, #e00202 68%, #8f0f14 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  .hero__lede {
    max-width: 68ch; margin: 1.25rem auto 0; color: var(--muted);
    font-size: clamp(0.9rem, 1.35vw, 1rem);
  }
  .hero__lede strong { color: var(--text); }

  /* Where the "21 on-chain checks" badge used to sit. The detective
     introduces the product faster than a sentence did. */
  .hero__pfp {
    width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 0.6rem;
    border: 2px solid rgba(224, 2, 2, 0.307);
    box-shadow: 0 0 0 6px rgba(224, 2, 2, 0.07), 0 18px 50px -18px rgba(224, 2, 2, 0.75);
    animation: floaty 5.5s ease-in-out infinite;
  }
  @keyframes floaty { 50% { transform: translateY(-7px); } }
  @media (max-width: 560px) { .hero__pfp { width: 100px; height: 100px; margin-bottom: 0.5rem; } }

  /* ── scanner ── */
  .scanner { max-width: 800px; margin: 2.6rem auto 0; }

  .scanner__form { display: flex; gap: 0.7rem; }

  .scanner__field {
    position: relative; flex: 1; display: flex; align-items: center; gap: 0.7rem;
    height: 60px; padding: 0 0.6rem 0 1.05rem;
    background: rgba(10, 13, 21, 0.85); border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(14px);
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .scanner__field:focus-within {
    border-color: rgba(224, 2, 2, 0.471);
    box-shadow: 0 0 0 4px rgba(224, 2, 2, 0.1), 0 16px 50px -20px rgba(224, 2, 2, 0.43);
  }
  .scanner__icon { color: var(--dim); flex-shrink: 0; }
  .scanner__input {
    flex: 1; min-width: 0; background: none; border: 0; outline: 0;
    font-family: var(--mono); font-size: 0.92rem; letter-spacing: -0.01em;
  }
  .scanner__input::placeholder { color: var(--dim); font-family: var(--sans); letter-spacing: 0; }
  .scanner__paste {
    padding: 0.35rem 0.7rem; border-radius: 8px; font-size: 0.76rem; font-weight: 600;
    color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-soft);
  }
  .scanner__paste:hover { color: var(--text); }

  .scanner__meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-top: 0.9rem;
  }
  .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
  .chips__label { font-family: var(--type); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-right: 0.2rem; }
  .chip {
    padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .chip:hover { color: var(--blood); border-color: rgba(224, 2, 2, 0.348); background: rgba(224, 2, 2, 0.06); }

  .scanner__hist { display: flex; gap: 0.4rem; align-items: center; }
  .scanner__hist .chip { font-family: var(--mono); font-size: 0.72rem; }

  .scanner__error {
    margin-top: 0.9rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    background: rgba(255, 61, 99, 0.09); border: 1px solid rgba(255, 61, 99, 0.32);
    color: #ffb3c2; font-size: 0.88rem; text-align: left;
  }

  /* ── progress ── */
  .progress { max-width: 800px; margin: 1.4rem auto 0; }
  .progress__bar { height: 3px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
  .progress__fill {
    height: 100%; width: 0%; border-radius: 99px;
    background: linear-gradient(90deg, #e00202, #ff5a2c);
    box-shadow: 0 0 16px rgba(224, 2, 2, 0.676);
    transition: width 0.45s cubic-bezier(.4, 0, .2, 1);
  }
  .progress__steps {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin-top: 0.9rem;
    font-family: var(--type); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
  }
  .progress__steps li { display: flex; align-items: center; gap: 0.42rem; transition: color 0.3s; }
  .progress__steps i {
    width: 7px; height: 7px; border-radius: 50%; background: #232a3a; flex-shrink: 0; transition: all 0.3s;
  }
  .progress__steps li.running { color: var(--text); }
  .progress__steps li.running i { background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 90, 44, 0.18); animation: pulse2 1s infinite; }
  .progress__steps li.done { color: var(--muted); }
  .progress__steps li.done i { background: var(--excellent); }
  .progress__steps li.failed { color: var(--danger); }
  .progress__steps li.failed i { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 61, 99, 0.18); }
  @keyframes pulse2 { 50% { opacity: 0.35; } }

  /* ── what gets checked (empty state) ── */
  .capsules {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    margin: 2.4rem auto 0; max-width: 860px;
  }
  .capsules li {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px;
    font-size: 0.82rem; color: var(--muted);
    background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.25s, border-color 0.25s, transform 0.25s;
  }
  .capsules li:hover { color: var(--text); border-color: var(--line); transform: translateY(-2px); }
  .capsules li span {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); color: var(--muted);
  }
  /* The one nobody else does — worth pointing at. */
  .capsules__star {
    color: #ffb3ad !important;
    border-color: rgba(224, 2, 2, 0.282) !important;
    background: rgba(224, 2, 2, 0.07) !important;
  }
  .capsules__star span { background: rgba(224, 2, 2, 0.151); color: var(--blood); }

  /* ── sticky score bar ── */
  .stickybar {
    position: fixed; left: 0; right: 0; top: 0; z-index: 55;
    background: rgba(8, 10, 17, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(160%);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1);
  }
  .stickybar.show { transform: none; }
  .stickybar__inner { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; }

  .stickybar__score {
    display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 0.55rem;
    border-radius: 10px; font-weight: 820; font-size: 1.08rem; letter-spacing: -0.03em;
    color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  }
  .stickybar__id { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
  .stickybar__id b { font-weight: 750; font-size: 0.94rem; }
  .stickybar__id code { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); }
  .stickybar__copy { color: var(--dim); display: grid; place-items: center; }
  .stickybar__copy:hover { color: var(--blood); }

  .stickybar__stats { display: flex; gap: 0.4rem; margin-left: auto; flex-wrap: wrap; }
  .stickybar__stats span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.75rem;
    background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted);
  }
  .stickybar__stats b { color: var(--text); font-weight: 650; }
  .stickybar__stats .hot { color: #ff9db0; border-color: rgba(255, 61, 99, 0.3); background: rgba(255, 61, 99, 0.08); }
  .stickybar__stats .hot b { color: var(--danger); }

  .stickybar__top {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft); flex-shrink: 0;
  }
  .stickybar__top:hover { color: var(--blood); border-color: rgba(224, 2, 2, 0.307); }

  @media (max-width: 700px) {
    .stickybar__id code { display: none; }
    .stickybar__stats span:nth-child(n + 3) { display: none; }
  }

  /* ── stats strip ── */
  .hero__stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: 3.2rem; padding-top: 2.2rem; border-top: 1px solid var(--line-soft);
  }
  .stat { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
  .stat b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em;
    background: linear-gradient(160deg, #fff, #7f8ba5); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .stat span { font-family: var(--type); font-size: 0.68rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.16em; }

  /* ══════════════════════ report ══════════════════════ */
  .report { padding: 1rem 0 4rem; scroll-margin-top: 90px; }
  .report[hidden] { display: none; }

  .panel {
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.15rem, 3vw, 1.7rem); margin-top: 1.1rem;
    backdrop-filter: blur(10px);
  }
  .panel__head { margin-bottom: 1.15rem; }
  .panel__head h3 { font-size: 1.12rem; font-weight: 750; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
  .panel__head p { margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); max-width: 75ch; }

  .panel__head--icon { display: flex; align-items: flex-start; gap: 0.8rem; }
  .panel__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(224, 2, 2, 0.1); border: 1px solid rgba(224, 2, 2, 0.2);
    color: var(--blood);
  }

  .grid-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
  .grid-2 > .panel { margin-top: 1.1rem; }
  @media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .grid-2 > .panel + .panel { margin-top: 0; } }

  /* ── token identity card ── */
  .tokencard {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
    padding: 1.15rem 1.35rem; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
    border: 1px solid var(--line);
  }
  .tokencard__logo {
    width: 62px; height: 62px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
    background: var(--panel-2); border: 1px solid var(--line);
  }
  .tokencard__logo--ph { display: grid; place-items: center; font-weight: 800; font-size: 1.35rem; color: var(--dim); }
  .tokencard__id { min-width: 0; flex: 1 1 240px; }
  .tokencard__name { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
  .tokencard__name h2 { font-size: 1.4rem; font-weight: 800; }
  .tokencard__sym { font-family: var(--mono); font-size: 0.82rem; color: var(--blood); background: rgba(224, 2, 2, 0.1);
    border: 1px solid rgba(224, 2, 2, 0.225); padding: 0.1rem 0.5rem; border-radius: 6px; }
  .tokencard__ca {
    display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem;
    font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  }
  .tokencard__ca button { color: var(--dim); display: grid; place-items: center; }
  .tokencard__ca button:hover { color: var(--blood); }

  /* Market numbers are the first thing anyone looks for — give them room. */
  .tokencard__nums {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto;
  }
  .kv {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.5rem 0.85rem; border-radius: 12px;
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-soft);
    min-width: 5.5rem;
  }
  .kv b { font-size: 1.22rem; font-weight: 760; letter-spacing: -0.035em; line-height: 1.1; }
  .kv span { font-family: var(--type); font-size: 0.62rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; }
  .kv.up b { color: var(--excellent); } .kv.down b { color: var(--danger); } .kv.warn b { color: var(--caution); }

  .tokencard__links { display: flex; gap: 0.4rem; flex-wrap: wrap; width: 100%; }
  /* Recognisable marks beat a row of words: people scan for the logo shape. */
  .linkicon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
  }
  .linkicon:hover {
    color: var(--blood); border-color: rgba(224, 2, 2, 0.332);
    background: rgba(224, 2, 2, 0.08); transform: translateY(-1px);
  }
  .linkpill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.28rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
  }
  .linkpill:hover { color: var(--text); border-color: var(--line); }

  /* ── headline alert ── */
  .alert {
    display: flex; align-items: flex-start; gap: 0.95rem;
    padding: 1.05rem 1.25rem; border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--tone) 42%, transparent);
    background:
      linear-gradient(100deg, color-mix(in srgb, var(--tone) 16%, transparent), color-mix(in srgb, var(--tone) 5%, transparent)),
      rgba(10, 13, 21, 0.7);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 12%, transparent),
                0 18px 50px -26px color-mix(in srgb, var(--tone) 70%, transparent);
    position: relative; overflow: hidden;
  }
  .alert--danger { --tone: var(--danger); }
  .alert--warn { --tone: var(--caution); }
  .alert--good { --tone: var(--excellent); }

  .alert::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone);
  }
  .alert--danger::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--tone) 20%, transparent), transparent 70%);
    animation: alertPulse 2.6s ease-in-out infinite;
  }
  @keyframes alertPulse { 50% { opacity: 0.35; } }

  .alert__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: color-mix(in srgb, var(--tone) 18%, transparent);
    color: var(--tone);
  }
  .alert__body { min-width: 0; }
  .alert__body b {
    display: block; font-size: 1.06rem; font-weight: 780; letter-spacing: -0.02em; color: var(--tone);
  }
  .alert__body span { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted); }

  @media (max-width: 560px) {
    .alert { padding: 0.9rem 1rem; gap: 0.7rem; }
    .alert__icon { width: 32px; height: 32px; border-radius: 10px; }
    .alert__body b { font-size: 0.96rem; }
    .alert__body span { font-size: 0.84rem; }
  }

  /* ── verdict ── */
  .verdict {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.4rem); align-items: center;
    margin-top: 1.1rem; padding: clamp(1.15rem, 2.8vw, 1.6rem);
    border-radius: var(--radius); border: 1px solid var(--line);
    background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 62%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
    position: relative; overflow: hidden;
  }
  .verdict::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 90px -30px var(--tone);
  }
  @media (max-width: 760px) { .verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

  .gauge { position: relative; width: 176px; height: 176px; flex-shrink: 0; }
  .gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .gauge__track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 13; stroke-linecap: round; }
  .gauge__value {
    fill: none; stroke: var(--tone); stroke-width: 13; stroke-linecap: round;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tone) 70%, transparent));
    transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1);
  }
  .gauge__inner {
    position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  }
  .gauge__num { font-size: 3.1rem; font-weight: 850; letter-spacing: -0.055em; line-height: 1; color: var(--tone);
    font-variant-numeric: tabular-nums; }
  .gauge__den { font-size: 0.66rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.16em; margin-top: 0.3rem; }

  .verdict__body { min-width: 0; }

  /* Reusable hover tip. Declared before its users so a more specific
     `position` on an element that also carries `.tip` still wins. */
  .tip { position: relative; }
  .tip::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 30;
    width: max-content; max-width: 15rem;
    padding: 0.5rem 0.7rem; border-radius: 10px;
    background: #0d1119; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 0.76rem; font-weight: 400; line-height: 1.4; color: var(--muted);
    text-align: left; text-transform: none; letter-spacing: 0;
    opacity: 0; pointer-events: none; transform: translateY(-4px);
    transition: opacity 0.18s, transform 0.18s;
  }
  .tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: none; }

  /* Coverage badge — parked in the corner so it informs without competing. */
  .verdict__checks {
    position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
    display: grid; place-content: center; justify-items: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
    cursor: help; transition: border-color 0.2s, background 0.2s;
  }
  .verdict__checks:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: rgba(0,0,0,.45); }
  .verdict__checks b { font-size: 1.2rem; font-weight: 800; line-height: 1; color: var(--text); }
  .verdict__checks span { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-top: 0.15rem; }
  .verdict__grade {
    display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem;
    padding: 0.3rem 0.55rem 0.3rem 0.3rem; border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  }
  .verdict__grade i {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--tone); color: #05060a; font-style: normal; font-weight: 850; font-size: 0.88rem;
  }
  .verdict__grade span { font-size: 0.82rem; font-weight: 700; color: var(--tone); letter-spacing: 0.02em; padding-right: 0.35rem; }
  .verdict__title { font-size: clamp(1.4rem, 3.4vw, 1.85rem); font-weight: 820; letter-spacing: -0.035em; padding-right: 4.5rem; }
  .verdict__line { margin-top: 0.4rem; color: var(--muted); font-size: 0.98rem; }

  .verdict__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
  .metapill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.72rem; border-radius: 999px; font-size: 0.76rem;
    background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted);
  }
  .metapill b { color: var(--text); font-weight: 650; }

  /* Counts expand into the list behind them, so the summary stays short. */
  .metapill--toggle {
    cursor: pointer;
    border-color: color-mix(in srgb, var(--tone) 30%, transparent);
    background: color-mix(in srgb, var(--tone) 9%, transparent);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
  }
  .metapill--toggle:hover { background: color-mix(in srgb, var(--tone) 16%, transparent); transform: translateY(-1px); }
  .metapill--toggle b { color: var(--tone); }
  .metapill__ico { display: grid; place-items: center; color: var(--tone); }
  .metapill__chev { display: grid; place-items: center; color: var(--dim); transform: rotate(90deg); transition: transform 0.22s; }
  .metapill--toggle[aria-expanded='true'] { background: color-mix(in srgb, var(--tone) 18%, transparent); }
  .metapill--toggle[aria-expanded='true'] .metapill__chev { transform: rotate(-90deg); }

  .verdict__drawer {
    margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
    max-height: 15rem; overflow-y: auto;
    animation: drawerIn 0.22s ease;
  }
  @keyframes drawerIn { from { opacity: 0; transform: translateY(-5px); } }
  .verdict__drawer li { display: flex; gap: 0.55rem; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
  .verdict__drawer li + li { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid var(--line-soft); }
  .verdict__drawer li i { flex-shrink: 0; font-style: normal; color: var(--tone); font-weight: 700; }
  .verdict__drawer li b { display: block; color: var(--text); font-weight: 620; }

  .ceiling {
    margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    background: rgba(255, 61, 99, 0.08); border: 1px solid rgba(255, 61, 99, 0.3);
  }
  .ceiling h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #ff8ca3; margin-bottom: 0.4rem; }
  .ceiling li { font-size: 0.85rem; color: #ffc9d4; display: flex; gap: 0.5rem; }
  .ceiling li + li { margin-top: 0.28rem; }
  .ceiling li::before { content: '▸'; color: var(--danger); }

  /* ── flags ── */
  /* align-items:start so an empty "Critical: none" box does not stretch to
     match a full column of warnings and leave a dead rectangle. */
  .flags {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem; margin-top: 1.1rem; align-items: start;
  }
  .flagbox { border-radius: var(--radius); border: 1px solid var(--line); padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
  .flagbox h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 0.85rem; }
  .flagbox--bad h4 { color: var(--danger); }
  .flagbox--warn h4 { color: var(--caution); }
  .flagbox--good h4 { color: var(--excellent); }
  .flagbox h4 svg { flex-shrink: 0; }
  .flagbox h4 em { margin-left: auto; font-style: normal; color: var(--dim); font-size: 0.78rem; letter-spacing: 0; }
  .flagbox li { display: flex; gap: 0.55rem; font-size: 0.87rem; line-height: 1.45; color: var(--muted); }
  .flagbox li + li { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
  .flagbox li b { color: var(--text); font-weight: 620; display: block; }
  .flagbox li i { flex-shrink: 0; margin-top: 0.18rem; font-style: normal; }
  .flagbox--bad li i { color: var(--danger); }
  .flagbox--warn li i { color: var(--caution); }
  .flagbox--good li i { color: var(--excellent); }
  .flagbox--empty { color: var(--dim); font-size: 0.85rem; }

  /* ── categories ── */
  .cats { display: grid; gap: 0.85rem; }
  .cat { display: grid; grid-template-columns: 30px 1fr auto; gap: 0.8rem; align-items: center; }
  .cat__icon { color: var(--muted); display: grid; place-items: center; }
  .cat__body { min-width: 0; }
  .cat__top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
  .cat__label { font-weight: 650; font-size: 0.94rem; }
  .cat__blurb { font-size: 0.78rem; color: var(--dim); }
  .cat__bar { height: 8px; margin-top: 0.42rem; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
  .cat__fill { height: 100%; width: 0; border-radius: 99px; background: var(--tone);
    box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 65%, transparent);
    transition: width 1.1s cubic-bezier(.16, 1, .3, 1); }
  .cat__score { font-family: var(--mono); font-size: 0.95rem; font-weight: 700; color: var(--tone); min-width: 3.4rem; text-align: right; }
  .cat__score small { color: var(--dim); font-weight: 400; }

  /* ── checks ── */
  .checks { display: grid; gap: 0.5rem; }
  .checkgroup__title {
    font-family: var(--type); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim);
    margin: 0.9rem 0 0.15rem; padding-left: 0.15rem;
  }
  .checkgroup__title:first-child { margin-top: 0; }

  .check {
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(255,255,255,.02);
    overflow: hidden; transition: border-color 0.2s, background 0.2s;
  }
  .check:hover { border-color: var(--line); background: rgba(255,255,255,.035); }
  .check > summary {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.72rem 0.9rem; cursor: pointer; list-style: none;
  }
  .check > summary::-webkit-details-marker { display: none; }
  .check__badge {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
    background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone);
  }
  .check__label { font-size: 0.9rem; font-weight: 600; }
  .check__detail { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
  .check__mid { min-width: 0; flex: 1; }
  .check__pts { font-family: var(--mono); font-size: 0.76rem; color: var(--dim); white-space: nowrap; }
  .check__chev { color: var(--dim); transition: transform 0.25s; flex-shrink: 0; }
  .check[open] .check__chev { transform: rotate(90deg); }
  .check__more { padding: 0 0.9rem 0.9rem 3.4rem; }
  .check__why { font-size: 0.85rem; color: var(--muted); }
  .check__ev {
    display: inline-block; margin-top: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 8px;
    font-family: var(--mono); font-size: 0.74rem; color: #ffb3ad;
    background: rgba(224, 2, 2, 0.06); border: 1px solid rgba(224, 2, 2, 0.151);
    max-width: 100%; overflow-x: auto; white-space: nowrap;
  }

  /* ── holders ── */
  .holders { display: grid; gap: 0.42rem; }
  .holder { display: grid; grid-template-columns: 1.7rem 1fr auto; gap: 0.65rem; align-items: center;
    padding: 0.42rem 0.5rem; border-radius: 9px; transition: background 0.2s; }
  .holder:hover { background: rgba(255,255,255,.035); }
  .holder__rank { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); text-align: right; }
  .holder__who { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
  .holder__addr { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
  .holder__addr:hover { color: var(--blood); }
  .tag {
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.1rem 0.42rem; border-radius: 5px; white-space: nowrap;
  }
  .tag--pool { background: rgba(242, 236, 225, 0.09); color: var(--muted); }
  .tag--lock { background: rgba(53, 196, 106, 0.15); color: var(--excellent); }
  .tag--burn { background: rgba(255,61,99,.14); color: #ff9db0; }
  .tag--program { background: rgba(255,255,255,.08); color: var(--muted); }
  .tag--frozen { background: rgba(59,130,246,.18); color: #93c5fd; }
  .holder__pct { font-family: var(--mono); font-size: 0.82rem; font-weight: 650; text-align: right; min-width: 4.2rem; }
  .holder__meter { grid-column: 2 / -1; height: 4px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: -0.15rem; }
  .holder__meter i { display: block; height: 100%; border-radius: 99px; background: var(--tone); }

  .holders__sum { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }

  /* ── market ── */
  .market { display: grid; gap: 0.9rem; }
  .marketgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 0.75rem; }
  .marketgrid .kv { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); min-width: 0; }
  .kv i { display: block; color: var(--dim); margin-bottom: 0.1rem; }

  .simbox { padding: 0.9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: rgba(255,255,255,.025); }
  .simbox__head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 650; margin-bottom: 0.7rem; }
  .simflow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.8rem; }
  .simflow span { padding: 0.32rem 0.6rem; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); }
  .simflow em { color: var(--dim); font-style: normal; }
  .simflow .ok { color: var(--excellent); border-color: rgba(53, 196, 106, 0.32); background: rgba(53, 196, 106, 0.08); }
  .simflow .bad { color: var(--danger); border-color: rgba(255,61,99,.32); background: rgba(255,61,99,.08); }
  .simbox__note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }

  .dexlist { display: flex; flex-wrap: wrap; gap: 0.4rem; }

  .launch__cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; }
  .launch__cta .btn { flex: 1 1 auto; }

  /* ── report actions ── */
  .report__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 1.2rem; }
  .report__sources { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .srcpill { font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 6px; font-family: var(--mono);
    border: 1px solid var(--line-soft); color: var(--dim); }
  .srcpill.on { color: var(--excellent); border-color: rgba(53, 196, 106, 0.3); background: rgba(53, 196, 106, 0.07); }

  .report__disclaimer {
    margin-top: 1.3rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.025); border: 1px solid var(--line-soft);
    font-size: 0.84rem; color: var(--muted);
  }
  .report__disclaimer strong { color: var(--caution); }

  /* ══════════════════════ sections ══════════════════════ */
  .section { padding: clamp(4rem, 10vw, 7rem) 0; scroll-margin-top: 90px; }
  .section--token { background:
      radial-gradient(90% 60% at 50% 0%, rgba(224, 2, 2, 0.1), transparent 70%); }

  .section__head { max-width: 68ch; margin-bottom: 2.6rem; }
  .eyebrow {
    display: inline-block; font-family: var(--type); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--blood); margin-bottom: 0.7rem;
  }
  .section__head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 830; letter-spacing: -0.04em; }
  .section__head p { margin-top: 0.85rem; color: var(--muted); font-size: 1.02rem; }

  /* ── criteria grid ── */
  .crit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 1rem; }
  .crit {
    padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s;
  }
  .crit:hover { transform: translateY(-3px); border-color: rgba(224, 2, 2, 0.25); }
  .crit::after {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(70% 60% at 50% 0%, rgba(224, 2, 2, 0.1), transparent 70%);
  }
  .crit:hover::after { opacity: 1; }
  .crit__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
  .crit__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: rgba(224, 2, 2, 0.1); border: 1px solid rgba(224, 2, 2, 0.2); color: var(--blood); }
  .crit__head h4 { font-size: 1rem; font-weight: 720; }
  .crit__head em { font-style: normal; font-size: 0.72rem; color: var(--dim); display: block; margin-top: 0.12rem; }
  .crit__w { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--blood); }
  .crit ul li { position: relative; padding-left: 1.1rem; font-size: 0.86rem; color: var(--muted); }
  .crit ul li + li { margin-top: 0.5rem; }
  .crit ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px;
    border-radius: 50%; background: var(--blood); opacity: 0.65; }
  .crit ul li b { color: var(--text); font-weight: 620; }

  /* ── method ── */
  .method { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem 2rem; margin-top: 3rem;
    padding-top: 2.4rem; border-top: 1px solid var(--line-soft); }
  .method h4 { font-size: 1rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.55rem; }
  .method .num { font-family: var(--mono); font-size: 0.78rem; color: var(--blood); }
  .method p { margin-top: 0.45rem; font-size: 0.88rem; color: var(--muted); }
  .method em { color: var(--text); font-style: normal; }

  /* ── scale ── */
  .scale { margin-top: 3rem; }
  .scale h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 0.85rem; }
  .scale__bar { display: flex; gap: 4px; }
  .scale__seg { flex: 1; padding: 0.75rem 0.6rem; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
  .scale__seg b { display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--c); }
  .scale__seg span { font-size: 0.74rem; color: var(--muted); }
  @media (max-width: 720px) { .scale__bar { flex-wrap: wrap; } .scale__seg { flex: 1 1 30%; } }

  /* ══════════════════════ token panel ══════════════════════ */
  .tokenpanel { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1rem; }
  @media (max-width: 900px) { .tokenpanel { grid-template-columns: 1fr; } }

  .tokenpanel__main, .tokenpanel__side {
    padding: clamp(1.3rem, 3vw, 1.9rem); border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  }
  .tokenpanel__main { border-color: rgba(224, 2, 2, 0.2); box-shadow: 0 30px 80px -40px rgba(224, 2, 2, 0.43); }

  .tokenpanel__id { display: flex; align-items: center; gap: 0.95rem; }
  .tokenlogo {
    width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(150deg, rgba(224, 2, 2, 0.22), rgba(122, 13, 20, 0.3));
    border: 1px solid rgba(224, 2, 2, 0.266); color: var(--blood);
    box-shadow: 0 0 40px -12px rgba(224, 2, 2, 0.594);
  }
  .tokenlogo img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; }
  .tokenpanel__id h3 { font-size: 1.6rem; font-weight: 840; letter-spacing: -0.035em; }
  .tokenpanel__id p { font-size: 0.83rem; color: var(--muted); }
  .tokenpanel__selfscore { margin-left: auto; text-align: center; padding: 0.4rem 0.8rem; border-radius: 12px;
    background: rgba(224, 2, 2, 0.09); border: 1px solid rgba(224, 2, 2, 0.25); }
  .tokenpanel__selfscore b { display: block; font-size: 1.5rem; font-weight: 850; color: var(--blood); line-height: 1; }
  .tokenpanel__selfscore span { font-size: 0.63rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.09em; }

  .ca {
    display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
    margin-top: 1.3rem; padding: 0.85rem 0.85rem 0.85rem 1rem;
    border-radius: var(--radius-sm); background: rgba(0,0,0,.35); border: 1px dashed rgba(224, 2, 2, 0.266);
  }
  .ca__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--dim); width: 100%; }
  .ca__value { font-family: var(--mono); font-size: 0.82rem; color: var(--blood); word-break: break-all; flex: 1; min-width: 0; }
  .ca__copy { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 9px;
    font-size: 0.78rem; font-weight: 650; color: #ffffff; background: var(--blood); }
  .ca__copy[disabled] { opacity: 0.35; pointer-events: none; }

  .tokenpanel__cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.2rem; }
  .tokenpanel__note { margin-top: 1rem; font-size: 0.8rem; color: var(--dim); }
  .tokenpanel__note strong { color: var(--caution); }

  .tokenpanel__side h4 { font-size: 1rem; font-weight: 720; margin-bottom: 0.9rem; }
  .ticks li { position: relative; padding-left: 1.6rem; font-size: 0.87rem; color: var(--muted); }
  .ticks li + li { margin-top: 0.7rem; }
  .ticks li::before {
    content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 0.66rem; font-weight: 800;
    background: rgba(224, 2, 2, 0.135); color: var(--blood);
  }
  .tokenpanel__stats { display: flex; gap: 1.4rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
  .tokenpanel__stats b { display: block; font-size: 1.05rem; font-weight: 780; }
  .tokenpanel__stats span { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

  /* ── roadmap ── */
  .roadmap { margin-top: 3rem; }
  .roadmap h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 1.1rem; }
  .roadmap__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; counter-reset: r; }
  .roadmap__list li {
    padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
    background: rgba(255,255,255,.022); position: relative;
  }
  .roadmap__list li.done { border-color: rgba(224, 2, 2, 0.25); background: rgba(224, 2, 2, 0.045); }
  .roadmap__list b { display: block; font-size: 0.85rem; font-weight: 720; margin-bottom: 0.3rem; }
  .roadmap__list li.done b { color: var(--blood); }
  .roadmap__list span { font-size: 0.82rem; color: var(--muted); }

  /* ── faq ── */
  .faq { display: grid; gap: 0.6rem; max-width: 900px; }
  .faq details {
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(255,255,255,.022);
    transition: border-color 0.2s, background 0.2s;
  }
  .faq details:hover { border-color: var(--line); }
  .faq details[open] { background: rgba(255,255,255,.038); border-color: rgba(224, 2, 2, 0.2); }
  .faq summary {
    padding: 1rem 1.2rem; cursor: pointer; font-weight: 640; font-size: 0.98rem; list-style: none;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--blood); font-weight: 400;
    transition: transform 0.25s; line-height: 1;
  }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq p { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: 0.9rem; max-width: 80ch; }
  .faq code { font-family: var(--mono); font-size: 0.84em; color: var(--blood);
    background: rgba(224, 2, 2, 0.08); padding: 0.1rem 0.35rem; border-radius: 5px; }

  /* ══════════════════════ footer ══════════════════════ */
  .footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 2.5rem; background: rgba(0,0,0,.35); }
  .footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
  .footer__brand { display: flex; align-items: center; gap: 0.5rem; color: var(--blood); font-size: 1rem; }
  .footer__brand b { color: var(--text); font-weight: 800; }
  .footer__brand span { color: var(--dim); font-weight: 400; font-size: 0.85rem; }
  .footer__note { margin-top: 0.55rem; font-size: 0.82rem; color: var(--dim); max-width: 52ch; }
  .footer__links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .footer__legal { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
  .footer__legal p { font-size: 0.76rem; color: #4d566b; max-width: 90ch; }

  /* ══════════════════════ modal + toast ══════════════════════ */
  .modal { max-width: 520px; width: calc(100% - 2.5rem); background: transparent; }
  .modal::backdrop { background: rgba(3, 4, 8, 0.78); backdrop-filter: blur(6px); }
  .modal__inner {
    padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, #0d1119, #080a11); box-shadow: var(--shadow);
  }
  .modal h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 1.2rem; }
  .field { display: block; }
  .field > span { display: block; font-size: 0.8rem; font-weight: 620; margin-bottom: 0.4rem; }
  .field input {
    width: 100%; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
    background: rgba(0,0,0,.4); border: 1px solid var(--line); outline: 0;
    font-family: var(--mono); font-size: 0.82rem;
  }
  .field input:focus { border-color: rgba(224, 2, 2, 0.43); }
  .field small { display: block; margin-top: 0.45rem; font-size: 0.76rem; color: var(--dim); }
  .presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
  .switch { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.3rem; cursor: pointer; }
  .switch input { width: 18px; height: 18px; accent-color: var(--blood); margin-top: 0.15rem; flex-shrink: 0; }
  .switch span { font-size: 0.86rem; font-weight: 620; }
  .switch small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--dim); margin-top: 0.2rem; }
  .modal__actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1.6rem; }

  .toast {
    position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 140%);
    padding: 0.7rem 1.15rem; border-radius: 999px; z-index: 99;
    background: rgba(13, 17, 25, 0.96); border: 1px solid rgba(224, 2, 2, 0.307); color: var(--text);
    font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow); backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1); pointer-events: none;
  }
  .toast.show { transform: translate(-50%, 0); }
}

@layer utilities {
  /* ══════════════════════ phones ══════════════════════
     Most people paste a CA from their phone, usually while a chat is telling
     them to hurry. Everything below keeps the scanner and the verdict usable
     at 390px without horizontal scrolling. */
  @media (max-width: 560px) {
    .scanner__form { flex-direction: column; }
    .btn--scan { width: 100%; height: 54px; }
    .scanner__field { height: 54px; }
    .scanner__meta { flex-direction: column; align-items: flex-start; gap: 0.55rem; }

    .hero { padding-top: 1rem; }
    .hero__stats { gap: 1.25rem 2rem; }
    .stat b { font-size: 1.35rem; }

    .tokencard { padding: 1rem; gap: 0.85rem; }
    .tokencard__logo { width: 48px; height: 48px; }
    .tokencard__nums {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 0.4rem; margin-left: 0; width: 100%;
    }
    .kv { min-width: 0; padding: 0.45rem 0.5rem; align-items: center; text-align: center; }
    .kv b { font-size: 1rem; }
    .kv span { font-size: 0.58rem; letter-spacing: 0.06em; }
    .linkicon { width: 38px; height: 38px; }
    .panel__icon { width: 32px; height: 32px; border-radius: 9px; }
    .verdict__drawer { max-height: 12rem; }

    .gauge { width: 148px; height: 148px; }
    .gauge__num { font-size: 2.6rem; }
    .verdict { padding: 1rem; }
    .verdict__meta { justify-content: center; }
    .verdict__title { padding-right: 0; }
    .verdict__checks { width: 48px; height: 48px; top: 0.6rem; right: 0.6rem; }
    .verdict__checks b { font-size: 1rem; }
    .tip::after { max-width: 12rem; font-size: 0.72rem; }

    /* Check rows: let the description wrap instead of squeezing the score out. */
    .check > summary { flex-wrap: wrap; padding: 0.7rem 0.75rem; }
    .check__mid { flex: 1 1 100%; order: 3; }
    .check__more { padding-left: 0.75rem; }

    .holder { grid-template-columns: 1.4rem 1fr auto; gap: 0.45rem; }
    .holder__addr { font-size: 0.74rem; }
    .holder__pct { font-size: 0.76rem; min-width: 3.4rem; }
    .tag { font-size: 0.6rem; padding: 0.08rem 0.32rem; }

    .panel { padding: 1rem 0.85rem; }
    .report__actions { gap: 0.45rem; }
    .report__sources { margin-left: 0; width: 100%; }

    .launch__cta { flex-direction: column; }
    .launch__cta .btn { width: 100%; }

    .ca__value { font-size: 0.72rem; }
    .tokenpanel__cta { flex-direction: column; }
    .tokenpanel__cta .btn { width: 100%; }
    .tokenpanel__id { flex-wrap: wrap; }
    .tokenpanel__selfscore { margin-left: 0; }
  }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
  .spinner {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3);
    border-top-color: #ffffff; animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  [hidden] { display: none !important; }
  /* Keeps a closing phrase from splitting across two lines. */
  .nowrap { white-space: nowrap; }
  /* Its own line, and never split across two. */
  .hero__lede-tail { display: block; white-space: nowrap; margin-top: 0.3rem; }
}
