/* ==========================================================================
   NexStudio public pages (owner 2026-10-06): pricing, download, docs,
   changelog, contact, about, legal, 404. Loaded after css/app.css.
   Tokens only (css/tokens.css). Shared header/footer come from js/nx-site.js
   with the home page classes (.announce, .nav, .footer from css/style.css).
   Remove this file + the public pages to revert.
   ========================================================================== */

.site-body { background: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.site-body main { flex: 1 0 auto; width: 100%; }
.site-body [id] { scroll-margin-top: 96px; }
.site-body .vox { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.site-body .reveal { will-change: auto; }

/* ---------- shared header additions ---------- */
.nav-links a[aria-current="page"] { color: var(--bone); background: var(--panel); }
.nav-links a.nav-signup-mobile { display: none; }
@media (max-width: 860px) {
  .site-body .nav-links { visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s; }
  .site-body .nav-links.open { visibility: visible; transition-delay: 0s; }
  .nav-links a[aria-current="page"] { background: var(--panel-2); }
}
@media (max-width: 640px) {
  .nav-links a.nav-signup-mobile { display: inline-flex; justify-content: center; margin-top: 12px; height: 48px; padding: 0 20px; border-radius: 999px; font-size: 16px; color: var(--on-accent); }
  .nav-links a.nav-signup-mobile:hover { background: var(--accent-fill-hover); color: var(--on-accent); }
}

/* ---------- shared footer: five link columns ---------- */
.site-footer { margin-top: 0; }
.site-footer .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 28px; }
.site-footer .footer-brand > a { display: inline-block; border-radius: 6px; }
.site-footer nav a { width: max-content; max-width: 100%; }
@media (max-width: 1180px) {
  .site-footer .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) { .site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- page hero (h1) ---------- */
.site-body .page-hero { position: relative; isolation: isolate; }
.site-body .page-hero.wrap { padding-inline: var(--gutter); }
.site-body .page-body { padding-bottom: clamp(56px, 7vw, 96px); }
.site-body .page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 62% at 50% 38%, rgba(220, 20, 60, .13), transparent 72%);
}
.site-body .page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(242, 234, 231, .09) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(50% 70% at 50% 40%, var(--ink) 15%, transparent 78%); mask-image: radial-gradient(50% 70% at 50% 40%, var(--ink) 15%, transparent 78%);
}
.page-hero .kicker svg { color: var(--accent); }
.page-hero h1, .page-hero p { text-wrap: balance; }
.site-body .page-hero h1 { font-size: clamp(34px, 5.6vw, 72px); }
.page-hero.compact { padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.page-hero.compact h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 22ch; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- section heads ---------- */
.sp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sp-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.sp-head h2 em { font-style: normal; color: var(--accent); }
.sp-head p { margin: 10px 0 0; color: var(--dust); max-width: 56ch; }
.sp-head .eyebrow { margin-bottom: 14px; }
.sp-head .link { display: inline-flex; align-items: center; gap: 6px; color: var(--dust); font-weight: 550; font-size: 15px; }
.sp-head .link:hover { color: var(--bone); }
.state-banner { margin: -12px 0 -32px; }
.site-body .page-body { grid-template-columns: minmax(0, 1fr); }
.site-body .page-body > * { min-width: 0; }
.nobr { white-space: nowrap; }
.h1-break { display: block; }

/* ==================== PRICING ==================== */
.site-body .plans { gap: 16px; }
.plans > .empty, .packs > .empty { grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: 18px; }
.site-body .pack .grow small:first-child { margin: 0 0 2px; color: var(--dust); font-weight: 600; }
.site-body .plan-card { display: flex; flex-direction: column; gap: 16px; padding: 26px 22px 22px; min-width: 0; }
.plan-card .plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 74px; }
.plan-card .plan-top b { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.plan-card .plan-top small { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
.plan-card .plan-top img { width: 62px; height: 74px; image-rendering: pixelated; flex: none; margin: -6px -4px 0 0; filter: drop-shadow(0 8px 10px rgba(14, 11, 12, .6)); transition: transform var(--t-med) var(--ease-spring); }
.plan-card:hover .plan-top img { transform: translateY(-3px); }
.site-body .plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.site-body .plan-price strong { font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.site-body .plan-price span { color: var(--dim); font-size: 14px; }
.plan-cr { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--dust); }
.plan-cr img { width: 20px; height: 20px; image-rendering: pixelated; flex: none; }
.plan-cr b { color: var(--bone); font-weight: 700; font-size: 16px; }
.plan-card.featured .plan-cr { border-color: rgba(220, 20, 60, .35); }
.site-body .plan-feats { gap: 10px; }
.plan-feats .save-tag { font-size: 13.5px; }
.site-body .plan-card .btn { margin-top: auto; width: 100%; }
.plan-skel { min-height: 420px; padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 14px; align-content: start; }

.packs-wrap { display: grid; gap: 16px; }
.site-body .pack { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "img txt" "btn btn"; align-items: center; gap: 14px 16px; padding: 20px; border-radius: 18px; }
.site-body .pack img { grid-area: img; width: 72px; height: 66px; image-rendering: pixelated; }
.site-body .pack .grow { grid-area: txt; }
.site-body .pack .btn { grid-area: btn; width: 100%; }
.site-body .pack b { font-size: 24px; }
.site-body .pack small { font-size: 13.5px; margin-top: 2px; }
.site-body .pack.best { border-color: rgba(255, 215, 0, .45); background: linear-gradient(180deg, rgba(255, 215, 0, .07), transparent 50%), var(--panel); }
.pack-tag { position: absolute; top: -11px; left: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--p-gold); color: var(--ink); }

.promo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 18px 20px; }
.promo-copy b { display: block; font-weight: 650; }
.promo-copy span { color: var(--dim); font-size: 13.5px; }
.promo .field { flex: 1 1 340px; max-width: 460px; }
.promo .input { height: 42px; text-transform: uppercase; letter-spacing: .04em; }
.promo .input::placeholder { text-transform: none; letter-spacing: 0; }
.promo .btn { height: 42px; flex: none; }
.field .okmsg { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); }
.field.valid .okmsg { display: flex; }
.field.valid .input { border-color: rgba(79, 191, 122, .6); }
.okmsg button { border: 0; background: none; padding: 0; color: var(--dust); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.okmsg button:hover { color: var(--bone); }

.ops-card .section-title { flex-wrap: wrap; }
.ops-card .tabs { max-width: 100%; }
.ops-card .tbl td:nth-child(2), .ops-card .tbl th:nth-child(2) { text-align: right; }
.ops-card .tbl td:nth-child(3), .ops-card .tbl th:nth-child(3) { text-align: right; color: var(--dust); }
.ops-card .tbl td:first-child { color: var(--bone); }
.ops-card .tbl .grp { display: inline-block; min-width: 58px; margin-right: 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.ops-card .tbl .cr { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; white-space: nowrap; }
.ops-card .tbl .cr img { width: 16px; height: 16px; image-rendering: pixelated; }
.ops-card .card-foot a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ops-card .card-foot a:hover { text-decoration-color: var(--accent); }

.site-body .rules { margin-top: 0; }
.site-body .rules .px { font-size: 11px; }
.faq-short { max-width: 920px; margin-inline: auto; width: 100%; }
.faq-short .sp-head { justify-content: center; text-align: center; }
.faq-short .faq a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ==================== DOWNLOAD ==================== */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 20px; align-items: stretch; }
.dl-card { padding: clamp(26px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; min-width: 0; }
.dl-card > * { min-width: 0; }
.dl-card .over { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card .badge { background: rgba(255, 244, 242, .16); color: var(--on-accent); }
.dl-ver { margin: 0; font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.dl-ver span { opacity: .7; font-weight: 600; }
.dl-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(14, 11, 12, .28); border: 1px solid rgba(255, 244, 242, .18); font-size: 13.5px; }
.dl-meta svg { width: 16px; height: 16px; }
.dl-card .hero-actions { margin-top: 4px; }
.dl-card .sha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 6px; }
.dl-card .sha > *, .site-body .copy-field { min-width: 0; }
.dl-card .sha .lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.dl-card .copy-field { background: rgba(14, 11, 12, .55); border-color: rgba(255, 244, 242, .16); }
.dl-card .copy-field .btn { color: var(--on-accent); }
.dl-card .copy-field code { color: var(--on-accent); }
.dl-card .skel { background: linear-gradient(90deg, rgba(255, 244, 242, .1), rgba(255, 244, 242, .2), rgba(255, 244, 242, .1)); background-size: 200% 100%; }
.dl-card .empty b, .dl-card .empty p { color: var(--on-accent); }
.dl-side { display: grid; gap: 20px; align-content: stretch; }
.dl-side .card { display: grid; gap: 14px; align-content: start; }
.dl-side h2 { margin: 0; font-size: 17px; font-weight: 650; }
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.req li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--dust); }
.req li b { display: block; color: var(--bone); font-weight: 600; }
.req .li-icon { width: 34px; height: 34px; }
.beta-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--dust); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--card-r); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.step .n { font-size: 44px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { margin: 4px 0 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--dust); font-size: 14.5px; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.path span { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--panel-3); color: var(--bone); white-space: nowrap; }
.path svg { width: 16px; height: 16px; color: var(--dim); }

.leaves { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 48px); align-items: start; padding: clamp(24px, 3vw, 40px); }
.leaves-art { width: 132px; height: 132px; position: relative; }
.leaves-art::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(139, 69, 19, .45), rgba(139, 69, 19, .06) 70%); }
.leaves-art .vox { position: relative; width: 100%; height: 100%; }
.leaves-main > h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 650; letter-spacing: -.025em; }
.leaves-main > p { margin: 6px 0 0; color: var(--dust); }
.leaves-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 24px; }
.leaves h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; color: var(--bone); }
.leaves ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--dust); font-size: 14.5px; }
.leaves li { display: flex; gap: 10px; align-items: flex-start; }
.leaves li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.leaves .yes svg { color: var(--accent); }
.leaves .no svg { color: var(--dim); }
.leaves-main > .leaves-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.leaves-foot a, .text-inline { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.leaves-foot a:hover, .text-inline:hover { text-decoration-color: var(--accent); }
.req li div { min-width: 0; }

/* ==================== DOCS ==================== */
.docs-wrap { padding-bottom: clamp(32px, 5vw, 64px); }
.site-body .docs-layout { grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 48px; }
.site-body .docs-nav b:first-child { margin-top: 0; }
.site-body .docs-nav a { display: flex; align-items: center; gap: 8px; transition: background var(--t-fast), color var(--t-fast); }
.site-body .docs-nav .soon-tag { margin-left: auto; font-size: 10.5px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px; }
.docs-main { min-width: 0; }
.site-body .prose { max-width: 70ch; font-size: 16px; }
.doc-sec { padding: 8px 0 36px; border-bottom: 1px solid var(--line); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec > h2 { margin-top: 28px; font-size: clamp(24px, 2.4vw, 30px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-sec:first-child > h2 { margin-top: 0; }
.doc-sec .lede { margin: 0 0 6px; font-size: 17px; color: var(--dust); }
.prose code:not(pre code) { font-family: var(--f-mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--panel-3); color: var(--bone); }
.prose b, .prose strong { color: var(--bone); font-weight: 650; }
.doc-steps { list-style: none; padding: 0 !important; margin: 14px 0; display: grid; gap: 10px; counter-reset: ds; }
.doc-steps li { counter-increment: ds; position: relative; margin: 0 !important; padding: 12px 14px 12px 52px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.doc-steps li::before { content: counter(ds); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(220, 20, 60, .16); color: var(--accent); font-weight: 700; font-size: 13.5px; line-height: 1; }
.code { margin: 14px 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 6px 5px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; color: var(--bone); }
.code-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--dust); font-size: 12.5px; font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.code-copy:hover { background: var(--panel-2); color: var(--bone); }
.code-copy svg { width: 16px; height: 16px; }
.device-demo { margin: 16px 0; padding: 22px 18px; border-radius: 16px; background: radial-gradient(70% 90% at 50% 0%, rgba(220, 20, 60, .14), transparent 70%), var(--panel); border: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; text-align: center; }
.device-demo small { color: var(--dim); font-size: 13px; }
.site-body .code-boxes span { width: 42px; height: 52px; font-size: 22px; color: var(--bone); }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(154, 184, 200, .25); background: var(--info-bg); font-size: 14.5px; color: var(--dust); }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--info); }
.mini-tbl { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.mini-tbl .tbl { font-size: 14.5px; }
.mini-tbl .tbl td:last-child, .mini-tbl .tbl th:last-child { text-align: right; white-space: nowrap; }
.mini-tbl .tbl td:first-child { color: var(--bone); }
.mini-tbl .tbl td:last-child { color: var(--bone); font-weight: 650; }
.prose .faq summary { color: var(--bone); }
.prose .faq summary:hover { color: var(--accent); }
.mini-tbl .tbl td { padding: 11px 16px; }
.faq.faq-sm summary { font-size: 16.5px; padding: 16px 0; }
.faq.faq-sm details p { font-size: 15px; margin-bottom: 16px; }
.node-grid { list-style: none; padding: 0 !important; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.node-grid li { margin: 0 !important; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--bone); line-height: 1.3; }
.node-grid .s-mesh { background: var(--steel); }
.node-grid .s-tex { background: var(--p-gold); }
.node-grid .s-logic { background: var(--p-brown); }
.site-body .toc { gap: 4px; }
.toc b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.toc a { padding: 4px 0 4px 12px; border-left: 2px solid var(--line); transition: color var(--t-fast), border-color var(--t-fast); }
.toc a.on { color: var(--bone); border-left-color: var(--accent); }
.toc a.sub { padding-left: 24px; font-size: 12.5px; }
.toc a.sub:hover { color: var(--bone); }
.toc-help { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--dust); }
.toc-help b { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--bone); }
.toc-help a { padding: 0; border: 0; color: var(--bone); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ==================== CHANGELOG ==================== */
.site-body .timeline { max-width: 1040px; margin-inline: auto; width: 100%; }
.site-body .release { grid-template-columns: 200px minmax(0, 1fr); }
.site-body .release:first-child { border-top: 0; padding-top: 0; }
.release .when { position: relative; }
.release .when b { display: block; }
.release .when time { color: var(--dim); font-size: 14px; }
.release .when .badge { justify-self: start; }
.release-body { display: grid; gap: 18px; min-width: 0; }
.chg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chg li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--bone); }
.chg-tag { flex: none; width: 76px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.chg-tag.t-new { color: var(--accent); }
.chg-tag.t-fixed { color: var(--ok); }
.chg-tag.t-improved { color: var(--p-gold); }
.release-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.release-foot .copy-field { min-width: 0; }
.release-foot .lbl { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.release.is-latest .when b { color: var(--bone); }
.release.is-latest .when::before { content: ''; position: absolute; left: -18px; top: 10px; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-form { padding: clamp(22px, 3vw, 32px); }
.contact-form .form-grid { gap: 18px; }
.contact-form .opt { font-weight: 500; color: var(--dim); }
.contact-form .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 4px; }
.contact-form .form-foot small { color: var(--dim); font-size: 13px; }
.contact-side { display: grid; gap: 20px; }
.mail-card { position: relative; overflow: hidden; display: grid; gap: 14px; }
.mail-card .over { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.mail-card .addr { font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; letter-spacing: -.015em; word-break: break-all; }
.mail-card .hero-actions { margin-top: 2px; }
.resp { display: flex; align-items: center; gap: 14px; }
.resp b { display: block; font-size: 16px; }
.resp span { color: var(--dust); font-size: 14px; }
.help-links { display: grid; }
.help-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--dust); font-size: 14.5px; transition: color var(--t-fast); }
.help-links a:first-of-type { border-top: 0; }
.help-links a:hover { color: var(--bone); }
.help-links a svg:last-child { margin-left: auto; }
.sent:focus { outline: none; }
.sent { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 48px); }
.sent h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; }
.sent p { margin: 0; color: var(--dust); max-width: 46ch; }
.sent .li-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); }
.sent .ref { font-family: var(--f-mono); font-size: 13.5px; color: var(--bone); background: var(--panel-3); padding: 2px 8px; border-radius: 6px; }

/* ==================== ABOUT ==================== */
.about-split { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: radial-gradient(60% 90% at 0% 50%, rgba(139, 0, 0, .22), transparent 70%), var(--ink-2); }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-copy h2 { margin: 0; font-size: clamp(30px, 3.6vw, 50px); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; }
.about-copy h2 em { font-style: normal; color: var(--accent); }
.about-copy p:not(.eyebrow) { margin: 0; color: var(--dust); font-size: 17px; max-width: 48ch; }
.about-copy .eyebrow { margin: 0; }
.about-art { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; }
.about-art::before { content: ''; position: absolute; inset: 10% 6% 2%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(139, 0, 0, .5), rgba(14, 11, 12, .2) 70%); border: 1px solid var(--line-2); box-shadow: 0 0 80px 10px rgba(220, 20, 60, .18); }
.about-art .vox { position: relative; width: 100%; height: 100%; }
.rel-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel-card { display: grid; gap: 10px; align-content: start; padding: 24px; }
.rel-card h3 { margin: 6px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.rel-card p { margin: 0; color: var(--dust); font-size: 14.5px; }
.real-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.real-grid .card { padding: 0; }
.real-grid h3 { margin: 0; padding: 18px 20px 8px; font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.real-grid .list-row { padding: 12px 20px; font-size: 14.5px; color: var(--dust); }
.real-grid .list-row b { display: block; color: var(--bone); }
.real-grid .li-icon { width: 32px; height: 32px; }
.end-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line-2); background: radial-gradient(60% 120% at 100% 50%, rgba(220, 20, 60, .14), transparent 70%), var(--panel); }
.end-cta h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; }
.end-cta p { margin: 6px 0 0; color: var(--dust); }
.end-cta .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==================== LEGAL ==================== */
.legal-wrap { max-width: 1120px; margin-inline: auto; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.legal-wrap > *, .legal-panel > * { min-width: 0; }
.legal-tabs { position: sticky; top: 68px; z-index: 5; background: var(--ink); padding-top: 4px; }
.legal-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; }
.legal-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; }
.legal-panel:focus { outline: none; }
.site-body .legal-panel[id], .site-body .legal-sec[id] { scroll-margin-top: 150px; }
.legal-toc { position: sticky; top: 140px; display: grid; gap: 4px; font-size: 14px; }
.legal-toc b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: lt; }
.legal-toc li { counter-increment: lt; }
.legal-toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--dust); transition: background var(--t-fast), color var(--t-fast); }
.legal-toc a::before { content: counter(lt, decimal-leading-zero); color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.legal-toc a:hover { background: var(--panel); color: var(--bone); }
.legal-body { display: grid; gap: 0; min-width: 0; }
.legal-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-head h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.025em; }
.legal-head p { margin: 6px 0 0; color: var(--dim); font-size: 14px; }
.legal-sec { padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: ls; }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; display: flex; gap: 12px; align-items: baseline; }
.legal-sec h3::before { content: counter(ls, decimal-leading-zero); color: var(--accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.legal-sec p { margin: 0; color: var(--dust); max-width: 68ch; }
.legal-body { counter-reset: ls; }
.legal-sec .tbl { margin-top: 12px; font-size: 14.5px; }
.legal-sec .tbl td:first-child { color: var(--bone); font-weight: 600; white-space: nowrap; }
.legal-sec .table-scroll { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.legal-sec .table-scroll .tbl { margin: 0; }

/* ==================== 404 ==================== */
.nf { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.nf-art { position: relative; width: min(260px, 70vw); aspect-ratio: 1; }
.nf-art::before { content: ''; position: absolute; inset: 10% 6% 2%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(139, 0, 0, .5), rgba(14, 11, 12, .2) 70%); border: 1px solid var(--line-2); box-shadow: 0 0 80px 10px rgba(220, 20, 60, .18); }
.nf-art .vox { position: relative; width: 100%; height: 100%; }
.nf-code { font-family: var(--f-accent); font-weight: 400; font-synthesis: none; letter-spacing: .14em; font-size: clamp(28px, 4vw, 44px); color: var(--accent); line-height: 1; margin-top: 6px; }
.nf h1 { margin: 0; font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.nf p { margin: 0; color: var(--dust); font-size: 18px; max-width: 40ch; }
.nf-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-body .docs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dl-grid, .contact-grid, .about-split { grid-template-columns: 1fr; }
  .rel-cards { grid-template-columns: 1fr; }
  .site-body .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .site-body .docs-nav { position: sticky; top: 68px; z-index: 5; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(14, 11, 12, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .site-body .docs-nav b { display: none; }
  .site-body .docs-nav a { flex: none; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
  .site-body .docs-nav .soon-tag { display: none; }
  .site-body [id] { scroll-margin-top: 140px; }
  .legal-panel { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; }
  .about-art { width: min(260px, 70%); }
  .site-body .release { grid-template-columns: 1fr; gap: 14px; }
  .release.is-latest .when::before { display: none; }
  .release .when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .release .when b { width: 100%; }
  .real-grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .site-body .pack { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "img txt btn"; }
  .site-body .pack .btn { width: auto; min-width: 150px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .leaves { grid-template-columns: 1fr; gap: 12px; }
  .leaves-cols { grid-template-columns: 1fr; }
  .leaves-art { width: 96px; height: 96px; margin-left: -8px; }
  .release-foot { grid-template-columns: 1fr; }
  .release-foot .btn { justify-self: start; }
  .promo .field { flex-basis: 100%; max-width: none; }
  .promo .input-group { flex-wrap: wrap; }
  .promo .input-group .input { flex: 1 1 180px; }
  .chg li { flex-direction: column; gap: 2px; }
  .chg-tag { width: auto; }
  .end-cta .hero-actions { width: 100%; }
  .site-body .plan-price strong { font-size: 40px; }
  .ops-card .tbl .grp { display: block; margin: 0 0 2px; }
  .ops-card .tabs { flex-wrap: wrap; width: auto; }
  .ops-card .tbl td, .ops-card .tbl th { padding-inline: 14px; }
  .legal-tabs .tab-line { gap: 18px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, var(--ink) 82%, transparent); mask-image: linear-gradient(90deg, var(--ink) 82%, transparent); padding-right: 40px; }
  .legal-tabs .tab-line::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .contact-form .form-foot .btn { width: 100%; }
  .site-body .code-boxes { gap: 5px; }
  .site-body .code-boxes span { width: 30px; height: 42px; font-size: 18px; border-radius: 9px; }
  .site-body .code-boxes .dash { width: 10px; }
  .dl-card .hero-actions .btn { flex: 1 1 auto; }
  .hero-cta .btn { width: 100%; }
  .nf-links { width: 100%; }
  .nf-links li { flex: 1 1 100%; }
  .nf-links .btn { width: 100%; }
}

/* ==================== REFERRAL LANDING (r.html, /r/<code>) ====================
   Remove this block + r.html + js/pages/referral.js to revert. */
.ref-wrap { padding-top: clamp(24px, 4vw, 56px); }
.ref-hero {
  --px-step: 8px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 40px; align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 72px);
  background: radial-gradient(60% 90% at 85% 40%, rgba(220, 20, 60, .26), transparent 65%), radial-gradient(50% 70% at 0% 100%, rgba(255, 140, 0, .1), transparent 70%), var(--ink-2);
}
.ref-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(242, 234, 231, .08) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 80% at 75% 40%, var(--ink) 10%, transparent 75%); mask-image: radial-gradient(60% 80% at 75% 40%, var(--ink) 10%, transparent 75%);
}
.ref-copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.ref-by { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; }
.ref-av { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.ref-who { min-width: 0; }
.ref-who b { display: block; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.ref-who small { display: block; font-size: 13px; color: var(--dim); }
.ref-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dust); }
.ref-kicker .pxi { color: var(--accent); }
.ref-hero h1 { margin: 0; max-width: 15ch; font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; overflow-wrap: anywhere; }
.ref-hero h1 em { font-style: normal; color: var(--accent); }
.ref-sub { margin: 0; max-width: 44ch; color: var(--dust); font-size: clamp(16px, 1.4vw, 19px); }
.ref-gift { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 14px; background: rgba(255, 215, 0, .07); border: 1px solid rgba(255, 215, 0, .28); }
.ref-gift img { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.ref-gift b { display: block; font-size: 16px; font-weight: 700; color: var(--p-gold); }
.ref-gift div > span { display: block; font-size: 13px; color: var(--dust); }
.ref-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ref-art { position: relative; justify-self: center; width: min(340px, 100%); aspect-ratio: 1; }
.ref-art::before { content: ''; position: absolute; inset: 10% 6% 2%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(139, 0, 0, .5), rgba(14, 11, 12, .2) 70%); border: 1px solid var(--line-2); box-shadow: 0 0 80px 10px rgba(220, 20, 60, .18); }
.ref-art .vox { position: relative; width: 100%; height: 100%; }
.ref-coin { position: absolute; z-index: 2; height: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(14, 11, 12, .55)); animation: refBob 4.2s ease-in-out infinite; pointer-events: none; }
.ref-coin.c1 { top: 8%; left: 2%; width: 34px; }
.ref-coin.c2 { top: 30%; right: 0; width: 24px; animation-delay: -1.4s; }
.ref-coin.c3 { bottom: 12%; left: 12%; width: 20px; animation-delay: -2.6s; opacity: .85; }
@keyframes refBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ref-steps-wrap { padding-block: 20px clamp(56px, 7vw, 96px); }
.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-width: 0; }
.ref-steps li > div { min-width: 0; }
.ref-steps .n { position: absolute; top: 10px; right: 14px; font-size: 12px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.ref-steps b { display: block; font-weight: 650; }
.ref-steps li > div span { display: block; font-size: 13.5px; color: var(--dim); }
@media (max-width: 960px) {
  .ref-hero { grid-template-columns: minmax(0, 1fr); }
  .ref-art { width: min(220px, 58%); grid-row: 1; justify-self: start; margin: -8px 0 -12px -10px; }
}
@media (max-width: 760px) { .ref-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .ref-hero { --px-step: 6px; }
  .ref-cta { width: 100%; }
  .ref-cta .btn { width: 100%; justify-content: center; }
  .ref-art { width: 150px; }
}
