/* beast.kluk.one. Own identity: ember #ff5a1f on ink #0b0d12, system type, claw mark. Parent brand kluk in the
   footer only. Light and dark follow the system. No external resources. */
:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --line: #e4e4de;
  --text: #0e1116;
  --muted: #5b626e;
  --accent: #ff5a1f;
  --on-accent: #fff; /* APCA: white Lc 62 beats ink 47 on this orange, the rule of brand.go onAccent */
  --accent-text: #c93d0a;
  --accent-soft: #fff0e8;
  --ok: #0f8a4a;
  --ink: #0b0d12;
  --ink-2: #14171e;
  --ink-line: #262a33;
  --ink-text: #f2f3f5;
  --ink-muted: #9aa1ad;
  --code-bg: #0f1218;
  --code-text: #e7e9ee;
  --r: 18px;
  --gutter: 16px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(14,17,22,.05), 0 24px 60px -24px rgba(14,17,22,.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #181c24;
    --line: #232833;
    --text: #f2f3f5;
    --muted: #9aa1ad;
    --accent-text: #ff7a45;
    --accent-soft: #2a1710;
    --ok: #3fd585;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 70px -30px rgba(0,0,0,.8);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; margin: 0 0 20px; }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 8px; }
p { text-wrap: pretty; margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin: 4px 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.top.on-ink { background: color-mix(in srgb, var(--ink) 78%, transparent); border-color: rgba(255,255,255,.07); color: var(--ink-text); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 800 23px/1 var(--display); letter-spacing: -.045em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font: 500 12px/1 var(--font); letter-spacing: 0; color: var(--muted); margin-left: 2px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; }
.on-ink .brand small { color: var(--ink-muted); border-color: var(--ink-line); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 10px; opacity: .82; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.top nav a.cta { opacity: 1; background: var(--accent); color: var(--on-accent); }
.top nav a.cta:hover { background: #ff6a33; }
@media (max-width: 760px) { .top nav a:not(.keep) { display: none; } .brand small { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 650; font-size: 16.5px; text-decoration: none; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 10px 30px -10px rgba(255,90,31,.6); }
.btn:hover { transform: translateY(-1px); background: #ff6a33; box-shadow: 0 16px 36px -12px rgba(255,90,31,.7); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent); background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec + .sec { padding-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head p { font-size: 19px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* hero (ink in both themes) */
.hero { position: relative; background: var(--ink); color: var(--ink-text); overflow: hidden; isolation: isolate; margin-top: -65px; padding: 150px 0 96px; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(255,90,31,.32), transparent 70%); z-index: -1; animation: glow 12s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; 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: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
@keyframes glow { to { transform: translate(-120px, 80px) scale(1.1); } }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff5a1f, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: #c3c8d1; max-width: 560px; margin-bottom: 32px; }
.hero .btn.ghost { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: #c3c8d1; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.facts svg { width: 18px; height: 18px; color: #ff7a45; flex: none; }
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-visual .pay-root { border-radius: 26px; padding: 8px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hero-visual .pay-wrap { padding: 10px 6px 12px; }
.toast { position: absolute; left: -64px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; color: #0e1116; box-shadow: 0 24px 60px -16px rgba(0,0,0,.6); font-size: 14px; line-height: 1.3; animation: rise .8s .6s both cubic-bezier(.2,.9,.3,1.2); }
.toast b { display: block; font-size: 15px; }
.toast .ok { width: 36px; height: 36px; border-radius: 50%; background: #e3f6ea; color: #0f8a4a; display: grid; place-items: center; flex: none; }
.toast .ok svg { width: 20px; height: 20px; }
.toast2 { left: auto; right: -40px; bottom: auto; top: -22px; animation-delay: 1.1s; }
.toast2 .ok { background: #fff0e8; color: #ff5a1f; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (max-width: 960px) {
  .toast2 { display: none; }
  .hero { padding: 116px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .toast { left: -4px; } .toast2 { right: -4px; }
}

/* network strip */
.nets { border-bottom: 1px solid var(--line); background: var(--surface); }
.nets .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 44px; padding-top: 26px; padding-bottom: 26px; }
.nets p { margin: 0; color: var(--muted); font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; }
.chip img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 5px; box-shadow: 0 0 0 1px var(--line); }
.chip img.full { padding: 0; }
.chip span { color: var(--muted); font-weight: 500; }

/* buyer view: three states */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.state-col { margin: 0; }
.state-col figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; }
.state-col figcaption b { display: block; color: var(--text); font-size: 17px; }
.frame { border-radius: 26px; padding: 8px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame .pay-root { border-radius: 19px; }
.frame .pay-wrap { padding: 14px 10px 16px; }
@media (max-width: 960px) {
  .states { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .states::-webkit-scrollbar { display: none; }
  .state-col { scroll-snap-align: center; }
}
@media (max-width: 480px) {
  .stage, .frame .pay-wrap, .stage .pay-wrap { padding-left: 10px; padding-right: 10px; }
  .stage .qr, .frame .qr, .hero-visual .qr { width: 112px; height: 112px; }
  .stage .m-secure, .frame .m-secure { display: none; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 32px; left: 32px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 700 13px/24px var(--font); text-align: center; color: var(--muted); }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.pic { height: 140px; border-radius: 14px; background: var(--surface-2); margin-bottom: 20px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pic .mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow); }
.pic .mini b { font-size: 18px; letter-spacing: -.02em; }
.pic .bigbtn { background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 12px 22px; border-radius: 12px; box-shadow: 0 12px 26px -10px rgba(255,90,31,.7); font-size: 15px; }
.pic .cursor { position: absolute; left: 58%; top: 58%; width: 22px; height: 22px; color: var(--text); }
.pic .qrmini { width: 74px; height: 74px; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.pic .qrmini img { width: 100%; height: 100%; image-rendering: pixelated; }
.pic .badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ok); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.pic .badge svg { width: 14px; height: 14px; }
.pic .arrow { color: var(--muted); width: 22px; height: 22px; flex: none; }
.pic .wallet { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; color: #ff7a45; }
.pic .wallet svg { width: 26px; height: 26px; }
.pic .coin { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.flowmap { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.flowmap svg { display: block; width: 100%; height: auto; }
.flowmap text { font: 650 15px var(--font); fill: var(--text); }
.flowmap .t2 { font-weight: 400; font-size: 13px; fill: var(--muted); }
.flowmap .box { fill: var(--surface-2); stroke: var(--line); }
.flowmap .hot { fill: var(--accent); }
.flowmap .hot-t { fill: #fff; }
.flowmap .wire { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.flowmap .flow-m { display: none; }
@media (max-width: 760px) { .flowmap .flow-d { display: none; } .flowmap .flow-m { display: block; max-width: 340px; margin: 0 auto; } }

/* admin mock */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { display: flex; gap: 12px; margin: 0 0 14px; }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.win { background: var(--ink); color: var(--ink-text); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--ink-line); font-size: 14px; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #10131a; border-bottom: 1px solid var(--ink-line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c313c; }
.win-bar span { margin-left: 10px; font-size: 12.5px; color: var(--ink-muted); }
.win-body { padding: 20px; }
.win-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.win h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.win h4 img { width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 3px; }
.win .sum { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.win .sum small { font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.win table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.win th { text-align: left; font-weight: 500; color: var(--ink-muted); font-size: 12.5px; padding: 8px; border-bottom: 1px solid var(--ink-line); background: none; }
.win td { padding: 10px 8px; border-bottom: 1px solid #1c2029; white-space: nowrap; }
.win td code { font: 13px var(--mono); color: #c3c8d1; background: none; border: 0; padding: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pill.ok { background: #0f2a1c; color: #3fd585; }
.pill.wait { background: #2e2312; color: #ffb547; }
.pill.done { background: #1b1f27; color: #9aa1ad; }
.win .gas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 12px; background: #14171e; color: var(--ink-muted); font-size: 13.5px; }
.win .gas .btn { padding: 11px 18px; font-size: 15px; }
.scroll-x { overflow-x: auto; }

/* customise demo */
.demo { display: grid; grid-template-columns: 360px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.ctrl { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ctrl label, .ctrl .lbl { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.ctrl input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw[aria-pressed=true] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.sw-1 { background: #ff5a1f; } .sw-2 { background: #6d4aff; } .sw-3 { background: #0f8a6a; } .sw-4 { background: #1f6fff; } .sw-5 { background: #e11d74; } .sw-6 { background: #111318; }
.ctrl input[type=color] { width: 36px; height: 36px; border: 1px solid var(--line); padding: 2px; background: var(--surface); cursor: pointer; border-radius: 50%; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { flex: 1; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.ctrl input[type=range] { width: 100%; accent-color: #ff5a1f; }
.ctrl-note { font-size: 14.5px; margin: auto 0 0; }
.envbox { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 12px 14px; font: 12.5px/1.65 var(--mono); white-space: pre; overflow-x: auto; }
.stage { padding: 32px 20px; display: flex; flex-direction: column; align-items: center; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 0) 0 0/18px 18px, var(--surface-2); min-width: 0; }
.stage .pay-root { width: 100%; max-width: 420px; border-radius: 22px; box-shadow: var(--shadow); }
.stage .pay-wrap { padding: 16px 12px 18px; }
.stage .seg { width: 100%; max-width: 420px; margin-bottom: 18px; background: var(--surface); }
.stage .seg button[aria-pressed=true] { background: var(--surface-2); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } .ctrl { border-right: 0; border-bottom: 1px solid var(--line); } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.ico svg { width: 23px; height: 23px; }
.ink-sec { background: var(--ink); color: var(--ink-text); }
.ink-sec h2 { color: #fff; }
.ink-sec .sec-head p, .ink-sec .card p { color: var(--ink-muted); }
.ink-sec .card { background: var(--ink-2); border-color: var(--ink-line); }
.ink-sec .ico { background: #2a1710; color: #ff7a45; }
.ink-sec .eyebrow { color: #ff7a45; }
.sec.ink-sec, .ink-sec + .sec { padding-top: clamp(72px, 10vw, 128px); }
.ink-sec .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .ink-sec .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ink-sec .grid { grid-template-columns: 1fr; } }

/* pricing */
.price { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.price .card.big { padding: clamp(28px, 4vw, 44px); background: linear-gradient(160deg, var(--surface) 40%, var(--accent-soft)); }
.price .num { font: 800 clamp(72px, 10vw, 128px)/.9 var(--display); letter-spacing: -.05em; margin: 10px 0 18px; }
.price .num small { font-size: .26em; letter-spacing: -.01em; color: var(--muted); font-weight: 650; margin-left: 6px; }
.price .card.big p { font-size: 17px; max-width: 460px; }
.costs { list-style: none; padding: 0; margin: 0; }
.costs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15.5px; }
.costs li:last-child { border-bottom: 0; }
.costs b { white-space: nowrap; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 18.5px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* final cta */
.final { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 80px); background: var(--ink); color: var(--ink-text); text-align: center; isolation: isolate; }
.final::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -60%; height: 120%; background: radial-gradient(closest-side, rgba(255,90,31,.4), transparent 70%); z-index: -1; }
.final h2 { color: #fff; }
.final p { color: #c3c8d1; font-size: 19px; max-width: 560px; margin: 0 auto 30px; }
.final .btns { justify-content: center; }
.final .btn.ghost { color: #fff; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 44px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: inherit; text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.byk { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.byk img { width: 22px; height: 22px; }
.byk b { color: var(--text); }
.foot .end { margin-left: auto; }
.foot.flush { margin-top: 0; }
@media (max-width: 700px) { .foot .end { margin-left: 0; } }

@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes rv { from { opacity: 0; transform: translateY(28px); } }
}

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr) 200px; gap: 48px; max-width: 1400px; padding-top: 40px; padding-bottom: 40px; }
.docs:not(:has(.toc)) { grid-template-columns: 236px minmax(0, 1fr); }
td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 15px; }
.side h4 { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px 12px; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { margin: 1px 0; }
.side a { display: block; padding: 6px 12px; border-radius: 9px; color: var(--text); text-decoration: none; opacity: .8; }
.side a:hover { opacity: 1; background: var(--surface-2); }
.side a[aria-current] { opacity: 1; background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.side summary { display: none; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 13.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent-text); border-left-color: var(--accent); }
article { min-width: 0; }
article h1 { font-size: clamp(34px, 4.6vw, 48px); margin-bottom: 14px; }
article h2 { font-size: 28px; margin: 56px 0 14px; }
article h3 { font-size: 20px; margin: 32px 0 10px; }
article .lead { font-size: 20px; color: var(--muted); margin-bottom: 30px; }
article p, article li { font-size: 16.5px; }
code { font: .88em var(--mono); background: var(--surface-2); padding: .12em .38em; border-radius: 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
pre { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 20px; border: 1px solid #1f2430; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.pre-wrap { position: relative; }
.copy { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 12.5px var(--font); padding: 6px 10px; border-radius: 8px; border: 1px solid #2c313c; background: #171b23; color: #c3c8d1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pre-wrap:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.copy.done { color: #3fd585; border-color: #1f5a3a; }
.tabs { margin: 0 0 24px; border: 1px solid #1f2430; border-radius: 14px; overflow: hidden; background: var(--code-bg); }
.tablist { display: flex; gap: 2px; padding: 6px; background: #10131a; border-bottom: 1px solid #1f2430; overflow-x: auto; }
.tablist button { font: 600 13.5px var(--font); color: #9aa1ad; background: none; border: 0; padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tablist button[aria-selected=true] { color: #fff; background: #1d222c; box-shadow: inset 0 -2px 0 var(--accent); }
.tabs pre { margin: 0; border: 0; border-radius: 0; }
.tabs .pre-wrap + .pre-wrap { border-top: 1px solid #1f2430; }
.tabs [role=tabpanel] > h3 { display: none; }
.tabs [role=tabpanel] > p { color: #9aa1ad; margin: 0; padding: 12px 20px; font-size: 14px; border-top: 1px solid #1f2430; }
.table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
.note, .tip { display: block; border-radius: 14px; padding: 16px 18px 16px 50px; margin: 0 0 22px; position: relative; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.note > p:last-child, .tip > p:last-child { margin-bottom: 0; }
.note::before, .tip::before { content: "!"; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 13px/22px var(--font); text-align: center; }
.tip { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.tip::before { content: "i"; background: var(--ok); }
.method { display: inline-block; font: 700 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); margin-right: 6px; }
.op { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 8px; margin: 0 0 24px; background: var(--surface); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.dcard { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: border-color .15s, transform .15s; }
.dcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.dcard h3 { margin: 0 0 6px; font-size: 17px; }
.dcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.netrow { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 24px; }
.dhero { border-radius: 20px; border: 1px solid var(--ink-line); padding: 28px; margin-bottom: 30px; background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; isolation: isolate; }
.dhero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255,90,31,.35), transparent 70%); z-index: -1; }
.dhero h1 { color: #fff; margin-bottom: 8px; }
.dhero p { color: #c3c8d1; margin: 0 0 18px; font-size: 18px; }
.dhero .chip span { color: #9aa1ad; }
.dhero .chip img { box-shadow: none; }
.shot { margin: 0 0 24px; max-width: 420px; }
@media (max-width: 1180px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .docs, .docs:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .side { position: static; max-height: none; margin-bottom: 24px; overflow: visible; }
  .side details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 8px 8px; background: var(--surface); }
  .side summary { display: block; cursor: pointer; font-weight: 650; padding: 10px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* checkout mocks on the site: keep the site's code style out of them */
.pay-root code { background: none; border: 0; padding: 0; font-size: 14.5px; }
.sw-6 { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.final { border: 1px solid var(--ink-line); }
