/* Evasive. Page layout in Geist; the panels borrow the bot menu's skeet look: near-black dithered windows,
   square double hairline frames, the purple-magenta strip on top, Verdana group-box titles on the border line.
   Geist (OFL, static/fonts/OFL.txt) is self-hosted: no CDN. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e0e;
  --surface: #121212;
  --surface-2: #161616;
  --raised: #1b1b1b;
  --line: #212121;
  --line-2: #2b2b2b;
  --edge: #3c3c3c;
  --text: #d4d4d4;
  --dim: #a3a3a3;
  --faint: #8a8a8a;       /* 5.4:1 on --surface */
  --white: #f2f2f2;
  --accent: #8b5cf6;
  --accent-hi: #a78bfa;
  --accent-deep: #6d28d9;
  --accent-lo: #5b34b8;
  --magenta: #c026d3;
  --accent-wash: rgba(139, 92, 246, .1);
  --ok: #6ec878;
  --warn: #e8aa40;
  --info: #60a0e6;
  --err: #e15555;
  /* the menu's top strip: purple to violet to magenta */
  --strip: linear-gradient(90deg, var(--accent-deep), var(--accent) 30%, var(--accent-hi) 52%, var(--magenta) 82%, #9d2fd8);
  /* 4px dither tile behind panels, like the menu's background texture */
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23ffffff' fill-opacity='.07'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
  --hairline: linear-gradient(90deg, var(--accent-hi), var(--accent) 40%, var(--magenta));
  /* the same line, fading into rounded corners */
  --hairline-fade: linear-gradient(90deg, transparent, var(--accent-hi) 15%, var(--accent) 50%, var(--magenta) 85%, transparent);

  --sans: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", Consolas, "Cascadia Mono", monospace;
  --ui: Verdana, Tahoma, "DejaVu Sans", sans-serif;   /* only where the page imitates the bot's own menu */
  --track: .02em;

  /* type scale */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 20px;
  --t-xl: 28px;
  --t-2xl: 40px;
  --t-3xl: 60px;

  /* 8 px grid */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* the bot's menu is square */
  --r-sm: 0;
  --r: 0;
  --r-lg: 0;
  --container: 1200px;
  --nav-h: 67px;          /* strip + bar + hairline */
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-color: #2c2a31 var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
a { color: var(--white); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--white); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(139, 92, 246, .5); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 0; background: #2c2a31 padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4a3d6b padding-box; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 16px; border-radius: var(--r); background: var(--accent-deep); color: #fff; }
.skip:focus { left: 8px; }
.muted { color: var(--faint); }
.dim { color: var(--dim); }
.c-ok { color: var(--ok); }
.c-err { color: var(--err); }
.c-warn { color: var(--warn); }
.c-white { color: var(--white); }
.mono { font-family: var(--mono); }
.ico { width: 12px; height: 12px; flex: 0 0 auto; }
.num-tab { font-variant-numeric: tabular-nums; }

/* small muted section label, normal case */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font: 600 13px/1.2 var(--sans);
  letter-spacing: 0;
  color: var(--dim);
}
.label-dim { color: var(--faint); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  height: 40px;
  padding: 0 var(--s-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--white);
  font: 500 var(--t-sm)/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { color: #fff; background: var(--raised); border-color: var(--edge); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  border-color: #7c4ae8;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  color: #fff;
}
.btn-primary:hover {
  border-color: var(--accent-hi);
  background: linear-gradient(180deg, #9a70f8, #7537e0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 24px -8px rgba(139, 92, 246, .6);
}
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); }
.btn-danger { color: #f07a7a; }
.btn-danger:hover { color: #ff9a9a; border-color: #5a2626; background: rgba(225, 85, 85, .08); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: var(--t-xs); gap: 6px; border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 var(--s-3); font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  color: var(--faint);
  cursor: not-allowed;
  transform: none;
}
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-weight: 500; }
.link-arrow:hover { color: #c4b1fd; }

/* ---- nav ---- */
/* solid without JS; app.js makes it transparent over the hero and glass once scrolled */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.js .page-landing .nav:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.strip { height: 2px; background: var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font: 600 17px/1 var(--sans); letter-spacing: -.02em; border-radius: var(--r-sm); }
.brand img { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 0; }
.brand:hover { color: var(--white); }
.brand-tone { color: var(--accent-hi); }
.nav-menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 6px 12px; border-radius: var(--r); color: var(--dim); font-size: var(--t-sm); font-weight: 450; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
/* the section in view: an accent segment sitting on the nav's bottom hairline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -16px;
  height: 1px;
  background: var(--hairline);
  box-shadow: 0 0 8px rgba(139, 92, 246, .8);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links a.is-active { color: var(--white); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: var(--white); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-actions { display: flex; align-items: center; gap: var(--s-1); }
.nav-actions form { margin: 0; }
.nav-user { display: inline-flex; align-items: center; gap: var(--s-1); margin-right: var(--s-1); color: var(--dim); font-size: 13px; }
.nav-user .ico { color: var(--accent-hi); }
.nav-toggle, .nav-burger { display: none; }

/* ---- flashes / alerts ---- */
.flashes { display: grid; gap: var(--s-1); padding-top: var(--s-3); }
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px var(--s-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-size: var(--t-sm);
}
.flash .ico { width: 14px; height: 14px; }
.flash-success { border-color: #24402a; background: #0f1610; }
.flash-success .ico { color: var(--ok); }
.flash-error { border-color: #4a2020; background: #170e0e; }
.flash-error .ico { color: var(--err); }
.flash-info { border-color: #213650; background: #0d1219; }
.flash-info .ico { color: var(--info); }
.flash-text { flex: 1; overflow-wrap: anywhere; }
.flash-x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.flash-x:hover { color: var(--white); background: rgba(255, 255, 255, .06); }

/* ---- landing: shared ---- */
.section { position: relative; padding: var(--s-7) 0; }
.section + .section:not(.band) { border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.section-aside { grid-column: 1 / span 4; }
.section-main { grid-column: 6 / -1; min-width: 0; }
.sticky { position: sticky; top: 112px; }
.h2 { margin-top: var(--s-2); font-size: 44px; line-height: 1.06; letter-spacing: -.035em; }
.lead { margin-top: var(--s-2); color: var(--dim); font-size: 17px; line-height: 1.6; max-width: 52ch; }
.lead + .lead { margin-top: 12px; }
.intro { max-width: 720px; margin-bottom: var(--s-5); }
.intro .h2, .section-aside > .h2, .section-aside .sticky > .h2 { margin-top: 0; }
.intro-center { margin-inline: auto; text-align: center; }
.intro-center .lead { margin-inline: auto; }

/* fine grid and grain behind the hero, the security band and the closing band, faded out by a mask */
.hero::before, .band::before, .closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 56px 56px;
}
.hero::after, .closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: var(--s-7) 0 104px; }
/* slide under the transparent nav so the backdrop starts at the top edge */
.page-landing .hero { margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + 88px); }
.hero::before {
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 72% 48%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 58% 62% at 72% 48%, #000 15%, transparent 75%);
}
.hero::after {
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); align-items: center; }
.hero-copy { grid-column: 1 / span 5; position: relative; z-index: 1; }
.hero h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--accent-hi) 0%, #c4b5fd 50%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: var(--s-3); max-width: 52ch; color: #b4b4b8; font-size: 18px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: var(--s-4); }
.hero-note { margin-top: var(--s-3); color: var(--dim); font: 13px/1.5 var(--mono); }
.hero-note b { color: var(--white); font-weight: 500; }
.hero-note span { white-space: nowrap; }

/* the tilted window; bleeds past the container's right edge on wide screens */
.shot {
  --shot-w: 714px;
  grid-column: 6 / -1;
  justify-self: end;
  position: relative;
  isolation: isolate;
  width: var(--shot-w);
  margin-right: calc(-1 * clamp(40px, (100vw - var(--container)) / 2 + 48px, 160px));
}
/* light pool behind and under the frame */
.shot::before {
  content: "";
  position: absolute;
  inset: -20% -20% -30% -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 34% at 38% 40%, rgba(139, 92, 246, .48), transparent 72%),
    radial-gradient(40% 22% at 46% 80%, rgba(192, 38, 211, .28), transparent 72%),
    radial-gradient(60% 52% at 42% 46%, rgba(109, 40, 217, .14), transparent 76%);
}
/* floor shadow and a faint reflection of the accent */
.shot::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 10%;
  bottom: -64px;
  height: 88px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, .95), transparent),
    radial-gradient(closest-side at 50% 40%, rgba(167, 139, 250, .26), transparent);
  transform: perspective(600px) rotateX(60deg);
}
.shot-frame {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  aspect-ratio: 630 / 592;   /* cut between two sidebar icons */
  padding: 5px;
  border: 1px solid #000;
  background: #1c1c1c;
  box-shadow:
    inset 0 0 0 1px #3c3c3c,
    0 2px 4px rgba(0, 0, 0, .4),
    0 16px 32px -8px rgba(0, 0, 0, .7),
    0 48px 96px -24px rgba(0, 0, 0, .9),
    0 0 64px -16px rgba(139, 92, 246, .45),
    0 80px 160px -48px rgba(109, 40, 217, .55);
  transform: perspective(1600px) rotateY(calc(-6deg + var(--ry))) rotateX(calc(2deg + var(--rx)));
  transform-origin: 60% 50%;
  backface-visibility: hidden;
  transition: transform .7s var(--ease);
}
.shot-frame.is-tilting { will-change: transform; transition-duration: .3s; }
/* the window's accent strip, full width as in the app */
.shot-frame::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 2px;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, .55) 50%), var(--strip);
  z-index: 2;
}
/* inner 1px line around the content, and a faint sheen */
.shot-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #3c3c3c;
  background: linear-gradient(115deg, rgba(255, 255, 255, .04), transparent 32%);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 0; }

/* facts, not stats */
.specs { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(14, 14, 15, .8); }
.specs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; }
.spec { padding: 20px var(--s-3) 20px 0; }
.spec + .spec { padding-left: var(--s-3); border-left: 1px solid var(--line-2); }
.spec dt { color: var(--faint); font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; }
.spec dd { margin-top: var(--s-1); color: var(--white); font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }

/* ---- menu windows and group boxes, skeet style ----
   a window: black / light / 4px gutter / light / black frame, a two-tone accent strip inside the top edge,
   a dithered near-black body; a group box: black line plus a faint inner line, its title set into the top border. */
.win {
  position: relative;
  padding: 7px;
  border: 1px solid #000;
  background: var(--dither) #101010;
  box-shadow:
    inset 0 0 0 1px #3c3c3c,
    inset 0 0 0 5px #1c1c1c,
    inset 0 0 0 6px #3c3c3c,
    0 24px 48px -24px rgba(0, 0, 0, .9);
}
.win::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  z-index: 1;
  height: 3px;
  background: linear-gradient(transparent 66%, rgba(0, 0, 0, .6) 66%), var(--strip);
}
.gbox {
  position: relative;
  border: 1px solid #000;
  background: #151515;
  box-shadow: inset 0 0 0 1px #2a2a2a;
}
/* the title sits on the border line, its background cutting the line like the menu's */
.legend {
  position: absolute;
  left: 10px;
  top: -7px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  background: linear-gradient(var(--lg-top, #101010) 50%, var(--lg-bot, #151515) 50%);
  color: #dcdcdc;
  font: bold 12px/14px var(--ui);
  letter-spacing: 0;
  white-space: nowrap;
}
.gbox-title { display: flex; align-items: center; gap: 8px; color: var(--white); font: bold 11px/1.2 var(--ui); letter-spacing: var(--track); }
.gbox-title .ico { width: 12px; height: 12px; color: var(--accent-hi); }

/* ---- features: the live demo. The menu and its progress panel are canvases drawn by demo.js at the app's own pixel
   sizes; on narrow screens they are scaled down whole (--k), never reflowed. ---- */
.demo { --k: 1; display: grid; grid-template-columns: 272px 628px; gap: 0 6px; justify-content: center; align-items: start; }
.demo canvas { display: block; }
.demo-side { min-width: 0; }
.demo-fit { position: relative; overflow: hidden; }
.demo-panel-fit { width: calc(272px * var(--k)); height: calc(122px * var(--k)); }
.demo-panel { width: 272px; height: 122px; transform: scale(var(--k)); transform-origin: 0 0; }
.demo-menu-fit { width: calc(628px * var(--k)); height: calc(742px * var(--k)); }
.demo-menu { position: relative; width: 628px; height: 742px; transform: scale(var(--k)); transform-origin: 0 0; }
.demo-menu canvas { width: 628px; height: 742px; touch-action: pan-y; }
.demo-main { min-width: 0; }
/* the friends bar docks 6 px under the menu; its canvas also holds the details popup under the bar */
.demo-bar-fit { width: calc(628px * var(--k)); height: calc(246px * var(--k)); margin-top: calc(6px * var(--k)); }
.demo-bar { width: 628px; height: 246px; transform: scale(var(--k)); transform-origin: 0 0; touch-action: pan-y; }
/* invisible buttons over the tab column and the subtab bar, so the tabs work from the keyboard */
.demo-tabs, .demo-subs { position: absolute; inset: 0; pointer-events: none; }
.demo-tabs button, .demo-subs button {
  position: absolute;
  left: 7px;
  width: 100px;
  padding: 0;
  border: 0;
  background: none;
  color: transparent;
  font-size: 1px;
  pointer-events: none;
}
.demo-subs button { top: 31px; height: 26px; }
.demo-tabs button:focus-visible, .demo-subs button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -3px; }
.demo-copy { padding: var(--s-4) var(--s-3) 0 0; }
.demo-note { margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); color: var(--faint); font-size: 13px; line-height: 1.55; }
.demo-copy h3 { font-size: var(--t-lg); letter-spacing: -.015em; }
.demo-copy [data-copy] p { margin-top: var(--s-1); color: var(--dim); font-size: 15px; line-height: 1.6; }

/* Discord's dark theme, sizes and colours as the client draws a webhook message */
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--s-5); align-items: center; max-width: 906px; margin: var(--s-6) auto 0; }
.dc-copy h3 { display: flex; align-items: center; gap: 10px; font-size: var(--t-lg); letter-spacing: -.015em; }
.dc-copy h3 .ico { width: 16px; height: 16px; color: #8c9eff; }
.dc-copy p { margin-top: var(--s-1); color: var(--dim); font-size: 15px; line-height: 1.6; }
.dc-win { padding: 22px 18px 18px; }
.dc-chat { padding: 16px 0 18px; background: #313338; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #3f4147; }
.dc {
  position: relative;
  min-height: 44px;
  padding: 2px 16px 2px 72px;
  color: #dbdee1;
  font: 400 16px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.dc-av { position: absolute; left: 16px; top: 2px; width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: #111214; image-rendering: pixelated; }
.dc-head { display: flex; align-items: baseline; gap: 4px; line-height: 22px; }
.dc-name { color: #f2f3f5; font-size: 16px; font-weight: 500; }
.dc-app { position: relative; top: -1px; align-self: center; padding: 0 4.5px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: .02em; }
.dc-stamp { margin-left: 4px; color: #949ba4; font-size: 12px; font-weight: 500; }
.dc-embed {
  display: grid;
  gap: 8px;
  max-width: 432px;
  margin-top: 2px;
  padding: 8px 16px 16px 12px;
  border-left: 4px solid #8b5cf6;
  border-radius: 4px;
  background: #2b2d31;
  font-size: 14px;
  line-height: 18px;
}
.dc-author { margin-top: 0; color: #f2f3f5; font-size: 14px; font-weight: 600; line-height: 22px; }
.dc-desc, .dc-fval { color: #dbdee1; }
.dc-desc > div, .dc-fval > div { min-height: 18px; }
.dc strong { color: inherit; font-weight: 700; }
.dc-fname { margin-bottom: 2px; color: #f2f3f5; font-weight: 600; }
.dc-emo { display: inline-block; width: 1.375em; height: 1.375em; margin: -.1em 0 0; vertical-align: -.4em; object-fit: contain; }
/* Twemoji's large coloured circle */
.dc-dot { display: inline-block; width: 1.375em; height: 1.375em; vertical-align: -.4em; border-radius: 50%; background: radial-gradient(circle closest-side, var(--dot) 83%, transparent 86%); }
.dc-dot.is-green { --dot: #78b159; }
.dc-dot.is-amber { --dot: #fdcb58; }
.dc-footer { color: #dbdee1; font-size: 12px; font-weight: 500; line-height: 16px; }

/* the bot's ticked checkbox, as a list marker */
.ui-check { flex: 0 0 10px; width: 10px; height: 10px; border: 1px solid #000; background: linear-gradient(#3e3e3e, #2a2a2a); }
.ui-check.is-on { background: linear-gradient(var(--accent-hi), var(--accent)); }

/* ---- what goes where: a full-bleed band ---- */
.band { --band-bg: #141414; isolation: isolate; overflow: clip; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0d0d0e; }
.band::before {
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 15% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 70% at 15% 40%, #000, transparent 75%);
}
.band + .section { border-top: 0; }
.band .section-grid { align-items: center; }
.wires { margin: 0; padding: 0 var(--s-3); list-style: none; }
.wire { display: grid; grid-template-columns: 184px minmax(120px, 1fr) 184px; gap: 0 var(--s-2); align-items: center; padding: var(--s-3) 0; }
.wire + .wire { border-top: 1px solid #242424; }
.wire p { grid-column: 1 / -1; margin-top: var(--s-2); color: var(--dim); font-size: 15px; max-width: 62ch; }
.wire-end { min-width: 0; padding: 10px 14px; border: 1px solid #2c2c2c; background: #171717; color: var(--white); font: 500 13px/1.2 var(--mono); text-align: center; white-space: nowrap; }
.wire:not(.is-never) .wire-end:first-child { border-color: #4a3485; box-shadow: inset 0 2px 0 var(--accent); }
.wire-line { position: relative; display: flex; justify-content: center; height: 32px; align-items: center; }
.wire-line::before { content: ""; position: absolute; left: 0; right: 6px; top: 50%; height: 1px; background: linear-gradient(90deg, var(--accent-hi), var(--accent)); }
.wire-line::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 6px solid var(--accent); border-right: 0; }
.wire-line em { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--band-bg); color: var(--accent-hi); font: normal 12px/1.2 var(--mono); white-space: nowrap; }
/* the label rides above the arrow, so a long one never runs into the boxes at either end */
.wire:not(.is-never) .wire-line { height: 48px; }
.wire:not(.is-never) .wire-line em { position: absolute; left: 0; right: 6px; bottom: calc(50% + 6px); justify-content: center; padding: 0; background: none; white-space: normal; text-align: center; }
/* the password row: same boxes dimmed, a grey dashed wire cut by a square lock marker */
.is-never .wire-end { background: transparent; color: var(--faint); }
.is-never .wire-line::before { background: repeating-linear-gradient(90deg, #4a4a4a 0 4px, transparent 4px 8px); right: 0; }
.is-never .wire-line::after { display: none; }
.is-never .wire-line em { color: var(--white); }
.is-never p { color: var(--text); }
.block-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--accent); background: #18122a; color: var(--accent-hi); }
.block-mark .ico { width: 12px; height: 12px; }

/* ---- setup: one line, three stops ---- */
.track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, var(--accent-hi), var(--accent) 40%, var(--line-2) 80%, transparent); }
.track li { position: relative; display: flex; flex-direction: column; padding-top: 40px; }
/* the stops are the app's ticked checkbox */
.track li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border: 1px solid #000; background: linear-gradient(var(--accent-hi), var(--accent)); box-shadow: 0 0 0 5px var(--bg); }
.track h3 { font-size: var(--t-lg); letter-spacing: -.015em; }
.track p { margin-top: var(--s-1); color: var(--dim); font-size: 15px; max-width: 34ch; }
/* same-size visual slot above each step's text */
.step-ui {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 430px;
  margin-bottom: 20px;
  border: 1px solid #2c2c2c;
  background: #0d0d0d;
}
/* the app's own windows, drawn by demo.js at one shared scale */
.step-ui canvas { display: block; max-width: 100%; }

/* ---- pricing: one window, a group box per plan ---- */
.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px 12px; max-width: 1040px; margin: 0 auto; padding: 26px 18px 18px; }
.plan { display: flex; flex-direction: column; padding: 22px 20px 20px; transition: border-color .15s; }
.plan:hover { box-shadow: inset 0 0 0 1px #3a3a3a; }
.plan-featured { background: linear-gradient(180deg, #1a1522, #151515 45%); box-shadow: inset 0 0 0 1px #5b3fa6; }
.plan-featured:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.plan-featured::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 2px; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .55) 50%), var(--strip); }
.plan-head { min-height: 0; }
/* the tag sits on the top border, opposite the title */
.plan-head .plan-tag { position: absolute; right: 10px; top: -9px; z-index: 1; }
.plan-name { position: absolute; left: 10px; top: -7px; z-index: 1; padding: 0 5px; background: linear-gradient(var(--lg-top, #101010) 50%, var(--lg-bot, #151515) 50%); color: #dcdcdc; font: bold 12px/14px var(--ui); }
.plan-featured .plan-name { color: #fff; }
.plan-tag { padding: 4px 8px; background: var(--accent-deep); color: #fff; font: bold 10px/1.2 var(--ui); letter-spacing: .1em; }
.plan-tag-dim { background: none; box-shadow: inset 0 0 0 1px #333; color: var(--dim); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-1); color: var(--white); font-size: 42px; line-height: 1; font-weight: 600; font-family: var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-cur { color: var(--dim); font: 500 16px/1 var(--mono); letter-spacing: 0; }
.plan-per { color: var(--faint); font: 13px/1 var(--sans); letter-spacing: 0; }
.plan-rate { margin-top: 12px; color: var(--dim); font-size: 14px; }
.plan-rate b { color: var(--white); font: 500 14px var(--mono); }
.plan-days { margin: var(--s-3) 0; padding-top: var(--s-2); border-top: 1px solid #242424; color: var(--dim); font-size: 14px; }
.plan-incl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px var(--s-4); margin: 0; padding: 16px var(--s-3); list-style: none; color: var(--text); font-size: 14px; }
.plan-incl { position: relative; padding-top: 20px; }
.plan-incl::before { content: "Every plan includes"; position: absolute; left: 10px; top: -7px; padding: 0 5px; background: linear-gradient(var(--lg-top, #101010) 50%, var(--lg-bot, #151515) 50%); color: #dcdcdc; font: bold 12px/14px var(--ui); }
.plan-incl li { display: flex; align-items: center; gap: 10px; }
.plan-incl .ico { width: 12px; height: 12px; color: var(--accent-hi); }
.plan form, .plan > .btn { margin-top: auto; }
.plan .btn:not(.btn-primary) { background: #1e1e1e; border-color: #3a3a3a; }
.plan .btn:not(.btn-primary):hover { background: #242424; border-color: #4a4a4a; }
.pay-note { max-width: 64ch; margin: var(--s-3) auto 0; color: var(--dim); font-size: 14px; text-align: center; }
.incl { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; color: var(--text); }
.incl li { display: flex; align-items: center; gap: 12px; }
/* the bot's ticked checkbox */
.tick { flex: 0 0 12px; width: 12px; height: 12px; background: linear-gradient(var(--accent-hi), var(--accent)); box-shadow: 0 0 0 1px #000; }

/* ---- faq ---- */
.faq { padding: 2px var(--s-3) 0; }
.faq details + details { border-top: 1px solid #242424; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.015em;
  border-radius: var(--r-sm);
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  border: 5px solid transparent;
  border-left: 6px solid var(--faint);
  border-right: 0;
  transition: transform .2s var(--ease), border-color .15s;
}
.faq details[open] summary::after { transform: rotate(90deg); border-left-color: var(--accent-hi); }
.faq details.is-moving:not(.is-open) summary::after { transform: none; border-left-color: var(--faint); }
.faq summary:hover { color: var(--accent-hi); }
.faq summary:hover::after { border-left-color: var(--accent-hi); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 var(--s-5) var(--s-3) 0; color: var(--dim); max-width: 64ch; }

/* ---- closing ---- */
.closing { position: relative; isolation: isolate; overflow: clip; padding: var(--s-7) 0; border-top: 1px solid var(--line); text-align: center; }
.closing::before {
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, #000, transparent 70%);
}
.closing::after {
  -webkit-mask-image: linear-gradient(transparent, #000);
  mask-image: linear-gradient(transparent, #000);
}
/* a horizon of light rising from the bottom edge */
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 880px; padding: var(--s-6) var(--s-4); }
.closing-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -300px;
  z-index: -1;
  width: 1100px;
  height: 520px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(139, 92, 246, .32), rgba(192, 38, 211, .12) 55%, transparent),
    radial-gradient(closest-side, rgba(167, 139, 250, .2), transparent 40%);
}
.closing h2 { font-size: 48px; line-height: 1.04; letter-spacing: -.04em; max-width: 18ch; }
.closing .lead { margin-top: var(--s-2); }
.closing .hero-cta { justify-content: center; }

/* ---- footer ---- */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: #080809; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); padding-top: var(--s-5); padding-bottom: var(--s-4); }
.footer-brand p { margin-top: var(--s-2); color: var(--faint); font-size: 14px; max-width: 40ch; }
.footer nav { display: grid; gap: 12px; align-content: start; }
.footer nav .label { margin-bottom: 4px; color: var(--faint); }
.footer nav a { color: var(--dim); font-size: 14px; width: fit-content; border-radius: 0; transition: color .15s; }
.footer nav a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-1) var(--s-3); padding-top: var(--s-3); padding-bottom: var(--s-3); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---- app pages ---- */
.app { padding-top: var(--s-5); padding-bottom: var(--s-7); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 12px; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.page-head p { margin-top: var(--s-1); color: var(--dim); }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-bottom: var(--s-3); padding: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.subnav a { display: inline-flex; align-items: center; gap: var(--s-1); padding: 8px 12px; border-radius: var(--r); color: var(--dim); font-size: 13px; font-weight: 500; }
.subnav a:hover { color: var(--white); background: var(--surface-2); }
.subnav .ico { color: var(--faint); }
.subnav .count { color: var(--faint); font: 11px var(--mono); }
.subnav .count.c-warn { color: var(--warn); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); align-items: stretch; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-3); align-items: start; }
.stack { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.span-all { grid-column: 1 / -1; }

.card {
  position: relative;
  min-width: 0;
  box-shadow: inset 0 0 0 1px #2e2e2e;
  border: 1px solid #000;
  border-radius: var(--r-lg);
  background: var(--dither) var(--surface);
}
/* card = group box: title on the top border, cut out of the line */
.card { --lg-top: var(--bg); --lg-bot: var(--surface); box-shadow: inset 0 0 0 1px #333; }
.card-legend {
  position: absolute;
  left: 12px;
  top: -8px;
  z-index: 2;
  padding: 0 6px;
  background: linear-gradient(var(--lg-top) 50%, var(--lg-bot) 50%);
  color: #dcdcdc;
  font: bold 12px/16px var(--ui);
  letter-spacing: 0;
  white-space: nowrap;
}
.card.has-legend > .card-body { padding-top: var(--s-3); }
.card-head { padding: var(--s-3) var(--s-3) 0; }
.card-head .label { color: var(--faint); }
.card-head h2 { margin-top: var(--s-1); font-size: 18px; letter-spacing: -.015em; }
.card-head .label:only-child { margin: 0; }
.card-body { padding: var(--s-2) var(--s-3) var(--s-3); }
.card-body > * + * { margin-top: var(--s-2); }
.card p { color: var(--dim); font-size: 14px; }
.hint { color: var(--faint); font-size: 13px; }

/* summary strip: one bordered row split by hairlines */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.tile { position: relative; min-width: 0; padding: 20px var(--s-3); }
.tile + .tile { border-left: 1px solid var(--line); }
.tile-label { display: flex; align-items: center; gap: var(--s-1); color: var(--faint); font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; }
.tile-value { margin-top: 12px; color: var(--white); font-size: var(--t-xl); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value.c-ok { color: var(--ok); }
.tile-value.c-err { color: var(--err); }
.tile-value small { margin-left: 6px; color: var(--faint); font-size: 14px; font-weight: 450; letter-spacing: 0; }
.tile-sub { margin-top: 6px; color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kvs { display: grid; }
.kv { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .ico { color: var(--faint); }
.kv-label { flex: 1 1 auto; color: var(--dim); }
.kv-val { min-width: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* like the bot's energy bar: dark track, accent fill */
.bar { height: 6px; border-radius: 0; background: #242424; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-hi)); }
.bar-meta { display: flex; justify-content: space-between; margin-top: var(--s-1) !important; color: var(--faint); font: 12px var(--mono); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--s-2); }
.steps-list li { position: relative; padding-left: 24px; color: var(--dim); font-size: 14px; }
.steps-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
.steps-list b { color: var(--white); font-weight: 500; }

.notes {
  max-height: 200px;
  padding: 12px var(--s-2);
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--dim);
  font: 13px/1.7 var(--mono);
}
.notice { display: flex; gap: 12px; padding: var(--s-2); border: 1px solid #4a3a18; border-radius: var(--r); background: #15120b; }
.notice .ico { margin-top: 5px; color: var(--warn); }
.notice b { color: var(--white); font-weight: 500; }
.notice p { margin-top: 4px; color: var(--dim); }

.mini-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mini-plans { padding-top: 8px; row-gap: 20px; }
.mini-plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px var(--s-2) var(--s-2); border: 1px solid #000; background: #151515; box-shadow: inset 0 0 0 1px #2a2a2a; transition: box-shadow .15s; }
.mini-plan:hover { box-shadow: inset 0 0 0 1px #3a3a3a; }
.mini-plan .plan-name { --lg-top: var(--surface); }
.mini-plan .plan-price { margin-top: 0; font-size: var(--t-xl); }
.mini-plan .plan-cur { font-size: 12px; }
.mini-plan .plan-days { margin: 4px 0 var(--s-2); color: var(--faint); font: 12px var(--mono); }
.mini-plan form { margin-top: auto; }

/* ---- forms ---- */
.form { display: grid; gap: var(--s-2); }
.field { display: grid; gap: var(--s-1); min-width: 0; }
.field label { color: var(--text); font-size: 13px; font-weight: 500; }
.input, .field input, .field select, .field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--white);
  font: 14px var(--sans);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #6e6e6e; }
.input:hover, .field input:hover, .field textarea:hover { border-color: var(--edge); }
.input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.field input:user-invalid { border-color: #7a3030; }
/* file picker: the real input covers the row, invisible, so the native button and its locale text never show */
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 6px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  transition: border-color .15s, box-shadow .15s;
}
.field .file-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.file:hover { border-color: var(--edge); }
.file:hover .btn { background: var(--raised); border-color: var(--edge); }
.file:focus-within { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.file .btn .ico { color: var(--accent-hi); }
.file-name { min-width: 0; overflow: hidden; color: var(--faint); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.file-name.is-set { color: var(--white); font-family: var(--mono); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1 1 140px; }
.form-errors { padding: 12px var(--s-2); border: 1px solid #4a2020; border-radius: var(--r); background: #170e0e; color: #f3a3a3; font-size: 14px; }
.form-errors ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline-form .input { width: 72px; height: 28px; padding: 0 8px; font-size: 13px; border-radius: var(--r-sm); }

/* ---- auth ---- */
.auth { width: 100%; max-width: 960px; margin: 0 auto; padding: var(--s-7) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-6); align-items: start; }
.auth-aside { padding-top: var(--s-4); }
.auth-aside .h2 { font-size: 34px; }
.auth-aside > p { margin-top: var(--s-2); color: var(--dim); max-width: 40ch; }
.auth-points { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--dim); font-size: 14px; }
.auth-points .tick { margin-top: 6px; }
.auth-points b { color: var(--white); font-weight: 500; }
.auth-card { width: 100%; }
.auth-card .card-head { padding: var(--s-4) var(--s-4) 0; }
.auth-title { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.auth-card .card-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.auth-sub { margin-top: var(--s-1) !important; color: var(--dim); font-size: 14px; }
.auth-card .form + .auth-alt { margin-top: var(--s-3); }
.auth-alt { padding-top: var(--s-2); border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.auth-alt a { color: var(--accent-hi); font-weight: 500; }

/* ---- tables ---- */
/* relative: the sr-only grant labels are absolute and would otherwise escape the scroller and widen the page */
.tbl-wrap { position: relative; overflow-x: auto; margin: 0 calc(-1 * var(--s-3)); padding: 0 var(--s-3); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 12px; text-align: left; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl th { padding-top: 4px; color: var(--faint); font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.tbl .num { text-align: right; }
.tbl .actions { display: grid; grid-template-columns: repeat(3, 92px); gap: 6px; align-items: center; }
.tbl .actions .inline-form, .tbl .actions .btn { width: 100%; }
.tbl .wrap { white-space: pre-line; min-width: 220px; color: var(--dim); }
.tbl .user { display: flex; align-items: center; gap: var(--s-1); color: var(--white); font-weight: 600; }
.tbl .sub { display: block; margin-top: 2px; font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 0;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px currentColor;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .02em;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 0; background: currentColor; }
.badge-ok { color: var(--ok); background: rgba(110, 200, 120, .08); }
.badge-warn { color: var(--warn); background: rgba(232, 170, 64, .08); }
.badge-off { color: var(--faint); }
.badge-err { color: #f07a7a; background: rgba(225, 85, 85, .08); }
.badge-accent { color: var(--accent-hi); background: var(--accent-wash); }

.keycode { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--white); font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.copy {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--dim);
  cursor: pointer;
}
.copy:hover { color: var(--white); border-color: var(--edge); }
.copy.is-done { color: var(--ok); border-color: #2f5a35; }
.hwid { color: var(--white); font: 13px var(--mono); word-break: break-all; }

.empty { display: flex; align-items: center; gap: 12px; padding: var(--s-3) var(--s-2); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--faint); font-size: 14px; }

/* ---- menu bevels for controls and app panels ---- */
.btn { border-color: #000; background: linear-gradient(#1f1f1f, #171717); box-shadow: inset 0 0 0 1px #2e2e2e; }
.btn:hover { border-color: #000; background: linear-gradient(#262626, #1c1c1c); box-shadow: inset 0 0 0 1px #3c3c3c; }
/* the outline variant shows its whole box: a faint ring read as a smaller button next to a filled one */
.btn-ghost { background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px #474747; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px #5a5a5a; }
.btn-primary { border-color: #000; background: linear-gradient(#9468f7, var(--accent-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(196, 181, 253, .28); }
.btn-primary:hover { border-color: #000; background: linear-gradient(#a27bf9, #7537e0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(196, 181, 253, .4), 0 8px 24px -10px rgba(139, 92, 246, .7); }
.btn-danger { color: #f07a7a; }
.btn-danger:hover { color: #ff9a9a; background: linear-gradient(#241616, #1a1111); box-shadow: inset 0 0 0 1px #5a2626; }
.btn[disabled], .btn.is-off { border-color: #000; background: #141414; box-shadow: inset 0 0 0 1px #222; color: #7c7c7c; }
/* inputs are recessed wells */
.input, .field input, .field select, .field textarea, .file { border-color: #000; background: #0b0b0b; box-shadow: inset 0 0 0 1px #262626, inset 0 2px 3px rgba(0, 0, 0, .6); }
.form > .btn { margin-top: var(--s-1); }
.input:hover, .field input:hover, .field textarea:hover, .file:hover { border-color: #000; box-shadow: inset 0 0 0 1px #363636; }
.input:focus, .field input:focus, .field textarea:focus, .file:focus-within { border-color: #000; border-style: solid; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(139, 92, 246, .18); }
.file { border-style: solid; }
/* alerts: a coloured bar on the left instead of a tinted box */
.flash, .form-errors, .notice { border-color: #000; background: #111; box-shadow: inset 0 0 0 1px #262626, inset 3px 0 0 var(--fl, var(--info)); }
.flash-success { --fl: var(--ok); }
.flash-error, .form-errors { --fl: var(--err); }
.flash-info { --fl: var(--info); }
.notice { --fl: var(--warn); }
.form-errors { color: #e8b4b4; }
/* summary strip and auth card are windows */
.tiles { position: relative; border: 1px solid #000; background: var(--dither) #101010; box-shadow: inset 0 0 0 1px #2e2e2e; }
.tiles::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; z-index: 1; height: 3px; background: linear-gradient(transparent 66%, rgba(0, 0, 0, .6) 66%), var(--strip); }
.tile { padding-top: 24px; }
.tile + .tile { border-left-color: #222; }
.auth-card { padding: 0; }
.auth-card .card-head { padding-top: 40px; }
.subnav { border-color: #000; background: #101010; box-shadow: inset 0 0 0 1px #262626; }
.subnav a:hover { background: #1a1a1a; }
.bar { height: 6px; border: 1px solid #000; background: #262626; box-sizing: content-box; }
.bar > span { background: linear-gradient(90deg, var(--accent-deep), var(--accent) 60%, var(--accent-hi)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.badge { box-shadow: inset 0 0 0 1px currentColor; }
.notes { border-color: #000; background: #0c0c0c; box-shadow: inset 0 0 0 1px #262626; }
.tbl th { color: #9a9a9a; border-bottom-color: #000; box-shadow: inset 0 -1px 0 #262626; }
.copy { border-color: #000; background: linear-gradient(#1f1f1f, #171717); box-shadow: inset 0 0 0 1px #2e2e2e; }

/* one entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy, .shot { animation: rise .8s var(--ease) both; }
  .shot { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 1240px) {
  .shot { --shot-w: 636px; }
  .hero h1 { font-size: 52px; }
}

@media (max-width: 1100px) {
  .hero h1 { font-size: 46px; }
  .hero-copy { grid-column: 1 / span 6; }
  .shot { --shot-w: 540px; grid-column: 7 / -1; }
  .section-aside { grid-column: 1 / span 5; }
  .section-main { grid-column: 6 / -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .demo-side { display: contents; }
  .demo-panel-fit { order: 1; justify-self: start; margin-bottom: 6px; }
  .demo-main { display: contents; }
  .demo-menu-fit { order: 2; justify-self: start; }
  .demo-bar-fit { order: 3; justify-self: start; }
  .demo-copy { order: 4; width: 100%; padding: var(--s-3) 0 0; }
  .dc-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --nav-h: 63px; }
  .nav-inner { height: 60px; gap: var(--s-2); justify-content: space-between; }
  .nav-burger {
    display: grid;
    gap: 4px;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: rgba(18, 18, 18, .6);
    cursor: pointer;
  }
  .nav-burger i { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .2s var(--ease), opacity .2s; }
  .nav-toggle:checked + .nav-burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger i:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-1) var(--gutter) var(--s-3);
    background: #0c0c0d;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links a:hover { background: none; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current], .nav-links a.is-active { background: none; box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
  .nav-actions { padding-top: var(--s-2); flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; height: 40px; }
  .nav-actions form { flex: 1; display: flex; }
  .nav-user { flex-basis: 100%; margin-bottom: 4px; }

  .section { padding: var(--s-7) 0; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .section-aside, .section-main { grid-column: 1 / -1; }
  .sticky { position: static; }
  .h2 { font-size: 32px; }
  .lead { font-size: 16px; }
  .intro { margin-bottom: var(--s-5); }
  .page-landing .hero { padding-top: calc(var(--nav-h) + var(--s-5)); padding-bottom: var(--s-7); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .hero-copy, .shot { grid-column: 1 / -1; padding-bottom: 0; }
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 50% at 50% 30%, #000, transparent 75%);
  }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 16px; }
  .shot { --shot-w: 100%; justify-self: center; max-width: 636px; margin-right: 0; }
  .shot::after { bottom: -48px; }
  .shot-frame { transform: none; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .spec + .spec { padding: var(--s-2) var(--s-2) var(--s-2) 0; border-left: 0; }
  .spec:nth-child(even) { padding-left: var(--s-2); border-left: 1px solid var(--line); }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plan-incl { flex-direction: column; align-items: flex-start; max-width: 480px; }
  /* the wire turns vertical: ends stack, arrow points down */
  .wire { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: var(--s-3) 0; }
  .wire-line { width: 100%; height: 44px; justify-content: flex-start; padding-left: 32px; }
  .wire-line::before { left: 16px; right: auto; top: 0; bottom: 6px; width: 1px; height: auto; }
  .is-never .wire-line::before { background: repeating-linear-gradient(180deg, var(--err) 0 4px, transparent 4px 8px); }
  .wire-line::after { left: 12px; right: auto; top: auto; bottom: 0; margin: 0; border: 4px solid transparent; border-top: 6px solid var(--accent); border-bottom: 0; }
  .is-never .wire-line::after { border-top-color: transparent; }
  .wire-line em { padding: 0; background: none; }
  .wire:not(.is-never) .wire-line { height: 44px; }
  .wire:not(.is-never) .wire-line em { position: relative; left: auto; right: auto; bottom: auto; justify-content: flex-start; text-align: left; }
  .wire-end { white-space: normal; min-width: 0; text-align: left; }
  .is-never .wire-end:first-child { justify-content: flex-start; }
  .wire.is-never { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  /* setup line turns vertical */
  .track { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-left: var(--s-4); }
  .track::before { left: 5px; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--accent-hi), var(--accent) 40%, var(--line-2) 85%, transparent); }
  .track li { padding-top: 0; }
  .track li::before { left: calc(-1 * var(--s-4)); top: 6px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .closing { padding: var(--s-7) 0; }
  .closing h2 { font-size: 34px; }
  .closing-inner::after { width: 700px; bottom: -300px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-5); }
  .footer-brand { grid-column: 1 / -1; }

  .app { padding-top: var(--s-4); padding-bottom: var(--s-6); }
  .page-head { padding-bottom: var(--s-3); margin-bottom: var(--s-3); }
  .page-head h1 { font-size: 28px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: var(--s-2); }
  .tile-value { font-size: 22px; }
  .tile-sub { white-space: normal; }
  .tile-label { min-height: 2.4em; align-items: flex-start; }
  .card-head { padding: 20px 20px 0; }
  .card-body { padding: var(--s-2) 20px 20px; }
  .tbl-wrap { margin: 0 -20px; padding: 0 20px; }
  .auth { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding-top: var(--s-4); padding-bottom: var(--s-6); }
  .auth-card { order: -1; }
  .auth-aside { padding-top: 0; }
  .auth-aside .h2 { font-size: 26px; }
  .auth-card .card-head { padding: var(--s-3) 20px 0; }
  .auth-card .card-body { padding: 20px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .closing h2 { font-size: 30px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
  /* the HWID gets its own line under its label */
  .kv:has(.hwid) { flex-wrap: wrap; }
  .kv:has(.hwid) .kv-val { flex-basis: 100%; padding-left: 24px; text-align: left; }
  .plan-price { font-size: 38px; }
}
