/* vyrex.win — one stylesheet for every page.
   Identity: warm ink neutrals (from the app's Ember theme) + the logo's violet bolt.
   The bolt's diagonal is the recurring motif: slash numerals, angled light, cut corners. */

@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(/assets/fonts/geist-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 700; font-display: swap; src: url(/assets/fonts/geist-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #0b0a09;
  --bg-2: #0f0e0c;
  --surface: #141311;
  --surface-2: #1a1916;
  --surface-3: #22201d;
  --line: rgba(238, 235, 230, 0.075);
  --line-2: rgba(238, 235, 230, 0.13);
  --line-3: rgba(238, 235, 230, 0.2);
  --fg: #eeebe6;
  --fg-2: #aaa49b;
  --fg-3: #716c64;
  --violet: #6c35f0;
  --violet-2: #7d4bff;
  --violet-hi: #ae95ff;
  --violet-wash: rgba(108, 53, 240, 0.14);
  --violet-line: rgba(140, 100, 255, 0.45);
  --amber: #d3a35f;
  --ok: #4cc38a;
  --ok-wash: rgba(76, 195, 138, 0.12);
  --warn: #e3ae55;
  --warn-wash: rgba(227, 174, 85, 0.12);
  --err: #ef6b62;
  --err-wash: rgba(239, 107, 98, 0.12);

  --font: Geist, ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --fast: 140ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(125, 75, 255, 0.4); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, .mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; background: none; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(125, 75, 255, 0.6), 0 8px 24px -10px rgba(108, 53, 240, 0.8); }
.btn-primary:hover { background: var(--violet-2); }
.btn-light { background: var(--fg); color: #121110; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(238, 235, 230, 0.04); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(238, 235, 230, 0.08); border-color: var(--line-3); }
.btn-quiet { color: var(--fg-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--fg); background: rgba(238, 235, 230, 0.05); }
.btn-sm { --h: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- nav ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background 200ms, border-color 200ms; }
.nav.is-stuck, .nav.is-open { background: rgba(11, 10, 9, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: none;
  color: var(--fg-2); font-size: 14px; font-weight: 450; transition: color var(--fast), background var(--fast);
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-here { color: var(--fg); }
.nav-link:hover { background: rgba(238, 235, 230, 0.05); }
.nav-link .chev { width: 12px; height: 12px; opacity: 0.6; transition: transform 200ms var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--fg-2); transition: color var(--fast), background var(--fast); }
.nav-icon:hover { color: var(--fg); background: rgba(238, 235, 230, 0.06); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--fg); }
.nav-user img { width: 26px; height: 26px; border-radius: 50%; }
.nav-user:hover { border-color: var(--line-3); background: rgba(238, 235, 230, 0.04); }

.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 520px; padding: 8px; border-radius: 16px;
  background: rgba(20, 19, 17, 0.97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; transform: translateY(-6px) scale(0.985); transform-origin: top left; pointer-events: none; transition: opacity 160ms, transform 200ms var(--ease);
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.menu.menu-narrow { min-width: 300px; grid-template-columns: 1fr; }
.menu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background var(--fast); }
.menu a:hover { background: rgba(238, 235, 230, 0.05); }
.menu .mi { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); }
.menu a:hover .mi { color: var(--violet-hi); border-color: var(--violet-line); }
.menu .mi svg { width: 16px; height: 16px; }
.menu b { display: block; font-size: 13.5px; font-weight: 500; color: var(--fg); line-height: 1.35; }
.menu span { display: block; font-size: 12.5px; color: var(--fg-3); line-height: 1.4; margin-top: 1px; }
.menu-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
.menu-foot a { display: inline; padding: 0; color: var(--violet-hi); }
.menu-foot a:hover { background: none; text-decoration: underline; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: none; place-items: center; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--fg); position: relative; transition: background 200ms; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--fg); transition: transform 240ms var(--ease); }
.burger span::before { transform: translateY(-5px); }
.burger span::after { transform: translateY(5px); }
.nav.is-open .burger span { background: transparent; }
.nav.is-open .burger span::before { transform: rotate(45deg); }
.nav.is-open .burger span::after { transform: rotate(-45deg); }
.sheet { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-right .hide-m { display: none; }
  .burger { display: grid; }
  .sheet {
    display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 200ms, transform 240ms var(--ease);
  }
  .nav.is-open + .sheet { opacity: 1; pointer-events: auto; transform: none; }
  .sheet h6 { margin: 20px 0 6px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
  .sheet a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .sheet .btn { margin-top: 10px; }
  .sheet-ctas { display: grid; gap: 10px; margin-top: 24px; }
}

/* ---- type helpers -------------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow b { color: var(--violet-hi); font-weight: 500; }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: linear-gradient(115deg, transparent 44%, var(--violet-2) 45% 58%, transparent 59%); }
.eyebrow.plain::before { display: none; }
.h-xl { font-size: clamp(42px, 7.2vw, 88px); letter-spacing: -0.048em; line-height: 0.98; font-weight: 600; }
.h-l { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.042em; line-height: 1.02; }
.h-m { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.12; }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--fg-2); max-width: 60ch; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.grad { background: linear-gradient(100deg, var(--fg) 30%, var(--violet-hi) 70%, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- sections -------------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lede { justify-self: end; }
.sec-head h2 { margin-top: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head .lede { justify-self: start; } }

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  /* hairline grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 30%, transparent 75%);
}
.bolt-light {
  /* the logo's bolt, as light */
  position: absolute; z-index: -1; top: 140px; right: -8%; width: 62%; height: 900px; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(108, 53, 240, 0.22) 46%, rgba(125, 75, 255, 0.07) 54%, transparent 62%);
  filter: blur(30px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px 56px; align-items: end; }
.hero h1 { margin-top: 22px; }
.hero-side { padding-bottom: 10px; }
.hero-side .lede { font-size: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 12.5px; color: var(--fg-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20, 19, 17, 0.7); font-size: 13px; color: var(--fg-2); transition: border-color var(--fast); }
.pill:hover { border-color: var(--line-3); color: var(--fg); }
.pill i { font-style: normal; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-hi); font: 500 11px/20px var(--mono); letter-spacing: 0.04em; }
.pill svg { width: 13px; height: 13px; opacity: 0.6; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { padding-bottom: 0; } }

.stage { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.frame {
  position: relative; border-radius: 14px; padding: 1px; background: linear-gradient(170deg, rgba(238, 235, 230, 0.22), rgba(238, 235, 230, 0.05) 30%, rgba(238, 235, 230, 0.04));
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.frame > .shot { border-radius: 13px; overflow: hidden; background: var(--bg-2); aspect-ratio: 1440 / 900; }
.frame img.fill { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.stage .frame { transform-origin: 50% 0; }
.stage::after {
  /* fade the bottom of the hero shot into the page */
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 38%; background: linear-gradient(transparent, var(--bg) 92%); pointer-events: none; border-radius: 0 0 14px 14px;
}
.callout {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 13px 9px 10px; border-radius: 12px;
  background: rgba(22, 21, 19, 0.9); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); font-size: 12.5px; color: var(--fg-2); white-space: nowrap;
}
.callout b { color: var(--fg); font-weight: 500; }
.callout .ci { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet-hi); }
.callout .ci svg { width: 14px; height: 14px; }
.callout.c1 { top: 19%; left: -3%; }
.callout.c2 { top: 46%; right: -3%; }
.callout .ok { background: var(--ok-wash); color: var(--ok); }
@media (max-width: 1100px) { .callout { display: none; } }

/* facts strip under the hero */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 3; margin-top: -1px; background: var(--bg); }
.fact { padding: 26px 24px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; font-size: 13px; color: var(--fg-3); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---- feature tour ---------------------------------------------------------------- */
.tour { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 48px; align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 32px); }
.tour-tab {
  position: relative; text-align: left; border: 0; background: none; padding: 18px 20px 18px 22px; border-radius: 14px; overflow: hidden;
  transition: background 200ms;
}
.tour-tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tour-tab::after { content: ""; position: absolute; left: 0; top: 18px; width: 2px; height: 0; background: var(--violet-2); border-radius: 2px; }
.tour-tab.is-on { background: var(--surface); }
.tour-tab.is-on::after { animation: tour-fill var(--tour-ms, 7000ms) linear forwards; }
.tour.is-paused .tour-tab.is-on::after { animation-play-state: paused; }
@keyframes tour-fill { to { height: calc(100% - 36px); } }
.tour-tab .tn { font: 500 11.5px/1 var(--mono); color: var(--fg-3); letter-spacing: 0.04em; }
.tour-tab h3 { margin-top: 8px; font-size: 19px; letter-spacing: -0.02em; color: var(--fg-2); transition: color 200ms; }
.tour-tab.is-on h3, .tour-tab:hover h3 { color: var(--fg); }
.tour-tab p { margin-top: 0; max-height: 0; overflow: hidden; color: var(--fg-2); font-size: 14px; line-height: 1.6; transition: max-height 380ms var(--ease), margin 380ms var(--ease), opacity 300ms; opacity: 0; }
.tour-tab.is-on p { max-height: 160px; margin-top: 8px; opacity: 1; }
.tour-view { position: relative; }
.tour-pane { display: none; }
.tour-pane.is-on { display: block; animation: pane-in 520ms var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.tour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); }
.chip svg { width: 13px; height: 13px; color: var(--violet-hi); }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; gap: 24px; }
  .tour-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tour-tab { flex: none; padding: 12px 16px; border: 1px solid var(--line); }
  .tour-tab::before, .tour-tab::after, .tour-tab p, .tour-tab .tn { display: none; }
  .tour-tab h3 { margin: 0; font-size: 14.5px; }
  .tour-tab.is-on { border-color: var(--violet-line); }
}

/* console mock in the tour (the app's dock, rebuilt in HTML) */
.console-mock { background: #0e0d0c; aspect-ratio: 1440 / 900; display: flex; flex-direction: column; font: 13.5px/1 var(--font); }
.cm-head { display: flex; align-items: center; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cm-tab { padding: 8px 12px; border-radius: 8px; color: var(--fg-3); font-size: 13px; }
.cm-tab.on { background: rgba(238, 235, 230, 0.07); color: var(--fg); }
.cm-sp { flex: 1; }
.cm-f { padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--fg-3); border: 1px solid transparent; }
.cm-f.on { border-color: var(--line-2); color: var(--fg); }
.cm-body { flex: 1; padding: 14px 18px; font: clamp(11px, 1.15vw, 14px)/2.1 var(--mono); overflow: hidden; }
.cm-body > div { display: flex; gap: 18px; white-space: nowrap; animation: line-in 400ms var(--ease) both; }
.cm-body .t { color: var(--fg-3); min-width: 8ch; }
.cm-body .p { color: #d9d4cc; } .cm-body .w { color: var(--warn); } .cm-body .e { color: var(--err); }
.cm-body .err { background: rgba(239, 107, 98, 0.07); margin: 0 -18px; padding: 0 18px; }
.cm-body .stack { color: var(--fg-3); font-size: 0.88em; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

/* ---- bento ------------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { position: relative; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: 26px; overflow: hidden; }
.card h3 { font-size: 17px; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.card .ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--violet-hi); margin-bottom: 18px; }
.card .ico svg { width: 17px; height: 17px; }
.b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; } .b-4 { grid-column: span 4; }
@media (max-width: 960px) { .b-3, .b-2, .b-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b-3, .b-2, .b-4 { grid-column: auto; } }
.mini-code {
  margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
  font: 12.5px/1.75 var(--mono); color: #d9d4cc; white-space: pre; overflow: hidden;
}
.mini-code .k { color: #c29bff; } .mini-code .s { color: #a5c48f; } .mini-code .f { color: #e58fb5; } .mini-code .c { color: #6f6a62; } .mini-code .n { color: #e3a877; } .mini-code .g { color: #e7b05f; }
.mini-code .sq { text-decoration: underline wavy var(--err); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.diag { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: var(--err-wash); border: 1px solid rgba(239, 107, 98, 0.25); font-size: 12.5px; color: #f3b1ab; }
.diag svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.toggles { margin-top: 18px; display: grid; gap: 8px; }
.tg { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.sw { width: 32px; height: 18px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-3); transition: transform 240ms var(--ease), background 240ms; }
.sw.on { background: var(--violet); }
.sw.on::after { transform: translateX(14px); background: #fff; }
.swatches { display: flex; gap: 8px; margin-top: 20px; }
.swatches i { flex: 1; height: 54px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.swatches i::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; border-radius: 4px; background: var(--a); }
.src-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.src { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }
.src i.off { background: var(--fg-3); box-shadow: none; }
.term { margin-top: 20px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font: 12.5px/1.9 var(--mono); padding: 10px 14px; }
.term div { display: flex; gap: 12px; white-space: nowrap; overflow: hidden; }
.term .t { color: var(--fg-3); }
.term .w { color: var(--warn); } .term .e { color: var(--err); } .term .p { color: var(--fg-2); }

/* ---- key steps ---------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.step .num { font: 500 13px/1 var(--mono); color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.step .num b { color: var(--violet-hi); font-weight: 500; }
.step h3 { margin-top: 20px; font-size: 19px; }
.step p { margin-top: 8px; color: var(--fg-2); font-size: 14px; }
.step .vis { margin-top: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.prov-row { display: flex; gap: 8px; }
.prov { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.keyline { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 8px 0 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--violet-line); font: 500 13px var(--mono); color: var(--fg); letter-spacing: 0.02em; }
.keyline em { font-style: normal; font: 500 11px var(--mono); color: var(--ok); background: var(--ok-wash); padding: 4px 8px; border-radius: 6px; }

/* ---- comparison table ------------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-l); overflow: auto; background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 500; color: var(--fg-2); font-size: 13px; background: var(--bg-2); }
.cmp thead th.hl { color: var(--fg); }
.cmp td:first-child { color: var(--fg-2); }
.cmp td.c, .cmp th.c { text-align: center; }
.cmp .hl { background: rgba(108, 53, 240, 0.06); }
.cmp thead .hl { box-shadow: inset 0 2px 0 var(--violet-2); }
.yes, .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.yes { background: var(--ok-wash); color: var(--ok); }
.no { color: var(--fg-3); }
.yes svg, .no svg { width: 13px; height: 13px; }

/* ---- pricing ---------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.plan.best { background: linear-gradient(180deg, rgba(108, 53, 240, 0.12), rgba(108, 53, 240, 0.02) 50%), var(--surface); border-color: var(--violet-line); }
.plan .tag { position: absolute; top: 18px; right: 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.04em; padding: 6px 8px; border-radius: 6px; background: var(--violet); color: #fff; }
.plan h3 { font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: -0.01em; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--fg-3); font-size: 14px; }
.plan .desc { margin-top: 10px; color: var(--fg-2); font-size: 13.5px; min-height: 44px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 13.5px; color: var(--fg-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--violet-hi); }
.plan .btn { margin-top: auto; }
@media (max-width: 1040px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.note { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 13.5px; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--amber); }

/* ---- faq -------------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 1.5px; background: var(--fg-2); transition: transform 260ms var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 40px 24px 0; color: var(--fg-2); font-size: 15px; line-height: 1.7; }
.faq .ans a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(174, 149, 255, 0.4); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* ---- discord cta ------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 100% 0%, rgba(108, 53, 240, 0.28), transparent 50%), var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.cta::after {
  content: ""; position: absolute; right: 8%; top: -40%; width: 120px; height: 180%; transform: rotate(28deg);
  background: linear-gradient(180deg, rgba(125, 75, 255, 0.0), rgba(125, 75, 255, 0.35), rgba(125, 75, 255, 0)); filter: blur(2px); opacity: 0.6;
}
.cta > * { position: relative; z-index: 1; }
.cta p { margin-top: 14px; }
.cta-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---- footer ---------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: clamp(80px, 10vw, 120px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--fg-3); font-size: 13.5px; max-width: 30ch; }
.foot h6 { margin: 0 0 14px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li a { font-size: 14px; color: var(--fg-2); transition: color var(--fast); }
.foot li a:hover { color: var(--fg); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 12.5px; color: var(--fg-3); }
.foot-base a:hover { color: var(--fg-2); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---- reveal on scroll --------------------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---- page header (inner pages) -------------------------------------------------------------- */
.phead { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); overflow: hidden; isolation: isolate; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%); }
.phead h1 { margin-top: 18px; }
.phead .lede { margin-top: 18px; }

/* ---- app panels (get key, dashboard, login, admin) -------------------------------------------- */
.app-shell { padding: clamp(32px, 5vw, 56px) 0 0; min-height: calc(100vh - var(--nav-h) - 200px); }
.panel { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 15px; letter-spacing: -0.01em; font-weight: 600; }
.panel-b { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }

.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.who b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.who span { font-size: 12.5px; color: var(--fg-3); font-family: var(--mono); }

.keybox { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; min-height: 58px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.keybox.on { border-color: var(--violet-line); box-shadow: 0 0 0 4px rgba(108, 53, 240, 0.08); }
.keybox code { flex: 1; min-width: 0; font-size: clamp(13px, 2.4vw, 17px); font-weight: 500; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keybox code.blur { filter: blur(6px); user-select: none; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.kv > div { padding: 14px 16px; background: var(--surface); }
.kv span { display: block; font-size: 12px; color: var(--fg-3); }
.kv b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.02em; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-wash); color: var(--ok); border-color: rgba(76, 195, 138, 0.25); }
.badge.warn { background: var(--warn-wash); color: var(--warn); border-color: rgba(227, 174, 85, 0.25); }
.badge.err { background: var(--err-wash); color: var(--err); border-color: rgba(239, 107, 98, 0.25); }
.badge.vi { background: var(--violet-wash); color: var(--violet-hi); border-color: var(--violet-line); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55; border: 1px solid; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert.err { background: var(--err-wash); border-color: rgba(239, 107, 98, 0.3); color: #f6c1bc; }
.alert.ok { background: var(--ok-wash); border-color: rgba(76, 195, 138, 0.3); color: #b7ead0; }
.alert.info { background: var(--violet-wash); border-color: var(--violet-line); color: #d6caff; }
.alert.warn { background: var(--warn-wash); border-color: rgba(227, 174, 85, 0.3); color: #f2d7a5; }

/* checkpoint stepper */
.cps { display: grid; gap: 10px; }
.cp { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 200ms, background 200ms; }
.cp .dot { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); font: 500 13px var(--mono); color: var(--fg-3); background: var(--surface); }
.cp .dot svg { width: 16px; height: 16px; }
.cp b { display: block; font-size: 14.5px; font-weight: 500; }
.cp small { display: block; font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.cp .grow { flex: 1; min-width: 0; }
.cp.done .dot { background: var(--ok-wash); border-color: rgba(76, 195, 138, 0.35); color: var(--ok); }
.cp.now { border-color: var(--violet-line); background: linear-gradient(90deg, rgba(108, 53, 240, 0.09), transparent 60%), var(--bg-2); }
.cp.now .dot { background: var(--violet); border-color: var(--violet-2); color: #fff; }
.cp.lock { opacity: 0.55; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.opt { position: relative; text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color var(--fast), background var(--fast); }
.opt:hover { border-color: var(--line-3); }
.opt.is-on { border-color: var(--violet-2); background: linear-gradient(160deg, rgba(108, 53, 240, 0.14), transparent 60%), var(--bg-2); box-shadow: 0 0 0 3px rgba(108, 53, 240, 0.12); }
.opt[disabled] { opacity: 0.45; cursor: not-allowed; }
.opt b { display: block; font-size: 15px; font-weight: 600; }
.opt span { display: block; margin-top: 4px; font-size: 13px; color: var(--fg-3); }
.opt .radio { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.opt.is-on .radio { border-color: var(--violet-2); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--violet-2); }
.ts-box { min-height: 65px; display: flex; align-items: center; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-hi)); border-radius: 4px; transition: width 600ms var(--ease); }
.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; color: var(--fg-2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg);
  font: 14px var(--font); transition: border-color var(--fast), box-shadow var(--fast);
}
textarea.input { height: auto; min-height: 90px; padding: 10px 13px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(108, 53, 240, 0.18); }
.input.mono { font-family: var(--mono); letter-spacing: 0.03em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 180px; }
.list { display: grid; }
.list > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.list > div:last-child { border-bottom: 0; }
.list .t { margin-left: auto; color: var(--fg-3); font-size: 12px; font-family: var(--mono); white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--fg-3); font-size: 14px; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; padding: 11px 16px; border-radius: 11px; background: var(--fg); color: #121110; font-size: 13.5px; font-weight: 500; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7); transition: opacity 200ms, transform 300ms var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* login */
.login { max-width: 440px; margin: clamp(24px, 6vw, 72px) auto 0; text-align: center; }
.login img.mark { width: 64px; height: 64px; margin: 0 auto 26px; }
.login h1 { font-size: 30px; letter-spacing: -0.035em; }
.login p { margin-top: 12px; color: var(--fg-2); }
.login .btn { margin-top: 28px; }
.login small { display: block; margin-top: 18px; color: var(--fg-3); font-size: 12.5px; line-height: 1.6; }
.login small a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-discord:hover { background: #6a76f5; }

/* prose (legal) */
.prose { max-width: 72ch; color: var(--fg-2); font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin: 44px 0 12px; font-size: 21px; color: var(--fg); letter-spacing: -0.02em; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 500; }

/* download */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl-card { padding: 30px; }
.dl-card .os { display: flex; align-items: center; gap: 14px; }
.dl-card .os .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.dl-card .os .ic svg { width: 22px; height: 22px; }
.specs { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs span { color: var(--fg-3); }
.howto { counter-reset: h; display: grid; gap: 0; }
.howto li { list-style: none; counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.howto li:last-child { border-bottom: 0; }
.howto li::before { content: "0" counter(h); font: 500 13px/1.6 var(--mono); color: var(--violet-hi); }
.howto b { display: block; font-weight: 500; font-size: 15px; }
.howto p { margin-top: 4px; color: var(--fg-2); font-size: 14px; }
ol.howto { padding: 0; margin: 0; }

/* admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.admin-grid > div { background: var(--surface); padding: 16px 18px; }
.admin-grid span { font-size: 12px; color: var(--fg-3); }
.admin-grid b { display: block; font-size: 24px; letter-spacing: -0.03em; margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--fg-3); font-weight: 500; font-size: 12px; }
.tbl td.mono, .tbl .mono { font-family: var(--mono); font-size: 12px; }
.sev-0 { color: var(--fg-3); } .sev-1 { color: var(--fg-2); } .sev-2 { color: var(--warn); } .sev-3 { color: var(--err); }
.scroll-y { max-height: 520px; overflow: auto; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); font-size: 13px; font-weight: 500; }
.tabs button.on { background: var(--surface-3); color: var(--fg); }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-2); }
.check input { width: 16px; height: 16px; accent-color: var(--violet-2); }

/* 404 */
.nf { text-align: left; padding: clamp(64px, 12vw, 140px) 0 0; }
.nf .big { font: 600 clamp(80px, 16vw, 180px)/0.9 var(--font); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.panel-h > svg { width: 16px; height: 16px; color: var(--fg-3); flex: none; }

/* ---- checkout ----------------------------------------------------------------------------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } }
.co-plans { display: grid; gap: 10px; }
.co-plans .opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.co-plans .opt .radio { position: static; flex: none; }
.co-plans .opt .grow { flex: 1; min-width: 0; }
.co-plans .opt .grow span { margin-top: 2px; }
.co-plans .opt strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.co-sum { display: grid; gap: 10px; font-size: 14px; color: var(--fg-2); }
.co-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.co-sum b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-sum .tot { padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg); font-size: 15px; }
.co-who { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--fg-2); }
.co-who img { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); }
.co-who .grow { flex: 1; min-width: 0; }
.co-who b { display: block; color: var(--fg); font-weight: 600; }
.co-pay { min-height: 420px; overflow: hidden; }
.co-pay:empty { display: none; }
.co-pay #stripe { padding: 8px 4px; }
.co-fine { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; }
.co-fine svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.co-done { text-align: center; padding: 40px 24px; display: grid; gap: 14px; justify-items: center; }
.co-done .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-wash); color: var(--ok); border: 1px solid rgba(76, 195, 138, 0.3); }
.co-done .ring svg { width: 26px; height: 26px; }
.co-done .keybox { width: 100%; max-width: 520px; text-align: left; }
.co-done .spin { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--violet-hi); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.is-off { opacity: 0.5; pointer-events: none; }
