/* The terminal's landing page. The terminal's colors and type, laid out as
   a product page: recordings of the app in a frame up top, then one block
   per part of it, each with a live card or a screenshot. */

/* Inter, variable weight and optical size (OFL: fonts/LICENSE). */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-ext-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #09090b;
  --bg1: #0d0e11;
  --bg2: #131418;
  --bg3: #1b1c21;
  --bg4: #23252b;
  --line: #1f2127;
  --line2: #2c2e35;
  --text: #ececee;
  --text2: #a3a6ae;
  --text3: #6f737d;
  --green: #2ebd85;
  --red: #f6465d;
  --amber: #f0b90b;
  --blue: #4f8cff;
  --accent: #ff4f60;
  /* Shrine red, lit: what headlines, buttons and glows are made of. */
  --shrine: #ff4f60;
  --shrine-deep: #f0475b;
  --ember: #ff6b79;
  --ember-hi: #fff1f2;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
::selection { background: rgba(255, 95, 110, .32); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }
.up { color: var(--green); }
.dn { color: var(--red); }
.warn { color: var(--amber); }

/* Appearing as they scroll in (landing.js): out of a blur, rising. */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Gradient type: white-hot at the top, cooling to the shrine's red. */
.tone { background: linear-gradient(180deg, var(--ember-hi) 0%, #ffb3bb 38%, var(--ember) 76%, var(--shrine) 112%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The hero's: a light passing over it now and then. */
.tone.shine { background-image: linear-gradient(105deg, transparent 42%, rgba(255, 240, 242, .75) 50%, transparent 58%), linear-gradient(180deg, var(--ember-hi) 0%, #ffb3bb 38%, var(--ember) 76%, var(--shrine) 112%); background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; animation: shine 7s var(--ease) 1.4s infinite; }
@keyframes shine { 0% { background-position: 140% 0, 0 0; } 38%, 100% { background-position: -60% 0, 0 0; } }
.num { background: linear-gradient(180deg, #fff 20%, #ffb3ba 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── The bar: a pill floating over the page ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; padding: max(12px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.nav-in { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 6px; max-width: 980px; height: 60px; margin: 0 auto; padding: 0 7px 0 20px; border-radius: 999px; background: rgba(13, 13, 15, .66); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .85); transition: max-width .6s var(--ease), background .4s, box-shadow .4s, transform .6s var(--ease); }
.nav.scrolled .nav-in { max-width: 900px; background: rgba(13, 13, 15, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px -18px rgba(0, 0, 0, .95); }
/* How far down the page, as a lit line under the pill. */
.nav-in::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 79, 96, 0), var(--ember) 92%, #ffd6da); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: .85; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand img { filter: drop-shadow(0 0 10px rgba(255, 79, 96, .45)); }
.brand.small { font-size: 13.5px; gap: 8px; }
.links { position: relative; display: flex; gap: 2px; margin: 0 auto; }
.links a, .nav-docs { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; color: var(--text2); font-size: 14px; transition: color .3s; }
.links a:hover, .nav-docs:hover, .links a.on { color: var(--text); }
/* The section you're in: a lit pill sliding under its link (landing.js). */
.nav-ind { position: absolute; top: 50%; left: 0; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05); opacity: 0; transform: translate(var(--x, 0), -50%); width: var(--w, 0); transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; pointer-events: none; }
.nav-ind.on { opacity: 1; }
.nav-end { display: flex; align-items: center; gap: 4px; }

/* Buttons: a pill lit from the inside, a line of light along its foot,
   and a sheen across on hover. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  background: linear-gradient(180deg, #ff6f7c 0%, #ff4f60 55%, #f8455a 100%); text-shadow: 0 1px 0 rgba(170, 30, 50, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(170, 30, 50, .2), 0 0 0 1px rgba(255, 110, 125, .5), 0 10px 28px -10px rgba(255, 79, 96, .6);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.btn::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); opacity: .7; transition: left .5s var(--ease), right .5s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .3) 50%, transparent 62%); background-size: 260% 100%; background-position: 140% 0; transition: background-position 0s; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(170, 30, 50, .2), 0 0 0 1px rgba(255, 140, 152, .85), 0 16px 40px -10px rgba(255, 79, 96, .75); }
.btn:hover::before { background-position: -60% 0; transition: background-position 1s var(--ease); }
.btn:hover::after { left: 8%; right: 8%; }
.btn:active { transform: translateY(0) scale(.985); }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn.ghost { background: rgba(255, 255, 255, .015); color: var(--text); font-weight: 550; text-shadow: none; box-shadow: inset 0 0 0 1px #303136; }
.btn.ghost::after { display: none; }
.btn.ghost::before { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .07) 50%, transparent 62%); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #4a4c53; background: rgba(255, 255, 255, .035); }
.arr { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .arr, .more:hover .arr, .duo-c:hover .arr { transform: translateX(3px); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2s infinite; flex: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(46, 189, 133, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 189, 133, 0); } }

/* ── Hero ── */
.hero { position: relative; padding-top: 128px; overflow: hidden; }
/* Two glows drifting behind the hero, over a grid that fades out. */
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before, .hero-glow::after { content: ''; position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; }
.hero-glow::before { left: 50%; top: -260px; width: 1100px; height: 760px; margin-left: -720px; background: radial-gradient(closest-side, rgba(255, 79, 96, .2), rgba(255, 120, 135, .07) 55%, transparent); animation: drift 20s ease-in-out infinite; }
.hero-glow::after { left: 50%; top: 260px; width: 900px; height: 600px; margin-left: -60px; background: radial-gradient(closest-side, rgba(255, 120, 135, .12), rgba(255, 140, 160, .05) 60%, transparent); animation: drift 26s ease-in-out -9s infinite reverse; }
.hero-grid { position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 4%) scale(1.08); } }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .025); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .05); color: var(--text2); font-size: 13px; font-variant-numeric: tabular-nums; transition: box-shadow .3s; }
.live-pill:hover { box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .4), 0 0 24px -8px rgba(255, 79, 96, .6); }
.pill-arr { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text); }
.pill-arr .arr { width: 13px; height: 13px; }
.live-pill:hover .arr { transform: translateX(2px); }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-top: 22px; font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: -.045em; font-weight: 640; }
.lead { margin-top: 20px; max-width: 680px; color: var(--text2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 30px 0 0; padding: 0; }
.chips li { display: flex; align-items: baseline; gap: 8px; padding: 2px 22px; font-size: 13.5px; color: var(--text3); }
.chips li + li { box-shadow: inset 1px 0 0 var(--line2); }
.chips b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* The app, recorded and framed */
/* Tilted back at first, laid flat as it scrolls up (landing.js sets --t). */
.stage { margin-top: 44px; perspective: 1800px; }
.browser { position: relative; border-radius: 20px; background: var(--bg1); box-shadow: inset 0 0 0 1px #2a2b31, 0 0 0 1px rgba(0, 0, 0, .6), 0 0 0 10px rgba(255, 255, 255, .025), 0 50px 140px -40px rgba(255, 79, 96, .32), 0 40px 90px -40px rgba(0, 0, 0, .95); overflow: hidden; transform-origin: 50% 0; transform: rotateX(calc(var(--t, 0) * 10deg)) scale(calc(1 - var(--t, 0) * .03)); will-change: transform; }
.browser::before { content: ''; position: absolute; z-index: 3; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 160, 170, .7), transparent); pointer-events: none; }
.b-bar { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0b0c0e; }
.b-dots { display: flex; gap: 7px; }
.b-dots i { width: 11px; height: 11px; border-radius: 50%; background: #26282e; }
.b-url { justify-self: center; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 14px; border-radius: 7px; background: var(--bg2); color: var(--text3); font-size: 12px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lock { width: 8px; height: 10px; border: 1.5px solid var(--text3); border-radius: 2px; position: relative; top: 1px; }
.lock::before { content: ''; position: absolute; left: 50%; top: -6px; width: 6px; height: 6px; transform: translateX(-50%); border: 1.5px solid var(--text3); border-bottom: 0; border-radius: 4px 4px 0 0; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; }
.screen-still, .screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.screen video { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.screen video.on { opacity: 1; pointer-events: auto; }
/* Which recording plays, and how far it is. */
.clips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 22px auto 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.clip { position: relative; height: 36px; padding: 0 18px; border-radius: 999px; color: var(--text3); font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; white-space: nowrap; transition: color .3s, background .3s; }
.clip:hover { color: var(--text2); }
.clip.on { color: var(--text); background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05); }
.clip i { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 1.5px; border-radius: 1px; background: linear-gradient(90deg, var(--shrine-deep), var(--ember) 80%, #ffd6da); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: opacity .3s; }
.clip.on i { opacity: .9; }


/* ── Logos ── */
.logos { padding: 84px 0 8px; }
.logos-t { text-align: center; color: var(--text3); font-size: 13.5px; }
/* An endless strip (landing.js puts the logos in twice), fading at its ends. */
.logo-row { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.logo-row:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: 44px; color: var(--text2); font-size: 15px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.logo:hover { filter: none; opacity: 1; }
.logo img { width: 24px; height: 24px; border-radius: 7px; object-fit: contain; }

/* ── Blocks ── */
.kick { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; color: #ffa9b1; background: rgba(255, 95, 110, .07); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .2); font-size: 12.5px; font-weight: 550; letter-spacing: .01em; }
.kick::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
h2 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 620; }
.rule { width: 56px; height: 1px; margin: 24px 0 0; border: 0; background: linear-gradient(90deg, var(--ember), transparent); }
.rule.c { margin-left: auto; margin-right: auto; width: 120px; background: linear-gradient(90deg, transparent, var(--ember), transparent); }
.sub { margin-top: 18px; color: var(--text2); font-size: 16.5px; }
.feat { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: center; padding-top: 140px; }
.feat.rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.feat.rev .feat-copy { order: 2; }
.feat-copy > p:not(.kick) { margin-top: 20px; color: var(--text2); font-size: 16px; max-width: 440px; }
.pts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.pts li { position: relative; padding-left: 22px; color: var(--text2); font-size: 14.5px; }
.pts li::before { content: ''; position: absolute; left: 1px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd6da, var(--ember) 55%, var(--shrine)); box-shadow: 0 0 10px -1px rgba(255, 95, 110, .8); }
.pts b { color: var(--text); font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: #ffa9b1; font-size: 14.5px; font-weight: 550; }

/* Cards: lit faintly from above, a line of light on top, and a glow that
   follows the pointer (landing.js sets --mx, --my). */
.card { position: relative; background: radial-gradient(70% 55% at 50% 0%, rgba(255, 95, 110, .055), transparent 70%), var(--bg1); border-radius: var(--r); box-shadow: inset 0 0 0 1px #24252b, 0 30px 80px -40px rgba(0, 0, 0, .85); overflow: hidden; }
.card::before { content: ''; position: absolute; z-index: 2; top: 0; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 140, 150, .55), transparent); pointer-events: none; }
.card::after { content: ''; position: absolute; z-index: 2; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 110, 125, .07), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.card-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.card-head b { font-weight: 650; }
.card-head > span { color: var(--text3); font-size: 12px; }
.card-live, .card-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.pill.ok { background: rgba(46, 189, 133, .12); color: var(--green); }

.av { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--bg3); overflow: hidden; display: grid; place-items: center; color: var(--text3); font-size: 11px; font-weight: 650; }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* Pulse */
.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pulse.one { grid-template-columns: 1fr; }
.pcol { background: var(--bg1); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line2); overflow: hidden; min-width: 0; }
.pcol-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 650; }
.pcol-h span { color: var(--text3); font-weight: 500; font-size: 11.5px; }
.pcol-b { display: flex; flex-direction: column; }
.pcol-b.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: flex; min-width: 0; gap: 11px; padding: 12px 14px; border-bottom: 1px solid rgba(31, 33, 39, .8); transition: background .15s; }
.pcard:hover { background: var(--bg2); }
.pcol-b.two .pcard:nth-child(odd) { border-right: 1px solid rgba(31, 33, 39, .8); }
.pcard .av { width: 46px; height: 46px; border-radius: 10px; }
.pc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pc-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pc-top b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-top span { color: var(--text3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-top em { margin-left: auto; font-style: normal; color: var(--green); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pc-figs { display: flex; gap: 10px; color: var(--text3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.pc-figs b { color: var(--text2); font-weight: 550; }
.bar { height: 3px; margin-top: 2px; border-radius: 2px; background: var(--bg3); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6be3b4); border-radius: 2px; }
.qb { align-self: center; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--bg3); color: var(--text2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Charts: a screenshot */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }

/* Levels */
.lv-scale { position: relative; height: 330px; margin: 0 16px; }
.lv { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); font-size: 12.5px; }
.lv::before { content: ''; flex: 1; order: 2; border-top: 1px dashed var(--line2); }
.lv .lv-k { order: 1; width: 104px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.lv .lv-k i { width: 8px; height: 8px; border-radius: 50%; }
.lv .lv-v { order: 3; width: 140px; text-align: right; color: var(--text2); font-variant-numeric: tabular-nums; }
.lv .lv-v b { color: var(--text); font-weight: 600; }
.lv.now .lv-k { color: var(--text); }
.lv.now::before { border-top: 1px solid var(--text3); }
.lv.tp .lv-k i { background: var(--green); }
.lv.lim .lv-k i { background: var(--blue); }
.lv.sl .lv-k i { background: var(--red); }
.lv.now .lv-k i { background: var(--text); }
.lv-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text3); font-size: 12.5px; }

/* KOLs */
.seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg2); }
.seg button { height: 24px; padding: 0 10px; border-radius: 6px; color: var(--text3); font-size: 12px; font-weight: 550; }
.seg button.on { background: var(--bg4); color: var(--text); }
.kol-list { list-style: none; margin: 0; padding: 4px 0; min-height: 420px; }
.krow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
.krow + .krow { border-top: 1px solid rgba(31, 33, 39, .8); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.k-who { min-width: 0; display: flex; flex-direction: column; }
.k-who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-who span { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.k-side .pill { font-variant-numeric: tabular-nums; }
.pill.buy { background: rgba(46, 189, 133, .12); color: var(--green); }
.pill.sell { background: rgba(246, 70, 93, .12); color: var(--red); }
.k-side small { color: var(--text3); font-size: 11px; font-variant-numeric: tabular-nums; }

/* Safety */
.safety { padding-top: 150px; }
.safe-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: 52px; }
.au-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.au-grid div { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.au-grid div:nth-child(4n) { border-right: 0; }
.au-grid span { color: var(--text3); font-size: 11.5px; }
.au-grid b { font-size: 14px; font-weight: 650; }
.au-list { list-style: none; margin: 0; padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.au-list li { color: var(--text2); font-size: 14px; }
.au-list b { color: var(--text); font-weight: 600; }
#bubbles { display: block; width: 100%; height: 320px; background: radial-gradient(circle at 50% 45%, #10121a, var(--bg1) 70%); }
.maps-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text3); font-size: 12.5px; }
.maps-foot a { font-weight: 550; white-space: nowrap; }
.maps-foot .more { margin-top: 0; }

/* Phone */
.mobile { padding-top: 150px; }
.phone { position: relative; justify-self: center; width: 330px; height: 650px; border-radius: 48px; padding: 14px; background: #050506; box-shadow: 0 0 0 1px #2a2c33, 0 0 0 9px #111216, 0 0 0 10px #2a2c33, 0 50px 120px -40px rgba(0, 0, 0, .9); display: flex; flex-direction: column; overflow: hidden; }
.ph-notch { position: absolute; left: 50%; top: 22px; width: 96px; height: 26px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 2; }
.ph-top { display: flex; align-items: center; gap: 10px; margin-top: 48px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.ph-tabs { display: flex; gap: 4px; font-size: 12px; }
.ph-tabs span { padding: 4px 9px; border-radius: 7px; color: var(--text3); }
.ph-tabs .on { color: var(--text); background: var(--bg3); }
.ph-list { flex: 1; overflow: hidden; border-radius: 0 0 34px 34px; }
.ph-list .pcard { padding: 11px 10px; }
.ph-list .pcard .av { width: 42px; height: 42px; }
.ph-nav { display: flex; justify-content: space-around; padding: 10px 6px 6px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text3); }
.ph-nav .on { color: var(--text); }

/* Markets */
.markets { padding-top: 150px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; }
.bar-list { padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.brow { display: grid; grid-template-columns: 140px minmax(0, 1fr) 76px; align-items: center; gap: 12px; font-size: 13px; }
.brow .bn { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bn img { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.brow .bt { height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.brow .bt i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3b3e46, var(--text2)); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.brow:first-child .bt i { background: linear-gradient(90deg, var(--shrine-deep), var(--ember) 80%, #ffb3ba); box-shadow: 0 0 14px -2px rgba(255, 95, 110, .7); }
.brow .bv { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Security */
.secure { padding-top: 150px; }
.sec-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.sec { position: relative; padding: 30px; border-radius: var(--r); background: radial-gradient(80% 60% at 50% 0%, rgba(255, 95, 110, .05), transparent 70%), var(--bg1); box-shadow: inset 0 0 0 1px #222329; }
.sec h3 { margin-top: 18px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.sec p { margin-top: 8px; color: var(--text2); font-size: 14.5px; }
.sec-ic { position: relative; display: block; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 95, 110, .2), rgba(255, 95, 110, .07)); box-shadow: inset 0 1px 0 rgba(255, 170, 178, .35), inset 0 0 0 1px rgba(255, 110, 125, .28), 0 10px 26px -14px rgba(255, 79, 96, .55); }
.sec-ic::before, .sec-ic::after { content: ''; position: absolute; }
.sec-ic.key::before { left: 11px; top: 12px; width: 10px; height: 10px; border: 2px solid var(--text); border-radius: 50%; }
.sec-ic.key::after { left: 21px; top: 18px; width: 9px; height: 2px; background: var(--text); box-shadow: 4px 3px 0 -0px var(--text); }
.sec-ic.check::before { left: 13px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.sec-ic.lock::before { left: 12px; top: 19px; width: 16px; height: 11px; border-radius: 3px; background: var(--text); }
.sec-ic.lock::after { left: 15px; top: 10px; width: 10px; height: 10px; border: 2px solid var(--text); border-bottom: 0; border-radius: 6px 6px 0 0; }

/* Paper and API */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 150px; }
.duo-c { padding: 34px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.duo-c:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .35), 0 30px 80px -36px rgba(255, 79, 96, .35); }
.duo-k { color: var(--text3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.duo-c h3 { margin-top: 12px; font-size: 24px; letter-spacing: -.025em; font-weight: 670; }
.duo-c p { margin-top: 10px; color: var(--text2); font-size: 15px; max-width: 440px; }

/* FAQ */
.faq { padding-top: 150px; }
.qa { max-width: 760px; margin: 44px auto 0; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; color: var(--text3); box-shadow: inset 0 0 0 1px var(--line2); transition: transform .5s var(--ease), color .3s, box-shadow .3s; }
.qa summary:hover::after { color: var(--text); }
.qa details[open] summary::after { transform: rotate(135deg); color: var(--ember); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .45); }
.qa details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
.qa details[open]::details-content { height: auto; }
.qa p { padding: 0 2px 22px; color: var(--text2); font-size: 15px; max-width: 660px; }
.qa a { color: var(--text); border-bottom: 1px solid var(--line2); }

/* End */
.end { position: relative; overflow: hidden; margin-top: 160px; padding: 150px 0 160px; border-top: 1px solid var(--line); background: radial-gradient(700px 360px at 50% 105%, rgba(255, 79, 96, .18), rgba(255, 95, 110, .05) 55%, transparent 75%); }
.end::before { content: ''; position: absolute; left: 50%; top: 0; width: 520px; height: 1px; margin-left: -260px; background: linear-gradient(90deg, transparent, var(--ember), transparent); }
.end-mark { display: block; width: 64px; height: 64px; margin: 0 auto 28px; filter: drop-shadow(0 0 28px rgba(255, 79, 96, .65)); }
.end h2 { margin-top: 0; font-size: clamp(42px, 6vw, 76px); }
.end p { margin: 18px auto 32px; color: var(--text2); font-size: 17px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: start; padding-top: 34px; padding-bottom: 40px; }
.foot-l { display: flex; flex-direction: column; gap: 8px; }
.foot-c { color: var(--text3); font-size: 13px; }
.foot-n { display: flex; flex-direction: column; gap: 8px; }
.foot-n a { color: var(--text3); font-size: 13px; transition: color .15s; }
.foot-n a:hover { color: var(--text); }

/* ── Narrow ── */
@media (max-width: 1060px) {
  .links { display: none; }
  .nav-end { margin-left: auto; }
  .nav.scrolled .nav-in { max-width: 980px; }
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .feat.rev .feat-copy { order: 0; }
  .safe-grid, .m-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 112px; }
  .nav { padding: max(10px, env(safe-area-inset-top)) 10px 0; }
  .nav-in { height: 56px; padding: 0 6px 0 16px; }
  .btn.sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
  .chips li { padding: 4px 14px; }
  .chips li:nth-child(3) { box-shadow: none; }
  .stage { margin-top: 36px; }
  .lead { font-size: 16px; }
  .nav-docs { display: none; }
  .b-bar { grid-template-columns: 50px 1fr 0; }
  .clip { height: 34px; padding: 0 14px; font-size: 13px; }
  .clip i { left: 14px; right: 14px; }
  .pulse { grid-template-columns: 1fr; }
  .pulse .pcol:nth-child(n + 2) { display: none; }
  .pcol-b.two { grid-template-columns: minmax(0, 1fr); }
  .pcol-b.two .pcard:nth-child(odd) { border-right: 0; }
  .au-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-grid div:nth-child(2n) { border-right: 0; }
  .sec-row, .duo { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 110px minmax(0, 1fr) 64px; }
  .phone { width: 300px; height: 600px; }
  .lv .lv-k { width: 90px; }
  .lv .lv-v { width: 112px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-l { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .dot, .krow, .tone.shine, .hero-glow::before, .hero-glow::after, .logo-track { animation: none; }
  .browser { transform: none; }
}

/* ══ The rest of the site on the same system ══
   One header, one footer and one set of blocks for every page: this
   landing page, the API page (/), pricing (/pricing/) and the docs. */

/* The bar holds the terminal's sections and the API's pages. */
.nav-in { max-width: 1060px; }
.nav.scrolled .nav-in { max-width: 1000px; }
.links a[aria-current='page'], .nav-docs[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05); }

/* Narrow screens: everything in one menu under a button. */
.nav-menu { position: relative; display: none; }
.nav-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--text2); cursor: pointer; transition: color .3s, background .3s; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--text); background: rgba(255, 255, 255, .055); }
.nav-menu > summary span { position: relative; display: block; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: background .3s; }
.nav-menu > summary span::before, .nav-menu > summary span::after { content: ''; position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .45s var(--ease); }
.nav-menu > summary span::before { top: -5px; }
.nav-menu > summary span::after { top: 5px; }
.nav-menu[open] > summary span { background: transparent; }
.nav-menu[open] > summary span::before { transform: translateY(5px) rotate(45deg); }
.nav-menu[open] > summary span::after { transform: translateY(-5px) rotate(-45deg); }
.nav-panel { position: absolute; right: -1px; top: calc(100% + 14px); width: 252px; display: flex; flex-direction: column; padding: 8px; border-radius: 20px; background: #0e0e11; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px -18px rgba(0, 0, 0, .95); animation: menu-in .4s var(--ease); }
/* Solid: a blur inside the bar's own blur shows the page through in Chrome. */
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nav-panel a { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 12px; color: var(--text2); font-size: 14.5px; transition: color .2s, background .2s; }
.nav-panel a:hover, .nav-panel a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, .05); }
.np-k { padding: 12px 14px 4px; color: var(--text3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.np-k:first-child { padding-top: 6px; }

/* Calls to action set to the left, under copy. */
.cta.left { justify-content: flex-start; }
.feat-copy .cta { margin-top: 30px; }

/* Code in a card. */
.code { margin: 0; padding: 18px 20px 20px; overflow-x: auto; color: #c9ccd3; font: 12.75px/1.75 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; }
.code .k { color: #ff8f9a; }
.code .s { color: #ffc9ce; }
.code .n { color: #f3c98b; }
.code .p { color: #9da7ff; }
.code .c { color: var(--text3); }
.browser .code { min-height: 0; background: #0b0b0d; }

/* Numbered steps, in the security row's cards. */
.sec-ic.n { display: grid; place-items: center; color: var(--text); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sec code, .ptable code, .plan code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 95, 110, .09); color: #ffc9ce; font: 12.5px ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }

/* Chains */
.chain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.chain-c { display: flex; flex-direction: column; padding: 26px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.chain-c:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .35), 0 30px 80px -36px rgba(255, 79, 96, .35); }
.chain-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 rgba(255, 255, 255, .04); }
.chain-ic img { width: 24px; height: 24px; object-fit: contain; }
.chain-c h3 { margin-top: 18px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.chain-c > p { margin-top: 6px; color: var(--text2); font-size: 14px; }
.chain-fee { margin-top: 14px; color: var(--text3); font-size: 12.5px; }
.chain-fee b { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text2); font-size: 12px; white-space: nowrap; }
.tag img { width: 16px; height: 16px; border-radius: 50%; object-fit: contain; }
.chain-c .more { margin-top: auto; padding-top: 22px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan.hot { background: radial-gradient(80% 55% at 50% 0%, rgba(255, 95, 110, .13), transparent 70%), var(--bg1); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .42), 0 30px 80px -36px rgba(255, 79, 96, .45); }
.plan-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.plan-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; color: #ffa9b1; background: rgba(255, 95, 110, .08); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .25); font-size: 11.5px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.price b { font-size: 46px; font-weight: 650; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price span { color: var(--text3); font-size: 14px; }
.plan > p { margin-top: 12px; color: var(--text2); font-size: 14.5px; }
.plan .pts { margin-top: 24px; gap: 11px; }
.plan .pts li { font-size: 14px; }
.plan-cta { margin-top: auto; padding-top: 30px; }
.plan-cta .btn { width: 100%; }
.plan.compact { padding: 26px; }
.plan.compact .price b { font-size: 38px; }
.plan.compact .more { margin-top: auto; padding-top: 20px; }

/* The full comparison: one row per product, one column per plan. */
.ptable-card { margin-top: 52px; }
.ptable-scroll { overflow-x: auto; }
.ptable { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable thead th { padding-top: 20px; padding-bottom: 18px; color: var(--text3); font-size: 12px; font-weight: 500; vertical-align: bottom; }
.ptable thead th b { display: block; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.ptable th:not(:first-child), .ptable td:not(:first-child) { width: 21%; text-align: center; }
.ptable td:first-child { color: var(--text); }
.ptable td:first-child small { display: block; color: var(--text3); font-size: 12px; }
.ptable td { color: var(--text2); font-variant-numeric: tabular-nums; }
.ptable .col-hot { background: rgba(255, 95, 110, .035); }
.ptable .grp td { padding-top: 28px; padding-bottom: 10px; color: var(--text3); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--line2); }
.ck { display: inline-block; width: 12px; height: 7px; margin: 0 6px 3px 0; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); vertical-align: middle; }
.ptable .no { color: var(--text3); }
.ptable .soon { color: var(--text3); font-size: 12.5px; font-style: italic; }

/* A simple two-column comparison (the API page's "overpaying" table). */
.cmp { max-width: 860px; margin: 52px auto 0; }
.cmp .ptable { min-width: 0; }
.cmp .ptable th:not(:first-child), .cmp .ptable td:not(:first-child) { width: 34%; text-align: left; }
.cmp .ptable td.good { color: var(--text); font-weight: 550; }
.cmp .ptable td:first-child { color: var(--text2); }

/* Footer, with more columns. */
.foot-in { grid-template-columns: 1fr repeat(4, auto); }

@media (max-width: 1060px) {
  .nav-menu { display: block; }
  .chain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .chain-grid { grid-template-columns: 1fr; }
  .nav-panel { right: -6px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .ptable th, .ptable td { padding: 11px 12px; }
  .cmp .ptable th:first-child, .cmp .ptable td:first-child { display: none; }
}

/* API mode (the API pages and the docs): every chain's docs in the bar,
   each with its mark. */
.links a img { width: 16px; height: 16px; margin-right: 7px; border-radius: 4px; object-fit: contain; }
/* Six links and two buttons: the API bar keeps its width when scrolled. */
.nav.api.scrolled .nav-in { max-width: 1060px; }

/* The API button: lit in the shrine's red in both modes, and kept on phones
   where there is room. It opens the docs. */
.links a.nav-api, .nav-docs.nav-api { color: #ffb3ba; background: rgba(255, 95, 110, .1); box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .3); transition: color .3s, background .3s, box-shadow .3s; }
.links a.nav-api:hover, .nav-docs.nav-api:hover { color: #fff; background: rgba(255, 95, 110, .17); box-shadow: inset 0 0 0 1px rgba(255, 120, 135, .55), 0 0 22px -6px rgba(255, 79, 96, .7); }
.nav-panel a.nav-api { color: #ffb3ba; }
@media (max-width: 720px) { .nav-end .nav-api { display: inline-flex; min-height: 36px; padding: 0 10px; } }
/* Under ~386 px the bar is full; API stays in the menu. */
@media (max-width: 385px) { .nav-end .nav-api { display: none; } }

/* ══ The API page (/api/) ══ */

/* Console: the request on the left, the answer on the right. */
.con { background: #0b0b0d; }
.con-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 372px; }
.con-pane[hidden] { display: none; }
.con-pane.on { animation: con-in .5s var(--ease); }
@keyframes con-in { from { opacity: 0; transform: translateY(6px); } }
.con-req { border-right: 1px solid var(--line); min-width: 0; }
.con-res { min-width: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(255, 95, 110, .04), transparent 70%); }
.con-h { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.con-h b { font-weight: 650; }
.con-h > span:not(.pill) { color: var(--text3); }
.con-t { margin-left: auto; }
.con .code { padding-top: 16px; }

/* One buy, step by step. */
.flow-list { list-style: none; margin: 0; padding: 10px 16px 14px; display: flex; flex-direction: column; }
.flow-list li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; }
.flow-list li + li { border-top: 1px solid rgba(31, 33, 39, .8); }
.flow-list li > i { position: relative; top: 4px; width: 12px; height: 12px; margin-left: 4px; border-radius: 50%; background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); transition: background .4s, box-shadow .4s; }
.flow-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flow-list b { font-size: 13.5px; font-weight: 600; color: var(--text2); transition: color .4s; }
.flow-list span { color: var(--text3); font-size: 12.5px; }
.flow-list em { font-style: normal; color: var(--text3); font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-list li.done > i { background: var(--green); box-shadow: 0 0 10px -2px rgba(46, 189, 133, .8); }
.flow-list li.now > i { background: var(--ember); box-shadow: 0 0 12px -1px rgba(255, 95, 110, .9); }
.flow-list li.done b, .flow-list li.now b { color: var(--text); }
.flow-list li.now em { color: var(--ember); }

/* Eight lanes racing one trade. */
.lanes { list-style: none; margin: 0; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.lanes li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 100px; align-items: center; gap: 12px; font-size: 13px; }
.lanes .ln { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.lanes .lt { height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.lanes .lt i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3b3e46, var(--text2)); }
.lanes .ls { text-align: right; color: var(--text3); font-size: 12px; font-weight: 600; }
.lanes li.win .ln { color: var(--text); }
.lanes li.win .lt i { background: linear-gradient(90deg, var(--shrine-deep), var(--ember) 80%, #ffb3ba); box-shadow: 0 0 14px -2px rgba(255, 95, 110, .7); }
.lanes li.win .ls { color: var(--green); }
.lanes li.lose .lt i { opacity: .45; }

/* Trades before the block. */
.feed-list { list-style: none; margin: 0; padding: 4px 0; min-height: 404px; }
.frow { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
.frow.old { animation: none; }
.frow + .frow { border-top: 1px solid rgba(31, 33, 39, .8); }
.frow .pill { justify-content: center; }
.f-who { min-width: 0; display: flex; flex-direction: column; }
.f-who b { font-size: 13.5px; font-weight: 600; }
.f-who span { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.f-side b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-side small { color: var(--text3); font-size: 11px; font-variant-numeric: tabular-nums; }
.card-note .dot { width: 5px; height: 5px; }

/* 1-second candles. */
#candles { display: block; width: 100%; height: auto; background: radial-gradient(circle at 50% 40%, #10121a, var(--bg1) 70%); }
/* The card's KLineChart: a fixed height for the widget to fill; the drawn candles fill it until the chart mounts. */
.kline { position: relative; height: 380px; }
.kline > #candles { height: 100%; }
.kline > .kline-chart { position: absolute; inset: 0; }
/* The widget asks for 560px at least (its full-page size); in the card it fills the card. */
.kline .klinecharts-pro { min-height: 0; height: 100%; }
.kline .klinecharts-pro-content { min-height: 0; }
/* Below 900px the widget hides its timeframes (its full-page phone layout); the card keeps
   them, and on a phone on one row, without the symbol, candle type and full screen.
   Three classes: the widget's own rules come later with two. */
.kline .klinecharts-pro-period-bar .period { display: block; }
@media (max-width: 640px) {
  .kline .klinecharts-pro .klinecharts-pro-period-bar, .kline .klinecharts-pro-period-bar .period-bar-left { flex-wrap: nowrap; }
  .kline .klinecharts-pro-period-bar .symbol, .kline .klinecharts-pro-period-bar .period-bar-right { display: none; }
}
@media (max-width: 640px) { .kline { height: 320px; } }

/* Region codes in the step icons. */
.sec-ic.tx { font-size: 11.5px; letter-spacing: .06em; }
.sec p + p { margin-top: 4px; }

.chain-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Links into the docs open in a new tab and say so with a small arrow
   (site.js marks them). */
.ext { display: inline-block; flex: none; width: 11px; height: 11px; margin-left: 5px; vertical-align: -1px; opacity: .65; transition: opacity .3s, transform .3s var(--ease); }
a:hover > .ext { opacity: 1; transform: translate(1px, -1px); }
.btn > .ext { width: 14px; height: 14px; margin-left: 0; opacity: 1; vertical-align: middle; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 1060px) {
  .chain-grid.three { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .con-pane { grid-template-columns: 1fr; min-height: 0; }
  .con-req { border-right: 0; border-bottom: 1px solid var(--line); }
  .con-h { padding: 0 14px; }
  .lanes li { grid-template-columns: 88px minmax(0, 1fr) 94px; }
  .speeds { grid-template-columns: 1fr 1fr; }
}

/* API mode carries more links (and the docs links' arrows): a little less air. */
.nav.api .links a { padding: 0 11px; }
.links a .ext { width: 10px; height: 10px; margin-left: 4px; }

/* Landing speeds per plan, under the Lightspeed points. */
.speeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; margin-top: 26px; }
.speed { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: radial-gradient(80% 70% at 50% 0%, rgba(255, 95, 110, .07), transparent 70%), var(--bg1); box-shadow: inset 0 0 0 1px #24252b; }
.speed b { font-size: 28px; font-weight: 650; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.speed span { color: var(--text3); font-size: 12.5px; line-height: 1.45; }
.speed em { font-style: normal; color: var(--text2); font-weight: 600; }
.speed:first-child { box-shadow: inset 0 0 0 1px rgba(255, 95, 110, .35), 0 20px 50px -30px rgba(255, 79, 96, .5); }
.speed:first-child b { background: linear-gradient(180deg, var(--ember-hi) 0%, #ffb3bb 45%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ══ API side in orange ══
   The terminal is the shrine's red; the API pages (body.api: /api/,
   /pricing/, /dashboard/, and the docs in their own copy) are orange, so the
   two sides read apart at a glance. Same shapes, another light. */
body.api ::selection { background: rgba(255, 150, 80, .32); }
body.api a:focus-visible, body.api button:focus-visible, body.api summary:focus-visible { outline-color: #ff9a55; }
body.api .tone { background-image: linear-gradient(180deg, #fff3e8 0%, #ffc799 38%, #ffa25c 76%, #ff8a3d 112%); }
body.api .tone.shine { background-image: linear-gradient(105deg, transparent 42%, rgba(255, 246, 238, .75) 50%, transparent 58%), linear-gradient(180deg, #fff3e8 0%, #ffc799 38%, #ffa25c 76%, #ff8a3d 112%); }
body.api .num { background-image: linear-gradient(180deg, #fff 20%, #ffc799 140%); }
body.api .nav-in::after { background: linear-gradient(90deg, rgba(255, 138, 61, 0), #ffa25c 92%, #ffe0c4); }
body.api .brand img { filter: drop-shadow(0 0 10px rgba(255, 138, 61, .45)); }
body.api .btn:not(.ghost) { background: linear-gradient(180deg, #ffa25c 0%, #ff8a3d 55%, #f97c2c 100%); text-shadow: 0 1px 0 rgba(170, 70, 10, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(170, 70, 10, .2), 0 0 0 1px rgba(255, 160, 100, .5), 0 10px 28px -10px rgba(255, 138, 61, .6); }
body.api .btn:not(.ghost):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(170, 70, 10, .2), 0 0 0 1px rgba(255, 180, 130, .85), 0 16px 40px -10px rgba(255, 138, 61, .75); }
body.api .hero-glow::before { background: radial-gradient(closest-side, rgba(255, 138, 61, .2), rgba(255, 160, 100, .07) 55%, transparent); }
body.api .hero-glow::after { background: radial-gradient(closest-side, rgba(255, 160, 100, .12), rgba(255, 180, 130, .05) 60%, transparent); }
body.api .rule { background: linear-gradient(90deg, #ff9a55, transparent); }
body.api .rule.c { background: linear-gradient(90deg, transparent, #ff9a55, transparent); }
body.api .pts li::before { background: radial-gradient(circle at 35% 30%, #ffe0c4, #ff9a55 55%, #f2731c); box-shadow: 0 0 10px -1px rgba(255, 138, 61, .8); }
body.api .more { color: #ffbf8f; }
body.api .card { background: radial-gradient(70% 55% at 50% 0%, rgba(255, 138, 61, .055), transparent 70%), var(--bg1); }
body.api .card::before { background: linear-gradient(90deg, transparent, rgba(255, 170, 110, .55), transparent); }
body.api .card::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 150, 80, .07), transparent 45%); }
body.api .sec { background: radial-gradient(80% 60% at 50% 0%, rgba(255, 138, 61, .05), transparent 70%), var(--bg1); }
body.api .sec-ic { background: linear-gradient(180deg, rgba(255, 138, 61, .2), rgba(255, 138, 61, .07)); box-shadow: inset 0 1px 0 rgba(255, 200, 160, .35), inset 0 0 0 1px rgba(255, 150, 80, .28), 0 10px 26px -14px rgba(255, 138, 61, .55); }
body.api .chain-c:hover, body.api .duo-c:hover { box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .35), 0 30px 80px -36px rgba(255, 138, 61, .35); }
body.api .qa details[open] summary::after { color: #ff9a55; box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .45); }
body.api .end { background: radial-gradient(700px 360px at 50% 105%, rgba(255, 138, 61, .18), rgba(255, 150, 80, .05) 55%, transparent 75%); }
body.api .end::before { background: linear-gradient(90deg, transparent, #ff9a55, transparent); }
body.api .end-mark { filter: drop-shadow(0 0 28px rgba(255, 138, 61, .65)); }
body.api .ck { border-color: #ff9a55; }
body.api .lanes li.win .lt i { background: linear-gradient(90deg, #f2731c, #ff9a55 80%, #ffd2ab); box-shadow: 0 0 14px -2px rgba(255, 138, 61, .7); }
body.api .flow-list li.now > i { background: #ff9a55; box-shadow: 0 0 12px -1px rgba(255, 138, 61, .9); }
body.api .flow-list li.now em { color: #ff9a55; }
body.api .code .k { color: #ffab73; }
body.api .code .s { color: #ffd6b5; }
body.api .sec code, body.api .ptable code, body.api .plan code, body.api .dash code { background: rgba(255, 138, 61, .09); color: #ffd6b5; }
body.api .links a.nav-api, body.api .nav-panel a.nav-api { color: #ffbf8f; }
body.api .links a.nav-api { background: rgba(255, 138, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .3); }
body.api .links a.nav-api:hover { color: #fff; background: rgba(255, 138, 61, .17); box-shadow: inset 0 0 0 1px rgba(255, 160, 100, .55), 0 0 22px -6px rgba(255, 138, 61, .7); }

/* The two sides' doors in the bar: "Go to API" on the terminal's pages, in
   the API's orange; "Back to terminal" on the API's. */
.nav-docs.nav-goapi { gap: 6px; color: #ffbf8f; background: rgba(255, 138, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .3); transition: color .3s, background .3s, box-shadow .3s; }
.nav-docs.nav-goapi:hover { color: #fff; background: rgba(255, 138, 61, .17); box-shadow: inset 0 0 0 1px rgba(255, 160, 100, .55), 0 0 22px -6px rgba(255, 138, 61, .7); }
.nav-goapi .arr, .nav-back .arr { width: 14px; height: 14px; }
.nav-docs.nav-back { gap: 6px; }
.nav-back .arr { transform: scaleX(-1); }
.nav-back:hover .arr { transform: scaleX(-1) translateX(3px); }
.nav-panel a.nav-goapi { color: #ffbf8f; }
@media (max-width: 720px) {
  .nav-end .nav-goapi { display: inline-flex; min-height: 36px; padding: 0 10px; }
  .nav-end .nav-goapi .arr { display: none; }
}
@media (max-width: 385px) { .nav-end .nav-goapi { display: none; } }

/* ── API page: the speed board, what is supported, who uses it ── */
.trust { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; color: var(--text3); font-size: 13.5px; }
.trust i { display: inline-flex; }
.trust i b { width: 22px; height: 22px; margin-left: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); background: linear-gradient(135deg, #3a3d45, #22242a); }
.trust i b:first-child { margin-left: 0; background: linear-gradient(135deg, #ffa25c, #f2731c); }
.trust i b:nth-child(2) { background: linear-gradient(135deg, #8f6bff, #5b3fd6); }
.trust i b:nth-child(3) { background: linear-gradient(135deg, #2ebd85, #1b8a5f); }
.trust i b:nth-child(4) { background: linear-gradient(135deg, #5fb4ff, #2f7fd6); }

.board { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
.board-big { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 40px 40px 36px; border-right: 1px solid var(--line); }
.board-big b { font-size: clamp(64px, 8vw, 104px); font-weight: 650; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.board-big b small { font-size: .38em; letter-spacing: -.02em; margin-left: 6px; color: var(--text2); -webkit-text-fill-color: var(--text2); }
.board-big > span { color: var(--text2); font-size: 15px; max-width: 320px; }
.board-big em { font-style: normal; color: var(--text); font-weight: 600; }
.board-bars { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 34px 36px; }
.bb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; align-items: center; gap: 14px; font-size: 13.5px; }
.bb .bn { display: flex; flex-direction: column; color: var(--text); font-weight: 600; }
.bb .bn small { color: var(--text3); font-weight: 450; font-size: 12px; }
.bb .bt { height: 10px; border-radius: 5px; background: var(--bg3); overflow: hidden; }
.bb .bt i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #3b3e46, var(--text3)); transition: width 1.4s var(--ease); }
.bb.dev .bt i { background: linear-gradient(90deg, #f2731c, #ff9a55 80%, #ffd2ab); box-shadow: 0 0 16px -2px rgba(255, 138, 61, .75); }
.bb.lite .bt i { background: linear-gradient(90deg, #2f7fd6, #5fb4ff 80%, #cfe7ff); }
.bb .bv { text-align: right; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.board.in .bb .bt i, .reveal.in .bb .bt i { width: var(--w); }
.board-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text3); font-size: 12.5px; }

.sup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.sup-c { padding: 26px 26px 22px; }
.sup-c h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.sup-c > p { margin-top: 6px; color: var(--text3); font-size: 13.5px; }
.sup-l { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sup-l li { position: relative; padding-left: 26px; color: var(--text2); font-size: 14px; }
.sup-l li b { color: var(--text); font-weight: 600; }
.sup-l li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 5px; border-left: 2px solid #ff9a55; border-bottom: 2px solid #ff9a55; transform: rotate(-45deg); }
.pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.pad { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg1); box-shadow: inset 0 0 0 1px #24252b; }
.pad img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; flex: none; }
.pad b { display: block; font-size: 14px; font-weight: 600; }
.pad span { display: block; color: var(--text3); font-size: 12px; }

/* ── Pricing: one colour per plan ── */
.plan.p-free { --pc: 163, 166, 174; }
.plan.p-lite { --pc: 95, 180, 255; }
.plan.p-dev { --pc: 255, 138, 61; }
.plan[class*='p-'] { background: radial-gradient(80% 55% at 50% 0%, rgba(var(--pc), .1), transparent 70%), var(--bg1); box-shadow: inset 0 0 0 1px rgba(var(--pc), .28), 0 30px 80px -40px rgba(0, 0, 0, .85); }
.plan[class*='p-']::before { left: 10%; right: 10%; background: linear-gradient(90deg, transparent, rgba(var(--pc), .9), transparent); }
.plan.p-dev { box-shadow: inset 0 0 0 1px rgba(var(--pc), .5), 0 30px 80px -36px rgba(var(--pc), .45); }
.plan[class*='p-'] .plan-k { color: rgb(var(--pc)); }
.plan[class*='p-'] .price b { color: #fff; }
.plan[class*='p-'] .pts li::before { background: rgb(var(--pc)); box-shadow: 0 0 10px -1px rgba(var(--pc), .8); }
.plan[class*='p-'] .plan-badge { color: rgb(var(--pc)); background: rgba(var(--pc), .1); box-shadow: inset 0 0 0 1px rgba(var(--pc), .32); }
.plan.p-lite .btn:not(.ghost) { background: linear-gradient(180deg, #84c5ff 0%, #5fb4ff 55%, #4ea6f5 100%); text-shadow: 0 1px 0 rgba(20, 70, 140, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(20, 70, 140, .2), 0 0 0 1px rgba(130, 195, 255, .5), 0 10px 28px -10px rgba(95, 180, 255, .6); }
.ptable th.c-free b { color: rgb(163, 166, 174); }
.ptable th.c-lite b { color: rgb(95, 180, 255); }
.ptable th.c-dev b { color: rgb(255, 138, 61); }
.ptable .c-lite { background: rgba(95, 180, 255, .03); }
.ptable .c-dev { background: rgba(255, 138, 61, .045); }

@media (max-width: 1060px) {
  .board { grid-template-columns: 1fr; }
  .board-big { border-right: 0; border-bottom: 1px solid var(--line); }
  .sup { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .board-big, .board-bars { padding: 26px 20px; }
  .bb { grid-template-columns: 104px minmax(0, 1fr) 62px; gap: 10px; font-size: 13px; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* "Go to API" on the terminal's bar: a solid button in the API's orange,
   next to the terminal's red one. On phones it shortens to "API". */
.btn.btn-api { background: linear-gradient(180deg, #ffa25c 0%, #ff8a3d 55%, #f97c2c 100%); text-shadow: 0 1px 0 rgba(170, 70, 10, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(170, 70, 10, .2), 0 0 0 1px rgba(255, 160, 100, .5), 0 10px 28px -10px rgba(255, 138, 61, .6); }
.btn.btn-api:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(170, 70, 10, .2), 0 0 0 1px rgba(255, 180, 130, .85), 0 16px 40px -10px rgba(255, 138, 61, .75); }
.btn-api .go { margin-right: -5px; }
@media (max-width: 720px) {
  .btn-api .go, .btn-api .arr { display: none; }
  .nav-end .btn.btn-api { padding: 0 15px; }
}
@media (max-width: 385px) { .nav-end .btn.btn-api { display: none; } }

/* The API side's logo: "Shrine API", the API in orange. */
.brand .brand-api { margin-left: -4px; color: #ff9a55; }

/* Shrinemaps, live: a token's holder map in a frame (site.js picks the token). */
.holder-map { display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 480px; border: 0; background: var(--bg1); }
.maps-live .holder-map { aspect-ratio: auto; height: 560px; }

/* ══ Dashboard (/dashboard/) ══ */
.dash { position: relative; min-height: 78vh; padding: 130px 0 120px; overflow: hidden; }
.dash > .hero-glow { height: 760px; }
.dash .wrap { position: relative; }
.dash h1 { margin-top: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.dash-k { color: var(--text3); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dash-p { margin-top: 10px; color: var(--text3); font-size: 13.5px; }
.dash-note { margin-top: 18px; color: var(--text2); font-size: 14px; }
.dash-err { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(246, 70, 93, .08); box-shadow: inset 0 0 0 1px rgba(246, 70, 93, .3); color: #ff9aa6; font-size: 13.5px; }

/* Log in */
.dash-login { display: grid; place-items: center; padding-top: 40px; }
.login-c { width: 100%; max-width: 480px; padding: 40px 36px 36px; text-align: center; }
.login-mark { margin: 0 auto 22px; filter: drop-shadow(0 0 22px rgba(255, 138, 61, .55)); }
.login-c > p { margin-top: 12px; color: var(--text2); font-size: 15px; }
.tg { display: flex; justify-content: center; min-height: 48px; margin-top: 28px; }
.dev { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.dev-row { display: flex; gap: 8px; margin-top: 10px; }
.dash input { min-width: 0; flex: 1; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.dash input:focus { box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .6), 0 0 0 3px rgba(255, 138, 61, .12); }

/* Logged in */
.me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me-av { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; color: var(--text); background: linear-gradient(135deg, #3a3d45, #22242a); }
.me-t { display: flex; flex-direction: column; min-width: 0; }
.me-t span { color: var(--text3); font-size: 14px; }
.me-out { margin-left: auto; }
.plan-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: rgb(var(--pc, 163, 166, 174)); background: rgba(var(--pc, 163, 166, 174), .1); box-shadow: inset 0 0 0 1px rgba(var(--pc, 163, 166, 174), .35); }
.pl-free { --pc: 163, 166, 174; }
.pl-lite { --pc: 95, 180, 255; }
.pl-dev { --pc: 255, 138, 61; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.dash-c { margin-top: 16px; }
.dash-grid .dash-c { margin-top: 0; }
.dash-b { padding: 20px 18px 22px; }
.key-box { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.key-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 13px ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; background: none; padding: 0; }
.kb { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--bg3); color: var(--text2); font-size: 12.5px; font-weight: 600; transition: color .2s, background .2s; }
.kb:hover { color: var(--text); background: var(--bg4); }
.kb.warn { color: #ff9aa6; }
.key-new { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-confirm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text2); font-size: 13px; }
.plan-now { display: flex; flex-direction: column; gap: 4px; }
.plan-now b { font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: rgb(var(--pc, 236, 236, 238)); }
.plan-now span { color: var(--text3); font-size: 13.5px; }
.plan-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; text-align: left; background: rgba(var(--pc), .07); box-shadow: inset 0 0 0 1px rgba(var(--pc), .35); transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.buy:hover { transform: translateY(-1px); background: rgba(var(--pc), .13); box-shadow: inset 0 0 0 1px rgba(var(--pc), .6), 0 14px 34px -18px rgba(var(--pc), .7); }
.buy b { color: rgb(var(--pc)); font-size: 15px; font-weight: 650; }
.buy span { color: var(--text3); font-size: 12.5px; }
.buy.p-lite { --pc: 95, 180, 255; }
.buy.p-dev { --pc: 255, 138, 61; }
.plan-buy + .more { margin-top: 16px; }

/* Paying */
.pay { box-shadow: inset 0 0 0 1px rgba(var(--pc, 255, 138, 61), .4), 0 30px 80px -40px rgba(var(--pc, 255, 138, 61), .5); }
.pay-b { padding: 22px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.pay-amt { display: flex; align-items: baseline; gap: 10px; color: var(--text3); font-size: 14px; }
.pay-amt b { color: #fff; font-size: 34px; font-weight: 650; letter-spacing: -.035em; }
.pay-addr code { font-size: 13.5px; }
.pay-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-st { display: inline-flex; align-items: center; gap: 9px; color: var(--text2); font-size: 13.5px; }
.pay-st.ok { color: var(--green); font-weight: 600; }
.pay-st.off { color: var(--text3); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); border-top-color: rgb(var(--pc, 255, 138, 61)); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-bar { height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.pay-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: rgb(var(--pc, 255, 138, 61)); box-shadow: 0 0 14px -2px rgba(var(--pc, 255, 138, 61), .8); transition: width .8s var(--ease); }
.ptable.hist { min-width: 0; }
.ptable.hist th, .ptable.hist td { width: auto; text-align: left; }

@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash { padding-top: 104px; }
  .login-c { padding: 30px 20px 26px; }
  .dev-row { flex-wrap: wrap; }
  .me-out { margin-left: 0; }
  .plan-buy { grid-template-columns: 1fr; }
}

/* [hidden] always hides, whatever display a block's own rule sets. */
[hidden] { display: none !important; }
body.api .key-box code { background: none; padding: 0; color: var(--text); }

/* Telegram's own blue for its login button. */
.btn.tg-btn { gap: 10px; min-width: 260px; background: linear-gradient(180deg, #4cc0f5 0%, #2aabee 55%, #229ed9 100%); text-shadow: 0 1px 0 rgba(10, 70, 110, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(10, 70, 110, .2), 0 0 0 1px rgba(110, 200, 245, .5), 0 10px 28px -10px rgba(42, 171, 238, .65); }
body.api .btn.tg-btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(10, 70, 110, .2), 0 0 0 1px rgba(140, 215, 250, .85), 0 16px 40px -10px rgba(42, 171, 238, .8); }
body.api .btn.tg-btn { background: linear-gradient(180deg, #4cc0f5 0%, #2aabee 55%, #229ed9 100%); text-shadow: 0 1px 0 rgba(10, 70, 110, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(10, 70, 110, .2), 0 0 0 1px rgba(110, 200, 245, .5), 0 10px 28px -10px rgba(42, 171, 238, .65); }

/* Phantom's own purple for its payment button. */
body.api .btn.pay-phantom { background: linear-gradient(180deg, #bcb2f7 0%, #ab9ff2 50%, #9886ec 100%); color: #1c1340; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(60, 40, 140, .2), 0 0 0 1px rgba(190, 180, 250, .55), 0 10px 28px -10px rgba(171, 159, 242, .65); }
body.api .btn.pay-phantom:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(60, 40, 140, .2), 0 0 0 1px rgba(210, 200, 255, .85), 0 16px 40px -10px rgba(171, 159, 242, .8); }
.btn[disabled] { opacity: .55; cursor: default; transform: none !important; }

/* Dashboard plans: the three side by side, the running one lit and labelled. */
.dash-key { margin-top: 30px; }
.dash-plans-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 44px; }
.dash .dash-plans-h h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.dash-plans-h .more { margin-top: 0; }
.dash-plans { margin-top: 16px; }
.dash-plans .plan { padding: 26px; }
.dash-plans .plan .price b { font-size: 40px; }
.dash-plans .plan .pts { margin-top: 18px; }
.plan-cur { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: #fff; background: rgb(var(--pc)); box-shadow: 0 0 18px -4px rgba(var(--pc), .9); }
.plan.p-free .plan-cur { color: #111; }
.plan-k { flex-wrap: wrap; }
.plan-k .plan-cur + .plan-badge { margin-left: auto; }
.plan.is-current { box-shadow: inset 0 0 0 2px rgba(var(--pc), .8), 0 30px 80px -34px rgba(var(--pc), .55); background: radial-gradient(80% 60% at 50% 0%, rgba(var(--pc), .16), transparent 70%), var(--bg1); }
.plan-until { margin: 0 0 12px; color: rgb(var(--pc)); font-size: 13.5px; font-weight: 600; }
.plan-until:empty { display: none; }
.plan-inc { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; color: var(--text3); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line2); }
.plan.is-current .plan-inc { color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--pc), .6); }
.plan .buy-btn { width: 100%; }
@media (max-width: 1060px) { .dash-plans { max-width: none; } }

/* Wallet login, next to Telegram's. */
.tg { flex-direction: column; align-items: center; gap: 10px; }
.btn.wallet-btn, body.api .btn.wallet-btn { gap: 10px; min-width: 260px; color: var(--text); background: rgba(255, 255, 255, .04); text-shadow: none; box-shadow: inset 0 0 0 1px #3a3c44; }
body.api .btn.wallet-btn:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px #55575f; }

/* The key card: room between the line and its button. */
.dash-key .dash-p + .btn { margin-top: 16px; }

/* Pricing: the plans cover Solana only. */
.chain-note { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 18px; border-radius: 14px; max-width: 640px; text-align: left; color: var(--text2); font-size: 14.5px; line-height: 1.5; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line2); }
.chain-note img { flex: none; }
.chain-note b { color: var(--text); font-weight: 650; }

/* Dashboard: a payment that landed, and links to transactions. */
.paid-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; color: var(--green); font-size: 14px; font-weight: 600; background: rgba(46, 189, 133, .08); box-shadow: inset 0 0 0 1px rgba(46, 189, 133, .3); }
.tx-link { color: #ffbf8f; border-bottom: 1px solid rgba(255, 191, 143, .4); }
.tx-link:hover { color: #fff; }
.paid-note .tx-link { margin-left: 6px; }

/* Dashboard: discount code */
.code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.code-row label { color: var(--text2); font-size: 14px; font-weight: 600; }
.code-box { display: flex; gap: 8px; flex: 0 1 360px; min-width: 0; }
.dash .code-box input { height: 40px; text-transform: uppercase; letter-spacing: .04em; }
.dash .code-box input::placeholder { text-transform: none; letter-spacing: 0; }
.code-ok { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 8px 8px 14px; border-radius: 12px; color: var(--green); font-size: 14px; font-weight: 600; background: rgba(46, 189, 133, .08); box-shadow: inset 0 0 0 1px rgba(46, 189, 133, .3); }
.code-ok b { color: #fff; letter-spacing: .04em; }
#code-err { margin-top: 10px; }
.price s { margin-right: 8px; color: var(--text3); font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-decoration-thickness: 2px; }
@media (max-width: 560px) { .code-box { flex-basis: 100%; } }

/* Dashboard: Lightspeed wallets */
.ls-plan { margin-top: 0; }
.ls-plan:empty { display: none; }
.ls-plan b { color: var(--text); font-weight: 600; }
.ls-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ls-list:empty { display: none; }
.ls-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.ls-who { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.ls-who b { color: var(--text); font-size: 14px; font-weight: 600; }
.ls-who a { color: var(--text3); font: 12.5px ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; text-decoration: none; }
.ls-who a:hover { color: var(--text); }
.ls-bal { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ls-bal small { color: var(--text3); font-weight: 500; }
.ls-row .key-confirm { margin-left: auto; }
/* X stream servers: online or not, beside the address */
.xs-st { display: inline-flex; align-items: center; gap: 7px; color: var(--text2); font-size: 13px; }
.xs-st .dot.off { background: var(--text3); animation: none; }
.xs-none { margin-top: 14px; }
.xs-get { margin-top: 14px; }
.ls-secret { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 14px; background: rgba(255, 138, 61, .05); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .35); }
.ls-secret .btn { align-self: flex-start; margin-top: 6px; }
.ls-warn { margin: 0 0 4px; color: var(--text2); font-size: 13.5px; }
.ls-warn b { color: #ffb380; }
.ls-lbl { margin-top: 4px; color: var(--text3); font-size: 12.5px; font-weight: 600; }
.ls-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ls-new, .ls-link { display: flex; gap: 8px; flex: 1 1 300px; min-width: 0; }
.dash .ls-actions input { height: 40px; }
.ls-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ls-way { display: flex; flex-direction: column; gap: 4px; color: var(--text3); font-size: 13px; }
.ls-way b { color: var(--text); font-size: 13.5px; font-weight: 600; }
.ls-ways .more { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 560px) { .ls-ways { grid-template-columns: 1fr; } }

/* Dashboard: the private Telegram group */
.group-b { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.group-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #4cc0f5; background: rgba(42, 171, 238, .12); box-shadow: inset 0 0 0 1px rgba(42, 171, 238, .35); }
.group-b .group-t { flex: 1; min-width: 220px; margin: 0; }
.group-b .btn.tg-btn { min-width: 0; }
@media (max-width: 560px) { .group-b .group-btn { width: 100%; justify-content: center; } }

/* The Data MCP card on /api/: a question, the tool the agent picks, the
   rows it reads, the answer (api.js). */
.mcp-chat { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 312px; }
.mc-q { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--bg3); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.mc-a { align-self: flex-start; max-width: 92%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: rgba(255, 138, 61, .07); box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .2); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.mc-q.typing::after, .mc-a.typing::after { content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: .6; animation: mc-caret 1s steps(1) infinite; }
.mc-tool { border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
.mc-th { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; font-size: 12px; }
.mc-th code { flex: none; color: #ffbf8f; font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mc-args { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text3); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mc-t { margin-left: auto; flex: none; color: var(--text3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff9a55; box-shadow: 0 0 10px -1px rgba(255, 138, 61, .9); animation: mc-pulse 1s ease-in-out infinite; }
.mc-dot.done { animation: none; background: var(--green); box-shadow: 0 0 10px -2px rgba(46, 189, 133, .8); }
.mc-rows { list-style: none; margin: 0; padding: 0; }
.mc-rows:not(:empty) { border-top: 1px solid var(--line); padding: 4px 0; }
.mc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; color: var(--text2); font-size: 12.5px; animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
.mc-rows li b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-rows li b.up { color: var(--green); }
.mc-rows li b.down { color: var(--red); }
@keyframes mc-pulse { 50% { opacity: .35; } }
@keyframes mc-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mc-tool, .mc-rows li, .mc-dot { animation: none; } }

/* The hero's two pitches (api.js swaps them): stacked in one grid cell, so
   the height is the taller one's and nothing below moves. */
.swap { display: grid; }
.swap > .sw { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(-8px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
/* The new one comes in only once the old one is gone: they never overlap. */
.swap > .sw.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .55s var(--ease) .42s, transform .55s var(--ease) .42s; }
@media (prefers-reduced-motion: reduce) { .swap > .sw { transition: none; } }

/* The Data MCP's try panel (try.js), in its section on the page. */
.try-card { display: flex; flex-direction: column; height: 640px; }
.tw-limit { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 138, 61, .08); box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .22); color: var(--text); font-size: 13px; line-height: 1.5; }
.tw-limit p { margin: 0; }
.tw-msg .tw-limit { margin: 8px 0 4px; }
.tw-log { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tw-log > * { min-width: 0; max-width: 100%; }
.tw-msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; }
.tw-msg p { margin: 0; }
.tw-msg.me { align-self: flex-end; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--bg3); }
.tw-msg.bot { align-self: stretch; max-width: 100%; padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255, 138, 61, .06); box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .16); }
.tw-k { display: block; margin: 12px 0 6px; color: var(--text3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 6px 11px; border: 0; border-radius: 9px; background: linear-gradient(180deg, #ffa25c, #ff8a3d); color: #1a0d04; font: 600 12.5px/1.25 var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.tw-btn.ghost, .tw-btn.chip { background: var(--bg2); color: var(--text2); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 500; }
.tw-btn.chip:hover, .tw-btn.ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .45); }
.tw-btn.chip.ask::after { content: '↗'; color: var(--text3); }
.tw-btn.sm { min-height: 24px; padding: 3px 8px; font-size: 11.5px; }
.tw-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tw-tool { flex: none; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
.tw-th { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.tw-th code { flex: none; color: #ffbf8f; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tw-args { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text3); font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tw-t { margin-left: auto; flex: none; color: var(--text3); font-size: 11.5px; }
.tw-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff9a55; animation: mc-pulse 1s ease-in-out infinite; }
.tw-dot.ok { animation: none; background: var(--green); }
.tw-dot.bad { animation: none; background: var(--red); }
.tw-tb { padding: 8px 12px 10px; }
.tw-tablewrap { overflow-x: auto; }
.tw-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tw-table th { padding: 4px 10px 6px 0; color: var(--text3); font-weight: 600; text-align: left; white-space: nowrap; }
.tw-table td { padding: 5px 10px 5px 0; border-top: 1px solid rgba(31, 33, 39, .9); color: var(--text2); white-space: nowrap; }
.tw-table td.pos { color: var(--green); }
.tw-table td.neg { color: var(--red); }
.tw-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 12.5px; }
.tw-kv dt { color: var(--text3); }
.tw-kv dd { margin: 0; color: var(--text); word-break: break-word; }
.tw-sub { margin: 10px 0 4px; color: var(--text3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tw-line { margin: 8px 0 0; color: var(--text); font-size: 13px; }
.tw-read { margin: 4px 0 0; color: var(--text3); font-size: 11.5px; }
.tw-none { margin: 2px 0; color: var(--text3); font-size: 12.5px; }
.tw-steps { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.tw-steps a { color: #ffbf8f; }
.tw-code { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 8px 8px 8px 10px; border-radius: 9px; background: #0a0b0d; box-shadow: inset 0 0 0 1px var(--line2); }
.tw-code code { flex: 1; min-width: 0; color: var(--text2); font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.tw-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.tw-in input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bg2); color: var(--text); font: 14px var(--font); box-shadow: inset 0 0 0 1px var(--line2); outline: none; }
.tw-in input:focus { box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .55); }
.tw-send { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #ffa25c, #ff8a3d); cursor: pointer; }
.tw-send::before { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: #1a0d04; clip-path: polygon(0 0, 100% 50%, 0 100%, 0 62%, 64% 50%, 0 38%); }
.tw-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.tw-hidden { position: fixed; left: -9999px; top: 0; opacity: 0; }
@media (max-width: 720px) { .try-card { height: 580px; } }
@media (prefers-reduced-motion: reduce) { .tw-tool, .tw-dot { animation: none; } }

/* The free trial line (filled and shown by site.js when the API offers one). */
[data-trial][hidden] { display: none !important; }
.trial-line { color: #8fe3bf !important; }
.plan-trial { margin-top: 10px; color: #8fe3bf; font-size: 13px; text-align: center; }

/* Dashboard: the free trial card. */
.dash-trial { background: radial-gradient(70% 90% at 0% 0%, rgba(46, 189, 133, .09), transparent 70%), var(--bg1); box-shadow: inset 0 0 0 1px rgba(46, 189, 133, .3), 0 30px 80px -40px rgba(0, 0, 0, .85); }
.trial-b { display: flex; align-items: center; gap: 24px; }
.trial-t { flex: 1; min-width: 0; }
.trial-t b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.trial-t .dash-p { margin-top: 6px; }
.trial-msg { color: var(--amber) !important; }
.trial-btn { flex: none; }
@media (max-width: 720px) { .trial-b { flex-direction: column; align-items: stretch; gap: 14px; } }

/* ══ The API pages, square, flat and mostly monochrome (2026-11-09) ══
   /api/, /api/pricing/ and /api/dashboard/: square corners, flat buttons, a
   full-width bar, white and greys, and the hero's grid behind the whole page,
   in place of pills, glows, gradients and orange everywhere. Orange is kept
   for the log-in buttons, a few words, and the Developer plan (its card,
   column, bar and button).
   The terminal's /home/ keeps its look. Round stays only where it means
   something: status dots, spinners, avatars and logos. */
body.api { --r: 0px; --edge: #26282e; --mute: #7f828b; --ink: #dcdde1; --ink-hi: #e8e9ec; --ink-lo: #c9cacf; --grid: rgba(255, 255, 255, .02); }
/* Softer text: off-white instead of near-white, the greys a step down. */
body.api { --text: #d3d5da; --text2: #979aa3; --text3: #6c7079; }
body.api .plan[class*='p-'] .price b, body.api .pay-amt b, body.api .code-ok b { color: var(--text); }
body.api ::selection { background: rgba(255, 255, 255, .18); }
body.api a:focus-visible, body.api button:focus-visible, body.api summary:focus-visible { border-radius: 0; outline-color: var(--text); outline-offset: 2px; }

/* The grid: faint behind the whole page, stronger under the hero (its own
   grid, lined up with this one: same size, same origin). Cards are solid,
   so they sit on it. */
body.api { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; background-position: center -1px; }
body.api .hero-grid { height: 1100px; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 80%); }

/* The bar: full width, flush with the top, a hairline under it. */
body.api .nav { padding: env(safe-area-inset-top) 0 0; background: rgba(9, 9, 11, .88); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 -1px 0 var(--line); pointer-events: auto; }
body.api .nav-in, body.api .nav.scrolled .nav-in { max-width: none; height: 60px; padding: 0 max(16px, calc((100% - 1200px) / 2 + 28px)); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
body.api .nav-in::after { left: 0; right: 0; background: rgba(255, 255, 255, .35); opacity: 1; }
body.api .brand img { filter: none; }
body.api .brand .brand-api { color: var(--mute); }
body.api .links a, body.api .nav-docs { min-height: 36px; padding: 0 12px; border-radius: 0; font-weight: 500; }
body.api .links a[aria-current='page'], body.api .nav-docs[aria-current='page'] { color: var(--text); background: none; box-shadow: none; font-weight: 600; }
body.api .links a.nav-api, body.api .links a.nav-api:hover, body.api .nav-panel a.nav-api { color: var(--text); background: none; box-shadow: none; }
body.api .nav-panel { top: calc(100% + 8px); right: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--edge), 0 24px 60px -20px rgba(0, 0, 0, .9); }

/* Buttons: white on black, or a hairline box. No lift, no sheen. */
body.api .btn { min-height: 44px; padding: 0 20px; border-radius: 0; font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-shadow: none; transition: background-color .15s, box-shadow .15s, color .15s; }
body.api .btn::before, body.api .btn::after { display: none; }
body.api .btn:hover, body.api .btn:active { transform: none; }
body.api .btn:hover .arr { transform: translateX(2px); }
body.api .btn:not(.ghost), body.api .plan.p-lite .btn:not(.ghost) { color: #0b0b0d; background: var(--ink); box-shadow: none; text-shadow: none; }
body.api .btn:not(.ghost):hover, body.api .plan.p-lite .btn:not(.ghost):hover { background: var(--ink-hi); box-shadow: none; }
body.api .btn:not(.ghost):active { background: var(--ink-lo); }
body.api .btn.ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
body.api .btn.ghost:hover { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px #4a4c53; }
body.api .btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
body.api .btn.lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
/* Sign-in and payment buttons keep their brands' colours. */
body.api .btn.tg-btn { color: #fff; background: #2aabee; box-shadow: none; }
body.api .btn.tg-btn:hover { background: #45b8f2; box-shadow: none; }
body.api .btn.pay-phantom { color: #1c1340; background: #ab9ff2; box-shadow: none; }
body.api .btn.pay-phantom:hover { background: #bbb1f5; box-shadow: none; }
body.api .btn.wallet-btn { color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px #3a3c44; }
body.api .btn.wallet-btn:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px #55575f; }

/* Type: white and grey. Headlines' second line in grey, no gradient fills,
   no passing light. */
body.api .tone, body.api .tone.shine { background: none; color: var(--mute); animation: none; }
body.api .num, body.api .speed:first-child b, body.api .board-big b.tone { background: none; color: var(--text); }
body.api .more, body.api .tw-steps a { color: var(--text); }
body.api .more:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
body.api .tx-link { color: var(--text); border-bottom-color: rgba(255, 255, 255, .3); }
body.api .rule, body.api .rule.c { background: var(--line2); }
body.api .code .k { color: #e4e6eb; }
body.api .code .s { color: #9fd8b8; }
body.api .sec code, body.api .ptable code, body.api .plan code, body.api .dash code { background: rgba(255, 255, 255, .06); color: var(--text); }
body.api .mc-th code, body.api .tw-th code { color: var(--text2); }

/* No glow. */
body.api .hero-glow { display: none; }
body.api .end { background: none; }
body.api .end::before { display: none; }
body.api .end-mark, body.api .login-mark { filter: none; }

/* Cards: a hairline box on the page, no light line, no pointer glow. */
body.api .card, body.api .sec, body.api .speed, body.api .pad { border-radius: 0; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--edge); }
body.api .card::before, body.api .card::after { display: none; }
body.api .chain-c:hover, body.api .duo-c:hover { transform: none; box-shadow: inset 0 0 0 1px #4a4c53; }
body.api .plan.hot { background: var(--bg1); box-shadow: inset 0 0 0 1px var(--line2); }
/* A plan's colour as a band along its top, and on its name and badge only. */
body.api .plan[class*='p-'] { background: var(--bg1); box-shadow: inset 0 0 0 1px var(--edge), inset 0 2px 0 rgb(var(--pc)); }
body.api .plan.p-dev { box-shadow: inset 0 0 0 1px rgba(var(--pc), .4), inset 0 2px 0 rgb(var(--pc)); }
body.api .buy:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(var(--pc), .6); }
body.api .sec-ic { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--edge); }

/* Badges as small capitals in a box. */
body.api .plan-badge { height: 22px; padding: 0 8px; font: 600 10.5px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }

/* Lists and bars: grey marks, flat fills; the plans' bars keep their colours. */
body.api .pts li::before, body.api .plan[class*='p-'] .pts li::before { top: 9px; width: 6px; height: 6px; border-radius: 0; background: var(--text3); box-shadow: none; }
body.api .ck, body.api .sup-l li::before { border-color: var(--text2); }
body.api .bb .bt i { background: var(--text3); }
body.api .bb.dev .bt i { background: #ff8a3d; box-shadow: none; }
body.api .bb.lite .bt i { background: #5fb4ff; }
body.api .lanes li.win .lt i { background: var(--text); box-shadow: none; }
body.api .flow-list li.now > i { background: var(--text); box-shadow: none; }
body.api .flow-list li.now em { color: var(--text); }
body.api .trust i b:first-child { background: linear-gradient(135deg, #c9ccd3, #7d808a); }

/* The try-it chat and the account page: neutral fills, white buttons. */
body.api .tw-msg.bot, body.api .mc-a, body.api .tw-limit, body.api .ls-secret { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--edge); }
body.api .tw-btn:not(.ghost):not(.chip), body.api .tw-send { color: #0b0b0d; background: var(--ink); }
body.api .tw-btn:not(.ghost):not(.chip):hover, body.api .tw-send:hover { background: var(--ink-hi); }
body.api .tw-btn.chip:hover, body.api .tw-btn.ghost:hover { box-shadow: inset 0 0 0 1px #4a4c53; }
body.api .tw-in input:focus, body.api .dash input:focus { box-shadow: inset 0 0 0 1px #5a5c63; }
body.api .mc-dot, body.api .tw-dot { background: var(--text2); box-shadow: none; }

/* Orange, a little: the log-in buttons, the Developer plan's button, the
   logo's "API" and the one phrase in each page's main headline. */
body.api { --orange: #ff8a3d; --orange-hi: #ff9d5c; --orange-lo: #f27a2a; }
body.api .btn[data-login]:not(.ghost), body.api .plan.p-dev .btn:not(.ghost) { color: #160b03; background: var(--orange); }
body.api .btn[data-login]:not(.ghost):hover, body.api .plan.p-dev .btn:not(.ghost):hover { background: var(--orange-hi); }
body.api .btn[data-login]:not(.ghost):active, body.api .plan.p-dev .btn:not(.ghost):active { background: var(--orange-lo); }
body.api .nav-panel a[data-login] { color: var(--orange); }
body.api .brand .brand-api { color: var(--orange); }
/* Headlines take shrine red (11-20: less orange). */
body.api h1 .tone, body.api h1 .tone.shine { color: #ff4f60; }

/* Everything else that was rounded. */
body.api :is(.pill, .tag, .plan-badge, .plan-chip, .plan-cur, .plan-inc, .sec-ic, .chain-ic, .group-ic, .qb, .seg, .seg button, .bar, .bar i, .bb .bt, .bb .bt i, .lanes .lt, .lanes .lt i, .pay-bar, .pay-bar i, .nav-panel a, .nav-menu > summary, .tw-btn, .tw-send, .tw-in input, .tw-code, .tw-limit, .tw-tool, .tw-msg, .mc-q, .mc-a, .mc-tool, .dash-err, .dash input, .key-box, .kb, .buy, .chain-note, .paid-note, .code-ok, .ls-row, .ls-secret, .sec code, .ptable code, .plan code, .dash code) { border-radius: 0; }
body.api .qa summary::after { border-radius: 0; }
/* An open question shows a minus (a square box turned 135° reads as a diamond). */
body.api .qa details[open] summary::after { transform: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat; }

/* The speed board's Developer row also matched the account page's `.dev` section (a line and a gap above it). */
body.api .bb.dev { margin-top: 0; padding-top: 0; border-top: 0; }

/* ══ The API pages, open (2026-11-09): /api/ and /api/pricing/ (body.v2) ══
   On top of the square, mostly monochrome body.api look above. Nothing boxed
   but the live examples; hairlines in place of cards; one heading pattern
   for every section (a numbered label, the heading, its paragraph beside
   it); the products as tiles with a small picture each under the speed band;
   wider spacing; and two rails down the page on the page grid's lines.
   Buttons fill from the left on hover while their arrow runs out and back. */

body.v2 { --rail: rgba(255, 255, 255, .055); --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }

/* The column: 1344 px (21 grid squares, 11-20; was 19) so its edges sit on
   grid lines, the same width as the shared header (shell.css). */
body.v2 .wrap { max-width: 1344px; padding: 0 48px; }
body.v2 .nav-in, body.v2 .nav.scrolled .nav-in { padding: 0 max(16px, calc((100% - 1344px) / 2 + 48px)); }
@media (min-width: 1408px) {
  body.v2::before { content: ''; position: fixed; z-index: -1; top: 0; bottom: 0; left: 50%; width: 1344px; margin-left: -672px; box-shadow: inset 1px 0 0 var(--rail), inset -1px 0 0 var(--rail); pointer-events: none; }
}

/* A section's label: its number and name, small capitals in mono. */
body.v2 .eb { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; color: var(--text3); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
body.v2 .eb i { display: inline-flex; align-items: center; gap: 12px; font-style: normal; color: var(--text2); }
body.v2 .eb i::after { content: ''; width: 28px; height: 1px; background: var(--line2); }

/* Type: the same family, lighter weights, more air. */
body.v2 h1 { margin: 0; font-size: clamp(44px, 7.2vw, 100px); line-height: .94; font-weight: 600; letter-spacing: -.052em; text-align: left; }
body.v2 h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; font-weight: 600; letter-spacing: -.042em; }
body.v2 h2 .tone { display: block; }
body.v2 h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }

/* ── Hero: left-aligned; the lead and the buttons share a row under it. ── */
body.v2 .x-hero { padding: 176px 0 0; text-align: left; }
body.v2 .x-hero .hero-grid { -webkit-mask-image: radial-gradient(ellipse 70% 75% at 35% 25%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 75% at 35% 25%, #000 20%, transparent 78%); }
body.v2 .x-hero-in { position: relative; }
/* The hero's first line: the label, then the speed claim in brighter text with an orange mark. */
body.v2 .x-vs { flex-wrap: wrap; row-gap: 12px; }
body.v2 .x-vs b { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
body.v2 .x-vs b::before { content: ''; width: 6px; height: 6px; background: var(--orange); }
body.v2 .x-vs-n { color: var(--text3); letter-spacing: .04em; }
body.v2 .x-vs-n::before { content: '·'; margin-right: 12px; color: var(--line2); }
body.v2 .x-hero h1 .sw { align-self: start; }
body.v2 .x-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; margin-top: 48px; }
body.v2 .x-hero .lead { margin: 0; max-width: 560px; font-size: 18.5px; line-height: 1.6; }
body.v2 .x-hero .lead .sw { align-self: start; }
body.v2 .x-hero-act { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
body.v2 .x-hero-act .cta { margin: 0; justify-content: flex-end; }
body.v2 .x-hero-act .trust { margin: 0; }

/* ── The speed band: hairlines across the page, no box. ── */
body.v2 .x-band { position: relative; margin-top: 104px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.v2 .x-board { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: none; box-shadow: none; }
body.v2 .x-board .board-big { gap: 14px; padding: 56px 56px 52px 0; border-right: 1px solid var(--line); }
body.v2 .x-board .board-big b { font-size: clamp(76px, 9.4vw, 132px); font-weight: 600; }
body.v2 .x-board .board-big > span { max-width: 340px; }
body.v2 .x-board .board-bars { gap: 26px; padding: 52px 0 52px 56px; }
body.v2 .x-board .bb { grid-template-columns: 170px minmax(0, 1fr) 80px; gap: 18px; }
body.v2 .x-board .bb .bt { height: 6px; }
/* The board in colour again (2026-11-17): the ~50 in the warm gradient, and
   each bar filled in its colour with a glow and a light passing along it. The
   track lets the glow out; the bar clips its own light. */
body.v2 .x-board .board-big b.tone { background-image: linear-gradient(180deg, #fff3e8 0%, #ffc799 38%, #ffa25c 76%, #ff8a3d 112%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 138, 61, .3)); }
body.v2 .x-board .bb .bt { height: 8px; overflow: visible; background: rgba(255, 255, 255, .05); }
body.v2 .x-board .bb .bt i { position: relative; overflow: hidden; background: linear-gradient(90deg, #3b3e46, #8b909b 85%, #c4c8d0); box-shadow: 0 0 14px -3px rgba(180, 186, 198, .45); }
body.v2 .x-board .bb.dev .bt i { background: linear-gradient(90deg, #f2731c, #ff9a55 80%, #ffd2ab); box-shadow: 0 0 18px -2px rgba(255, 138, 61, .85), 0 0 44px -6px rgba(255, 138, 61, .5); }
body.v2 .x-board .bb.lite .bt i { background: linear-gradient(90deg, #2f7fd6, #5fb4ff 80%, #cfe7ff); box-shadow: 0 0 16px -2px rgba(95, 180, 255, .75), 0 0 38px -6px rgba(95, 180, 255, .4); }
body.v2 .x-board .bb .bt i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: bb-pass 3.6s var(--ease) 1.9s infinite; }
body.v2 .x-board .bb.lite .bt i::after { animation-delay: 2.2s; }
body.v2 .x-board .bb:not(.dev):not(.lite) .bt i::after { animation-delay: 2.5s; opacity: .55; }
body.v2 .x-board .bb.dev .bv { color: #ffb27a; }
body.v2 .x-board .bb.lite .bv { color: #8ccaff; }
@keyframes bb-pass { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { body.v2 .x-board .bb .bt i::after { animation: none; display: none; } }
/* Under the board: the race against Shyft, large. */
body.v2 .x-vs-row { border-top: 1px solid var(--line); }
body.v2 .x-vs-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
body.v2 .x-vs-l { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 56px 56px 52px 0; border-right: 1px solid var(--line); }
body.v2 .x-vs-k { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text3); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
body.v2 .x-vs-k::before { content: ''; width: 6px; height: 6px; background: var(--orange); }
body.v2 .x-vs-h { margin: 0; color: var(--text); font-size: clamp(52px, 6.2vw, 84px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
body.v2 .x-vs-p { margin: 0; max-width: 340px; color: var(--text2); font-size: 15px; }
body.v2 .x-vs-nums { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: center; margin: 0; padding: 52px 0 52px 56px; }
body.v2 .x-vs-nums li { display: flex; flex-direction: column; gap: 12px; }
body.v2 .x-vs-nums b { color: var(--text); font-size: clamp(44px, 4.8vw, 68px); font-weight: 600; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.v2 .x-vs-nums li:first-child b { color: var(--orange); }
body.v2 .x-vs-nums b small { margin-left: 4px; color: var(--text2); font-size: .42em; letter-spacing: -.02em; }
body.v2 .x-vs-nums li:first-child b small { color: inherit; opacity: .75; }
body.v2 .x-vs-nums span { color: var(--text3); font-size: 13.5px; }
body.v2 .x-stats-row { border-top: 1px solid var(--line); }
body.v2 .x-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; }
body.v2 .x-stats li { display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; }
body.v2 .x-stats li:first-child { padding-left: 0; }
body.v2 .x-stats li + li { border-left: 1px solid var(--line); }
body.v2 .x-stats b { color: var(--text); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
body.v2 .x-stats span { color: var(--text3); font-size: 13.5px; }

/* ── Sections: a hairline across the page between them. ── */
body.v2 .x-sec { padding: 136px 0; border-top: 1px solid var(--line); }
body.v2 .x-band + .x-sec { border-top: 0; }
body.v2 .x-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: end; margin-bottom: 72px; }
body.v2 .x-head .eb { grid-column: 1 / -1; }
body.v2 .x-lead { margin: 0; max-width: 520px; color: var(--text2); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
body.v2 .x-head .x-lead { padding-bottom: 4px; }
body.v2 .x-lead a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); }

/* The words and the live example side by side. */
body.v2 .x-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
body.v2 .x-split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body.v2 .x-split.rev .x-copy { order: 2; }
body.v2 .x-pts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
body.v2 .x-pts li { padding: 20px 0 21px; border-bottom: 1px solid var(--line); color: var(--text2); font-size: 15px; line-height: 1.6; }
body.v2 .x-pts b { display: block; margin-bottom: 4px; color: var(--text); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
body.v2 .x-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
body.v2 .x-nums > div { display: flex; flex-direction: column; gap: 10px; padding-right: 24px; }
body.v2 .x-nums > div + div { padding: 0 0 0 24px; border-left: 1px solid var(--line); }
body.v2 .x-nums b { color: var(--text); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
body.v2 .x-nums span { color: var(--text3); font-size: 13px; line-height: 1.5; }
body.v2 .x-nums em { font-style: normal; color: var(--text2); font-weight: 600; }
body.v2 .x-copy .more { margin-top: 36px; }

/* The live examples stay framed, so they read as examples. */
body.v2 .card { background: var(--bg1); box-shadow: inset 0 0 0 1px var(--edge); }
body.v2 .card-head { padding: 14px 18px; }
body.v2 .card-head b { font-weight: 600; }
body.v2 .card-note { font-family: var(--mono); font-size: 10.5px; }

/* ── Supported: the launchpads as an open table, then three columns. ── */
body.v2 .x-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
body.v2 .x-pads > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
body.v2 .x-pads > div:nth-child(3n + 1) { padding-left: 0; }
body.v2 .x-pads > div:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
body.v2 .x-pads img { grid-row: 1 / 3; width: 36px; height: 36px; object-fit: contain; }
body.v2 .x-pads b { font-size: 15px; font-weight: 600; }
body.v2 .x-pads span { color: var(--text3); font-size: 13px; }
body.v2 .x-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 88px; }
body.v2 .x-cols > div { padding: 0 40px; }
body.v2 .x-cols > div:first-child { padding-left: 0; }
body.v2 .x-cols > div:last-child { padding-right: 0; }
body.v2 .x-cols > div + div { border-left: 1px solid var(--line); }
body.v2 .x-cols > div > p { margin-top: 6px; color: var(--text3); font-size: 14px; }
body.v2 .x-cols .sup-l { margin-top: 26px; gap: 13px; }

/* ── Open rows of cells: the regions and the plans. ── */
body.v2 .x-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.v2 .x-cells > * { padding: 40px; }
body.v2 .x-cells > * + * { border-left: 1px solid var(--line); }
body.v2 :is(.x-regions, .x-steps) > :first-child { padding-left: 0; }
body.v2 :is(.x-regions, .x-steps) > :last-child { padding-right: 0; }
body.v2 .x-code { display: block; color: var(--text); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
body.v2 :is(.x-regions, .x-steps) h3 { margin-top: 28px; }
body.v2 :is(.x-regions, .x-steps) p { margin-top: 6px; color: var(--text2); font-size: 14.5px; }

/* The plans keep their colours as a band along the top. */
body.v2 .x-plans { border: 1px solid var(--line); }
body.v2 .x-plan { --pc: 163, 166, 174; position: relative; display: flex; flex-direction: column; box-shadow: inset 0 2px 0 rgb(var(--pc)); transition: background-color .2s; }
body.v2 .x-plan.p-lite { --pc: 95, 180, 255; }
body.v2 .x-plan.p-dev { --pc: 255, 138, 61; background: rgba(255, 138, 61, .03); }
body.v2 .x-plan:hover { background: rgba(255, 255, 255, .02); }
body.v2 .x-plan.p-dev:hover { background: rgba(255, 138, 61, .05); }
body.v2 .x-plan-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgb(var(--pc)); font-size: 15px; font-weight: 600; }
body.v2 .x-plan .plan-badge { color: rgb(var(--pc)); background: rgba(var(--pc), .1); box-shadow: inset 0 0 0 1px rgba(var(--pc), .3); }
body.v2 .x-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
body.v2 .x-price b { color: var(--text); font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
body.v2 .x-price span { color: var(--text3); font-size: 14px; }
body.v2 .x-plan p { flex: 1; margin-top: 16px; color: var(--text2); font-size: 14.5px; line-height: 1.6; }
body.v2 .x-plan .more { margin-top: 32px; }

/* ── FAQ: the heading stays put on the left while the questions scroll. ── */
body.v2 .x-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
body.v2 .x-faq-l { position: sticky; top: 120px; }
body.v2 .x-faq-l .x-lead { margin-top: 24px; }
body.v2 .x-faq .qa { max-width: none; margin: 0; border-top: 1px solid var(--line); }
body.v2 .qa summary { padding: 24px 0; font-weight: 550; }
body.v2 .qa p { padding: 0 0 24px; }

/* ── The end: the line and the buttons on one row, the grid behind. ── */
body.v2 .x-end { position: relative; overflow: hidden; padding: 136px 0; border-top: 1px solid var(--line); }
body.v2 .x-end .hero-grid { inset: 0; height: auto; -webkit-mask-image: radial-gradient(ellipse 55% 90% at 75% 50%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 55% 90% at 75% 50%, #000 15%, transparent 75%); }
body.v2 .x-end-in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
body.v2 .x-end h2 { font-size: clamp(42px, 5.8vw, 76px); }
body.v2 .x-end h2 .tone { display: inline; }
body.v2 .x-end p { margin-top: 18px; color: var(--text2); font-size: 17px; }
body.v2 .x-end .cta { margin: 0; }

body.v2 .foot-in { padding-top: 48px; padding-bottom: 56px; }

/* ── The API at a glance: six products, a picture and a line each. ── */
body.v2 .x-offer { padding: 104px 0 136px; }
body.v2 .x-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
body.v2 .x-tile { display: flex; flex-direction: column; min-width: 0; }
body.v2 .x-tile-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
body.v2 .x-tile-t b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
body.v2 .x-tile p { margin-top: 8px; color: var(--text2); font-size: 14.5px; line-height: 1.6; }
body.v2 .x-tag { flex: none; padding: 5px 7px; color: var(--text3); font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line2); }
body.v2 .x-tag.x-dev { color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .35); }

/* The pictures: small, still versions of the live examples further down,
   on a faint grid of their own. */
body.v2 .vz { position: relative; height: 188px; padding: 18px; overflow: hidden; color: var(--text3); font-size: 11px; line-height: 1.3; background: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 -1px / 16px 16px, linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) -1px 0 / 16px 16px, var(--bg1); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .2s; }
body.v2 .x-tile:hover .vz { box-shadow: inset 0 0 0 1px #3d3f47; }

body.v2 .vz-lanes { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
body.v2 .vz-lanes > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 40px; align-items: center; gap: 10px; line-height: 12px; white-space: nowrap; }
body.v2 .vz-lanes i { height: 4px; background: linear-gradient(var(--text3), var(--text3)) 0 0 / var(--w) 100% no-repeat, var(--bg3); opacity: .55; }
body.v2 .vz-lanes em { font-style: normal; text-align: right; color: var(--green); font-weight: 600; }
body.v2 .vz-lanes .win { color: var(--text); }
body.v2 .vz-lanes .win i { background: var(--text); opacity: 1; }

body.v2 .vz-feed { padding: 0; }
body.v2 .vz-feed .vz-h { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg1); font: 10.5px/1 var(--mono); }
body.v2 .vz-feed .vz-h span { margin-left: auto; letter-spacing: .06em; text-transform: uppercase; }
body.v2 .vz-feed .dot { width: 5px; height: 5px; }
body.v2 .vz-feed .r { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px solid rgba(31, 33, 39, .8); background: var(--bg1); }
body.v2 .vz-feed .pill { justify-content: center; height: 18px; padding: 0 6px; font-size: 10px; }
body.v2 .vz-feed b { color: var(--text); font-size: 12px; font-weight: 600; }
body.v2 .vz-feed em { font-style: normal; color: var(--text2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

body.v2 .vz-chat { display: flex; flex-direction: column; gap: 10px; }
body.v2 .vz-chat .q { align-self: flex-end; max-width: 86%; padding: 7px 10px; color: var(--text); background: var(--bg3); font-size: 11.5px; line-height: 1.4; }
body.v2 .vz-chat .tool { display: flex; align-items: center; gap: 8px; font: 10.5px/1 var(--mono); }
body.v2 .vz-chat .tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
body.v2 .vz-chat .tool code { color: var(--text2); }
body.v2 .vz-chat .tool span { margin-left: auto; }
body.v2 .vz-chat .rows > div { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); color: var(--text2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
body.v2 .vz-chat .rows b { color: var(--green); font-weight: 600; }

body.v2 .vz-pads { display: grid; place-items: center; }
body.v2 .vz-pads > div { display: grid; grid-template-columns: repeat(4, 46px); gap: 12px; }
body.v2 .vz-pads span { display: grid; place-items: center; width: 46px; height: 46px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--edge); }
body.v2 .vz-pads img { width: 24px; height: 24px; object-fit: contain; }

body.v2 .vz-candles { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
body.v2 .vz-cap { display: flex; justify-content: space-between; font: 10.5px/1 var(--mono); }
body.v2 .vz-cap b { color: var(--green); font-weight: 500; }
body.v2 .vz-candles svg { flex: 1; width: 100%; min-height: 0; }

/* Shrinemaps: the real map's dark ground, its legend and mark (api.js draws it). */
body.v2 .vz-map { padding: 0; background: #0a0b0d; }
body.v2 .vz-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
body.v2 .vz-legend { position: absolute; left: 12px; bottom: 9px; display: flex; gap: 12px; color: #6f737d; font-size: 9.5px; }
body.v2 .vz-legend span { display: inline-flex; align-items: center; gap: 5px; }
body.v2 .vz-legend .lg-f::before { content: ''; width: 12px; border-top: 1px solid #6f737d; }
body.v2 .vz-legend .lg-l::before { border-top-style: dashed; }
body.v2 .vz-legend .lg-b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b23a4c; }
body.v2 .vz-mark { position: absolute; right: 12px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; color: #a1a4ad; font-size: 9.5px; font-weight: 600; }

/* ── The pricing page ── */
body.v2 .x-note { display: flex; align-items: flex-start; gap: 12px; max-width: 420px; margin: 0; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
body.v2 .x-note img { flex: none; margin-top: 2px; }
body.v2 .x-note b { color: var(--text); font-weight: 600; }
body.v2 .x-sec.x-first { padding-top: 88px; border-top: 0; }
/* Full plans: the list in the middle, the buttons lined up at the foot. */
body.v2 .x-plans.full .x-plan > p { flex: none; }
body.v2 .x-plans.full .sup-l { flex: 1; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); gap: 12px; }
body.v2 .x-plan-cta { margin-top: 36px; }
body.v2 .x-plan-cta .btn { width: 100%; }
body.v2 .x-plan.p-dev .btn:not(.ghost) { color: #160b03; background: var(--orange); }
body.v2 .x-plan.p-dev .btn:not(.ghost):hover { background: var(--orange-hi); }
body.v2 .x-plans.full .plan-trial { margin: 0 0 12px; text-align: left; }
/* The limits table, open on the page. */
body.v2 .x-table { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.v2 .x-table .ptable { font-size: 14.5px; }
body.v2 .x-table .ptable th, body.v2 .x-table .ptable td { padding: 15px 20px; }
body.v2 .x-table .ptable th:first-child, body.v2 .x-table .ptable td:first-child { padding-left: 0; }
body.v2 .x-table .ptable thead th { padding-top: 28px; padding-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; }
body.v2 .x-table .ptable thead th b { margin-bottom: 4px; font-family: var(--font); font-size: 16px; font-weight: 600; }
body.v2 .x-table .ptable .grp td { padding-top: 40px; padding-bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; }
body.v2 .x-table .ptable .grp:first-child td { padding-top: 28px; }
body.v2 .x-table .ptable .c-lite { background: rgba(95, 180, 255, .025); }
body.v2 .x-table .ptable .c-dev { background: rgba(255, 138, 61, .04); }
body.v2 .x-steps .x-code { font-variant-numeric: tabular-nums; }

/* ── Hover: a lighter fill sweeps in from the left, and the arrow runs out
   and comes back in. Links grow an underline from the left. ── */
body.v2 .btn { --ink-hi: var(--ink); --orange-hi: var(--orange); --wipe: #f4f5f7; transition: background-color .15s, box-shadow .25s, color .15s, transform .15s; }
body.v2 .btn[data-login]:not(.ghost), body.v2 .x-plan.p-dev .btn:not(.ghost) { --wipe: #ffa86e; }
body.v2 .btn.ghost { --wipe: rgba(255, 255, 255, .07); }
body.v2 .btn::before { display: block; content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wipe); transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease); }
body.v2 .btn:hover::before { background-position: 0 0; transform: scaleX(1); transform-origin: left center; transition: transform .5s var(--ease); }
body.v2 .btn.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px #5a5c63; }
body.v2 .btn:active { transform: scale(.98); }
body.v2 .btn:hover .arr { transform: none; animation: arr-run .55s var(--ease); }
body.v2 .btn:hover .arr.up { animation-name: arr-up; }
body.v2 :is(.btn, .more):hover .ext { animation: arr-ext .55s var(--ease); }
@keyframes arr-run { 0% { transform: none; opacity: 1; } 40% { transform: translateX(12px); opacity: 0; } 41% { transform: translateX(-12px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arr-up { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-12px); opacity: 0; } 41% { transform: translateY(12px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arr-ext { 0% { transform: none; opacity: 1; } 40% { transform: translate(8px, -8px); opacity: 0; } 41% { transform: translate(-8px, 8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.v2 .more { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
body.v2 .more:hover, body.v2 .x-plan:hover .more { text-decoration: none; background-size: 100% 1px; }
body.v2 .more:hover .arr, body.v2 .x-plan:hover .more .arr { transform: none; animation: arr-run .55s var(--ease); }
/* A tile: its picture's frame lights up and the title underlines. */
body.v2 .x-tile-t b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
body.v2 .x-tile:hover .x-tile-t b { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  body.v2 .btn::before, body.v2 .more, body.v2 .x-tile-t b { transition: none; }
  body.v2 .btn:hover .arr, body.v2 :is(.btn, .more):hover .ext, body.v2 .more:hover .arr, body.v2 .x-plan:hover .more .arr { animation: none; }
}

/* ── Narrower screens ── */
@media (max-width: 1060px) {
  body.v2 .x-hero-row { grid-template-columns: 1fr; gap: 32px; }
  body.v2 .x-hero-act { align-items: flex-start; }
  body.v2 .x-hero-act .cta { justify-content: flex-start; }
  body.v2 .x-board { grid-template-columns: 1fr; }
  body.v2 .x-board .board-big { padding: 44px 0 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  body.v2 .x-board .board-bars { padding: 40px 0 44px; }
  body.v2 .x-vs-board { grid-template-columns: 1fr; }
  body.v2 .x-vs-l { padding: 44px 0 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  body.v2 .x-vs-nums { padding: 40px 0 44px; }
  body.v2 .x-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .x-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  body.v2 .x-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  body.v2 .x-head { grid-template-columns: 1fr; row-gap: 22px; margin-bottom: 56px; }
  body.v2 .x-split, body.v2 .x-split.rev { grid-template-columns: 1fr; gap: 56px; }
  body.v2 .x-split.rev .x-copy { order: 0; }
  body.v2 .x-cols { grid-template-columns: 1fr; margin-top: 64px; }
  body.v2 .x-cols > div, body.v2 .x-cols > div:first-child, body.v2 .x-cols > div:last-child { padding: 36px 0; }
  body.v2 .x-cols > div + div { border-left: 0; border-top: 1px solid var(--line); }
  body.v2 .x-cols > div:first-child { padding-top: 0; }
  body.v2 .x-faq { grid-template-columns: 1fr; gap: 48px; }
  body.v2 .x-faq-l { position: static; }
  body.v2 .x-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .x-plans.full { grid-template-columns: 1fr; }
  body.v2 .x-plans.full > * + * { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body.v2 .wrap { padding: 0 16px; }
  body.v2 .x-hero { padding-top: 120px; }
  body.v2 .x-vs { flex-direction: column; align-items: flex-start; }
  body.v2 .x-vs i::after { display: none; }
  body.v2 .x-vs-n::before { display: none; }
  body.v2 .x-hero .lead { font-size: 16.5px; }
  body.v2 .x-band { margin-top: 72px; }
  body.v2 .x-board .board-big, body.v2 .x-board .board-bars { padding-left: 0; padding-right: 0; }
  body.v2 .x-board .bb { grid-template-columns: 104px minmax(0, 1fr) 62px; gap: 10px; }
  body.v2 .x-stats li { padding: 24px 16px; }
  body.v2 .x-vs-nums { gap: 16px; }
  body.v2 .x-vs-nums b { font-size: 34px; }
  body.v2 .x-vs-nums span { font-size: 12.5px; }
  body.v2 .x-sec { padding: 96px 0; }
  body.v2 .x-head { margin-bottom: 44px; }
  body.v2 .x-lead { font-size: 16px; }
  body.v2 .x-pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .x-pads > div { grid-template-columns: 1fr; align-content: start; padding: 22px 16px; }
  body.v2 .x-pads > div:nth-child(n) { padding-left: 16px; border-left: 1px solid var(--line); }
  body.v2 .x-pads > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  body.v2 .x-pads img { grid-row: auto; width: 30px; height: 30px; margin-bottom: 12px; }
  body.v2 .x-cells { grid-template-columns: 1fr; }
  body.v2 .x-cells > * { padding: 32px 24px; }
  body.v2 .x-cells > * + * { border-left: 0; border-top: 1px solid var(--line); }
  body.v2 :is(.x-regions, .x-steps) > * { padding-left: 0; padding-right: 0; }
  body.v2 .x-code { font-size: 32px; }
  body.v2 :is(.x-regions, .x-steps) h3 { margin-top: 18px; }
  body.v2 .x-end { padding: 96px 0; }
  body.v2 .x-end-in { flex-direction: column; align-items: flex-start; }
  body.v2 .x-offer { padding: 72px 0 96px; }
  body.v2 .x-tiles { grid-template-columns: 1fr; gap: 48px; }
  body.v2 .x-table .ptable th, body.v2 .x-table .ptable td { padding: 13px 14px; }
}

/* ══ Dashboard: the terms box, USDC or SOL, the terms notes (2026-11-10) ══ */
body.api .terms-ok { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 14px 16px; color: var(--text2); font-size: 14px; line-height: 1.55; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
body.api .terms-ok input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--orange); cursor: pointer; }
body.api .terms-ok a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
body.api .terms-ok a:hover { text-decoration-color: currentColor; }
body.api .terms-ok.need { box-shadow: inset 0 0 0 1px var(--orange); }
body.api #terms-err { margin-top: 10px; }
body.api .pay-cur { display: inline-flex; align-self: flex-start; box-shadow: inset 0 0 0 1px var(--line2); }
body.api .pay-cur[hidden] { display: none; }
body.api .pay-cur button { height: 32px; min-width: 76px; padding: 0 16px; color: var(--text3); font: 600 12.5px/1 var(--mono, ui-monospace, monospace); letter-spacing: .06em; transition: color .15s, background-color .15s; }
body.api .pay-cur button:hover { color: var(--text); }
body.api .pay-cur button.on { color: var(--text); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }
body.api .pay-rate { margin: -4px 0 0; color: var(--text3); font-size: 13px; line-height: 1.5; }
body.api :is(.login-terms, .trial-terms) { color: var(--text3); font-size: 12.5px; line-height: 1.5; }
body.api :is(.login-terms, .trial-terms) a { color: var(--text2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
body.api .login-terms { margin: 18px 0 0; }
body.api .trial-terms { flex-basis: 100%; margin: 0; }
body.api .trial-b { flex-wrap: wrap; }

/* ══ Dashboard sign-in (2026-11-11) ══════════════════════════════════════
   A torii scene across the page with the panel on the right; on a phone the
   scene is a band above the panel. main.dash gets .login-on while it shows. */
body.api .dash.login-on { min-height: 0; padding: 0; }
.dash-login { position: relative; isolation: isolate; display: flex; align-items: center; place-items: normal; min-height: max(680px, 100svh); padding: 108px 0 64px; overflow: hidden; }
.login-bg { position: absolute; inset: 0; z-index: -1; background: #0b0c0e url(/api/assets/img/login-bg.webp) 28% 50% / cover no-repeat; }
.login-bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(9, 9, 11, .08) 0%, rgba(9, 9, 11, .3) 42%, rgba(9, 9, 11, .78) 66%, rgba(9, 9, 11, .9) 100%),
  linear-gradient(180deg, rgba(9, 9, 11, .5) 0%, transparent 20%, transparent 72%, var(--bg) 100%); }
.login-in { display: grid; grid-template-columns: minmax(0, 1fr) 436px; gap: 56px; align-items: center; }
.login-side { align-self: end; margin: 0 0 6px; }
.login-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: rgba(255, 255, 255, .78); font: 500 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.login-k::before { content: ''; width: 6px; height: 6px; background: var(--orange); }
.login-line { margin: 0; color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.login-line span { color: rgba(255, 255, 255, .62); }
body.api .login-c { position: relative; padding: 36px 34px 28px; text-align: left; background: rgba(11, 12, 15, .8); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 120px -30px rgba(0, 0, 0, .9); }
body.api .login-c h1 { font-size: 30px; }
body.api .login-c .login-sub { margin: 12px 0 0; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.login-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
body.api .login-opts .btn { width: 100%; min-width: 0; min-height: 44px; font-size: 14.5px; }
.g-btn { display: flex; justify-content: center; min-height: 44px; overflow: hidden; }
.g-btn > div { width: 100%; }
.g-btn iframe { margin: 0 auto !important; }
body.api .login-c .dash-note:not(.login-terms) { margin: 12px 0 0; font-size: 13px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--text3); font: 500 11.5px/1 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.login-mail, .login-code { display: grid; gap: 10px; }
body.api .dash .login-c input { height: 46px; background: rgba(255, 255, 255, .03); font-size: 15px; }
body.api .dash .login-c #mail-code { height: 54px; font-size: 24px; font-weight: 600; letter-spacing: .42em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .42em); }
body.api .dash .login-c #mail-code::placeholder { color: #3a3c43; }
.login-sent { margin: 22px 0 2px; color: var(--text2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.login-sent b { color: var(--text); font-weight: 600; }
.login-alt { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0 0; }
.lnk { padding: 0; border: 0; background: none; color: var(--text2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.lnk:hover { color: var(--text); }
.lnk:disabled { color: var(--text3); text-decoration: none; cursor: default; }
body.api .login-c .dev { margin-top: 22px; padding-top: 18px; }
body.api .login-c .dash-err { margin: 14px 0 0; }
body.api .login-c .login-terms { margin: 20px 0 0; }
@media (max-width: 860px) {
  .dash-login { display: block; min-height: 0; padding: 0 0 48px; }
  .login-bg { position: relative; inset: auto; height: 300px; background-image: url(/api/assets/img/login-bg-sm.webp); background-position: 3% 42%; }
  .login-bg::after { background: linear-gradient(180deg, rgba(9, 9, 11, .55) 0%, transparent 34%, rgba(9, 9, 11, .35) 66%, var(--bg) 100%); }
  .login-in { display: block; margin-top: -92px; padding: 0 16px; }
  .login-side { display: none; }
  body.api .login-c { padding: 26px 20px 22px; }
  body.api .login-c h1 { font-size: 26px; }
}
body.api .me-t { min-width: 0; }
body.api .me-t h1 { overflow-wrap: anywhere; }

/* Four plans (2026-11-13): Professional (gold) after Developer. */
body.v2 .x-plan.p-pro { --pc: 236, 190, 80; }
body.v2 .x-plan.p-pro .btn:not(.ghost) { color: #1a1204; background: rgb(236, 190, 80); --wipe: #f6d68a; }
body.v2 .x-plan.p-pro .btn:not(.ghost):hover { background: rgb(246, 207, 112); }
body.v2 .x-plan-soon { flex: none !important; margin: 26px 0 0 !important; color: var(--text3) !important; font: 600 11px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .08em; text-transform: uppercase; }
body.v2 .x-plans.full .sup-l.soon { flex: none; margin-top: 14px; padding-top: 0; border-top: 0; color: var(--text3); }
body.v2 .x-plans.full .sup-l.soon b { color: var(--text2); }
body.v2 .x-plans.full.four > :not(.p-pro) .sup-l { flex: 1; }
body.v2 .x-plans.full.four .p-pro .sup-l:not(.soon) { flex: none; }
body.v2 .x-plans.full.four .p-pro .x-plan-cta { margin-top: auto; padding-top: 36px; }
body.v2 .x-plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.v2 .x-plans.four > * { padding: 36px 28px; }
.ptable th.c-pro b { color: rgb(236, 190, 80); }
body.v2 .x-table .ptable .c-pro { background: rgba(236, 190, 80, .045); }
body.v2 .x-table .ptable td small { display: block; color: var(--text3); font-size: 12px; }
@media (max-width: 1180px) {
  body.v2 .x-plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .x-plans.four > :nth-child(3) { border-left: 0; }
  body.v2 .x-plans.four > :nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body.v2 .x-plans.four { grid-template-columns: 1fr; }
  body.v2 .x-plans.four > * { padding: 32px 24px; }
  body.v2 .x-plans.four > * + * { border-left: 0; border-top: 1px solid var(--line); }
}
body.v2 .x-table .ptable.four { min-width: 900px; }
body.v2 .x-table .ptable.four th:not(:first-child), body.v2 .x-table .ptable.four td:not(:first-child) { width: 17%; }
/* Dashboard: four plans, Professional in gold. */
.plan.p-pro { --pc: 236, 190, 80; }
.pl-pro { --pc: 236, 190, 80; }
body.api .plan.p-pro .btn:not(.ghost) { color: #1a1204; background: rgb(236, 190, 80); }
body.api .plan.p-pro .btn:not(.ghost):hover { background: rgb(246, 207, 112); }
.dash-plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
@media (max-width: 1180px) { .dash-plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dash-plans.four { grid-template-columns: 1fr; } }

/* ══ Dashboard tabs and the free trial button (2026-11-16) ═══════════════
   The account page shows one section at a time under the header: Account
   (key, group, plans, payments), Lightspeed wallets, X & Telegram. Square
   and monochrome like the rest of body.api; the open tab is underlined. */
body.api .dash-tabs { display: flex; gap: 2px; margin-top: 28px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
body.api .dash-tabs::-webkit-scrollbar { display: none; }
body.api .dash-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; color: var(--text3); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: color .15s; }
body.api .dash-tab:hover { color: var(--text); }
body.api .dash-tab[aria-selected="true"] { color: var(--text); }
body.api .dash-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
body.api .dash-tab:focus-visible { outline: 1px solid var(--ink); outline-offset: -6px; }
body.api .dash-tab-n { min-width: 20px; height: 20px; padding: 0 6px; color: var(--text2); background: var(--bg3); font: 600 11.5px/20px var(--mono, ui-monospace, monospace); text-align: center; }
body.api .dash-tab[aria-selected="true"] .dash-tab-n { color: var(--text); background: var(--bg4); }
body.api .dash-panel > .dash-c:first-child { margin-top: 20px; }
@media (max-width: 480px) {
  body.api .dash-tab { padding: 0 11px; font-size: 14px; }
}

/* The free trial's button: green like its card, not the grey of the rest. */
body.api .btn.trial-btn { color: #160b03; background: var(--orange); box-shadow: none; }
body.api .btn.trial-btn:hover { background: var(--orange-hi); box-shadow: none; }
body.api .btn.trial-btn:active { background: var(--orange-lo); }

/* ── Hover on the account pages (2026-11-17) ──
   The open pages' sweep on every button here too: a lighter fill in each
   button's own colour comes in from the left, and a press scales it down a
   touch. Tabs, the USDC/SOL switch and the Copy buttons get a tint. */
body.api:not(.v2) .btn { --wipe: #f4f5f7; transition: background-color .15s, box-shadow .25s, color .15s, transform .15s; }
body.api:not(.v2) .btn.ghost, body.api:not(.v2) .btn.wallet-btn { --wipe: rgba(255, 255, 255, .08); }
body.api:not(.v2) .btn.tg-btn { --wipe: #5ec4f5; }
body.api:not(.v2) .btn.pay-phantom { --wipe: #cbc3fa; }
body.api:not(.v2) .btn.trial-btn { --wipe: #ffa86e; }
body.api:not(.v2) .btn[data-login]:not(.ghost), body.api:not(.v2) .plan.p-dev .btn:not(.ghost) { --wipe: #ffa86e; }
body.api:not(.v2) .plan.p-pro .btn:not(.ghost) { --wipe: #f6d68a; }
body.api:not(.v2) .btn::before { display: block; content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wipe); transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease); }
body.api:not(.v2) .btn:not(:disabled):hover::before { transform: scaleX(1); transform-origin: left center; }
body.api:not(.v2) .btn.ghost:not(:disabled):hover, body.api:not(.v2) .btn.wallet-btn:not(:disabled):hover { box-shadow: inset 0 0 0 1px #5a5c63; }
body.api:not(.v2) .btn:not(:disabled):active { transform: scale(.98); }
body.api:not(.v2) .btn:hover .arr { transform: none; animation: arr-run .55s var(--ease); }
body.api .dash-tab:hover:not([aria-selected="true"]) { background: rgba(255, 255, 255, .03); }
body.api .dash-tab:hover:not([aria-selected="true"])::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line2); }
body.api .pay-cur button:not(.on):hover { background: rgba(255, 255, 255, .04); }
body.api .kb:hover { color: var(--text); background: var(--bg4); box-shadow: inset 0 0 0 1px var(--line2); }
body.api .kb:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  body.api:not(.v2) .btn::before { transition: none; }
  body.api:not(.v2) .btn:hover .arr { animation: none; }
}

/* ── Professional stands out, Get Lite in blue (2026-11-17) ──
   The highlight Developer had (a tint and an outline) moves to Professional,
   with a soft gold glow; Developer keeps its orange band, name and button
   like the other plans keep theirs. Get Lite is blue, Lite's colour. */
body.v2 .x-plan.p-dev { background: none; }
body.v2 .x-plan.p-dev:hover { background: rgba(255, 255, 255, .02); }
body.v2 .x-plan.p-pro { z-index: 1; background: linear-gradient(180deg, rgba(236, 190, 80, .075), rgba(236, 190, 80, .02) 60%); box-shadow: inset 0 3px 0 rgb(var(--pc)), inset 0 0 0 1px rgba(236, 190, 80, .45), 0 0 64px -20px rgba(236, 190, 80, .35); }
body.v2 .x-plan.p-pro:hover { background: linear-gradient(180deg, rgba(236, 190, 80, .1), rgba(236, 190, 80, .03) 60%); }
body.v2 .x-table .ptable .c-dev { background: none; }
body.v2 .x-table .ptable .c-pro { background: rgba(236, 190, 80, .06); }
body.v2 .x-plan.p-lite .btn:not(.ghost) { color: #04121f; background: #5fb4ff; --wipe: #9fd2ff; }
body.v2 .x-plan.p-lite .btn:not(.ghost):hover { background: #84c5ff; }
body.api .plan.p-dev { box-shadow: inset 0 0 0 1px var(--edge), inset 0 2px 0 rgb(var(--pc)); }
body.api .plan.p-pro { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(236, 190, 80, .075), var(--bg1) 55%); box-shadow: inset 0 0 0 1px rgba(var(--pc), .5), inset 0 3px 0 rgb(var(--pc)), 0 0 64px -22px rgba(236, 190, 80, .4); }
body.api .plan.p-lite .btn:not(.ghost) { color: #04121f; background: #5fb4ff; }
body.api .plan.p-lite .btn:not(.ghost):hover { background: #84c5ff; }
body.api .plan.p-lite .btn:not(.ghost):active { background: #4ea6f5; }
body.api:not(.v2) .plan.p-lite .btn:not(.ghost) { --wipe: #9fd2ff; }

/* ── The payment: its QR code, and a waiting order opened from the list (2026-11-17) ──
   The QR (the Solana Pay link of what is still owed) sits beside the amount
   and the address, under them on a phone. Dark modules on white, as wallets
   scan best. A waiting order in Payments opens its payment in a row under it. */
.pay-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: start; }
.pay-l { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pay-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-qr[hidden] { display: none; }
.pay-qr-img { width: 156px; height: 156px; padding: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 18px 40px -22px rgba(var(--pc, 255, 138, 61), .55); }
.pay-qr-img svg { display: block; width: 100%; height: 100%; }
.pay-qr figcaption { color: var(--text3); font-size: 12px; }
@media (max-width: 640px) {
  .pay-main { grid-template-columns: 1fr; }
  .pay-qr { order: 2; align-self: center; }
}
body.api .hist-open { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; color: var(--text); background: rgba(255, 138, 61, .08); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .45); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
body.api .hist-open:hover { background: rgba(255, 138, 61, .16); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .75); }
body.api .hist-open:disabled { opacity: .6; cursor: progress; }
body.api .hist-open svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
body.api .hist-open[aria-expanded="true"] svg { transform: rotate(180deg); }
body.api .ptable.hist tr.hist-pay-row > td { padding: 4px 0 18px; background: none; }
body.api .ptable.hist tr.hist-pay-row .pay { margin: 0; }

/* ── Headlines on the open pages: white, with the second line in orange
   instead of grey (2026-11-17). ── */
body.v2 :is(h1, h2, h3) .tone, body.v2 :is(h1, h2, h3) .tone.shine { background: none; color: var(--orange); -webkit-text-fill-color: currentColor; animation: none; }

/* ── The X & Telegram sniper section (2026-11-17): a post, the token address
   in it, the buy, as three linked steps. ── */
body.v2 .x-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
/* "Read more": each section's own page, before its docs link. */
body.v2 .x-links .btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
body.v2 .x-links .more { margin-top: 0; }
/* 05 X & Telegram sniper: an X post and a Telegram channel message, each
   with the token address the streams pick out (orange). */
.snipe-msgs { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; }
.sm { padding: 14px 16px 15px; border-radius: 14px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.sm header { display: flex; align-items: center; gap: 10px; }
.sm-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #1b0d03; font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #ffc285, #ff7a3d); }
.sm-tg .sm-av { color: #fff; background: linear-gradient(135deg, #6cc2ff, #2b84e0); }
.sm-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sm-who b { color: var(--text); font-size: 14px; font-weight: 650; }
.sm-who span { color: var(--text3); font-size: 12.5px; }
.sm-src { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text3); font: 600 10.5px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sm-ic { width: 14px; height: 14px; color: var(--text2); }
.sm-tg .sm-ic { color: #5fb4ff; }
.sm p { margin: 10px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.sm p + p { margin-top: 6px; }
.sm p b { font-weight: 650; }
.sm code { padding: 1px 6px; border-radius: 5px; color: var(--orange); font: 500 12.5px/1.6 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; background: rgba(255, 138, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .25); }
.sm-bubble { position: relative; margin-top: 10px; padding: 2px 12px 8px; border-radius: 12px 12px 12px 4px; background: #172230; box-shadow: inset 0 0 0 1px rgba(95, 180, 255, .14); }
.sm-bubble p { margin-top: 8px; }
.sm-meta { display: block; margin-top: 2px; text-align: right; color: #7f93a8; font-size: 11.5px; }

/* 05 X & Telegram sniper: the streams are Professional's, so its headline
   accent is Professional's gold instead of the orange used elsewhere. */
body.v2 #sniper h2 .tone { color: rgb(236, 190, 80); -webkit-text-fill-color: currentColor; text-shadow: 0 0 28px rgba(236, 190, 80, .28); }

/* Billing term switch (account page, pricing, the API page): monthly, six
   months with one month free, a year with two. The free months in green. */
.bill-row { display: flex; margin-top: 18px; }
.bill-sw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line2); }
.bill-sw button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; color: var(--text3); background: none; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; transition: color .15s, background-color .15s, box-shadow .15s; }
.bill-sw button:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.bill-sw button.on { color: var(--text); background: var(--bg3); box-shadow: inset 0 0 0 1px #3a3c44, 0 6px 18px -10px rgba(0, 0, 0, .8); }
.bill-sw button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.bill-sw em { padding: 4px 8px; border-radius: 999px; color: var(--green); background: rgba(46, 189, 133, .1); font-size: 11.5px; font-style: normal; font-weight: 650; letter-spacing: .01em; }
.bill-sw button.on em { color: #062b1c; background: var(--green); box-shadow: 0 0 16px -4px rgba(46, 189, 133, .7); }
.price-note, .x-save { display: block; margin-top: 8px; min-height: 18px; color: var(--text3); font-size: 13px; font-weight: 550; }
.price-note.free, .x-save.free { color: var(--green); }
body.v2 .x-plans + .bill-row, body.v2 .bill-row { margin: 0 0 22px; }
@media (max-width: 560px) {
  .bill-sw { display: flex; width: 100%; }
  .bill-sw button { flex: 1; flex-direction: column; justify-content: center; gap: 5px; height: auto; min-height: 52px; padding: 8px 6px; font-size: 13px; }
  .bill-sw em { padding: 3px 6px; font-size: 10.5px; }
}
.bill-row.c { justify-content: center; }
/* Longer terms make longer prices ($1,250): the figure a little smaller, and
   "/ 6 months" kept on one line. */
body.v2 .x-price span { white-space: nowrap; }
body.v2 .x-price { flex-wrap: wrap; row-gap: 4px; }
body.v2 .x-plans .x-plan { container-type: inline-size; }
body.v2 .bill-long .x-price b { font-size: 40px; font-size: min(46px, calc((100cqi - 66px) / 3.9)); }

/* Dashboard, Embeds tab: the servers allowed to embed the chart and Shrinemaps. */
.dash-ips + .dash-ips { margin-top: 18px; }
.ips-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dash .ips-form input { height: 40px; min-width: 0; }
.ips-form .ips-ip { flex: 1.3 1 220px; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }
.ips-form .ips-label { flex: 1 1 160px; }
.ips-form[hidden] { display: none; }
.ips-get { margin-top: 14px; }
.ls-who b.ips-addr { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.ls-who > span { color: var(--text3); font-size: 12.5px; }
.ls-row.off { opacity: .6; }
.sm code { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 480px) { .sm-src { font-size: 0; gap: 0; } .sm-ic { width: 16px; height: 16px; } }

/* Dashboard sign-in through Clerk (2026-11-17): Clerk's own card in the panel. */
.clerk-in { margin-top: 20px; }
.clerk-in[hidden] { display: none; }
.clerk-in .cl-rootBox { width: 100%; }
/* Clerk's own fields inside the login panel: the dashboard's input rules
   (.dash input: flex 1 1 0%, which squashes a field in Clerk's column to
   19 px; square corners; no border) don't apply to them. */
body.api .dash .login-c .clerk-in input { flex: none; min-width: 0; border-radius: 12px; }
body.api .dash .login-c .clerk-in input.cl-formFieldInput { width: 100%; height: 50px !important; /* over Clerk's own 36 px */ padding: 0 14px; border: 0; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); font-size: 15px; }
body.api .dash .login-c .clerk-in input.cl-formFieldInput::placeholder { color: var(--text3); }
body.api .dash .login-c .clerk-in input.cl-formFieldInput:hover { box-shadow: inset 0 0 0 1px #3a3c44; }
body.api .dash .login-c .clerk-in input.cl-formFieldInput:focus { outline: none; box-shadow: inset 0 0 0 1px var(--orange), 0 0 0 3px rgba(255, 138, 61, .18); }
body.api .dash .login-c .clerk-in input.cl-otpCodeFieldInput { height: 52px; padding: 0; text-align: center; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); font-size: 20px; }

/* Pricing: help line under the plans (2026-11-18). */
/* The help line under the plans: a Telegram-blue box with the logo and a button. */
body.v2 .x-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; max-width: 680px; margin: 36px auto 0; padding: 18px 22px; border: 1px solid rgba(42, 171, 238, .4); border-radius: 0; background: linear-gradient(180deg, rgba(42, 171, 238, .13), rgba(42, 171, 238, .04)); color: var(--text2); font-size: 16px; line-height: 1.5; }
body.v2 .x-help-ic { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #2aabee; color: #fff; }
body.v2 .x-help-ic svg { width: 24px; height: 24px; margin-left: -2px; }
body.v2 .x-help-t { flex: 1 1 220px; }
body.v2 .x-help-t b { color: var(--text); font-size: 18px; font-weight: 600; }
body.v2 .x-help .btn.tg-btn { min-width: 0; flex: none; color: #fff; text-decoration: none; }
@media (max-width: 560px) { body.v2 .x-help { text-align: center; } body.v2 .x-help-t { flex-basis: 100%; } }
