/* Bastet Guard website.
   Night blue and gold, after the logo. Fraunces for headlines, IBM Plex for
   everything else (both SIL Open Font License, self-hosted in /fonts). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/plex-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0b1120;
  --bg-2: #0f172a;
  --panel: #131c33;
  --panel-2: #18233f;
  --line: #222d4a;
  --line-2: #2f3c60;
  --text: #f3ecdb;
  --text-2: #b8b19f;
  --text-3: #8a8471;
  --gold: #e8b04b;
  --gold-2: #f6d27a;
  --gold-ink: #1c1405;
  --red: #ee7a5f;
  --green: #7fd1a6;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-weight: 500; }
.tag { font: 500 13px/1.3 var(--mono); color: var(--gold); letter-spacing: .02em; }

/* ------------------------------------------------------------------ nav */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.top.scrolled { border-bottom-color: var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text-2); }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: color 150ms ease, background-color 150ms ease; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 8px; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); background: var(--panel); } }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold); border-color: transparent; color: var(--gold-ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.quiet { background: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.primary):not(:disabled):hover { border-color: #46557f; background: var(--panel-2); }
  .btn.primary:not(:disabled):hover { background: var(--gold-2); }
}
.installed { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); font-weight: 600; font-size: 15px; }
.installed.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }

/* Shown or hidden by whether the extension is in this browser. The extension
   sets data-bastet-guard on <html> at document start, so there's no flash. */
html[data-bastet-guard] .no-ext { display: none !important; }
html:not([data-bastet-guard]) .has-ext { display: none !important; }

/* -------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 88px; }
h1 { margin: 0; font: 600 clamp(42px, 6.4vw, 80px)/0.98 var(--serif); letter-spacing: -0.025em; font-optical-sizing: auto; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
.lead { margin: 22px 0 0; font-size: 19px; color: var(--text-2); max-width: 54ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }

/* The try-it demo: a fake Buy button and the pause it gets. */
.demo { position: relative; min-height: 470px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); padding: 22px; overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% -10%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%); pointer-events: none; }
.demo-label { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); color: var(--text-3); margin-bottom: 18px; }
.coin { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: #0d1222; border: 1px solid var(--line); }
.coin-face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--sans); color: #1a1205; background: linear-gradient(140deg, #ffcf6b, #f08a3c); }
.coin-name strong { display: block; font-size: 17px; }
.coin-name span { font-size: 13.5px; color: var(--text-3); }
.coin-up { font: 500 15px/1 var(--mono); color: var(--green); }
.spark { position: relative; display: block; width: 100%; height: 120px; margin: 14px 0; }
.spark path { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: color-mix(in srgb, var(--green) 10%, transparent); stroke: none; }
.trade { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 8px; }
.amt { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #0d1222; color: var(--text-2); font: 500 14px/1 var(--mono); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 150ms ease, color 150ms ease; }
.amt[aria-pressed="true"] { border-color: var(--line-2); color: var(--text); background: var(--panel); }
.amt:active { transform: scale(.96); }
.buy { min-height: 44px; border: 0; border-radius: 10px; background: #2fbf71; color: #04140a; font: 700 15px/1 var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out), filter 150ms ease; }
.buy:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .buy:hover { filter: brightness(1.08); } .amt:hover { color: var(--text); } }
.tape { position: relative; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; font: 500 13px/1 var(--mono); }
.tape li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text-2); }
.tape li:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.tape li span:last-child { color: var(--text-3); text-align: right; }
.tape .b { color: var(--green); }
.tape .s { color: var(--red); }
.demo-note { position: relative; margin: 12px 2px 0; font-size: 13.5px; color: var(--text-3); }

/* The pause, sliding up over the fake site. */
.gate {
  position: absolute; inset: auto 12px 12px 12px; z-index: 2; padding: 20px; border-radius: 18px;
  background: #121722; border: 1px solid #2a3142; box-shadow: 0 -20px 60px rgba(3, 6, 15, .7);
  transform: translateY(0); opacity: 1;
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.gate[data-state="closed"] { transform: translateY(24px); opacity: 0; pointer-events: none; transition-duration: 180ms; }
@media (prefers-reduced-motion: reduce) { .gate, .gate[data-state="closed"] { transform: none; } }
.gate-brand { display: flex; align-items: center; gap: 7px; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.gate-brand svg { width: 16px; height: 16px; }
.gate h3 { margin: 10px 0 14px; font: 700 21px/1.2 var(--sans); letter-spacing: -0.01em; }
.meter { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.meter .row { display: flex; justify-content: space-between; gap: 10px; }
.meter .row span:last-child { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.bar { height: 7px; border-radius: 99px; background: #232a3b; overflow: hidden; }
/* Grows with transform, not width, so it stays on the GPU. */
.bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-out); }
.warn { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #f5c46a; background: rgba(245, 182, 74, .1); }
.warn.bad { color: var(--red); background: rgba(238, 122, 95, .1); }
.why { margin: 0 0 8px; font-size: 13.5px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { min-height: 32px; padding: 0 11px; border-radius: 99px; border: 1px solid #2a3142; background: #181e2c; color: var(--text); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, #181e2c); }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-actions .btn { min-height: 44px; }
.gate-actions .go { font-variant-numeric: tabular-nums; }
.result { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 28px; background: color-mix(in srgb, var(--bg-2) 96%, transparent); transition: opacity 220ms var(--ease-out); }
.result[data-state="closed"] { opacity: 0; pointer-events: none; transition-duration: 150ms; }
.result .big { font: 600 34px/1.1 var(--serif); margin: 0 0 10px; }
.result p { margin: 0 auto 18px; color: var(--text-2); max-width: 34ch; }

/* --------------------------------------------------------------- sections */
section { padding: 96px 0; }
section.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 52px)/1.04 var(--serif); letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; }
h3 { font-family: var(--sans); }
.section-lead { margin: 18px 0 0; color: var(--text-2); max-width: 58ch; font-size: 18px; }
.head { margin-bottom: 52px; }

/* Where it works: the sites, as plain names. */
.sites { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 17px/1.2 var(--mono); color: var(--text-2); }
.sites .k { color: var(--text-3); font-size: 13px; margin-right: 6px; }

/* Product features: text and a real crop of the UI. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature h3 { margin: 10px 0 12px; font: 600 clamp(26px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -0.015em; }
.feature p { margin: 0 0 14px; color: var(--text-2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.shot-frame { display: flex; justify-content: center; align-items: center; padding: 28px; border-radius: 22px; background: #0d1222; border: 1px solid var(--line); }
.shot-frame img { display: block; height: auto; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.shot-frame.wide { padding: 18px; }
/* A crop that stops mid-panel fades out instead of ending on a cut line. */
.shot-frame.fade img { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
/* The wide dashboard gets the full width, under its text. */
.feature.stack { grid-template-columns: 1fr; gap: 32px; }
.feature.stack .feature-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.feature.stack .feature-text h3 { margin-bottom: 0; }
.shot-frame.wide img { width: 100%; }

/* The 51% test. */
.test { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.test .num { font: 600 clamp(110px, 16vw, 210px)/0.85 var(--serif); color: var(--gold); letter-spacing: -0.04em; }
.test h2 { max-width: 16ch; }

/* Rules for future you: a ruled list, not a card grid. */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.ledger div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.ledger dt { font: 500 14px/1.5 var(--mono); color: var(--gold); padding-top: 2px; }
.ledger dd { margin: 0; color: var(--text-2); }
.ledger dd strong { color: var(--text); font-weight: 600; }

/* Phone apps. */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app { position: relative; padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.app h3 { margin: 14px 0 8px; font: 600 26px/1.15 var(--serif); }
.app p { margin: 0 0 18px; color: var(--text-2); }
.app.nope { background: none; border-style: dashed; }
.app.nope h3 { color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font: 500 12.5px/1 var(--mono); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.pill.grey { color: var(--text-3); background: color-mix(in srgb, var(--text-3) 14%, transparent); }
.app svg.os { width: 30px; height: 30px; color: var(--text-2); }

/* Middleman teaser. */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--panel), var(--bg-2)); }
.teaser h3 { margin: 10px 0 8px; font: 600 30px/1.1 var(--serif); }
.teaser p { margin: 0; color: var(--text-2); max-width: 60ch; }

/* --------------------------------------------------------------- pricing */
.billing { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-top: 28px; position: relative; }
.billing button { position: relative; z-index: 1; min-height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 600 14.5px/1 var(--sans); cursor: pointer; transition: color 150ms ease; }
.billing button[aria-pressed="true"] { color: var(--gold-ink); }
.billing .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--gold); transition: transform 240ms var(--ease-in-out); }
.billing[data-period="yearly"] .thumb { transform: translateX(100%); }
.save { font: 500 12px/1 var(--mono); margin-left: 6px; opacity: .85; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.plan.best { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--panel)), var(--panel) 40%); }
.plan h3 { margin: 0; font: 600 15px/1 var(--mono); color: var(--gold); letter-spacing: .02em; }
.plan .price { margin: 16px 0 4px; font: 600 54px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 15px/1 var(--sans); color: var(--text-3); letter-spacing: 0; }
.plan .per { min-height: 22px; font-size: 14px; color: var(--text-3); margin: 0; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.plan .push { margin-top: auto; display: grid; gap: 8px; }
.plan .left { font: 500 13px/1.4 var(--mono); color: var(--text-3); }
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more .plan h3 { color: var(--text-2); }
.tiers { display: grid; gap: 0; margin: 18px 0 24px; font-size: 15px; }
.tiers div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.tiers span:last-child { font-family: var(--mono); font-weight: 500; color: var(--text); }
.code-sample { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: #0a0f1c; border: 1px solid var(--line); font: 500 12.5px/1.6 var(--mono); color: var(--text-2); overflow-x: auto; white-space: pre; }
.code-sample b { color: var(--gold); font-weight: 500; }
.code-sample, .table-scroll { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
.plan .form-row .btn { flex: 1 1 auto; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15.5px; }
.compare th, .compare td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font: 500 13px/1.3 var(--mono); color: var(--text-3); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 120px; }
.compare .y { color: var(--gold); }
.compare .n { color: var(--text-3); }
.table-scroll { overflow-x: auto; }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
details .answer { overflow: hidden; }
details .answer p { margin: 0 0 22px; color: var(--text-2); max-width: 68ch; }

/* ----------------------------------------------------------------- footer */
footer { margin-top: 40px; padding: 56px 0 64px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 500 13px/1 var(--mono); color: var(--text-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot p { margin: 12px 0 0; max-width: 38ch; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--text); } }

/* ------------------------------------------------------------ inner pages */
.page { padding-top: 56px; padding-bottom: 88px; }
.page h1 { font-size: clamp(38px, 5vw, 60px); }
.page .lead { margin-top: 16px; }
.narrow { max-width: 600px; }
.box { margin-top: 28px; padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.box h2, .box h3 { margin: 0 0 6px; font: 600 22px/1.2 var(--serif); }
.box p { margin: 0; color: var(--text-2); }
.box .btn { margin-top: 16px; }
.field { display: grid; gap: 8px; margin: 22px 0 0; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.input {
  font: inherit; font-size: 16px; color: var(--text); background: #0a0f1c; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 0 14px; min-height: 46px; min-width: 0; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row .input { flex: 1 1 220px; }
.msg { min-height: 22px; font-size: 14.5px; color: var(--text-2); margin: 10px 0 0; }
.msg.ok { color: var(--green); }
.msg.bad { color: var(--red); }
.code { font: 500 44px/1 var(--mono); letter-spacing: .2em; color: var(--text); margin: 16px 0; }

/* Download page steps. */
.steps { counter-reset: step; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; color: var(--text-2); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--gold); font: 500 14px/1 var(--mono); }
.steps code, .prose code { font: 500 14px/1 var(--mono); background: #0a0f1c; border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; color: var(--text); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.dl .box { margin: 0; }
.dl .box.this { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }

/* Leaderboard. */
.board { width: 100%; border-collapse: collapse; margin-top: 32px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font: 500 13px/1 var(--mono); color: var(--text-3); padding: 12px; border-bottom: 1px solid var(--line); }
.board td { padding: 15px 12px; border-bottom: 1px solid var(--line); }
.board td.num, .board th.num { text-align: right; font-family: var(--mono); font-weight: 500; }
.board tr:nth-child(-n+3) .rank { color: var(--gold); }
.rank { color: var(--text-3); width: 52px; font-family: var(--mono); }
.board-empty { padding: 40px 0 0; color: var(--text-2); }

.prose { max-width: 720px; }
.prose h2 { font: 600 26px/1.2 var(--serif); margin: 40px 0 10px; max-width: none; }
.prose p, .prose li { color: var(--text-2); }

/* Middleman page. */
.mm-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mm-art { width: 100%; height: auto; }
.mm-flow circle { animation: mm-in 2.4s var(--ease-in-out) infinite; }
.mm-flow circle:last-child { animation-name: mm-in-r; }
@keyframes mm-in { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(56px); opacity: 1; } 100% { transform: translateX(56px); opacity: 0; } }
@keyframes mm-in-r { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-56px); opacity: 1; } 100% { transform: translateX(-56px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-flow circle { animation: none; } }
.mm-steps { margin-top: 64px; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 64px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature.stack .feature-text { grid-template-columns: 1fr; }
  .feature.stack .feature-text h3 { margin-bottom: 12px; }
  .test { grid-template-columns: 1fr; gap: 20px; }
  .ledger { grid-template-columns: 1fr; }
  .plans, .more { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .mm-top { grid-template-columns: 1fr; }
  .mm-art { max-width: 440px; }
}
@media (max-width: 760px) {
  .nav-links a.hide-sm { display: none; }
  section { padding: 68px 0; }
  .apps, .dl { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; padding: 26px; }
  .ledger div { grid-template-columns: 1fr; gap: 4px; }
  .shot-frame { padding: 16px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .nav-links { font-size: 14.5px; }
  .nav-links a { padding: 8px; }
  .demo { padding: 16px; min-height: 500px; }
  .trade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trade .buy { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr; }
  .ctas .btn { flex: 1 1 auto; }
}
