/* midsight.app: the same paper, ink, green and red as the Midsight app, and the
   same pieces (panel, verdict card, warning window), so the site looks like the app. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the app's tokens (app/src/style.css) */
  --paper: #ffffff;
  --paper-2: #fbfbfc;
  --mist: #f1f2f4;
  --mist-2: #e8eaed;
  --ink: #1d1d1f;
  --graphite: #66666b;
  --faint: #9a9aa0;
  --rule: #e3e5e9;
  --rule-strong: #d3d6db;
  --green: #12b886;
  --green-text: #0a7d5a;
  --green-wash: #e2f6ee;
  --red: #ff3b30;
  --red-text: #d70015;
  --red-wash: #ffe8e6;
  --amber: #f0a500;
  --amber-text: #9a5b00;
  --amber-wash: #fff3d6;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 18px 48px rgba(16, 24, 40, 0.12);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* the site's own */
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --desk: radial-gradient(90% 80% at 12% 0%, #dff3ea 0%, rgba(223, 243, 234, 0) 62%),
          radial-gradient(70% 70% at 100% 100%, #e6e9ef 0%, rgba(230, 233, 239, 0) 70%),
          linear-gradient(180deg, #f6f7f8 0%, #eceff2 100%);
  --window-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.32)) drop-shadow(0 2px 6px rgba(16, 24, 40, 0.07)) drop-shadow(0 22px 40px rgba(16, 24, 40, 0.16));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mono-inline { font-family: var(--mono); font-size: .82em; font-stretch: 87.5%; letter-spacing: -.01em; white-space: nowrap; }
.fine { margin-top: 18px; font-size: 14px; color: var(--graphite); max-width: 60rem; }
.fine.center { max-width: 46rem; }

.pip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pip-green { background: var(--green); }
.pip-red { background: var(--red); }

/* ---------- buttons (the app's .btn, at web sizes) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 10px; border: 0;
  font: 600 14.5px/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s, transform .06s;
}
.btn:active { transform: scale(.98); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn.subtle { background: var(--mist); color: var(--ink); }
.btn.subtle:hover { background: var(--mist-2); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.015em; text-decoration: none; }
.brand-mark { width: 30px; height: 21px; color: var(--ink); flex: none; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--green-wash) 90%, transparent), transparent 75%);
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .96; letter-spacing: -.04em; font-weight: 780; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--graphite); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

/* ---------- the desktop scene ---------- */
.scene { position: relative; border-radius: 22px; background: var(--desk); border: 1px solid var(--rule); overflow: hidden; isolation: isolate; }
.menubar {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  height: 30px; padding: 0 16px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  font: 500 13px/1 var(--system); color: #2b2b2e;
}
.tray { width: 24px; height: 17px; color: var(--ink); --pupil: var(--ink); }
.desk-red .tray { --pupil: var(--red); }

.shot { filter: var(--window-shadow); }
.shot.crop { filter: none; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), var(--shadow-lg); }


/* ---------- sections ---------- */
.sec { padding: clamp(88px, 11vw, 150px) 0 0; }
/* the eye follows the hero with no heading of its own */
#how { padding-top: clamp(40px, 6vw, 80px); }
.sec-head { max-width: 42rem; margin-bottom: clamp(36px, 4.5vw, 56px); }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 760; }
.sec-head p { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); color: var(--graphite); }

/* ---------- the eye ---------- */
.eye-fig { margin: 0; }
.eye-stage { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eye-cap { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.45; color: var(--graphite); transition: opacity .3s; }
.eye-cap strong { color: var(--ink); font-weight: 700; }
.eye-cap-top { margin-bottom: 14px; }
.eye-cap-bottom { margin-top: 14px; }
@media (min-width: 900px) { .eye-cap { display: none; } }
#eye { display: block; width: 100%; height: auto; overflow: visible; }
#eye .lid-line { fill: none; stroke: var(--rule); stroke-width: 1.5; }
#eye .ends { font-family: var(--mono); font-weight: 600; fill: var(--ink); }
#eye .mid { font-family: var(--mono); font-weight: 400; transition: opacity .3s; }
#eye .mid-real { fill: var(--ink); }
#eye .mid-fake { fill: var(--red-text); }
#eye .pupil { fill: var(--green); transition: fill .45s ease; }
#eye .cap-path { fill: none; }
#eye .cap-curve { font-family: var(--sans); font-weight: 450; fill: #55555a; opacity: 0; transition: opacity .7s ease; }
#eye.caps-on .cap-curve { opacity: 1; }
#eye .cap-k { font-weight: 700; }
#eye .cap-k-green { fill: var(--green-text); }
#eye .cap-k-red { fill: var(--red-text); }
#eye.alert .pupil { fill: var(--red); }
.eye-fig[data-focus="real"] #eye .mid-fake,
.eye-fig[data-focus="real"] #eye .cap-fake,
.eye-fig[data-focus="real"] .eye-cap-bottom { opacity: .25; }
.eye-fig[data-focus="fake"] #eye .mid-real,
.eye-fig[data-focus="fake"] #eye .cap-real,
.eye-fig[data-focus="fake"] .eye-cap-top { opacity: .25; }
.eye-fig[data-focus="real"] #eye .pupil { fill: var(--green); }

/* the app's summary cards */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.summary > div { display: grid; align-content: start; gap: 6px; padding: 22px 22px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); }
.summary strong { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; font-weight: 760; }
.summary span { font-size: 15px; line-height: 1.4; color: var(--graphite); }
.summary .bad strong { color: var(--red-text); }

/* ---------- features ---------- */
/* the screenshot always gets the wide column, so its text stays readable */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature.flip .f-text { order: 2; }
.f-text { display: grid; justify-items: start; gap: 14px; max-width: 27rem; }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-wash); color: var(--green-text); }
.f-icon.bad { background: var(--red-wash); color: var(--red-text); }
.f-icon svg { width: 22px; height: 22px; }
.f-text h3 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.025em; font-weight: 740; }
.f-text p { color: var(--graphite); }
.f-note { font-size: 14px; }
.f-media { display: grid; place-items: center; padding: clamp(18px, 3.5vw, 44px); border-radius: 22px; background: var(--desk); border: 1px solid var(--rule); }
.f-media img[width="600"] { width: min(600px, 100%); }

/* ---------- try it: the desk ---------- */
.scene-try .scene-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(18px, 2.4vw, 32px); padding: clamp(16px, 2.4vw, 32px); align-items: start; }

.mac-win {
  background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 2px 6px rgba(16, 24, 40, .06), 0 22px 40px -8px rgba(16, 24, 40, .16);
}
.mac-bar { position: relative; display: flex; align-items: center; height: 36px; padding: 0 13px; border-bottom: 1px solid var(--mist-2); background: var(--paper-2); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.mac-title { position: absolute; left: 50%; transform: translateX(-50%); font: 600 13px/1 var(--system); color: #4a4a4f; }

.wallet { font-family: var(--system); }
.wallet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--mist-2); }
.wallet-name { font-size: 15px; font-weight: 650; }
.wallet-addr { font: 13px/1.4 var(--mono); font-stretch: 87.5%; color: var(--graphite); margin-top: 2px; }
.activity { list-style: none; margin: 0; padding: 0; }
.act { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--mist); transition: background .2s; }
.act:first-child { border-top: 0; }
.act.active { background: #f6f7f9; }
.act-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: #555; }
.act-icon svg { width: 15px; height: 15px; }
.act-main { min-width: 0; display: grid; }
.act-what { font-size: 14px; font-weight: 600; }
.act-who { font: 12.5px/1.4 var(--mono); font-stretch: 87.5%; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-amt { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.act-amt small { display: block; font-size: 12px; font-weight: 400; color: var(--graphite); }
.copy-cell { display: grid; gap: 6px; justify-items: end; }
.wallet-foot { padding: 11px 18px 14px; font-size: 12.5px; color: var(--graphite); border-top: 1px solid var(--mist-2); }

.copy {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border-radius: 8px; border: 0; background: var(--mist);
  font: 600 12.5px/1 var(--system); color: var(--ink);
  cursor: pointer; white-space: nowrap; transition: background .12s;
}
.copy:hover { background: var(--mist-2); }
.copy.done { background: var(--ink); color: var(--paper); }
.copy-token { height: 24px; font-size: 11.5px; padding: 0 8px; }

/* the menu bar panel, as in app/src/panel.tsx */
.panel {
  display: flex; flex-direction: column;
  min-height: 560px; max-height: 720px;
  border-radius: 14px; overflow: hidden;
  background: rgba(240, 240, 242, .82);
  -webkit-backdrop-filter: saturate(1.8) blur(30px); backdrop-filter: saturate(1.8) blur(30px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), var(--shadow-lg);
  font-size: 13.5px; line-height: 1.45;
}
.panel-head { display: flex; align-items: center; gap: 9px; padding: 14px 14px 10px 16px; }
.panel-head .mark { width: 26px; height: 18px; color: var(--ink); --pupil: var(--green); flex: none; }
.desk-red .panel-head .mark { --pupil: var(--red); }
.panel-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-right: auto; }
.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 9px; border-radius: 13px; background: var(--green-wash); color: var(--green-text); font-size: 12px; font-weight: 600; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 0%, transparent); }
}
.panel-body { flex: 1; overflow-y: auto; padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.panel-body > * { flex: none; }
.panel-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 20px 24px; }
.panel-empty .mark { width: 64px; height: 44px; color: var(--ink); margin-bottom: 8px; }
.panel-empty h4 { font-size: 16px; font-weight: 650; }
.panel-empty p { color: var(--graphite); max-width: 280px; }
.recent h4 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 0 6px 6px; }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.recent-main { display: grid; min-width: 0; flex: 1; }
.recent-title { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-side { display: grid; justify-items: end; gap: 1px; }
.recent-side time { font-size: 11px; color: var(--faint); }
.panel-foot { border-top: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); padding: 6px 8px 9px; display: grid; gap: 4px; }
.panel-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.panel-nav span { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 6px; font-size: 11.5px; font-weight: 540; color: var(--graphite); }
.panel-nav svg { width: 18px; height: 18px; }
.attribution { text-align: center; font-size: 10.5px; color: var(--faint); }

/* addresses and fingerprints, as in app/src/ui.tsx */
.addr { font-family: var(--mono); font-stretch: 87.5%; letter-spacing: -.01em; word-break: break-all; }
.addr.s { font-size: 11.5px; word-break: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.addr.m { font-size: 12.5px; line-height: 1.55; }
.addr.l { font-size: 15px; line-height: 1.6; }
.addr .end, .addr .same { color: var(--ink); font-weight: 600; }
.addr .mid { color: var(--graphite); font-weight: 400; }
.addr .diff { color: var(--red-text); background: var(--red-wash); font-weight: 700; border-radius: 3px; padding: 0 .5px; }
.addr.trusted .diff { color: var(--green-text); background: none; font-weight: 600; }
.fp { font-family: var(--emoji); font-size: 13px; letter-spacing: 1.5px; white-space: nowrap; flex: none; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--mist); color: var(--graphite); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.tag.known { background: var(--green-wash); color: var(--green-text); }
.level-icon { display: inline-grid; place-items: center; flex: none; }
.level-icon svg { width: 20px; height: 20px; }
.level-icon.ok { color: var(--green); }
.level-icon.warn { color: var(--amber); }
.level-icon.block { color: var(--red); }
.recent .level-icon svg { width: 16px; height: 16px; }

/* the verdict card */
.verdict {
  --tone: var(--green); --tone-wash: var(--green-wash); --tone-text: var(--green-text);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  padding: 16px 16px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow);
  overflow: hidden;
}
.verdict::before { content: ""; position: absolute; inset: 0 0 auto; height: 76px; background: linear-gradient(180deg, var(--tone-wash), transparent); pointer-events: none; }
.verdict > * { position: relative; }
.verdict.warn { --tone: var(--amber); --tone-wash: var(--amber-wash); --tone-text: var(--amber-text); }
.verdict.block { --tone: var(--red); --tone-wash: var(--red-wash); --tone-text: var(--red-text); border-color: color-mix(in srgb, var(--red) 35%, var(--rule)); }
.verdict-head { display: flex; gap: 11px; align-items: flex-start; }
.verdict-head .level-icon { margin-top: 1px; }
.verdict-title h4 { font-size: 15.5px; font-weight: 680; letter-spacing: -.01em; line-height: 1.3; color: var(--tone-text); }
.verdict.ok .verdict-title h4 { color: var(--ink); }
.verdict-title p { margin-top: 3px; color: var(--graphite); }
.verdict-addr { display: grid; gap: 6px; padding: 11px 12px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--rule); }
.verdict-addr .label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--red-text); }
.verdict-addr.imitates .label { color: var(--green-text); }
.addr-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.evidence { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.evidence li { position: relative; padding-left: 16px; font-size: 13px; }
.evidence li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--tone); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; color: var(--graphite); font-weight: 560; font-size: 13px; text-decoration: none; }
.link-btn:hover { background: var(--mist); color: var(--ink); }
.link-btn svg { width: 15px; height: 15px; }

/* the token card */
.token { display: grid; gap: 11px; padding: 13px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--rule); }
.token-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.token-head svg { width: 18px; height: 18px; flex: none; }
.token-head strong { font-size: 15px; }
.token-head .muted { color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-radius: 9px; overflow: hidden; border: 1px solid var(--rule); }
.tstat { display: grid; gap: 1px; padding: 8px 10px; background: var(--paper); }
.tstat span { font-size: 11px; color: var(--graphite); }
.tstat strong { font-size: 13.5px; font-weight: 620; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px; border-radius: 11px; font-size: 11.5px; font-weight: 560; background: var(--green-wash); color: var(--green-text); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.bad { background: var(--red-wash); color: var(--red-text); }
.chip.plain { background: var(--mist); color: var(--graphite); }
.source { font-size: 11px; color: var(--faint); }

/* the warning window, as in app/src/alert.tsx */
.alert-layer { position: absolute; inset: 30px 0 0; display: grid; justify-items: center; align-items: start; padding-top: clamp(28px, 6%, 64px); pointer-events: none; z-index: 5; }
.alert-layer[hidden] { display: none; }
.alert-win {
  pointer-events: auto; position: relative;
  width: min(600px, 92%); max-height: calc(100% - 24px); overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 18px 28px 22px; border-radius: 12px;
  background: radial-gradient(120% 60% at 50% -10%, var(--red-wash), transparent 70%), var(--paper);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 2px 8px rgba(16, 24, 40, .08), 0 30px 70px rgba(16, 24, 40, .28);
  font-size: 13.5px; line-height: 1.45;
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.alert-win::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--red); }
.alert-win .lights { margin: 0 0 14px -12px; }
.alert-head { display: flex; gap: 16px; align-items: flex-start; }
.alert-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--red); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--red) 35%, transparent); }
.alert-icon svg { width: 30px; height: 30px; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--red-text); }
.eyebrow svg { width: 16px; height: 11px; color: var(--ink); --pupil: var(--red); flex: none; }
.alert-head h3 { font-size: 23px; font-weight: 720; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.alert-detail { margin-top: 6px; color: var(--graphite); font-size: 14px; }
.compare { display: grid; gap: 8px; margin-top: 20px; }
.compare-row { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper-2); }
.compare-row.bad { border-color: color-mix(in srgb, var(--red) 45%, var(--rule)); background: color-mix(in srgb, var(--red-wash) 55%, var(--paper)); }
.compare-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--graphite); }
.compare-row.bad .compare-label { color: var(--red-text); }
.compare-row.good .compare-label { color: var(--green-text); }
.compare-hint { font-size: 12px; color: var(--graphite); padding: 0 2px; }
.alert-win .evidence { --tone: var(--red); margin-top: 16px; }
.alert-win .evidence li { font-size: 13.5px; }
.alert-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 20px; }
.alert-foot .link-btn { margin-right: auto; margin-left: -10px; }
.btn-danger { height: 38px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--red); color: #fff; font: 560 14px/1 var(--sans); cursor: pointer; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 4px 14px color-mix(in srgb, var(--red) 30%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 88%, #000); }
.btn-danger:focus-visible { outline-color: color-mix(in srgb, var(--red) 55%, transparent); }

/* the clipboard-malware switch */
.try-foot { margin-top: 18px; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: #3a3a3e; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #c9cbd0; flex: none; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .switch-track { background: var(--red); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent); outline-offset: 3px; }

/* ---------- privacy, as in the app's settings ---------- */
.privacy { list-style: none; margin: 0; padding: 6px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); }
.privacy li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
.privacy li + li { border-top: 1px solid var(--rule); }
.privacy svg { width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.privacy strong { font-weight: 650; }

/* ---------- get ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl { display: grid; justify-items: start; align-content: start; gap: 4px; padding: 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); }
.dl strong { font-size: 22px; letter-spacing: -.02em; font-weight: 720; }
.dl > span:not(.tag) { color: var(--graphite); }
.dl .btn { margin-top: 14px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(88px, 11vw, 150px); border-top: 1px solid var(--rule); padding: 32px 0 44px; font-size: 14px; color: var(--graphite); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-try .scene-body { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 0; max-height: none; width: min(420px, 100%); justify-self: center; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .f-text { order: 0; }
  .f-text { max-width: 36rem; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .eye-cap { font-size: 14.5px; margin-left: 14px; margin-right: 14px; }
  .eye-stage { padding: 0 6px; }
  .summary > div { padding: 18px 16px; }
  .summary span { font-size: 14px; }
  .f-media { padding: 18px; border-radius: 18px; }
  .act { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 11px 14px; gap: 10px; }
  .act-icon { width: 28px; height: 28px; }
  .copy-cell { grid-column: 2 / 4; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .wallet-head, .wallet-foot { padding-left: 14px; padding-right: 14px; }
  /* the warning window covers the screen here, so it must sit above the top bar, outside the scene's stacking context */
  .scene-try { isolation: auto; }
  .alert-layer { position: fixed; inset: 0; z-index: 40; align-items: center; padding: 12px; background: rgba(20, 20, 24, .32); pointer-events: auto; }
  .alert-win { width: 100%; max-height: calc(100vh - 24px); padding: 16px 18px 18px; }
  .alert-head { gap: 12px; }
  .alert-icon { width: 44px; height: 44px; border-radius: 13px; }
  .alert-icon svg { width: 26px; height: 26px; }
  .alert-head h3 { font-size: 20px; }
  .addr.l { font-size: 13.5px; }
  .privacy { padding: 4px 18px; }
  .downloads { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .tstats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
