/* TaskWire website: landing page, account pages and admin dashboard.
   A calm dark room: ink surfaces, warm paper type in light, tight Inter Tight, hairline
   borders, paper pill buttons, a sky accent and the app's own lamps. */

:root {
  --ink-0: #141518;
  --ink-1: #1a1b1e;
  --ink-2: #1f2023;
  --ink-3: #26272b;
  --line: rgb(243 243 241 / .08);
  --line-2: rgb(243 243 241 / .15);
  --text: #f3f3f1;
  --paper-70: rgb(243 243 241 / .7);
  --muted: #a4a6aa;
  --dim: #8b8e94;
  --lavender: #c3caff;
  --violet: #3446f0;
  --violet-soft: rgb(52 70 240 / .16);
  /* Primary actions: a paper pill that turns sky on hover. */
  --mint: #f3f3f1;
  --mint-hover: #c3caff;
  --mint-ink: #1c1d20;
  --lamp-idle: #31c48d;
  --lamp-busy: #f2a93b;
  --lamp-off: #4b5263;
  --lamp-error: #f0616d;
  --oxblood: #c95561;
  --focus: #c3caff;

  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --wrap: 1180px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(52 70 240 / .55); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
/* Hugeicons (scripts/build-icons.mjs): inline via the sprite, or as a CSS mask. */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; color: inherit; }
.btn .i { width: 18px; height: 18px; }
.btn.small .i { width: 15px; height: 15px; }
.mask-icon, .plan li::before, .offer-facts li::before, .faq summary::after, details > summary.link::before, .panel details > summary::before {
  background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

/* ── brand ─────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -.035em; }
.brand-mark { width: 26px; height: 26px; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .35s, border-color .35s, color .35s, transform .15s;
}
.btn:hover { border-color: var(--text); background: rgb(243 243 241 / .04); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn.danger { color: #ffb3b9; border-color: rgb(240 97 109 / .4); }
.btn.danger:hover { background: rgb(240 97 109 / .1); border-color: var(--lamp-error); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.link { background: none; border: 0; padding: 0; color: var(--lavender); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(195 202 255 / .4); }
.link:hover { text-decoration-color: currentColor; }

/* ── lamps (the app's own indicator lights) ────────────────────────────── */
.lamp { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--c, var(--lamp-off)); }
.lamp.idle { --c: var(--lamp-idle); box-shadow: 0 0 0 3px rgb(49 196 141 / .16), 0 0 10px var(--c); }
.lamp.busy { --c: var(--lamp-busy); box-shadow: 0 0 0 3px rgb(242 169 59 / .16), 0 0 12px var(--c); animation: glow 1.6s ease-in-out infinite; }
.lamp.off { --c: var(--lamp-off); }
.lamp.error { --c: var(--lamp-error); box-shadow: 0 0 0 3px rgb(240 97 109 / .16); }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgb(242 169 59 / .08), 0 0 4px var(--c); opacity: .75; } }

/* ── landing: top ──────────────────────────────────────────────────────── */
.announce { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 9px 16px; }
.announce a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgb(243 243 241 / .3); }
.announce a:hover { text-decoration-color: var(--lavender); }
.announce-icon { display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -3px; color: #5865f2; }
/* Full width and see-through at the top; a blurred bar once the page scrolls (landing.js). */
.nav-shell { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .5s, border-color .5s; }
html[data-scrolled] .nav-shell { background: rgb(28 29 32 / .9); border-bottom-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px 0; transition: padding .5s var(--ease);
}
html[data-scrolled] .nav { padding-block: 12px; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; padding: 6px 0; text-decoration: none; color: var(--paper-70); font-size: 15px; transition: color .3s; }
/* A small sky dot grows under the link you point at. */
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--lavender); transform: scale(0); transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scale(1); }
.nav-actions { display: flex; gap: 8px; justify-self: end; }
.nav .btn { min-height: 38px; padding: 0 18px; font-size: 14px; }
.nav .nav-discord { width: 38px; padding: 0; justify-content: center; }
.nav-discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }

/* The hero is a dusk scene: sky, glow, two mountain ranges with snow, hills, then the copy
   and the board, then a pine forest in front. landing.js moves each layer by how far the
   scene has scrolled times its data-depth, so far layers sink and the forest rises. */
.hero { position: relative; text-align: center; }
.scene { --s: 1; isolation: isolate; padding: clamp(96px, 15vh, 160px) 0 40px; overflow: clip; }
.scene-content { position: relative; z-index: 5; }
.sky { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--ink-0) 0%, #1e2029 28%, #232845 50%, #2c3576 68%, #3a4bd6 84%, #5c6cf2 100%); }
.glow {
  position: absolute; z-index: 1; top: 520px; left: 50%; translate: -50%; width: min(1150px, 120vw); aspect-ratio: 2.2;
  border-radius: 50%; pointer-events: none; will-change: transform;
  background: radial-gradient(closest-side, rgb(195 202 255 / .42), rgb(120 136 255 / .24) 32%, rgb(52 70 240 / .1) 60%, transparent);
}
.layer { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; will-change: transform; }
.layer svg { display: block; width: 100%; }
.far { z-index: 2; }
.far svg { height: calc(1060px * var(--s)); fill: #454c7e; }
.far .snow { fill: #9ea7ec; opacity: .85; }
.mid { z-index: 3; }
.mid svg { height: calc(970px * var(--s)); fill: #2d3255; }
.mid .snow { fill: #6a73bd; opacity: .55; }
.hills { z-index: 4; }
.hills svg { height: calc(620px * var(--s)); fill: #22253a; }
.forest { z-index: 6; bottom: calc(-1080px * var(--s)); }
.forest svg { height: calc(1700px * var(--s)); }
.pines-back { fill: #1f2130; }
.pines-front { fill: var(--ink-0); }
@media (max-width: 760px) { .scene { --s: .55; padding-bottom: 190px; } }
.hero-copy { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; will-change: opacity; }
.hero h1 {
  margin: 0 auto 28px; font: 400 clamp(46px, 7.4vw, 108px)/.98 var(--display); letter-spacing: -.05em;
  color: var(--text); text-wrap: balance;
}
.hero h1 .lead { color: var(--text); }
.hero h1 .soft { color: var(--dim); font-size: inherit; }
.hero p.sub { margin: 0 auto 36px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 600px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.fine { margin-top: 18px; font-size: 13px; color: var(--dim); line-height: 1.8; }
.fine span + span::before { content: "·"; margin: 0 8px; }

/* ── the live board (hero signature) ───────────────────────────────────── */
/* The real app in a window frame: a slideshow (landing.js). Click it to see it full screen. */
.slide-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 64px auto 16px; }
.slide-tabs button { position: relative; padding: 8px 14px; border: 0; border-radius: var(--r-pill); background: none; color: var(--paper-70); font-size: 14px; cursor: pointer; overflow: hidden; transition: color .3s, background .3s; }
.slide-tabs button:hover { color: var(--text); }
.slide-tabs button[aria-selected="true"] { color: var(--text); background: rgb(243 243 241 / .1); }
/* How long until the next slide, while it plays on its own. */
.slide-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; border-radius: 2px; background: var(--lavender); transform-origin: 0 50%; transform: scaleX(0); }
.slide-tabs[data-playing] button[aria-selected="true"]::after { animation: slide-timer var(--slide-ms, 6000ms) linear forwards; }
@keyframes slide-timer { to { transform: scaleX(1); } }
.stage {
  position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; padding: 6px;
  border: 1px solid rgb(243 243 241 / .12); border-radius: 20px; background: #101113;
  box-shadow: 0 50px 140px -40px rgb(52 70 240 / .55), 0 30px 60px -30px rgb(0 0 0 / .7);
  text-align: left;
}
.slides { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 15px; overflow: hidden; background: #161719; cursor: zoom-in; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .7s var(--ease); }
.slides img[data-on] { opacity: 1; }
.board-mock {
  width: 1080px; transform: scale(var(--scale)); transform-origin: 0 0;
  display: grid; grid-template-columns: 190px 1fr 250px; grid-template-rows: 54px 1fr;
  height: 640px; overflow: hidden;
  background: #161719;
  font-size: 12.5px; color: #d6d7d4;
}
.bm-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #161719; }
.bm-top .brand { font-size: 15px; gap: 8px; }
.bm-top .brand-mark { width: 20px; height: 20px; }
.bm-lamps { display: flex; gap: 8px; margin-left: 10px; }
.jack { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgb(243 243 241 / .04); border: 1px solid var(--line); font-size: 11.5px; white-space: nowrap; }
.jack .ref { color: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.bm-btn { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--mint-ink); font-size: 11.5px; font-weight: 500; }
.bm-rail { padding: 16px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bm-rail h4 { margin: 12px 6px 6px; font: 600 9.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bm-rail h4:first-child { margin-top: 0; }
.bm-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--muted); }
.bm-item.on { background: rgb(243 243 241 / .09); color: var(--text); }
.bm-item.on .i { color: var(--lavender); }
.bm-item .kind { margin-left: auto; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.bm-item .kind.bug { color: var(--lamp-error); }
.bm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; position: relative; }
.bm-col { display: flex; flex-direction: column; gap: 9px; }
.bm-col h5 { margin: 0 0 4px; display: flex; justify-content: space-between; font: 600 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.bm-card { position: relative; padding: 10px 11px; border-radius: 10px; background: #1c1d20; border: 1px solid var(--line); }
.bm-card b { display: block; font-weight: 500; color: var(--text); margin-bottom: 7px; line-height: 1.3; }
.bm-card .meta { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 10.5px; }
.bm-card .tag { padding: 2px 6px; border-radius: 5px; background: rgb(243 243 241 / .07); font-size: 9.5px; color: var(--muted); }
.bm-card .tag.bug { background: rgb(240 97 109 / .14); color: #ff9aa3; }
.bm-card .pri { width: 3px; position: absolute; left: -1px; top: 10px; bottom: 10px; border-radius: 3px; background: var(--p, transparent); }
.bm-card.mover { position: absolute; top: 46px; left: 16px; width: calc((100% - 32px - 36px) / 4); z-index: 2; }
.slot, .bm-card.mover { height: 76px; flex: none; }
.p-bug { --p: var(--lamp-error); }
.p-high { --p: var(--lamp-busy); }
.bm-chat { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bm-chat h5 { margin: 0 0 4px; font: 600 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.msg { padding: 9px 10px; border-radius: 10px; background: #1c1d20; border: 1px solid var(--line); line-height: 1.4; }
.msg .who { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); margin-bottom: 3px; font-size: 11.5px; }
.msg .at { color: var(--lavender); }
.msg.new { border-color: rgb(195 202 255 / .4); }

/* The one orchestrated motion: a card is claimed, a lamp lights, a reply arrives. */
@media (prefers-reduced-motion: no-preference) {
  .mover { animation: claim 9s cubic-bezier(.65, 0, .35, 1) infinite; }
  .lamp.swap { animation: lamp-swap 9s steps(1) infinite; }
  .msg.new { animation: arrive 9s ease-out infinite; }
  .ghost { animation: ghost 9s steps(1) infinite; }
}
@keyframes claim {
  0%, 18% { transform: translate(0, 0); }
  32%, 100% { transform: translate(calc(100% + 12px), 0); }
}
@keyframes lamp-swap {
  0%, 26% { --c: var(--lamp-idle); box-shadow: 0 0 0 3px rgb(49 196 141 / .16), 0 0 10px var(--lamp-idle); }
  27%, 100% { --c: var(--lamp-busy); box-shadow: 0 0 0 3px rgb(242 169 59 / .16), 0 0 12px var(--lamp-busy); }
}
@keyframes arrive {
  0%, 40% { opacity: 0; transform: translateY(8px); }
  46%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes ghost { 0%, 30% { opacity: 0; } 31%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mover { transform: translate(calc(100% + 12px), 0); }
}

/* ── landing: sections ─────────────────────────────────────────────────── */
section { position: relative; }
.band { padding: clamp(96px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.band h2 { margin: 0 0 22px; font: 400 clamp(40px, 5.6vw, 84px)/1 var(--display); letter-spacing: -.05em; max-width: 980px; text-wrap: balance; }
.band .intro { margin: 0 0 64px; max-width: 620px; color: var(--muted); font-size: 18px; text-wrap: pretty; }

.works-with { position: relative; z-index: 1; padding: 40px 0 46px; }
.works-with p { margin: 0 0 18px; text-align: center; color: var(--dim); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--paper-70); font-size: 14.5px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.feature { padding: clamp(22px, 2vw, 30px); border-radius: var(--r-lg); background: rgb(243 243 241 / .03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: border-color .3s; }
.feature:hover { border-color: rgb(195 202 255 / .45); }
.feature h3 { margin: 0; font: 400 24px/1.15 var(--display); letter-spacing: -.035em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.vignette { order: -1; height: 132px; border-radius: var(--r-md); background: #161719; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; font-size: 12.5px; }
.vignette .row { display: flex; align-items: center; gap: 8px; }
.vignette .row .spacer { flex: 1; }
.vignette .soft { color: var(--dim); }
.mini-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 100%; }
.mini-cols div { border-radius: 8px; background: var(--ink-3); padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.mini-cols i { display: block; height: 14px; border-radius: 4px; background: #2f3035; }
.mini-cols i.hot { background: rgb(52 70 240 / .8); }
.vignette code { font: 12px/1.6 var(--mono); color: var(--lavender); white-space: pre; }
.provider { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--ink-3); }
.provider .mono { color: var(--dim); font-size: 11px; margin-left: auto; }

.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 30px; }
.steps li { display: grid; grid-template-columns: 14px 1fr; gap: 0 16px; }
.steps li::before { content: ""; grid-row: span 2; width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; background: var(--lavender); }
.steps h3 { margin: 0 0 6px; font: 400 24px/1.15 var(--display); letter-spacing: -.035em; }
.steps p { margin: 0; color: var(--muted); }
.terminal { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #101113; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal pre { margin: 0; padding: 18px 20px 22px; font: 13px/1.75 var(--mono); color: var(--muted); overflow-x: auto; }
.terminal .c { color: var(--dim); }
.terminal .k { color: var(--lavender); }
.terminal .ok { color: var(--lamp-idle); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgb(243 243 241 / .03); }
.mode.live { background: radial-gradient(90% 120% at 100% 0, rgb(52 70 240 / .28), transparent 60%), rgb(243 243 241 / .03); border-color: rgb(195 202 255 / .25); }
.mode h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font: 400 32px/1.05 var(--display); letter-spacing: -.045em; }
.mode .where { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; color: var(--lavender); }
.mode ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--paper-70); }
.mode li { display: flex; gap: 10px; }
.mode li::before { content: ""; width: 5px; height: 5px; margin-top: 10px; border-radius: 50%; background: var(--lavender); flex: none; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; }
.plan { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgb(243 243 241 / .03); display: flex; flex-direction: column; gap: 18px; }
.plan h3 { margin: 0; font: 400 30px/1 var(--display); letter-spacing: -.045em; }
.plan p { margin: 0; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; color: var(--paper-70); flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; --icon: url(/icons/tick.svg?v=3a59b76139); width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--lavender); }
.plan .btn { align-self: flex-start; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 400 21px/1.3 var(--display); letter-spacing: -.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; --icon: url(/icons/plus.svg?v=1b2b8cae91); width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 680px; }

.cta-band { padding: clamp(110px, 13vw, 180px) 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(700px 320px at 50% 100%, rgb(52 70 240 / .3), transparent); }
.cta-band h2 { margin: 0 auto 18px; font: 400 clamp(44px, 6.4vw, 96px)/.98 var(--display); letter-spacing: -.05em; max-width: 980px; text-wrap: balance; }
.cta-band p { margin: 0 auto 32px; color: var(--muted); font-size: 17.5px; }
.cta-band .hero-cta { justify-content: center; }

/* Discord invite, just above the closing call to action. */
.community { padding: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line); }
.community-card {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgb(88 101 242 / .35); border-radius: var(--r-lg);
  background: radial-gradient(520px 220px at 0% 0%, rgb(88 101 242 / .22), transparent), var(--ink-1);
}
.community-mark { flex: none; width: 56px; height: 56px; padding: 12px; border-radius: 16px; background: #5865f2; color: #fff; }
.community-copy { flex: 1; min-width: 0; }
.community-copy h2 { margin: 0 0 6px; font: 400 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.03em; }
.community-copy p { margin: 0; color: var(--muted); max-width: 640px; }
.community .btn { flex: none; }
@media (max-width: 760px) {
  .community-card { flex-direction: column; align-items: flex-start; }
  .community .btn { width: 100%; justify-content: center; }
}

.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-link:hover { color: var(--text); }

/* Cookie banner, added by /gtag.js for visitors in Europe. Accept and Reject carry equal weight. */
.consent {
  position: fixed; z-index: 100; right: 16px; bottom: 16px; max-width: 400px;
  margin-left: 16px; padding: 16px 18px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgb(0 0 0 / .4); color: var(--paper-70); font: 14px/1.5 var(--body);
}
.consent p { margin: 0 0 12px; }
.consent a { color: var(--text); }
.consent-link { font: inherit; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent-actions .btn { flex: 1; justify-content: center; }

/* ── account app ───────────────────────────────────────────────────────── */
.app-bar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--ink-1); position: sticky; top: 0; z-index: 10; }
.app-bar nav { display: flex; gap: 6px; margin-left: 16px; }
.app-bar nav a { padding: 7px 12px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-size: 14.5px; }
.app-bar nav a[aria-current="page"] { background: var(--ink-3); color: var(--text); }
.app-bar .who { margin-left: auto; color: var(--dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(700px 400px at 70% 0%, rgb(52 70 240 / .2), transparent); }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { margin-bottom: 34px; }
.auth-card h1 { margin: 0 0 10px; font: 400 40px/1 var(--display); letter-spacing: -.045em; }
.auth-card .lede { margin: 0 0 26px; color: var(--muted); }
.auth-card .after { margin-top: 22px; color: var(--muted); font-size: 14.5px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-size: 14px; color: #c4c8d4; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--ink-1); border: 1px solid var(--line-2); color: var(--text); font-size: 15.5px;
}
.field textarea { min-height: 84px; font-family: var(--mono); font-size: 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgb(195 202 255 / .18); }
.field .hint { color: var(--dim); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: #c4c8d4; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--violet); }
.form-error { margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-md); background: rgb(240 97 109 / .1); border: 1px solid rgb(240 97 109 / .35); color: #ffc0c5; font-size: 14.5px; }
.notice { margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-md); background: rgb(49 196 141 / .1); border: 1px solid rgb(49 196 141 / .3); color: #b6f0d6; font-size: 14.5px; }
.full { width: 100%; }

.page { width: min(980px, 100% - 32px); margin: 40px auto 80px; }
.page > h1 { margin: 0 0 8px; font: 400 46px/1 var(--display); letter-spacing: -.045em; }
.page > .lede { margin: 0 0 30px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-1); padding: 24px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 4px; font: 500 21px/1.2 var(--display); letter-spacing: -.03em; }
.panel > .lede { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.panel-head > div { flex: 1; min-width: 0; }
.panel-head .lede { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font: 600 12.5px/1 var(--body); background: var(--violet-soft); color: var(--lavender); }
.badge.ok { background: rgb(49 196 141 / .12); color: #7fe0b8; }
.badge.warn { background: rgb(242 169 59 / .12); color: #f6c67a; }
.badge.bad { background: rgb(240 97 109 / .12); color: #ff9aa3; }
.badge.quiet { background: var(--ink-3); color: var(--muted); }

.lic { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; background: var(--ink-2); }
.lic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.lic-head .spacer { flex: 1; }
.lic-head .soft { color: var(--muted); font-size: 14px; }
.key-box { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.key-box code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink-0); border: 1px solid var(--line); font: 12.5px/1.4 var(--mono); color: #c9cdf5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-box.reveal code { white-space: normal; word-break: break-all; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.rows li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 160px; }
.rows .soft { color: var(--dim); font-size: 13.5px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 180px; }
.empty { color: var(--dim); font-size: 14.5px; margin: 6px 0; }
.soft { color: var(--dim); font-size: 13.5px; }
.actions .grow { flex: 1; }
.drawer details { margin-top: 12px; }
.drawer summary { cursor: pointer; width: fit-content; margin-bottom: 12px; }

/* ── admin ─────────────────────────────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.admin-nav { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; background: var(--ink-1); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: 14.5px; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] { background: var(--violet-soft); color: #fff; }
.admin-main { padding: 30px 34px 80px; min-width: 0; }
.admin-main > h1 { margin: 0 0 6px; font: 400 38px/1.05 var(--display); letter-spacing: -.045em; }
.admin-main > .lede { margin: 0 0 26px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-1); }
.stat .label { color: var(--muted); font-size: 13.5px; }
.stat .num { margin-top: 8px; font: 600 34px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .sub { margin-top: 6px; color: var(--dim); font-size: 13px; }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font: 500 13px/1 var(--body); color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--ink-1); white-space: nowrap; }
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: rgb(255 255 255 / .025); }
table.grid tr[aria-selected="true"] td { background: var(--violet-soft); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type="search"] { flex: 1; min-width: 220px; min-height: 42px; padding: 0 14px; border-radius: var(--r-pill); background: var(--ink-1); border: 1px solid var(--line-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: var(--r-pill); color: var(--muted); cursor: pointer; font-size: 13.5px; }
.seg button[aria-pressed="true"] { background: var(--ink-3); color: var(--text); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); z-index: 30; background: var(--ink-1); border-left: 1px solid var(--line-2); box-shadow: -40px 0 80px rgb(0 0 0 / .5); overflow-y: auto; padding: 26px 26px 60px; }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.drawer-head h2 { margin: 0; font: 600 24px/1.15 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; flex: 1; }
.drawer h3 { margin: 26px 0 10px; font: 600 15px/1.3 var(--body); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / .45); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--dim); font-size: 13px; }
.timeline .act { color: var(--text); }
.timeline .by { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: var(--r-pill); background: var(--text); color: var(--ink-0); font-size: 14.5px; box-shadow: 0 20px 40px rgb(0 0 0 / .4); }
.toast.error { background: var(--lamp-error); color: #fff; }
.copy-block { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink-0); border: 1px solid var(--line); font: 12px/1.6 var(--mono); color: #c9cdf5; white-space: pre-wrap; word-break: break-all; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps, .modes, .plans, .two { grid-template-columns: minmax(0, 1fr); }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .admin-nav a { white-space: nowrap; }
  .admin-main { padding: 24px 16px 60px; }
}
@media (max-width: 620px) {
  .nav { gap: 10px; }
  .nav-actions .btn:not(.primary) { display: none; }
  .nav-actions .btn.nav-discord { display: inline-flex; }
  .scene { padding-top: 56px; }
  .stage { padding: 4px; border-radius: 14px; }
  .slides { border-radius: 10px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 80px 0; }
  .app-bar { padding: 12px 16px; flex-wrap: wrap; }
  .app-bar nav { margin-left: 0; order: 3; width: 100%; }
  .app-bar .who { display: none; }
  .panel { padding: 18px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ── offers, checkout, license tools ───────────────────────────────────── */
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.plan-price { margin: 0; }
.plan-price .amount, .offer-price .amount { font: 600 40px/1 var(--display); letter-spacing: -.03em; color: var(--text); }
.plan-price .per, .offer-price .per { color: var(--muted); font-size: 15px; }
.offer-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 18px; }
.offer-facts { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; color: #c4c8d4; }
.offer-facts li { display: flex; gap: 10px; align-items: flex-start; }
.offer-facts li::before { content: ""; --icon: url(/icons/tick.svg?v=3a59b76139); width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--lamp-idle); }
/* Expandable sections: a Hugeicons chevron instead of the browser's triangle. */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary.link, .panel details > summary { display: inline-flex; align-items: center; gap: 6px; }
details > summary.link::before, .panel details > summary::before { content: ""; --icon: url(/icons/chevron.svg?v=ef4fbaabe6); width: 16px; height: 16px; flex: none; transition: transform .15s; }
details[open] > summary.link::before, .panel details[open] > summary::before { transform: rotate(90deg); }
.admin-nav a .i { width: 18px; height: 18px; opacity: .85; }
.bm-item .i, .bm-btn .i { width: 13px; height: 13px; }
.bm-btn { display: inline-flex; align-items: center; gap: 5px; }
.vignette .row .i { width: 15px; height: 15px; }
.license-controls { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.license-controls details { margin: 0; }
.license-controls summary, .panel details > summary { cursor: pointer; width: fit-content; }
.license-edit { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-1); }
.license-edit .actions { margin-bottom: 12px; }
.add-days { gap: 6px; align-items: center; flex-wrap: nowrap; }
.add-days .field { min-width: 0; flex: none; }
.add-days input { width: 86px; min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
.new-account summary { font-weight: 600; }
.new-account form { margin-top: 16px; }
.panel details > form, .panel details > .offer-form { margin-top: 14px; }
.setup-steps { margin: 0 0 14px; padding-left: 20px; color: #c4c8d4; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.rows li.muted-row { opacity: .6; }
.rows li > div:last-child:empty { display: none; }
.rows li > div:not(:empty) { flex-basis: 100%; }
table.grid .key-box { margin: 0; min-width: 260px; }
table.grid .key-box code { max-width: 300px; }
@media (max-width: 900px) { .plans.three { grid-template-columns: minmax(0, 1fr); } }

/* ── usage: one long chat vs one task ──────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.ctx { margin: 0; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-1); display: flex; flex-direction: column; gap: 14px; }
.ctx-task { border-color: rgb(195 202 255 / .25); background: radial-gradient(90% 120% at 100% 0, rgb(52 70 240 / .22), transparent 60%), var(--ink-1); }
.ctx figcaption { display: flex; flex-direction: column; gap: 4px; }
.ctx figcaption b { font: 400 24px/1.15 var(--display); letter-spacing: -.035em; }
.ctx figcaption span { color: var(--muted); font-size: 14px; }
.ctx-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #c4c8d4; }
.ctx-lines li { padding: 8px 10px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-lines b { color: var(--text); font-weight: 600; margin-right: 6px; }
.ctx-long .ctx-lines { position: relative; }
.ctx-long .ctx-lines li.more { background: none; border-style: dashed; color: var(--dim); text-align: center; }
.ctx-desc { margin: 0; color: #c4c8d4; font-size: 14px; }
.ctx .bm-card .i { width: 13px; height: 13px; }
.meter { height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; margin-top: auto; }
.meter .fill { display: block; height: 100%; border-radius: inherit; }
.meter .fill.long { width: 100%; background: linear-gradient(90deg, var(--lamp-busy), var(--lamp-error)); }
.meter .fill.short { width: 14%; background: var(--lamp-idle); }
.meter-label { margin: -6px 0 0; color: var(--dim); font-size: 13px; }
.caption { margin: 14px 0 46px; color: var(--dim); font-size: 13px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.points h3 { margin: 0 0 8px; font: 400 22px/1.2 var(--display); letter-spacing: -.03em; }
.points p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .compare, .points { grid-template-columns: minmax(0, 1fr); } }

/* ── downloads ─────────────────────────────────────────────────────────── */
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; }
.downloads .btn { min-height: 50px; }
.downloads .btn .soft { font-size: 12.5px; color: inherit; opacity: .7; }
.auth-card h2.step { margin: 22px 0 10px; font: 600 17px/1.3 var(--body); }
.auth-card .downloads { flex-direction: column; }
.auth-card .downloads .btn { justify-content: flex-start; }

/* ── guide ─────────────────────────────────────────────────────────────── */
.guide { max-width: 920px; padding: 72px 0 40px; }
.guide-head h1 { margin: 0 0 18px; font: 400 clamp(44px, 6vw, 80px)/1 var(--display); letter-spacing: -.05em; }
.guide-head .intro { margin: 0 0 36px; color: var(--muted); font-size: 18px; max-width: 680px; }
.shot { margin: 22px 0 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8); }
.shot figcaption { margin-top: 10px; color: var(--dim); font-size: 14px; }
.steps-guide { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: gstep; display: flex; flex-direction: column; gap: 64px; }
.steps-guide > li { counter-increment: gstep; position: relative; padding-left: 62px; }
.steps-guide > li::before { content: counter(gstep); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--lavender); font: 500 17px/1 var(--display); }
.steps-guide h2 { margin: 6px 0 12px; font: 400 32px/1.1 var(--display); letter-spacing: -.04em; }
.steps-guide p, .steps-guide li li { color: #c4c8d4; }
.steps-guide p { margin: 0 0 12px; }
.steps-guide ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps-guide code, .guide-end code { font: 13.5px var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--ink-2); border: 1px solid var(--line); color: #d7dafc; }
.steps-guide b { color: var(--text); font-weight: 600; }
.guide-end { margin: 80px 0 40px; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-1); }
.guide-end h2 { margin: 0 0 8px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.guide-end p { margin: 0 0 20px; color: var(--muted); }
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 620px) { .steps-guide > li { padding-left: 0; } .steps-guide > li::before { position: static; margin-bottom: 12px; } .guide { padding-top: 40px; } }

/* ── privacy and terms ─────────────────────────────────────────────────── */
.legal section { margin: 0 0 40px; max-width: 760px; }
.legal h2 { margin: 0 0 12px; font: 600 24px/1.25 var(--display); letter-spacing: -.02em; }
.legal h3 { margin: 22px 0 8px; font: 600 17px/1.3 var(--display); }
.legal p, .legal li { color: #c4c8d4; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ── install steps after a download ────────────────────────────────────── */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; padding: 24px 26px 22px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-1); color: var(--text); box-shadow: 0 40px 100px rgb(0 0 0 / .55); }
.modal::backdrop { background: rgb(4 6 10 / .66); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal-head h2 { flex: 1; margin: 0; font: 600 24px/1.2 var(--display); letter-spacing: -.03em; }
.modal .lede { margin: 10px 0 16px; }
.install-steps { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; color: #c4c8d4; line-height: 1.55; }
.install-steps b { color: var(--text); }
.cmd { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px var(--mono); color: #d7dafc; }
.modal .spacer { flex: 1; }
.modal .actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }

/* ── docs (taskwire.si/docs, built by scripts/build-docs.mjs) ───────────── */
.docs-body { background: var(--ink-0); }
.docs { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.docs-bar { display: none; }
.docs-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 28px;
  border-right: 1px solid var(--line); background: #18191c; display: flex; flex-direction: column; gap: 14px;
}
.docs-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; }
.docs-brand .brand { font-size: 17px; gap: 8px; }
.docs-brand .brand-mark { width: 22px; height: 22px; }
.docs-word { color: var(--dim); text-decoration: none; font-size: 15px; }
.docs-search {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgb(243 243 241 / .03); color: var(--muted); font-size: 14px;
}
.docs-search:hover { border-color: var(--muted); color: var(--text); }
.docs-search span { flex: 1; text-align: left; }
.docs-search .i, .docs-side nav .i { width: 16px; height: 16px; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 5px; font: 500 11px/1 var(--body); color: var(--dim); }
.docs-side nav h2 { margin: 18px 8px 6px; font: 500 13.5px/1.3 var(--body); color: var(--text); }
.docs-side nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.docs-side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.3; }
.docs-side nav a:hover { color: var(--text); background: rgb(243 243 241 / .04); }
.docs-side nav a[aria-current="page"] { color: var(--lavender); background: rgb(195 202 255 / .1); }
.docs-top { padding-bottom: 6px !important; border-bottom: 1px solid var(--line); }

.docs-main { display: grid; grid-template-columns: minmax(0, 820px) 220px; gap: 48px; padding: 56px clamp(24px, 4vw, 56px) 96px; justify-content: center; }
.docs-article h1 { margin: 0 0 14px; font: 500 clamp(32px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -.035em; }
.docs-lede { margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.docs-actions { display: flex; gap: 8px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.docs-actions .btn { border-radius: 8px; }
.docs-actions .btn .i { width: 15px; height: 15px; }
[data-done] span::after { content: " ✓"; color: var(--lamp-idle); }

.prose { font-size: 16px; line-height: 1.75; color: #dcdcd8; }
.prose > * { margin: 0 0 18px; }
.prose h2 { margin: 44px 0 14px; font: 500 24px/1.25 var(--display); letter-spacing: -.025em; color: var(--text); scroll-margin-top: 24px; position: relative; }
.prose h3 { margin: 30px 0 10px; font: 500 18px/1.3 var(--display); color: var(--text); scroll-margin-top: 24px; position: relative; }
.prose .anchor { position: absolute; left: -22px; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { color: var(--lavender); text-underline-offset: 3px; text-decoration-color: rgb(195 202 255 / .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--dim); }
.prose code { font: 13.5px var(--mono); padding: 2px 6px; border-radius: 5px; background: rgb(243 243 241 / .06); border: 1px solid var(--line); color: #e4e6ff; }
.prose .code { position: relative; }
.prose pre { margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line-2); background: #101113; font: 13px/1.7 var(--mono); color: #d6d7d4; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.copy-code { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line-2); background: #18191c; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.code:hover .copy-code, .copy-code:focus-visible { opacity: 1; }
.copy-code[data-done] { color: var(--lamp-idle); opacity: 1; }
.copy-code .i { width: 15px; height: 15px; }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th { text-align: left; font-weight: 500; color: var(--text); background: rgb(243 243 241 / .03); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.prose .note { padding: 14px 18px; border-radius: 12px; border: 1px solid rgb(195 202 255 / .22); background: rgb(52 70 240 / .1); }
.prose .note p { margin: 0; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.docs-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-size: 15.5px; transition: border-color .2s; }
.docs-pager a:hover { border-color: rgb(195 202 255 / .45); }
.docs-pager a span { color: var(--dim); font-size: 13px; }
.docs-pager .next { text-align: right; grid-column: 2; }

.docs-toc { position: sticky; top: 56px; align-self: start; font-size: 13.5px; }
.docs-toc h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 13.5px/1 var(--body); color: var(--text); }
.docs-toc h2 .i { width: 15px; height: 15px; color: var(--dim); }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.docs-toc a { color: var(--muted); text-decoration: none; }
.docs-toc a:hover, .docs-toc a[aria-current] { color: var(--lavender); }

.docs-find { width: min(640px, calc(100% - 32px)); max-height: min(560px, calc(100% - 96px)); margin-top: 12vh; padding: 0; border-radius: 16px; border: 1px solid var(--line-2); background: #1a1b1e; color: var(--text); box-shadow: 0 40px 120px rgb(0 0 0 / .6), 0 30px 100px -40px rgb(52 70 240 / .45); overflow: hidden; }
.docs-find[open] { display: flex; flex-direction: column; }
.docs-find::backdrop { background: rgb(8 9 11 / .6); backdrop-filter: blur(2px); }
.find-box { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.find-box .i { width: 18px; height: 18px; color: var(--dim); }
.find-box input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; outline: none; font-size: 16px; }
.find-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.find-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.find-results li[aria-selected] a, .find-results a:hover { background: rgb(195 202 255 / .1); }
.find-results b { font-weight: 500; font-size: 15px; }
.find-results span { margin-left: 8px; color: var(--dim); font-size: 12.5px; }
.find-results p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.find-results mark { background: none; color: var(--lavender); }
.find-none { padding: 18px 12px; color: var(--dim); }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.icon-btn .i { width: 18px; height: 18px; }

@media (max-width: 1180px) {
  .docs-main { grid-template-columns: minmax(0, 820px); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgb(24 25 28 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .docs-bar .brand { flex: 1; font-size: 16px; gap: 8px; }
  .docs-bar .brand-mark { width: 22px; height: 22px; }
  .docs-side { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 30px 0 80px rgb(0 0 0 / .5); }
  [data-menu-open] .docs-side { transform: none; }
  .docs-main { padding: 32px 16px 72px; }
  .prose .anchor { display: none; }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager .next { grid-column: 1; }
}

/* ── the app, full screen (landing.js) ─────────────────────────────────── */
.tour-view { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.tour-view[open] { display: grid; place-items: center; }
.tour-view::backdrop { background: rgb(10 11 13 / .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tour-view figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1500px, 92vw); }
.tour-view img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 14px; border: 1px solid rgb(243 243 241 / .12); box-shadow: 0 40px 120px -30px rgb(52 70 240 / .5); }
.tour-view figcaption { text-align: center; color: var(--muted); font-size: 15px; max-width: 640px; }
.tour-view figcaption b { color: var(--text); font-weight: 500; margin-right: 8px; }
.tour-prev, .tour-next { position: fixed; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 1px solid var(--line-2); border-radius: 50%; background: rgb(28 29 32 / .8); color: var(--text); cursor: pointer; }
.tour-prev { left: 18px; transform: scaleX(-1); }
.tour-next { right: 18px; }
.tour-prev:hover, .tour-next:hover { background: var(--text); color: var(--mint-ink); }
.tour-hint { position: fixed; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: var(--dim); font-size: 13px; }
@media (max-width: 620px) {
  .slide-tabs { margin-top: 40px; }
  .slide-tabs button { padding: 6px 10px; font-size: 13px; }
  .tour-prev, .tour-next { top: auto; bottom: 48px; margin: 0; }
}
