/* Moxel site: shared styles. "Night grove" (2026-10-05): neutral black like a game UI, colour only from the logo:
   glow teal (--amber, legacy name) = the primary action, berry orange = new/warn, mushroom pink = likes, leaf green = ok.
   Square pixel buttons (bevel + outline + drop lip, after Sprite Fusion), pixel display font, readable body font. */
:root {
  --amber: #3fd6c8;
  --amber-hi: #9ff5e8;
  --amber-ink: #022421;
  --berry: #ffb43a;
  --pink: #ff4fa3;
  --teal: #6ff0dd;
  --violet: #b45cff;
  --rose: #ff5a6e;
  --green: #6cc970;
  --bg-0: #0a0b0b;
  --bg-1: #121414;
  --bg-2: #1a1d1d;
  --bg-3: #232727;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-dim: #a6aeae;
  --text-faint: #6c7474;
  --radius: 6px;
  --radius-sm: 4px;
  --gutter: clamp(16px, 4vw, 36px);
  --maxw: 1200px;
  --font-display: "Pixelify Sans", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 200ms var(--ease);
  color-scheme: dark;
}
/* the hidden attribute always hides, even on elements whose class sets display (.btn, .owner-row...) */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 var(--font-body); color: var(--text); background: var(--bg-0);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* film grain + soft top glow, fixed so it never repaints on scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(108, 201, 112, 0.075), transparent 62%),
    radial-gradient(800px 600px at -10% 30%, rgba(63, 214, 200, 0.06), transparent 60%),
    var(--bg-0);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(63, 214, 200, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 86px); font-weight: 750; letter-spacing: -0.035em; line-height: 0.96; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 0; padding: 0.1em 0.38em; color: #e6eaea; white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.amber { color: var(--amber); }
.teal { color: var(--teal); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; box-shadow: 4px 4px 0 rgba(63, 214, 200, 0.3); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.teal::before { box-shadow: 4px 4px 0 rgba(108, 201, 112, 0.3); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-dim); line-height: 1.55; max-width: 60ch; }
.grad { background: linear-gradient(100deg, var(--amber) 0%, #b8fff2 40%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  font: 600 15px/1 var(--font-body); color: var(--text); text-decoration: none !important;
  padding: 13px 20px; border-radius: 0; border: 1px solid var(--b); background: var(--surface);
  cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t), color var(--t);
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.btn-primary {
  color: var(--amber-ink); background: linear-gradient(180deg, var(--amber-hi), var(--amber)); border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 -2px 0 rgba(10, 90, 85, 0.25) inset, 0 10px 30px -10px rgba(63, 214, 200, 0.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #b8fff2, var(--amber-hi)); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -2px 0 rgba(10, 90, 85, 0.25) inset, 0 14px 36px -10px rgba(63, 214, 200, 0.7); }
.btn-teal { border-color: rgba(108, 201, 112, 0.4); background: rgba(108, 201, 112, 0.08); color: #e4f3cf; }
.btn-teal:hover { border-color: var(--teal); background: rgba(108, 201, 112, 0.14); }
.btn-danger { border-color: rgba(255, 90, 110, 0.35); color: #ffb3bd; background: rgba(255, 90, 110, 0.06); }
.btn-danger:hover { border-color: var(--rose); background: rgba(255, 90, 110, 0.12); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 0; gap: 7px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 0; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: 66px;
  background: rgba(10, 11, 11, 0.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t);
}
.site-nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 11, 11, 0.82); }
.site-nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 20px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none !important; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 0; text-decoration: none; transition: color var(--t), background var(--t); }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 38px; }
.nav-auth .btn { padding: 10px 16px; font-size: 14px; }
.nav-user { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; font-weight: 500; padding: 4px 10px 4px 4px; border-radius: 0; border: 1px solid var(--border); text-decoration: none !important; }
.nav-user:hover { border-color: var(--border-strong); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-body); color: var(--amber-ink); background: linear-gradient(135deg, var(--amber), var(--teal)); flex: none; }
.plan-pill { font: 700 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 0; border: 1px solid var(--border-strong); color: var(--text-dim); }
.plan-pill.pro { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 0; position: relative; transition: transform var(--t), background var(--t); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.skeleton { display: inline-block; width: 150px; height: 36px; border-radius: 0; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 880px) {
  .site-nav .wrap { gap: 12px; }
  .nav-toggle { display: grid; }
  .nav-links, .nav-auth { display: none; }
  /* backdrop-filter would make the header the containing block for the fixed menu, so drop it while open */
  .nav-open .site-nav { background: #0a0b0b; border-bottom-color: var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .nav-links, .nav-open .nav-auth { display: flex; position: fixed; left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 8px var(--gutter); }
  .nav-open .nav-links { top: 66px; bottom: 0; gap: 2px; background: #0a0b0b; }
  .nav-open .nav-links a { font-size: 17px; padding: 13px 12px; }
  .nav-open .nav-auth { top: calc(66px + 4 * 53px + 20px); z-index: 1; gap: 10px; border-top: 1px solid var(--border); padding-top: 18px; }
  .nav-open .nav-auth .btn { width: 100%; padding: 14px; font-size: 15px; }
  .nav-open .nav-auth .nav-user { justify-content: flex-start; padding: 8px; border-radius: 0; }
  .nav-open { overflow: hidden; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px);
}
.grid { display: grid; gap: 20px; }

/* page header for inner pages */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 48px); position: relative; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 72px); }
.blockgrid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- code blocks ---------- */
.code {
  position: relative; background: #070808; border: 1px solid var(--border); border-radius: 0; overflow: hidden; margin: 0 0 1.2em;
}
.code-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--border); font: 500 12px/1 var(--font-mono); color: var(--text-faint); background: rgba(255, 255, 255, 0.02); }
.code-head .lang { color: var(--text-dim); }
.code-head .btn { margin-left: auto; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; line-height: 1.65; font-size: 13.5px; color: #dde2e2; tab-size: 2; }
.code pre .c { color: var(--text-faint); }
.code pre .k { color: var(--amber); }
.code pre .s { color: #a5e8a8; }
.code pre .v { color: var(--teal); }
.copy-btn.copied { color: var(--green); border-color: rgba(108, 201, 112, 0.5); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 0; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
.tabs button { font: 600 14px/1 var(--font-body); color: var(--text-dim); background: none; border: 0; padding: 10px 14px; border-radius: 0; cursor: pointer; white-space: nowrap; transition: color var(--t), background var(--t); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-strong) inset; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); background: rgba(255, 255, 255, 0.02); }
td.yes::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 0; background: var(--surface); transition: border-color var(--t), background var(--t); }
.faq details[open] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.045); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font: 600 17px/1.35 var(--font-body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; border-color: var(--amber); }
.faq details > div { padding: 0 22px 20px; color: var(--text-dim); }
.faq details > div p:last-child { margin: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.field label .faint { font-weight: 500; }
.input {
  width: 100%; font: 15px/1.3 var(--font-body); color: var(--text); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong); border-radius: 0; padding: 13px 14px; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(63, 214, 200, 0.14); background: rgba(0, 0, 0, 0.5); }
.input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.12); }
.field-hint { font-size: 13px; color: var(--text-faint); }
.field-hint.ok { color: var(--green); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: 0; font-size: 14px; color: #ffd0da; background: rgba(255, 90, 110, 0.1); border: 1px solid rgba(255, 90, 110, 0.35); }
.form-error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--font-body); background: var(--rose); color: #2a0510; margin-top: 1px; }

/* ---------- banners + toasts ---------- */
.banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 0; border: 1px solid; margin-bottom: 24px; }
.banner.success { background: linear-gradient(90deg, rgba(63, 214, 200, 0.14), rgba(108, 201, 112, 0.08)); border-color: rgba(63, 214, 200, 0.4); }
.banner.warn { background: rgba(255, 90, 110, 0.08); border-color: rgba(255, 90, 110, 0.35); }
.banner strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.banner .x { margin-left: auto; }
.toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 0; font-size: 14.5px;
  background: rgba(20, 23, 23, 0.96); border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px); animation: toast-in 260ms var(--ease);
}
.toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 0; background: var(--teal); }
.toast.error::before { background: var(--rose); }
.toast.ok::before { background: var(--green); }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .reduce .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); margin-top: auto; padding-block: 56px 40px; font-size: 14px; color: var(--text-dim); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text-dim); }
.foot-grid a:hover { color: var(--text); }
.foot-tag { max-width: 34ch; margin-top: 14px; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--text-faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- pricing cards (landing + pricing page) ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; border-radius: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); }
.plan.pro {
  border-color: transparent;
  background: linear-gradient(180deg, #1a1d1d, #101212) padding-box, linear-gradient(160deg, var(--amber), rgba(63, 214, 200, 0.15) 40%, rgba(108, 201, 112, 0.5)) border-box;
  border: 1px solid transparent; box-shadow: 0 30px 80px -30px rgba(63, 214, 200, 0.35);
}
.plan-name { font: 600 13px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.plan.pro .plan-name { color: var(--amber); }
.plan-tag { font: 700 10.5px/1 var(--font-mono); letter-spacing: 0.06em; padding: 5px 8px; border-radius: 0; background: rgba(63, 214, 200, 0.14); color: var(--amber); border: 1px solid rgba(63, 214, 200, 0.35); }
.plan-price { font: 750 64px/1 var(--font-display); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 8px; }
.plan-price small { font: 500 16px/1 var(--font-body); letter-spacing: 0; color: var(--text-dim); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.plan li b { color: var(--text); font-weight: 600; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 0; background: rgba(108, 201, 112, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%236cc970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.pro li::before { background-color: rgba(63, 214, 200, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%233fd6c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; }
.plan-note { font-size: 13px; color: var(--text-faint); text-align: center; margin: -6px 0 0; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .plan.pro { order: -1; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 0; padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 72px); border: 1px solid var(--border-strong); isolation: isolate; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 11, 11, 0.94) 0%, rgba(10, 11, 11, 0.75) 45%, rgba(10, 11, 11, 0.1) 100%); }
.cta-band h2 { max-width: 14ch; }
.cta-band p { max-width: 46ch; color: #c9cfcf; font-size: 18px; }
@media (max-width: 640px) { .cta-band::before { background: linear-gradient(180deg, rgba(10, 11, 11, 0.6), rgba(10, 11, 11, 0.94) 55%); } .cta-band { padding-top: 180px; } }

/* ---------- auth pages ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - 66px); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 80px) var(--gutter); }
.auth-form .inner { width: 100%; max-width: 400px; margin-inline: auto; }
.auth-form h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 10px; }
.auth-form .sub { color: var(--text-dim); margin-bottom: 30px; }
.auth-art { position: relative; overflow: hidden; border-left: 1px solid var(--border); background: var(--bg-1); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 11, 0) 50%, rgba(10, 11, 11, 0.9)); }
.auth-art figcaption { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 32px; font-size: 14px; color: #c9cfcf; }
.auth-art figcaption .quote { font: 600 clamp(22px, 2.2vw, 30px)/1.2 var(--font-display); color: #fff; letter-spacing: -0.02em; margin-bottom: 10px; }
.auth-switch { margin-top: 22px; font-size: 14.5px; color: var(--text-dim); text-align: center; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 0; background: var(--surface-2); transition: background var(--t); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- misc ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 0; font: 500 13px/1 var(--font-body); color: var(--text-dim); border: 1px solid var(--border); background: var(--surface); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.kbd-badge { font: 600 12px/1 var(--font-mono); padding: 4px 7px; border-radius: 0; border: 1px solid var(--border-strong); color: var(--text-dim); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(63, 214, 200, 0.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 214, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 200, 0); } }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c9cfcf; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =================== inner pages =================== */
/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14.5px; }
.toc h4 { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 10px 12px; }
.toc a { color: var(--text-dim); padding: 7px 12px; border-radius: 0; border-left: 2px solid transparent; text-decoration: none; }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.on { color: var(--text); border-left-color: var(--amber); background: var(--surface); border-radius: 0 4px 4px 0; }
.doc-body { min-width: 0; max-width: 820px; }
.doc-body > section { padding-top: 8px; margin-bottom: 64px; }
.doc-body h2 { font-size: clamp(28px, 3vw, 38px); display: flex; align-items: center; gap: 14px; }
.doc-body h2 .n { font: 700 13px/1 var(--font-mono); color: var(--amber-ink); background: var(--amber); padding: 6px 8px; border-radius: 0; letter-spacing: 0; }
.doc-body h3 { margin-top: 1.8em; }
.doc-body p, .doc-body li { color: #c9cfcf; }
.doc-body ol, .doc-body ul { padding-left: 1.3em; }
.doc-body li { margin-bottom: 0.5em; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 0; border: 1px solid rgba(108, 201, 112, 0.3); background: rgba(108, 201, 112, 0.06); margin: 0 0 1.2em; font-size: 15px; color: #c9f2ec; }
.callout::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-mono); color: var(--bg-0); background: var(--teal); margin-top: 1px; }
.callout.warn { border-color: rgba(63, 214, 200, 0.35); background: rgba(63, 214, 200, 0.07); color: #ffe1b0; }
.callout.warn::before { content: "!"; background: var(--amber); }
.callout p { margin: 0; color: inherit; }
.prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.2em; }
.prompt { position: relative; padding: 16px 16px 50px; border-radius: 0; border: 1px solid var(--border); background: var(--surface); font-size: 15px; line-height: 1.5; color: var(--text); }
.prompt .tag { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.prompt .btn { position: absolute; right: 10px; bottom: 10px; }
.tool-group { margin-bottom: 26px; }
.tool-group h3 { margin: 0 0 10px; font-size: 18px; display: flex; gap: 10px; align-items: baseline; }
.tool-group h3 small { font: 500 12px/1 var(--font-mono); color: var(--text-faint); }
.tool-list { border: 1px solid var(--border); border-radius: 0; overflow: hidden; }
.tool-list div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text-dim); }
.tool-list div:last-child { border-bottom: 0; }
.tool-list code { background: none !important; border: 0 !important; padding: 0 !important; color: var(--teal) !important; font-size: 13.5px; }
.steps-list { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px; margin: 0 0 1.4em; }
.steps-list > li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 !important; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 0; display: grid; place-items: center; font: 700 14px/1 var(--font-mono); color: var(--amber); border: 1px solid rgba(63, 214, 200, 0.4); background: rgba(63, 214, 200, 0.08); }
.steps-list > li b { color: var(--text); }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { position: sticky; top: 66px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 10px var(--gutter); margin-inline: calc(-1 * var(--gutter)); background: rgba(10, 11, 11, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .toc h4 { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--border); border-radius: 0; padding: 7px 13px; font-size: 13.5px; }
  .toc a.on { border: 1px solid var(--amber); border-radius: 0; }
  .prompts { grid-template-columns: 1fr; }
  .tool-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* download */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch; margin-bottom: 64px; }
.dl-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: 0; border: 1px solid rgba(63, 214, 200, 0.35); background: radial-gradient(120% 120% at 0% 0%, rgba(63, 214, 200, 0.12), transparent 55%), linear-gradient(180deg, #121414, #0a0b0b); }
.dl-file { display: flex; gap: 16px; align-items: center; min-width: 0; }
.dl-file svg { width: 54px; height: 54px; flex: none; }
.dl-file b { display: block; font: 600 clamp(16px, 2vw, 21px)/1.25 var(--font-mono); overflow-wrap: anywhere; }
.dl-file span { color: var(--text-dim); font-size: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.key-box { display: flex; flex-direction: column; gap: 12px; }
.key-pill { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 0; background: #070808; border: 1px solid var(--border); font: 13.5px/1.3 var(--font-mono); min-width: 0; }
.key-pill .faint { margin-left: auto; font-family: var(--font-body); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 820px) { .dl-hero { grid-template-columns: 1fr; } }

/* account */
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding-block: clamp(40px, 6vw, 72px) 28px; }
.acct-head h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 0 0 8px; }
.acct-head p { margin: 0; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-bottom: 18px; }
.panel { border-radius: 0; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)); padding: clamp(20px, 2.4vw, 28px); min-width: 0; margin-bottom: 18px; }
.acct-grid .panel { margin-bottom: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-title h2 { font-size: 22px; margin: 0; letter-spacing: -0.015em; }
.panel-title .faint { font-size: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 14px; }
.plan-card.pro { border-color: rgba(63, 214, 200, 0.4); background: radial-gradient(120% 100% at 100% 0%, rgba(63, 214, 200, 0.13), transparent 60%), linear-gradient(180deg, #121414, #101212); }
.plan-big { font: 750 44px/1 var(--font-display); letter-spacing: -0.03em; }
.plan-big small { font: 500 15px/1 var(--font-body); letter-spacing: 0; color: var(--text-dim); }
.plan-card .btn-row { margin-top: auto; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 0; border: 1px solid var(--border-strong); color: var(--text-dim); width: fit-content; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); border-color: rgba(108, 201, 112, 0.35); }
.status.bad { color: var(--rose); border-color: rgba(255, 90, 110, 0.4); }
.usage { display: grid; gap: 18px; }
.meter-row { display: grid; gap: 8px; }
.meter-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.meter-row .top b { font-weight: 600; }
.meter-row .top span { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { height: 8px; border-radius: 0; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 0; background: linear-gradient(90deg, var(--teal), #7cf0e8); transition: width 900ms var(--ease); }
.meter.warn i { background: linear-gradient(90deg, var(--amber), #b8fff2); }
.meter.full i { background: linear-gradient(90deg, var(--rose), #ff9db1); }
.meter.inf i { width: 100% !important; background: repeating-linear-gradient(135deg, rgba(108, 201, 112, 0.32) 0 8px, rgba(108, 201, 112, 0.1) 8px 16px); }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.map-card { border-radius: 0; border: 1px solid var(--border); background: var(--bg-1); display: flex; flex-direction: column; transition: border-color var(--t); min-width: 0; }
.map-card:hover { border-color: var(--border-strong); }
.map-thumb { position: relative; aspect-ratio: 16 / 10; background: #111313; display: block; overflow: hidden; border-radius: 6px 6px 0 0; }
.map-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.map-card:hover .map-thumb img { transform: scale(1.04); }
.map-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 45%, rgba(108, 201, 112, 0.09), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 24px), #111313; }
.map-thumb .ph svg { width: 60px; height: 60px; opacity: 0.8; }
.map-info { padding: 14px 16px 4px; min-width: 0; }
.map-info b { display: block; font: 600 16px/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.map-info span { font-size: 13px; color: var(--text-faint); }
.map-actions { display: flex; gap: 6px; padding: 10px 12px 14px; margin-top: auto; }
.map-actions .btn { padding: 8px 10px; font-size: 13px; }
.map-actions .grow { flex: 1; }
.menu { position: relative; }
.menu-pop { position: absolute; z-index: 20; right: 0; bottom: calc(100% + 6px); min-width: 210px; padding: 5px; border-radius: 0; background: #151818; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9); display: none; }
.menu.open .menu-pop { display: grid; }
.menu-pop a, .menu-pop button { color: var(--text); font: 14px var(--font-body); padding: 9px 11px; border-radius: 0; text-decoration: none; display: flex; justify-content: space-between; gap: 12px; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a span { color: var(--text-faint); font-size: 12.5px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop .danger { color: #ffb3bd; }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: 0; color: var(--text-dim); }
.empty h3 { color: var(--text); }
.keys-table td, .keys-table th { padding: 12px 14px; font-size: 14px; vertical-align: middle; }
.keys-table td:last-child { text-align: right; }
.keys-table td code { white-space: nowrap; }
.new-key { margin-top: 16px; padding: 18px; border-radius: 0; border: 1px solid rgba(63, 214, 200, 0.45); background: rgba(63, 214, 200, 0.07); }
.new-key p { margin: 0; color: #ffe1b0; font-size: 14.5px; }
.new-key .row { display: flex; gap: 8px; align-items: stretch; margin: 12px 0; }
.new-key input { flex: 1; min-width: 0; font: 14px var(--font-mono); }
.key-form { display: flex; gap: 8px; margin-top: 16px; }
.key-form .input { flex: 1; min-width: 0; padding: 11px 13px; }
.modal { border: 1px solid var(--border-strong); border-radius: 0; background: #1a1d1d; color: var(--text); padding: 26px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.modal::backdrop { background: rgba(4, 5, 5, 0.7); backdrop-filter: blur(4px); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-dim); font-size: 15px; }
.modal .btn-row { justify-content: flex-end; margin-top: 20px; }
.modal[open] { animation: modal-in 220ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .key-form, .new-key .row { flex-direction: column; } .keys-table .hide-sm { display: none; } }

/* checkout + 404 + legal */
.center-page { display: grid; place-items: center; padding: clamp(40px, 8vw, 96px) var(--gutter); }
.checkout { width: min(480px, 100%); }
.dev-flag { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 16px; border-radius: 0; font: 600 13px/1.3 var(--font-mono); color: #022421; background: repeating-linear-gradient(135deg, #3fd6c8 0 14px, #9ff5e8 14px 28px); }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.line-item span { color: var(--text-dim); }
.line-item.total { font-size: 17px; border-bottom: 0; }
.line-item.total b { font-family: var(--font-display); font-size: 22px; }
.nf { text-align: center; max-width: 620px; }
.nf svg { width: min(300px, 70vw); height: auto; margin: 0 auto 6px; display: block; }
.nf h1 { font-size: clamp(38px, 5.6vw, 66px); }
.nf .lede { margin-inline: auto; }
.nf .btn-row { justify-content: center; margin-top: 28px; }
.nf .code-404 { font: 600 13px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--amber); margin-bottom: 14px; }
.legal-draft { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); padding: 8px 12px; border-radius: 0; border: 1px dashed rgba(63, 214, 200, 0.55); margin-bottom: 18px; }
.prose { padding-bottom: 96px; }

@media (max-width: 640px) { .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; } }
#usage:empty, #maps:empty, #keysList:empty { min-height: 110px; border-radius: 0; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
td code { white-space: normal !important; overflow-wrap: anywhere; }
@media (max-width: 640px) { :not(pre) > code { white-space: normal; overflow-wrap: anywhere; } }
/* a key prefix is short: keep it on one line (the generic rule above broke it one letter per line at phone width) */
.keys-table td code { white-space: nowrap !important; overflow-wrap: normal !important; }
@media (max-width: 560px) { .keys-table td, .keys-table th { padding: 10px 8px; font-size: 13px; } }

/* =================== look (2026-10-05): "night grove" pixel UI. Overrides the generic bits above. =================== */
body { background: #08090a; }
body::before { background: #08090a; }
body::after { display: none; }
a { color: var(--teal); }
::selection { background: rgba(63, 214, 200, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 0; }
html { scrollbar-color: #2b3131 #08090a; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; line-height: 1.04; }
h1 { font-weight: 700; line-height: 1; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-weight: 600; line-height: 1.2; }
.lede { color: var(--text-dim); font-size: clamp(17px, 1.3vw, 19px); }
.grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--amber); }
.eyebrow { font: 500 16px/1 var(--font-display); letter-spacing: 0.01em; text-transform: none; color: var(--teal); gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; box-shadow: 3px 3px 0 rgba(63, 214, 200, 0.28); }
.eyebrow.teal { color: var(--teal); }
:not(pre) > code { background: #151919; border: 1px solid #262c2c; color: #e6eaea; }

/* buttons: square pixel buttons, bevel + 2px outline + a drop lip (after Sprite Fusion). No glow, no gradient. */
.btn {
  --bg: #232727; --hi: #4c5555; --lo: #151818; --line: #020303; --lip: rgba(0, 0, 0, 0.9); --ink: var(--text);
  border: 0; border-radius: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1 var(--font-display); letter-spacing: 0.01em; padding: 12px 18px 11px; margin-bottom: 3px;
  box-shadow: inset 0 2px 0 var(--hi), inset 2px 0 0 var(--hi), inset 0 -2px 0 var(--lo), inset -2px 0 0 var(--lo), 0 0 0 2px var(--line), 0 3px 0 2px var(--lip);
  transition: background 120ms, transform 80ms, box-shadow 80ms, color 120ms;
}
.btn:hover { background: #2e3434; border-color: transparent; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 var(--lo), inset 2px 0 0 var(--lo), 0 0 0 2px var(--line), 0 1px 0 2px var(--lip); }
.btn-primary { --bg: #3fd6c8; --hi: #b8fff2; --lo: #17a29b; --line: #021a18; --ink: #022421; font-weight: 600; }
.btn-primary:hover { background: #5fe6d8; }
.btn-teal { --bg: #6cc970; --hi: #c4f5c6; --lo: #2f7a3b; --line: #06210a; --ink: #06210a; font-weight: 600; }
.btn-teal:hover { background: #82d885; }
.btn-danger { --bg: #2b1519; --hi: #5c2b34; --lo: #170a0c; --ink: #ffb3bd; }
.btn-danger:hover { background: #3a1b21; }
.btn-sm { padding: 8px 12px 7px; font-size: 15px; gap: 7px; }
.btn-lg { padding: 15px 24px 14px; font-size: 19px; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.5; transform: none; }
.btn-row { gap: 14px; }

/* nav: a solid black bar like a game menu */
.site-nav { background: #050606; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid #1b1f1f; }
.site-nav.scrolled { background: #050606; border-bottom-color: #1b1f1f; }
.nav-links a { font: 500 17px/1 var(--font-display); color: var(--text-dim); border-radius: 0; padding: 9px 12px; }
.nav-links a:hover { color: var(--text); background: #151919; }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); background: none; }
.nav-user { border: 2px solid #232828; border-radius: 0; font-family: var(--font-display); font-size: 16px; }
.avatar { border-radius: 0; background: var(--amber); color: var(--amber-ink); font-family: var(--font-display); }
.plan-pill { border-radius: 0; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.02em; }
.plan-pill.pro { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
@media (max-width: 880px) { .nav-open .site-nav, .nav-open .nav-links { background: #050606; } .nav-open .nav-links a { font-size: 20px; } }

/* surfaces: flat panels with a 2px frame */
.card, .plan, .feat, .step, .panel, .map-card, .faq details, .tool-list, .prompt, .table-wrap, .code, .modal, .menu-pop, .new-key, .dl-card { border-radius: 0; }
.card, .plan, .feat, .step, .panel, .map-card { background: #101212; border: 2px solid #1e2323; }
.card:hover, .map-card:hover { border-color: #2b3232; }
.plan.pro { background: #0f1414; border: 2px solid var(--amber); box-shadow: 0 0 0 2px #021a18, 6px 6px 0 rgba(63, 214, 200, 0.12); }
.plan-name, .plan-tag, .status, .chip, .kbd-badge, .tabs button, .faq summary, .panel-title h2, .toc h4, .foot-grid h4, thead th, .code-head, .legal-draft, .dev-flag, .code-404 { font-family: var(--font-display); letter-spacing: 0.01em; }
.plan-name { font-size: 16px; text-transform: none; }
.plan-price, .plan-big { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.plan-tag { border-radius: 0; background: var(--berry); color: #2a1600; border-color: #2a1600; font-size: 12px; }
.tabs { border-radius: 0; border: 2px solid #1e2323; background: #0c0e0e; }
.tabs button { border-radius: 0; font-size: 16px; }
.tabs button[aria-selected="true"] { background: #232727; box-shadow: inset 0 2px 0 #4c5555, inset 0 -2px 0 #151818; color: var(--text); }
.faq details { border: 2px solid #1e2323; background: #0e1010; }
.faq details[open] { border-color: #2b3232; background: #111414; }
.faq summary { font-size: 18px; font-weight: 500; }
.chip { border-radius: 0; border: 2px solid #232828; background: #101212; font-size: 14px; }
.input { border-radius: 0; border: 2px solid #2b3131; background: #070808; }
.input:hover { border-color: #3a4242; }
.input:focus { border-color: var(--amber); box-shadow: none; background: #050606; }
.code { border: 2px solid #1e2323; background: #060707; }
.cta-band { border-radius: 0; border: 2px solid #232828; }
.rule { background: #1b1f1f; height: 2px; }
.blockgrid-bg::before { display: none; }
.prose p, .prose li, .doc-body p, .doc-body li { color: #c9cfcf; }
.doc-body h2 .n { border-radius: 0; font-family: var(--font-display); font-size: 15px; }
.steps-list > li::before { border-radius: 0; font-family: var(--font-display); font-size: 16px; }
.toc a { border-radius: 0; }
.callout { border-radius: 0; border-width: 2px; }
.callout::before { border-radius: 0; }
.callout.warn { border-color: rgba(255, 180, 58, 0.45); background: rgba(255, 180, 58, 0.07); color: #ffe1b0; }
.callout.warn::before { background: var(--berry); }
.banner, .toast, .form-error, .empty, .key-pill, .status, .menu-pop a, .menu-pop button, .meter, .meter i, .skeleton, .pw-meter i, .nav-toggle { border-radius: 0; }
.meter { height: 10px; background: #1a1e1e; box-shadow: inset 0 0 0 2px #0a0c0c; }
.meter i { background: var(--amber); }
.meter.warn i { background: var(--berry); }
.code.is-prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-foot { border-top: 2px solid #1b1f1f; background: #050606; }
/* pixel logo (tools/make-logo.mjs) */
.logo { gap: 9px; }
.logo-icon { width: 30px; height: 30px; image-rendering: pixelated; flex: none; }
.logo-word { width: auto; height: 19px; image-rendering: pixelated; }
.site-foot .logo-icon { width: 34px; height: 34px; } .site-foot .logo-word { height: 21px; }
.logo-icon { width: 34px; height: 34px; } .logo-word { height: 17px; } .site-foot .logo-icon { width: 40px; height: 40px; } .site-foot .logo-word { height: 19px; }
.logo-icon, .logo-word { image-rendering: auto; }   /* smooth downscale: the logo art is pre-shrunk PNG, the wordmark is antialiased */
/* map cards hold four buttons (Open, Download, Refund, more) */
.map-actions { gap: 6px; }
.map-actions .btn { padding: 8px 8px 7px; font-size: 14px; }
/* footer: an upcoming tool */
.soon { font: 500 11px/1 var(--font-display); color: #2a1600; background: var(--berry); padding: 3px 5px 2px; margin-left: 4px; vertical-align: 1px; }
/* tighter page rhythm */
.section { padding-block: clamp(56px, 7vw, 100px); }
/* Discord: blurple pixel button so the community is easy to spot */
.btn-discord { --bg: #5865f2; --hi: #9aa3ff; --lo: #3640b5; --line: #0d1140; --ink: #fff; }
.btn-discord:hover { background: #6d78ff; }
.btn-discord svg { flex: none; }
@media (max-width: 1080px) and (min-width: 881px) { .nav-auth .btn-discord span { display: none; } .nav-auth .btn-discord { padding-inline: 10px; } }

/* auth pages (2026-10-05): the form sits in a framed pixel panel over the night-grove backdrop, with the logo mark */
.auth-form { position: relative; isolation: isolate; background: #08090a; }
.auth-form::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 300px; pointer-events: none;
  background: url("/site/img/hero-grove.png") 18% 100% / 1920px auto no-repeat; image-rendering: pixelated; }
.auth-form .inner { background: #0c0f0f; border: 2px solid #17302d; box-shadow: 6px 6px 0 rgba(63, 214, 200, 0.08); padding: clamp(24px, 3vw, 36px); }
.auth-mark { display: block; width: 56px; height: 56px; margin: 0 0 18px; image-rendering: auto; }
.auth-form .btn-primary { width: 100%; }
@media (max-width: 860px) { .auth-form::after { height: 180px; } }
.auth-form { padding-block: clamp(28px, 4vw, 48px); }
.auth-form h1 { font-size: clamp(32px, 3.3vw, 46px); }
.auth-mark { width: 44px; height: 44px; margin-bottom: 14px; }
.auth-form .sub { margin-bottom: 22px; }
/* auth side panel slideshow (public/site/auth-art.js) */
.auth-art > img { opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s ease-out; }
.auth-art > img.on { opacity: 1; transform: scale(1); }
.auth-art figcaption { z-index: 2; }
.auth-dots { display: flex; gap: 8px; margin-top: 14px; }
.auth-dots button { width: 22px; height: 6px; padding: 0; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); }
.auth-dots button:hover { background: rgba(255, 255, 255, 0.55); }
.auth-dots button[aria-pressed="true"] { background: var(--amber); }
@media (prefers-reduced-motion: reduce) { .auth-art > img { transition: none; transform: none; } }
/* live pixel grove (grove.js) on the auth pages, over the PNG fallback */
.auth-grove { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 480px; pointer-events: none; image-rendering: pixelated; }
.auth-form::after { z-index: -2; }   /* the PNG fallback goes under the live canvas */
/* 404 (2026-10-05): the half-generated pixel chunk (chunk404.js) over a live grove strip */
.nf-page { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 66px); padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(140px, 18vw, 220px); }
.nf-grove { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 480px; pointer-events: none; image-rendering: pixelated; }
.nf-chunk { display: block; width: min(550px, 92vw); height: auto; aspect-ratio: 220 / 128; margin: 0 auto 10px; image-rendering: pixelated; }
.nf-tag { display: inline-block; font: 500 15px/1 var(--font-display); color: #2a1600; background: var(--berry); padding: 7px 10px 6px; margin-bottom: 18px;
  box-shadow: inset 0 2px 0 #ffd98f, inset 0 -2px 0 #c77a12, 0 0 0 2px #2a1600; }
.nf h1 { font-size: clamp(34px, 4.6vw, 60px); }
