/* 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%); }

/* 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: 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; } }
