/* css/site.css: the landing (/) and the docs (/docs). Fonts and colours come from css/tokens.css (linked first).
   Night bands, glow cards and the paint panel follow instinct.xyz's layout; every preview is live DOM. */

:root {
  --g: clamp(16px, 2.5vw, 48px);
  --row-w: min(1720px, 100% - 2 * var(--g));
  --gap: clamp(110px, 14vw, 200px);
  --h2: clamp(34px, 4.4vw, 68px);
  --head-gap: clamp(32px, 4.4vw, 64px);
  --panel: #0f1013;
  --day-soft: #f1f2eb94;
  --ease-pop: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.landing { background: var(--night); }
html:has(body.landing) { background: var(--night); overscroll-behavior-y: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--row-w); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- mark (inline svg, recoloured on night) */
.mk { flex: none; }
.mk .c { fill: var(--mk-c, #081328); transition: fill .35s; }
.mk .r { fill: none; stroke: var(--mk-r, rgba(241, 242, 235, .22)); stroke-width: 1.5; transition: stroke .35s; }
.mk .e { fill: var(--mk-e, #f1f2eb); transition: fill .35s; }
.mk .m { fill: var(--brand); }
.on-night, .pv { --mk-c: #f1f2eb; --mk-e: #081328; --mk-r: rgba(8, 19, 40, .2); }

/* ---------------------------------------------------------------- header */
.hdr { position: absolute; inset: 0 0 auto; z-index: 40; color: var(--ink); user-select: none; -webkit-user-select: none; }
.js .hdr { position: fixed; }
.hdr::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(#050506eb 0%, #050506b3 55%, #05050600 100%);
}
.hdr[data-tone="night"] { color: #fff; --mk-c: #f1f2eb; --mk-e: #081328; --mk-r: rgba(8, 19, 40, .2); }
.hdr[data-tone="night"]::before { opacity: 1; }
.hdr-solid::before {
  opacity: 1; background: rgba(241, 242, 235, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 #0813280f;
}
.hdr-in {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: var(--row-w); height: 84px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: inherit; transition: color .35s; }
.brand .mk { width: 30px; height: 30px; }
.wm { font-weight: 600; font-size: 23px; letter-spacing: -.035em; line-height: 1; padding-bottom: 2px; }
.hdr-nav { display: flex; align-items: center; gap: 6px; }
.hdr-link, .hdr-cta {
  display: inline-flex; align-items: center; height: 44px; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; -webkit-user-drag: none;
}
.hdr-link { padding: 0 14px; color: inherit; opacity: .78; transition: opacity .2s, color .35s; }
.hdr-link:hover, .hdr-link[aria-current="page"] { opacity: 1; }
.hdr-cta {
  padding: 0 20px; border-radius: 12px; background: var(--ink); color: var(--bg);
  transition: background .35s, color .3s, transform .2s;
}
.hdr-cta:hover { color: var(--brand); }
.hdr-cta:active { transform: scale(.98); }
.hdr[data-tone="night"] .hdr-cta { background: var(--bg); color: var(--ink); }
.hdr[data-tone="night"] .hdr-cta:hover { color: var(--brand); }
@media (max-width: 560px) {
  .hdr-in { height: 68px; }
  .brand { gap: 8px; }
  .brand .mk { width: 26px; height: 26px; }
  .wm { font-size: 20px; }
  .hdr-nav { gap: 2px; }
  .hdr-link { padding: 0 10px; font-size: 14px; }
  .hdr-cta { padding: 0 14px; font-size: 14px; border-radius: 11px; }
}
@media (max-width: 340px) {
  .hdr-link { padding: 0 8px; }
  .hdr-cta { padding: 0 12px; }
}

/* ---------------------------------------------------------------- hero: day, coins on an arc */
.hero {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 84px 0 6svh; background: var(--bg); overflow: hidden;
}
/* the range: mountains baked from the oil paint (tools/mountains.py), day colour at the top, night at the foot */
.hero-range {
  position: absolute; left: 0; right: 0; bottom: 0; height: min(66svh, 62vw); pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%); mask-image: linear-gradient(to bottom, transparent 0%, #000 16%);
  animation: range-in 1.8s var(--ease-out) .15s both;
}
.hero-range img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%;
  transform: scale(var(--rs, 1)); transform-origin: 50% 100%; will-change: transform; -webkit-user-drag: none;
}
@keyframes range-in { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.coin-row {
  --rw: min(1720px, 100vw - 2 * var(--g));
  /* scale unit: six coins, the gaps and a centre at least 260px wide (the buttons under the headline) must fit */
  --u: max(.2px, min(var(--rw) / 3400, (var(--rw) - 260px) / 2432, (100svh - 140px) / 820));
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: calc(var(--u) * 80); width: var(--row-w); margin: 0 auto; padding-top: calc(var(--u) * 300);
}
.coin-group { display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.coin {
  position: relative; flex: none; width: calc(var(--u) * var(--w)); height: calc(var(--u) * var(--h));
  pointer-events: none; user-select: none; -webkit-user-select: none;
  animation: coin-in 1.4s var(--ease-out) both; animation-delay: calc(.1s + var(--i) * .08s);
}
.coin-arc { position: absolute; inset: 0; transform: translateY(calc(var(--u) * var(--arc, 0))); will-change: translate; }
.coin-drift {
  position: absolute; inset: 0;
  animation: coin-drift 7.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s);
}
.coin img {
  position: absolute; left: 50%; top: 50%; max-width: none; width: calc(var(--u) * var(--fw)); height: auto;
  translate: -50% -50%; opacity: 0; -webkit-user-drag: none;
}
.coin img.on { opacity: 1; }
.f1 { --fw: 270; } .f2 { --fw: 235; } .f3 { --fw: 380; } .f4 { --fw: 394; } .f5 { --fw: 394; } .f6 { --fw: 348; }
.still .coin-drift { animation-play-state: paused; }
@keyframes coin-in { from { opacity: 0; translate: 0 calc(var(--u) * 240); } to { opacity: 1; translate: none; } }
@keyframes coin-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, calc(var(--u) * -18), 0) rotate(2.5deg); }
}

.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 260px; translate: 0 calc(var(--u) * -300); }
.tagline {
  display: flex; flex-direction: column; align-items: center; margin: 0; color: var(--ink);
  font-size: max(24px, calc(var(--u) * 100)); font-weight: 500; letter-spacing: -.035em; line-height: 1.04;
  white-space: nowrap; text-align: center;
}
.tl { display: block; overflow: hidden; padding: 0 .06em .08em; margin-bottom: -.08em; }
.tl > span { display: block; animation: line-rise 1.1s var(--ease-out) both; animation-delay: calc(.3s + var(--l) * .1s); }
.tag { position: relative; display: inline-block; isolation: isolate; color: var(--bg); padding: 0 .17em; margin: 0 .03em; }
.tag::before {
  content: ""; position: absolute; inset: .03em 0 -.01em; z-index: -1; background: var(--brand); transform-origin: 0 50%;
  animation: tag-fill .65s cubic-bezier(.65, 0, .25, 1) both; animation-delay: 1s;
}
@keyframes line-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes tag-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-actions {
  position: absolute; top: 100%; left: 50%; translate: -50% 0; display: flex; gap: 12px; white-space: nowrap;
  margin-top: clamp(22px, calc(var(--u) * 70), 44px);
  animation: fade-up .9s var(--ease-out) 1.3s both;
}
.hero-link, .hero-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; border-radius: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; -webkit-user-drag: none;
}
.hero-link { padding: 0 16px; color: var(--ink); }
.hero-link span { position: relative; }
.hero-link span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out);
}
.hero-link:hover span::after { transform: scaleX(1); transform-origin: 0 50%; }
.arrow { transition: transform .5s var(--ease-out); }
.hero-link:hover .arrow, .foot-btn:hover .arrow { transform: translateX(3px); }
.hero-cta { padding: 0 24px; background: var(--ink); color: var(--bg); transition: color .35s, transform .2s; }
.hero-cta:hover { color: var(--brand); }
.hero-cta:active { transform: scale(.98); }
.chev {
  position: absolute; left: 50%; bottom: clamp(14px, 4svh, 40px); translate: -50% 0; z-index: 2;
  display: grid; place-items: center; width: 56px; height: 44px; border-radius: 12px; color: var(--bg);
  animation: fade-up .9s var(--ease-out) 1.8s both;
}
.chev svg { transition: transform .5s var(--ease-out); }
.chev:hover svg { transform: translateY(3px); }

@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  .hero { padding-top: 76px; }
  .coin-row {
    --u: max(.09px, min((100vw - 2 * var(--g)) / 2300, (100svh - 300px) / 1300));
    grid-template-columns: auto auto; grid-template-areas: "l r" "c c"; justify-content: center;
    column-gap: calc(var(--u) * 60); row-gap: clamp(26px, 5svh, 52px); padding-top: calc(var(--u) * 200);
  }
  .coin-group { gap: calc(var(--u) * 40); }
  .coin-group.l { grid-area: l; }
  .coin-group.r { grid-area: r; }
  .hero-center { grid-area: c; translate: none; }
  .tagline { font-size: clamp(34px, 10vw, 56px); }
  .hero-actions { position: static; translate: none; justify-content: center; margin-top: 28px; }
}
@media (max-width: 360px) {
  .hero-actions { gap: 6px; }
  .hero-link { padding: 0 12px; }
  .hero-cta { padding: 0 20px; }
}

/* ---------------------------------------------------------------- reveals (hidden only once js has run) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s, transform 1.2s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-late { transition-delay: .12s; }

/* ---------------------------------------------------------------- statement */
.statement { position: relative; z-index: 1; padding: var(--gap) 0 0; color: var(--bg); user-select: none; -webkit-user-select: none; }
.st {
  display: flex; flex-direction: column; align-items: center; margin: 0;
  font-size: clamp(38px, 11.5vw, 190px); font-weight: 500; letter-spacing: -.045em; line-height: .94;
  text-align: center; white-space: nowrap;
}
.st-line { display: block; padding: 0 .04em; }
.js .st-line > span {
  display: block; opacity: 0; filter: blur(10px); transform: translateY(.28em); will-change: opacity, transform, filter;
  transition: opacity 1.2s cubic-bezier(.25, .1, .25, 1) calc(var(--i) * .14s), transform 1.6s var(--ease-pop) calc(var(--i) * .14s), filter 1.3s ease calc(var(--i) * .14s);
}
.js .st.in .st-line > span { opacity: 1; filter: blur(0); transform: none; }

/* ---------------------------------------------------------------- product: window on the oil paint */
.art {
  --win-w: min(1240px, 88vw);
  --win-top: clamp(40px, 5.5vw, 88px);
  position: relative; margin-top: 14svh; padding-top: var(--win-top); overflow: hidden;
}
/* The paint opens up as it scrolls in. No mask ever changes: .art-open carries the ellipse at its smallest and is
   scaled up (js/site.js sets --sx/--sy from the scroll, eased), the picture inside is scaled back, and the fade at
   the top sits on the still outer box. Every frame is transform and opacity only. Without the script the vars fall
   back to the fully open state. */
.art-paint {
  position: absolute; inset: 0; overflow: hidden; opacity: var(--po, 1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%); mask-image: linear-gradient(to bottom, transparent 0%, #000 11%);
}
.art-open {
  position: absolute; inset: 0; transform: scale(var(--sx, 2.6667), var(--sy, 3.5714)); will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 30% 28% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 30% 28% at 50% 50%, #000 58%, transparent 100%);
}
.art-open img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scale(var(--ix, .375), var(--iy, .28)); will-change: transform;
}
.art::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--night)); }
.win {
  position: relative; z-index: 1; width: var(--win-w); margin: 0 auto; border-radius: 14px 14px 0 0; overflow: hidden;
  background: #0c0c0f; container: win / inline-size;
  box-shadow: 0 0 0 1px #ffffff24, 0 40px 80px -20px #08132899;
}
.win-bar {
  display: flex; align-items: center; gap: clamp(6px, .6vw, 9px); height: clamp(28px, 3.2vw, 42px);
  padding: 0 clamp(12px, 1.2vw, 18px); background: #16171bf2; border-bottom: 1px solid #ffffff0d;
}
.win-bar i { width: clamp(9px, .85vw, 12px); aspect-ratio: 1; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-tag {
  margin-left: auto; padding: 3px 9px; border-radius: 99px; font-size: clamp(10px, .8vw, 12px); font-weight: 500;
  color: var(--night-muted); box-shadow: inset 0 0 0 1px #ffffff1a;
}

/* app preview: every size is in em, the font size follows the window width */
.pv {
  display: grid; grid-template-columns: 15em minmax(0, 1fr) 16.5em; min-height: 42em;
  font-size: clamp(8px, 1.12cqw, 15px); line-height: 1.4; color: var(--night-ink); text-align: left;
}
.av {
  display: inline-grid; place-items: center; flex: none; width: 1.85em; height: 1.85em; border-radius: .5em;
  font-size: .8em; font-weight: 600; color: #fff; letter-spacing: 0;
}
.g-orange { background: var(--glow-orange); }
.g-purple { background: var(--glow-purple); }
.g-green { background: var(--glow-green); }
.g-blue { background: var(--glow-blue); }
.g-tan { background: var(--glow-tan); }
.pv-side { display: flex; flex-direction: column; gap: .2em; padding: 1.3em .9em 1.1em; background: #0f1013; border-right: 1px solid #ffffff10; }
.pv-brand { display: flex; align-items: center; gap: .5em; padding: 0 .5em 1em; font-weight: 600; font-size: 1.12em; letter-spacing: -.03em; }
.pv-brand .mk { width: 1.5em; height: 1.5em; }
.pv-h { padding: .7em .6em .35em; font-size: .74em; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.pv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15em; }
.pv-list li { display: flex; align-items: center; gap: .65em; padding: .5em .6em; border-radius: .6em; color: #f3f3f2bd; white-space: nowrap; }
.pv-list li.on { background: #ffffff10; color: #fff; }
.pv-list .av { font-size: .72em; }
.pv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pv-ping { width: .5em; height: .5em; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 .25em #f4470033; }
.pv-nav { margin-top: 1em; padding-top: .9em; border-top: 1px solid #ffffff10; }
.pv-nav svg { width: 1.15em; height: 1.15em; flex: none; color: var(--night-muted); }
.pv-count { min-width: 1.5em; padding: .05em .4em; border-radius: 99px; background: var(--brand); color: #fff; font-size: .74em; font-weight: 600; text-align: center; }
.pv-net { margin-top: auto; display: flex; align-items: center; gap: .55em; padding: .6em; font-size: .82em; color: var(--night-muted); }
.pv-net i { width: .55em; height: .55em; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 .25em #3ecf8e2e; }
.pv-main { display: flex; flex-direction: column; min-width: 0; }
.pv-top { display: flex; align-items: center; gap: .8em; padding: 1em 1.6em; border-bottom: 1px solid #ffffff10; }
.pv-top .av { font-size: .95em; }
.pv-who { min-width: 0; }
.pv-who b { display: block; font-weight: 600; letter-spacing: -.01em; }
.pv-who small { display: block; font-size: .84em; color: var(--night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-rule {
  margin-left: auto; flex: none; padding: .35em .8em; border-radius: 99px; font-size: .8em; font-weight: 500;
  background: #ffffff0b; box-shadow: inset 0 0 0 1px #ffffff1a; white-space: nowrap;
}
.pv-chat { flex: 1; display: flex; flex-direction: column; gap: 1.05em; width: 100%; max-width: 44em; margin: 0 auto; padding: 1.8em 1.6em 1.2em; }
.msg { margin: 0; }
.msg.me {
  align-self: flex-end; max-width: 80%; padding: .65em 1em; border-radius: 1.05em 1.05em .3em 1.05em;
  background: var(--bg); color: var(--ink); font-weight: 500;
}
.msg.bot { display: flex; align-items: flex-start; gap: .75em; }
.msg.bot .av { font-size: .78em; margin-top: .05em; }
.msg.bot p { max-width: 30em; color: #f3f3f2db; }
.pv-receipt { display: flex; gap: 1em; margin-top: .3em; font-family: var(--mono); font-size: .8em; color: var(--night-muted); }
.pv-receipt span { color: #8fd9b6; }
.pv-info { display: flex; flex-direction: column; padding: 1.2em 1.2em 1.4em; border-left: 1px solid #ffffff10; background: #0e0f12; }
.pv-info .pv-h { padding: .2em 0 .5em; }
.pv-info .pv-h ~ .pv-h { margin-top: 1.1em; }
.pv-kv { margin: 0; display: flex; flex-direction: column; gap: .1em; }
.pv-kv div { display: flex; justify-content: space-between; gap: 1em; padding: .42em 0; border-bottom: 1px solid #ffffff0c; font-size: .92em; }
.pv-kv dt { color: var(--night-muted); }
.pv-kv dd { margin: 0; font-weight: 500; }
.pv-tags { display: flex; gap: .4em; }
.pv-tags i { padding: .2em .7em; border-radius: 99px; font-style: normal; font-size: .84em; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff17; }
.pv-rt { display: grid; grid-template-columns: 1fr auto; gap: .1em .6em; padding: .65em .75em; margin-bottom: .45em; border-radius: .7em; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff12; }
.pv-rt b { font-weight: 500; font-size: .95em; }
.pv-rt small { grid-column: 1; font-size: .8em; color: var(--night-muted); }
.pv-rt em { grid-row: 1 / 3; grid-column: 2; align-self: center; padding: .2em .6em; border-radius: 99px; font-style: normal; font-size: .74em; font-weight: 500; color: #8fd9b6; background: #3ecf8e1a; }
.pv-rt em.q { color: #c7b4ff; background: #b48cff1f; }
.pv-chat .ap { margin-left: 2.2em; max-width: 27em; }
.pv-compose, .ph-compose {
  display: flex; align-items: center; justify-content: space-between; gap: .8em;
  background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff17; color: var(--night-muted);
}
.pv-compose { margin: 0 1.6em 1.4em; padding: .55em .55em .55em 1em; border-radius: .9em; }
.send { display: grid; place-items: center; flex: none; width: 2.1em; height: 2.1em; border-radius: .6em; background: #ffffff14; color: #f3f3f2; }
.send svg { width: 1em; height: 1em; }

/* the approval card: em based, sized by whatever holds it */
.ap {
  padding: 1em; border-radius: .9em; background: #fff; color: var(--ink); text-align: left;
  box-shadow: 0 0 0 1px #0813281a, 0 .8em 2em -.8em #0000008c;
}
.ap.flat { padding: 0; background: none; box-shadow: none; }
.ap-head { display: flex; align-items: center; gap: .75em; }
.ap-head img { width: 2.5em; height: 2.5em; border-radius: .6em; object-fit: cover; flex: none; }
.ap-head b { display: block; font-size: 1.14em; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.ap-head small { display: block; margin-top: .2em; font-size: .9em; font-weight: 500; color: var(--brand-deep); }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin-top: 1em; }
.ap-b {
  display: flex; align-items: center; justify-content: center; min-height: 2.6em; padding: .45em .6em; border-radius: .65em;
  background: var(--bg); box-shadow: inset 0 0 0 1px #08132814; font-size: .92em; font-weight: 500; line-height: 1.15; text-align: center;
}
.ap-b.pri { background: var(--ink); color: var(--bg); box-shadow: none; }
.ap-b.no { background: transparent; color: #081328a3; box-shadow: inset 0 0 0 1px #0813281f; }
.ap.stack .ap-btns { grid-template-columns: 1fr; gap: .45em; }

@container win (max-width: 860px) {
  .pv { grid-template-columns: 15em minmax(0, 1fr); }
  .pv-info { display: none; }
}
@container win (max-width: 620px) {
  .pv { grid-template-columns: 1fr; min-height: 0; font-size: 13px; }
  .pv-side { flex-direction: row; flex-wrap: wrap; gap: .4em; padding: .9em 1em; border-right: 0; border-bottom: 1px solid #ffffff10; }
  .pv-brand, .pv-h, .pv-nav, .pv-net { display: none; }
  .pv-bots { flex-direction: row; flex-wrap: wrap; gap: .35em; }
  .pv-bots li { padding: .35em .6em .35em .4em; background: #ffffff08; }
  .pv-top { padding: .9em 1em; }
  .pv-who small, .pv-rule { display: none; }
  .pv-chat { padding: 1.2em 1em 1em; }
  .pv-chat .ap { margin-left: 0; }
  .pv-compose { margin: 0 1em 1.2em; }
}

/* ---------------------------------------------------------------- band heads */
.job-head { margin-top: clamp(56px, 7vw, 110px); text-align: center; color: var(--bg); }
.h2 {
  margin: 0; color: var(--bg); font-size: var(--h2); font-weight: 500; letter-spacing: -.03em; line-height: 1.06;
  text-wrap: balance;
}
.job-body { text-align: center; }
.lead {
  max-width: 39em; margin: clamp(40px, 6vw, 88px) auto 0; color: #f1f2eb75; text-wrap: pretty;
  font-size: clamp(18px, 1.75vw, 27px); font-weight: 500; letter-spacing: -.012em; line-height: 1.42;
}
.lead strong { color: var(--bg); font-weight: inherit; }
.sub {
  max-width: 30em; margin: clamp(12px, 1.2vw, 18px) auto 0; color: #f1f2eb8c; text-wrap: balance;
  font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45;
}

/* the tokens a vault can list, as tiles on a tilted plane (instinct's ticker field) */
.tiles {
  --tile: clamp(50px, 6.6vw, 108px);
  --spring: linear(0, .0708, .2222, .3932, .5522, .6852, .789, .8656, .9195, .9556, .9785, .9923, .9999, 1.0036, 1.0049, 1.0049, 1.0043, 1.0035, 1.0026, 1.0019, 1.0013, 1.0008, 1.0005, 1.0003, 1.0002, 1.0001, 1, 1, 1);
  position: relative; margin: clamp(36px, 5vw, 72px) auto 0; perspective: calc(var(--tile) * 14); perspective-origin: 50% -40%;
  user-select: none; -webkit-user-select: none; overflow-x: clip;
}
.tiles::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, transparent 30%, var(--night) 100%); }
.tiles-plane {
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--tile) * .2);
  margin: calc(var(--tile) * -.35) 0 calc(var(--tile) * -.45); transform: rotateX(54deg); transform-origin: 50% 50%;
}
.tiles-row { display: flex; gap: calc(var(--tile) * .16); }
.tile-slot { display: block; }
.tile {
  display: grid; place-items: center; width: var(--tile); height: var(--tile); overflow: hidden; border-radius: calc(var(--tile) * .24);
  background: #1c1c22; box-shadow: inset 0 0 0 1px #ffffff1a, 0 calc(var(--tile) * .05) 0 #ffffff17, 0 calc(var(--tile) * .14) calc(var(--tile) * .2) #0009;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.circle img { transform: scale(1.2); }
.tile.mark { padding: calc(var(--tile) * .16); background: var(--bg); }
.tile.mark img { object-fit: contain; }
.tile.letter b {
  display: grid; place-items: center; width: 68%; height: 68%; border-radius: 50%;
  color: #0a0a0b; font-size: calc(var(--tile) * .34); font-weight: 600; letter-spacing: -.02em;
}
.js .tile-slot {
  opacity: 0; transform: translateY(calc(var(--tile) * .18)) scale(.88);
  transition: opacity .35s ease, transform .7s var(--spring); transition-delay: calc(var(--r) * 70ms + var(--c) * 45ms);
}
.js .tiles.in .tile-slot { opacity: 1; transform: none; }
@media (max-width: 760px) { .tiles { --tile: 11.5vw; } }

/* ---------------------------------------------------------------- glow cards (shared by the three cards and the bands) */
.art-card {
  position: relative; display: flex; flex-direction: column; overflow: clip; aspect-ratio: 1 / .8;
  border-radius: 14px; container-type: inline-size; text-align: left; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.art-in { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; padding: 7cqw 7cqw 0; }
.chip {
  position: relative; z-index: 2; align-self: flex-start; max-width: 100%;
  padding: max(8px, 2.4cqw) max(12px, 3.6cqw); border-radius: max(10px, 3cqw);
  background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px #0813281f;
  font-size: max(14px, 4.4cqw); font-weight: 500; letter-spacing: -.01em; line-height: 1.25;
}
.panel {
  position: relative; flex: 1 0 auto; margin: max(10px, 4cqw) 0 -6cqw; padding: max(12px, 4cqw) max(12px, 4.5cqw) calc(6cqw + max(12px, 4cqw));
  border-radius: max(10px, 3cqw); background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px #0813281a;
}
.panel.dark { background: var(--panel); color: #f1f2eb; box-shadow: 0 0 0 1px #ffffff1a; }
.p-head { display: flex; align-items: center; gap: max(6px, 1.8cqw); font-size: max(12px, 3cqw); font-weight: 600; }
.p-head .av { font-size: max(10px, 2.5cqw); }
.p-head em {
  margin-left: auto; padding: .2em .7em; border-radius: 99px; font-style: normal; font-weight: 500; font-size: max(10px, 2.4cqw);
  color: #08132899; box-shadow: inset 0 0 0 1px #0813281f;
}
.dark .p-head em { color: #f1f2eb8c; box-shadow: inset 0 0 0 1px #ffffff21; }

/* card 1: watcher pings */
.panel.inbox { flex: 1 1 0; min-height: 0; overflow: hidden; padding-bottom: 0; }
.ping-list {
  display: flex; flex-direction: column; gap: max(6px, 1.6cqw); margin-top: max(10px, 3cqw);
  -webkit-mask-image: linear-gradient(#000 58%, transparent 92%); mask-image: linear-gradient(#000 58%, transparent 92%);
}
.ping {
  display: flex; gap: max(8px, 2.6cqw); flex: none; padding: max(7px, 2cqw) max(9px, 2.8cqw); border-radius: max(8px, 2.6cqw);
  background: #fff; box-shadow: 0 0 0 1px #0813281a; font-size: max(10px, 2.6cqw); line-height: 1.3;
}
.ping.on { box-shadow: 0 0 0 2px var(--brand); }
.ping > img { width: max(26px, 7cqw); height: max(26px, 7cqw); border-radius: max(6px, 2cqw); object-fit: cover; flex: none; box-shadow: 0 0 0 1px #0813281f; }
.trio { position: relative; flex: none; width: max(26px, 7cqw); height: max(26px, 7cqw); }
.trio img { position: absolute; width: 62%; height: 62%; border-radius: 28%; object-fit: cover; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #08132826; }
.trio img:nth-child(1) { left: 0; top: 0; }
.trio img:nth-child(2) { right: 0; top: 19%; }
.trio img:nth-child(3) { left: 19%; bottom: 0; }
.ping > span:last-child { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.ping small { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; font-size: max(10px, 2.5cqw); color: #08132894; }
.ping small b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: max(12px, 3.2cqw); font-weight: 600; }
.ping small em { flex: none; font-style: normal; }
.tags { display: flex; flex-wrap: wrap; gap: max(4px, 1.3cqw); margin-top: max(4px, 1.2cqw); }
.tags i { padding: .2em .65em; border-radius: 99px; background: #08132812; color: var(--ink); font-size: max(10px, 2.5cqw); font-style: normal; font-weight: 500; white-space: nowrap; }
.tags i.hot { background: var(--brand); color: #fff; }

/* card 2: approval */
.panel.ask .ap { margin-top: max(12px, 4cqw); font-size: max(12px, 3.3cqw); }

/* card 3: record */
.rec { list-style: none; margin: max(10px, 3cqw) 0 0; padding: 0; display: flex; flex-direction: column; gap: max(7px, 2cqw); }
.rec li { position: relative; padding-left: max(16px, 4.4cqw); font-size: max(12px, 3cqw); line-height: 1.3; }
.rec li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: max(7px, 1.7cqw); height: max(7px, 1.7cqw); border-radius: 50%;
  background: var(--up); box-shadow: 0 0 0 max(2px, .6cqw) #3ecf8e30;
}
.rec li.ask::before { background: var(--brand); box-shadow: 0 0 0 max(2px, .6cqw) #f4470033; }
.rec li.note::before { background: #8a96ff; box-shadow: 0 0 0 max(2px, .6cqw) #8a96ff33; }
.rec li:not(:last-child)::after { content: ""; position: absolute; left: calc(max(7px, 1.7cqw) / 2 - .5px); top: 1.25em; bottom: calc(-1 * max(7px, 2cqw)); width: 1px; background: #ffffff1c; }
.rec b { display: block; font-weight: 500; color: #f1f2eb; }
.rec small { display: flex; flex-wrap: wrap; gap: 0 1.2em; margin-top: .15em; font-family: var(--mono); font-size: max(10px, 2.4cqw); color: #f1f2eb80; }
.rec small span { color: #8fd9b6; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px);
  width: var(--row-w); margin: calc(var(--head-gap) * 1.25) auto 0;
}
.card { margin: 0; }
.cards .rv:nth-child(2) { transition-delay: .08s; }
.cards .rv:nth-child(3) { transition-delay: .16s; }
.card-text { margin: 18px 4px 0; color: var(--day-soft); font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.5; text-wrap: pretty; }
.card-text b { color: var(--bg); font-weight: 500; }

/* ---------------------------------------------------------------- bands: share, rules, anywhere */
.band { position: relative; z-index: 1; padding: var(--gap) 0 0; color: var(--bg); }
.band-in {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--head-gap);
  width: min(1320px, 100% - 2 * var(--g)); margin-inline: auto; text-align: center;
}
.band-stage { width: min(620px, 100%, 125vh - 325px); min-width: min(100%, 480px); }
.band-stage .art-card { border-radius: clamp(14px, 1.6vw, 22px); }

/* share: a Bot card on the orange glow */
.bc {
  position: relative; margin-bottom: 7cqw; padding: max(14px, 4cqw) max(14px, 4cqw) max(14px, 3.6cqw);
  border-radius: max(12px, 3cqw); background: var(--panel); color: #f1f2eb; box-shadow: 0 0 0 1px #ffffff1a;
  font-size: max(13px, 3.3cqw); line-height: 1.35;
}
.bc-top { display: flex; align-items: center; gap: max(8px, 2.4cqw); }
.bc-top .av { font-size: max(13px, 3.6cqw); border-radius: 50%; }
.bc-top b { display: block; font-size: max(15px, 4.2cqw); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.bc-top small { display: block; color: #f1f2eb80; font-size: max(12px, 2.9cqw); }
.bc-role { display: flex; align-items: flex-start; gap: max(8px, 2cqw); margin-top: max(12px, 3cqw); font-size: max(15px, 4.3cqw); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.bc-role img { width: 1.25em; height: 1.25em; margin-top: .02em; border-radius: .3em; object-fit: cover; flex: none; }
.bc-chart { margin-top: max(10px, 2.6cqw); padding: max(10px, 2.6cqw) max(10px, 2.8cqw) max(8px, 2cqw); border-radius: max(10px, 2.4cqw); background: #0a0a0c; box-shadow: inset 0 0 0 1px #ffffff17; }
.bc-chart svg { width: 100%; height: auto; overflow: visible; }
.bc-chart .avg { fill: none; stroke: #f1f2eb73; stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.bc-chart .under { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.bc-chart .zone { fill: #f447001c; }
.bc-chart .price { fill: none; stroke: #f1f2eb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bc-chart .buy { fill: var(--brand); stroke: #0a0a0c; stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: .3em 1.4em; margin-top: max(6px, 1.6cqw); font-size: max(11px, 2.5cqw); color: #f1f2eb8c; }
.legend span { display: inline-flex; align-items: center; gap: .5em; }
.legend i { width: 1.6em; height: 0; border-top: 1.5px dashed #f1f2eb73; }
.legend i.u { border-top-color: var(--brand); }
.legend i.b { width: .7em; height: .7em; border: 0; border-radius: 50%; background: var(--brand); }
.bc-chips { display: flex; flex-wrap: wrap; gap: max(6px, 1.4cqw); margin-top: max(12px, 3cqw); }
.bc-chips i {
  padding: .35em .8em; border-radius: 99px; font-style: normal; font-weight: 500; font-size: max(12px, 2.9cqw);
  background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff1f; white-space: nowrap;
}
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-top: max(14px, 3.4cqw); color: #f1f2eb99; font-size: max(12px, 2.9cqw); }
.bc-foot > span:first-child { display: inline-flex; align-items: center; gap: .5em; }
.bc-foot svg { width: 1.2em; height: 1.2em; flex: none; }
.bc-btn { padding: .5em 1.4em; border-radius: max(8px, 1.6cqw); background: var(--brand); color: #fff; font-weight: 600; font-size: max(13px, 3.2cqw); }

/* rules: the table on the tan glow */
.panel.tbl-panel { flex: 0 0 auto; margin-bottom: 7cqw; padding: max(10px, 3.2cqw) max(14px, 5cqw) max(4px, 1.6cqw); }
.tbl { width: 100%; border-collapse: collapse; font-size: max(13px, 3.5cqw); }
.tbl th {
  padding: 0 0 max(8px, 2cqw); border-bottom: 1px solid #ffffff24; color: #f1f2eb80;
  font-size: max(11px, 2.8cqw); font-weight: 400; text-align: left;
}
.tbl td { padding: max(9px, 1.9cqw) 0; border-top: 1px solid #ffffff12; color: #f1f2ebd1; vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl th:last-child, .tbl td:last-child { text-align: right; padding-left: max(10px, 3cqw); }
.tbl td:last-child { color: #f1f2eb; font-weight: 500; }
.tbl tr.us td { color: var(--brand); font-weight: 600; }

/* anywhere: desktop window and phone */
.dev-stage { position: relative; width: min(1080px, 100%); margin: 0 auto; container: stage / inline-size; user-select: none; -webkit-user-select: none; }
.dev-win {
  width: 82cqw; margin: 0 0 8cqw 3cqw; border-radius: 1.1cqw; overflow: hidden; background: #0c0c0f; container: win / inline-size;
  box-shadow: 0 0 0 1px #ffffff24, 0 3cqw 6cqw -1.5cqw #0009;
}
.dev-win .win-bar { height: 3.7cqw; gap: .85cqw; padding: 0 1.6cqw; }
.dev-win .win-bar i { width: 1.15cqw; }
.dev-win .win-tag { font-size: 1.3cqw; padding: .3cqw 1cqw; }
.dev-win .pv { min-height: 40em; }
.dev-phone {
  --pw: 22cqw;
  position: absolute; right: 3cqw; bottom: 0; width: var(--pw); padding: calc(var(--pw) * .036);
  border-radius: calc(var(--pw) * .162); background: #0a0a0b;
  box-shadow: inset 0 0 0 1.5px #3a3b40, inset 0 0 0 5px #141518, 0 2.5cqw 5cqw #0000008c;
}
.dev-phone > i {
  position: absolute; z-index: 2; top: calc(var(--pw) * .066); left: 50%; translate: -50% 0;
  width: calc(var(--pw) * .27); height: calc(var(--pw) * .078); border-radius: 99px; background: #000;
}
.dev-phone::before, .dev-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2b2f; }
.dev-phone::before { left: -3px; top: 22%; height: 8%; box-shadow: 0 calc(var(--pw) * .22) 0 #2a2b2f; }
.dev-phone::after { right: -3px; top: 28%; height: 13%; }
.ph { aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: calc(var(--pw) * .126); background: #0c0c0f; container-type: inline-size; }
.ph-in { display: flex; flex-direction: column; height: 100%; font-size: 5.1cqw; line-height: 1.38; color: var(--night-ink); text-align: left; }
.ph-top { display: flex; align-items: center; gap: .6em; padding: 3.1em 1em .8em; border-bottom: 1px solid #ffffff10; font-weight: 600; }
.ph-top svg { width: 1.1em; height: 1.1em; color: var(--night-muted); }
.ph-top .av { font-size: .8em; }
.ph-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .85em; padding: 1em .9em .8em; }
.ph-chat .msg.me { font-size: .95em; }
.ph-chat .bot-t { color: #f3f3f2d9; font-size: .95em; }
.ph-chat .ap { font-size: .95em; padding: .9em; }
.ph-compose { margin: 0 .9em 1.6em; padding: .45em .45em .45em .9em; border-radius: .9em; font-size: .92em; }

@container stage (max-width: 640px) {
  .dev-win { display: none; }
  .dev-phone { --pw: min(270px, 80cqw); position: relative; right: auto; margin: 0 auto; }
}

/* ---------------------------------------------------------------- closing + footer */
.foot { position: relative; z-index: 1; margin-top: calc(var(--gap) * .5); overflow: hidden; background: var(--night); color: var(--bg); }
.foot-art {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: max(100%, 1100px); max-width: none; height: auto; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 45%); mask-image: linear-gradient(transparent 0%, #000 45%);
}
.foot-cta { position: relative; display: flex; flex-direction: column; align-items: center; padding: clamp(56px, 7vw, 96px) 24px clamp(64px, 8vw, 110px); border-bottom: 1px solid #ffffff17; text-align: center; }
.foot-wm { display: flex; align-items: center; gap: .14em; margin: 0; font-size: clamp(56px, 16vw, 230px); font-weight: 600; letter-spacing: -.055em; line-height: .95; }
.foot-wm .mk { width: .74em; height: .74em; }
.foot-wm span { padding-bottom: .06em; }
.foot-line { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(19px, 1.9vw, 28px); letter-spacing: -.015em; text-wrap: balance; }
.foot-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; margin-top: clamp(28px, 3vw, 40px); padding: 0 28px;
  border-radius: 15px; background: var(--bg); color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none;
  transition: color .3s, transform .2s;
}
.foot-btn:hover { color: var(--brand); }
.foot-btn:active { transform: scale(.98); }
.foot-main { position: relative; width: min(1100px, 100% - 2 * var(--g)); margin: 0 auto; padding: clamp(48px, 6vw, 80px) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1fr 3fr 3fr auto; align-items: start; gap: 32px; }
.foot-mark { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; }
.foot-mark .mk { width: 44px; height: 44px; }
.foot-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-grid h2 { margin: 0 0 6px; color: #fff; font-size: 17px; font-weight: 500; }
.foot-grid nav a {
  display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; color: #f1f2eb8c; font-size: 16px; text-decoration: none; transition: color .2s;
}
.foot-grid nav a:hover { color: #fff; }
.foot-x { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #ffffff17; color: #fff; transition: background .2s; }
.foot-x:hover { background: #ffffff26; }
.foot-x svg { width: 20px; height: 20px; }
.foot-legal {
  margin-top: clamp(200px, 26vw, 400px); padding: 22px 0 26px; border-top: 1px solid #ffffff38;
  color: #f1f2ebcc; font-size: 14px; line-height: 1.5;
}
.foot-docs .foot-legal { margin-top: clamp(160px, 20vw, 300px); }

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 960px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 44px; width: min(560px, 100% - 2 * var(--g)); }
  .cards .rv:nth-child(n) { transition-delay: 0s; }
}
@media (max-width: 760px) {
  .art { --win-w: calc(100vw - 24px); --win-top: 30px; margin-top: 10svh; }
  .win { border-radius: 12px 12px 0 0; }
  .art::after { height: 12%; }
  .cards .art-card { aspect-ratio: 1 / .92; }
  .band-stage { min-width: 0; }
  .band-stage .art-card { aspect-ratio: auto; }
  .band-stage .art-in { padding-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr auto; row-gap: 32px; }
  .foot-grid > a:first-child { grid-area: 1 / 1 / auto / 3; }
  .foot-grid > nav:nth-of-type(1) { grid-area: 2 / 1; }
  .foot-grid > nav:nth-of-type(2) { grid-area: 2 / 2 / auto / 4; }
  .foot-x { grid-area: 1 / 3; width: 44px; height: 44px; }
  .foot-legal { margin-top: 160px; font-size: 13px; }
}
@media (max-width: 380px) {
  .foot-grid { gap: 24px 16px; }
  .foot-grid nav a { font-size: 15px; }
}

/* ---------------------------------------------------------------- docs */
body.docs-page { background: var(--bg); }
.docs { color: var(--ink); }
.docs-hero { width: min(1120px, 100% - 2 * var(--g)); margin: 0 auto; padding: clamp(120px, 15vw, 180px) 0 clamp(36px, 5vw, 64px); }
.docs-coin { --u: clamp(.2px, .04vw, .3px); position: relative; width: calc(var(--u) * 440); height: calc(var(--u) * 440); margin-bottom: clamp(18px, 2.4vw, 30px); }
.docs-coin .coin { position: absolute; inset: 0; width: auto; height: auto; animation: none; }
.docs-coin .coin-drift { animation-duration: 6s; }
.docs-title { max-width: 12em; margin: 0; font-size: clamp(40px, 5.4vw, 78px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.docs-title .tag { color: var(--bg); }
.docs-title .tag::before { animation: none; }
.docs-lede { max-width: 32em; margin-top: clamp(18px, 2vw, 26px); color: #081328a3; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; text-wrap: pretty; }
.docs-cta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: clamp(24px, 3vw, 34px); }
.docs-cta .hero-link { padding-left: 4px; }
.docs-grid {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  width: min(1120px, 100% - 2 * var(--g)); margin: 0 auto; padding: clamp(28px, 4vw, 48px) 0 clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line-2);
}
.toc { position: sticky; top: 108px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex; align-items: center; min-height: 40px; padding: 0 12px; margin-left: -12px; border-radius: 10px;
  color: #081328a3; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background .2s;
}
.toc a:hover { color: var(--ink); background: #0813280a; }
.toc a[aria-current="true"] { color: var(--ink); background: #08132810; }
.docs-body { min-width: 0; max-width: 46em; font-size: 17px; line-height: 1.62; color: #081328de; }
.docs-body section { padding-top: 8px; scroll-margin-top: 96px; }
.docs-body section + section { margin-top: clamp(48px, 6vw, 80px); }
.docs-body h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.docs-body h3 { margin: 32px 0 10px; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.docs-body p { margin: 0 0 14px; }
.docs-body ul, .docs-body ol { margin: 0 0 16px; padding-left: 1.3em; }
.docs-body li { margin: 6px 0; }
.docs-body li::marker { color: var(--brand); }
.docs-body strong { color: var(--ink); font-weight: 600; }
.docs-body a { color: var(--ink); text-decoration-color: #f4470099; text-underline-offset: 3px; }
.docs-body a:hover { text-decoration-color: var(--brand); }
.docs-body code { font-family: var(--mono); font-size: .86em; padding: .1em .38em; border-radius: 6px; background: #0813280d; color: var(--ink); overflow-wrap: anywhere; }
.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; margin: 0 0 18px; padding: 18px 20px 18px 64px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.steps > li::before {
  content: counter(s); position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600;
}
.steps > li > b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.steps p:last-child { margin-bottom: 0; }
.callout { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: var(--brand-soft); color: #4a1806; font-size: 16px; }
.callout strong { color: #4a1806; }
.dtable { width: 100%; margin: 6px 0 20px; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.5; background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.dtable th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted-2); background: #0813280a; }
.dtable td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.dtable td:first-child { width: 30%; color: var(--ink); font-weight: 600; }
.dtable.three td:first-child { width: 24%; }
.dtable.three td:last-child { width: 20%; color: var(--muted-2); }
.addr { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 15.5px; }
.addr i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #d6a400; box-shadow: 0 0 0 4px #d6a40026; }
.faq h3 { margin-top: 28px; }
.faq h3:first-of-type { margin-top: 0; }

@media (max-width: 900px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { margin-left: 0; padding: 0 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-radius: 99px; font-size: 14px; }
}
@media (max-width: 600px) {
  .docs-body { font-size: 16px; }
  .steps > li { padding: 16px 16px 16px 56px; }
  .steps > li::before { left: 14px; top: 15px; width: 28px; height: 28px; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100% !important; }
  .dtable thead { display: none; }
  .dtable tr + tr { border-top: 1px solid var(--line); }
  .dtable td { border-top: 0; padding: 4px 16px; }
  .dtable td:first-child { padding-top: 14px; }
  .dtable td:last-child { padding-bottom: 14px; }
  .dtable td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted-2); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
}

/* ---------------------------------------------------------------- reduced motion: a still arc, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin, .coin-drift, .tl > span, .tag::before, .hero-actions, .chev { animation: none !important; }
  .js .rv, .js .st-line > span, .js .tile-slot { opacity: 1; filter: none; transform: none; transition: none; }
  .art-paint { opacity: 1; }
  .hero-range { animation: none !important; }
}
