/*! Server Workshop · serverworkshop.dev · © 2026 Server Workshop. All rights reserved. Build SW-4A994390 */
:root { --sw-sig: "SW-4A994390"; }
/* ===== vendor/lenis.css ===== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* ===== style.css ===== */
/*! Server Workshop · serverworkshop.dev · © 2026 Server Workshop. All rights reserved. Build SW-4A994390 */
:root { --sw-sig: "SW-4A994390"; }
/* =========================================================
   Server Workshop – dark, bold, slash-command energy
   Tokens first, then base, layout, sections, pages.
   ========================================================= */

:root {
  --bg: #08090a;
  --bg-raised: #0d0e10;
  --surface: #111214;
  --surface-2: #17181b;
  --line: #26282d;
  --line-soft: #1b1d21;
  --text: #f4f4f9;
  --muted: #a8abb4;          /* 8:1 on --bg */
  --lime: #c6ff3d;
  --lime-deep: #a8e01f;
  --on-lime: #0a0f00;
      --blurple: #5865f2;
  --ring: #ffffff;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 128px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: #34363b var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--lime);
  accent-color: var(--lime);
}

::selection { background: var(--lime); color: var(--on-lime); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Keep the hidden attribute working even when a class sets display. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--lime); color: var(--on-lime);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease-out), transform 0.15s var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--lime); color: var(--on-lime);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
}
.btn-primary:hover { background: #d6ff6b; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.8); }

.btn-secondary {
  background: transparent; color: var(--text); border-color: #464951;
}
.btn-secondary:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #464951; }

.nav-cta { gap: 0; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(8, 9, 10, 0.92); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand-logo {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--lime); color: var(--on-lime);
  font: 800 1.35rem/1 var(--font-display);
  transform: rotate(-6deg);
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-logo { transform: rotate(4deg) scale(1.05); }
.brand-name { font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.01em; }

.header-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: none; flex-direction: column; gap: 2px;
  padding: 12px var(--gutter) 20px;
  background: #08090a;
  border-bottom: 1px solid var(--line-soft);
}
.header-nav.is-open { display: flex; }
.header-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-weight: 600; border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
}
.header-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.07); border-color: #464951; }
.nav-toggle svg path { transition: transform 0.3s var(--ease-out); transform-origin: center; transform-box: fill-box; }
.nav-toggle[aria-expanded="true"] .bar-top { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; background: none; border: 0; margin-right: 12px;
  }
  .header-nav a { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 0.9375rem; }
}

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-title {
  font: 800 clamp(2rem, 5.2vw, 3.5rem)/1.04 var(--font-display);
  letter-spacing: -0.03em; text-wrap: balance;
}
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 56ch; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(44px, 8vw, 96px) 0 clamp(80px, 10vw, 128px);
  overflow: clip;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(198, 255, 61, 0.10), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(198, 255, 61, 0.07), transparent 70%),
    var(--bg);
}
.hero-slash {
  position: absolute; z-index: -1; right: -2vw; top: -4vw;
  font: 800 clamp(280px, 48vw, 720px)/0.8 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
  pointer-events: none; user-select: none;
  will-change: transform;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: clamp(56px, 9vw, 72px); align-items: center;
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

.hero-title {
  font: 800 clamp(2.75rem, 10.5vw, 6rem)/0.98 var(--font-display);
  letter-spacing: -0.03em;
}
.hero-line { display: block; overflow: clip; padding: 0.04em 0.06em 0.12em 0; margin-bottom: -0.06em; }
.hero-line-inner { display: inline-block; }
.slash { color: var(--lime); margin-right: 0.04em; }
.cursor {
  display: inline-block; width: 0.1em; height: 0.8em; margin-left: 0.12em;
  background: var(--lime); border-radius: 2px; vertical-align: -0.02em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-h1 {
  margin-top: 22px; max-width: 18ch;
  font: 800 clamp(1.4rem, 3vw, 2.15rem)/1.15 var(--font-display);
  letter-spacing: -0.03em; text-wrap: balance;
}
.hero-sub { margin-top: 28px; max-width: 52ch; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.hero-h1 + .hero-sub { margin-top: 16px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--lime); flex: none; }

/* Discord mockup */
.hero-visual { position: relative; padding: 18px 0 30px; max-width: 580px; width: 100%; justify-self: center; }
.discord-window {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  background: #313338; border: 1px solid #3f4147; border-radius: var(--radius);
  box-shadow: 0 24px 36px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden; height: 520px;
}
.d-sidebar { display: none; background: #1e1f22; padding: 14px 0; flex-direction: column; align-items: center; gap: 10px; }
.d-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--blurple); display: grid; place-items: center; }
.d-server-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #3f4147, #2b2d31); }
/* On phones the channel list becomes a scrolling strip along the top. */
.d-channels {
  display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; background: #2b2d31;
  border-bottom: 1px solid #26272b; scrollbar-width: thin; scrollbar-color: #4a4c55 transparent;
}
.d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.d-channel-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #26272b; }
.d-channel-name { font-weight: 700; color: #f2f3f5; font-size: 0.9375rem; }
.demo-badge {
  background: var(--lime); color: var(--on-lime); font: 700 0.75rem/1 var(--font-body);
  padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap;
}
.d-logs { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.d-log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0; scrollbar-width: thin; scrollbar-color: #4a4c55 transparent;
}
.d-log[hidden] { display: none !important; }
.d-hint { padding: 16px 18px; color: #a3a6aa; font-size: 0.9375rem; }
.d-msg { display: flex; gap: 14px; padding: 12px 18px; }
.d-msg-new { animation: msg-in 0.45s var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } }
.d-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--blurple); display: grid; place-items: center; }
.d-msg-body { min-width: 0; }
.d-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #f2f3f5; }
.d-msg-head strong { font-weight: 600; }
.d-time { color: #a3a6aa; font-size: 0.8125rem; }
.d-bot-tag { background: var(--blurple); color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.02em; }
.d-embed {
  margin-top: 10px; display: grid; gap: 10px; justify-items: start;
  padding: 14px 16px; background: #2b2d31; border: 1px solid #3a3c42; border-radius: 10px;
  color: #dbdee1; font-size: 0.9375rem;
}
.d-embed-title { color: #fff; font-size: 1.0625rem; }
.d-member-chip { background: rgba(88, 101, 242, 0.25); color: #c9cdfb; border: 1px solid rgba(88, 101, 242, 0.5); padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.d-rules ol { list-style: decimal; padding-left: 20px; margin-top: 4px; color: #b5bac1; }

.mod-toast, .rank-card {
  position: absolute; z-index: 2;
  background: rgba(18, 18, 27, 0.96); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.8);
}
.mod-toast { top: -4px; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 0.875rem; }
.mod-toast div { display: grid; line-height: 1.35; }
.mod-toast span:not(.mod-check) { color: var(--muted); font-size: 0.8125rem; }
.mod-check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.rank-card { left: 0; bottom: 0; padding: 14px 18px; min-width: 190px; display: grid; gap: 2px; }
.rank-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.875rem; }
.rank-label { color: var(--muted); font-size: 0.8125rem; margin-top: 6px; }
.rank-level { font: 800 1.375rem/1.2 var(--font-display); }
.rank-bar { margin-top: 8px; height: 8px; border-radius: 99px; background: #26263a; overflow: hidden; }
.rank-bar span { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--lime); transform-origin: left; }

@media (min-width: 640px) {
  .discord-window { grid-template-columns: 64px 140px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 520px; }
  .d-sidebar { display: flex; }
  .d-channels { display: grid; align-content: start; gap: 2px; padding: 14px 8px; grid-template-columns: minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; border-bottom: 0; }
}
.d-channel {
  flex: none; display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 6px;
  background: transparent; color: #a3a6aa; font: 500 0.9375rem/1.2 var(--font-body); white-space: nowrap; text-align: left; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
@media (min-width: 640px) { .d-channel { min-height: 36px; padding: 6px 10px; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
.d-channel:hover { background: #35373c; color: #dbdee1; }
.d-channel[aria-current="true"] { background: #404249; color: #fff; }
.d-channel:focus-visible, .d-chip:focus-visible, .d-btn:focus-visible, .d-send:focus-visible { outline-offset: 2px; }
.d-channel-new { animation: chan-in 0.6s var(--ease-out); }
@keyframes chan-in {
  0% { opacity: 0; transform: translateX(-14px) scale(0.96); background: rgba(198, 255, 61, 0.35); }
  60% { background: rgba(198, 255, 61, 0.22); }
}
.d-channel.is-leaving { opacity: 0; transform: translateX(-10px); transition: opacity 0.25s, transform 0.25s; }

.d-avatar-user { background: #3f4147; color: #fff; font-weight: 700; font-size: 1rem; }
.d-text { margin: 0; color: #dbdee1; overflow-wrap: anywhere; }
.d-msg:not(:has(.d-embed)) .d-text { margin-top: 4px; }
.d-btn {
  min-height: 36px; padding: 6px 18px; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 0.9375rem/1.2 var(--font-body); color: #fff;
  transition: background-color 0.15s, opacity 0.15s;
}
@media (max-width: 639px) { .d-btn { min-height: 44px; } }
.d-btn-blurple { background: var(--blurple); }
.d-btn-blurple:hover:not(:disabled) { background: #4752c4; }
.d-btn-green { background: #248046; }
.d-btn-green:hover:not(:disabled) { background: #1a6334; }
.d-btn-red { background: #b3302c; }
.d-btn-red:hover:not(:disabled) { background: #8f2522; }
.d-btn:disabled { opacity: 0.6; cursor: default; }
.d-ol, .d-ul { margin: 0; padding-left: 20px; color: #b5bac1; }
.d-ol { list-style: decimal; }
.d-ul { list-style: none; padding-left: 0; display: grid; gap: 4px; font-family: var(--font-mono); font-size: 0.8125rem; }
.d-facts { margin: 0; display: grid; gap: 4px; font-size: 0.9375rem; }
.d-facts div { display: flex; gap: 10px; }
.d-facts dt { color: #a3a6aa; min-width: 76px; }
.d-facts dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.d-xp { width: 100%; min-width: 160px; height: 10px; border-radius: 99px; background: #1e1f22; overflow: hidden; }
.d-xp span { display: block; height: 100%; width: var(--xp, 72%); border-radius: inherit; background: var(--lime); transform-origin: left; animation: xp-fill 1.1s 0.25s var(--ease-out) both; }
@keyframes xp-fill { from { transform: scaleX(0); } }

.d-typing {
  height: 24px; padding: 0 18px; display: flex; align-items: center; gap: 8px;
  color: #a3a6aa; font-size: 0.8125rem; opacity: 0; transition: opacity 0.15s;
}
.d-typing.is-on { opacity: 1; }
.d-dots { display: inline-flex; gap: 3px; }
.d-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a3a6aa; animation: dot 1s infinite ease-in-out; }
.d-dots i:nth-child(2) { animation-delay: 0.15s; }
.d-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.d-chips { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.d-chips::-webkit-scrollbar { display: none; }
.d-chip {
  flex: none; min-height: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: #1e1f22; color: #c9cdfb; border: 1px solid #3f4147;
  font: 600 0.8125rem/1 var(--font-mono);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
@media (min-width: 640px) { .d-chip { min-height: 32px; } }
.d-chip:hover { background: #2b2d31; border-color: #5865f2; }
.d-chip:active { transform: scale(0.96); }

.d-composer { display: flex; gap: 8px; align-items: center; margin: 0 14px 14px; padding: 4px 4px 4px 14px; background: #383a40; border-radius: 10px; border: 1px solid transparent; }
.d-composer:focus-within { border-color: #5865f2; outline: 3px solid var(--ring); outline-offset: 2px; }
.d-input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent;
  color: #f2f3f5; font: 400 1rem/1.3 var(--font-body); /* 16px: stops iOS zooming in on focus */
}
.d-input::placeholder { color: #a9adb3; opacity: 1; }
.d-send {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--blurple); color: #fff; transition: background-color 0.15s, transform 0.15s;
}
.d-send:hover { background: #4752c4; }
.d-send:active { transform: scale(0.94); }
/* The input lives inside .d-composer, so show its focus ring there instead of a second outline. */
.d-input:focus-visible { outline: 0; }

/* Decorative floating cards only fit when there is room beside the demo. */
@media (min-width: 640px) { .hero-visual { padding-top: 66px; } }
@media (max-width: 639px) { .mod-toast, .rank-card { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Services (bento) ---------- */
.services { background: var(--bg); }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.tile:hover { border-color: #3d3d57; transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.9); }
.tile h3 { font: 700 1.3125rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.tile p { color: var(--muted); text-wrap: pretty; }
.tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(198, 255, 61, 0.08); color: var(--lime); border: 1px solid rgba(198, 255, 61, 0.15);
  margin-bottom: 6px; flex: none;
}
/* In the bento, the icon sits quietly in the corner instead of stacking above the title. */
.tile > .tile-icon, .tile-copy > .tile-icon {
  position: absolute; top: 24px; right: 24px; width: 28px; height: 28px;
  background: none; border: 0; border-radius: 0; margin: 0; color: rgba(198, 255, 61, 0.85);
}
.tile > .tile-icon svg, .tile-copy > .tile-icon svg { width: 26px; height: 26px; }
.tile-wide > .tile-icon { position: static; width: 48px; height: 48px; background: rgba(198, 255, 61, 0.08); border: 1px solid rgba(198, 255, 61, 0.15); border-radius: 14px; color: var(--lime); }
.tile-wide > .tile-icon svg { width: 24px; height: 24px; }
.tile h3 { padding-right: 40px; }
.cmd-chip {
  margin-top: auto; padding: 6px 12px; border-radius: 8px;
  background: rgba(198, 255, 61, 0.08); color: var(--lime);
  border: 1px solid rgba(198, 255, 61, 0.22);
  font: 600 0.8125rem/1.3 var(--font-mono);
}
.tile > .cmd-chip { margin-top: 14px; }
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tile-copy .cmd-chip { margin-top: 14px; }

.tile-lg { gap: 28px; justify-content: space-between; }
.viz { width: 100%; border-radius: var(--radius-sm); background: #1e1f22; border: 1px solid #2c2d33; padding: 16px; }
.viz-embed { display: grid; gap: 8px; justify-items: start; color: #dbdee1; font-size: 0.9375rem; }
.viz-embed strong { color: #fff; font-size: 1rem; }
.viz-embed > span:not(.viz-btn) { color: #b5bac1; }
.viz-btn { background: var(--blurple); color: #fff; padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 0.875rem; margin-top: 4px; }
.viz-log { display: grid; gap: 10px; align-content: center; }
.viz-log code { font: 500 0.875rem/1.4 var(--font-mono); color: #dbdee1; overflow-wrap: anywhere; }
.log-cmd { color: #c9cdfb; }
.log-ok { color: var(--lime); }

.tile-wide { flex-direction: column; }
.tile-wide-copy { display: grid; gap: 6px; }
.tile-wide .cmd-chip { margin-top: 4px; }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-lg, .tile-wide { grid-column: span 2; }
  .tile-lg { flex-direction: row; align-items: stretch; }
  .tile-lg .tile-copy { flex: 1; }
  .tile-lg .viz { flex: 1; align-self: center; }
  .tile-wide { flex-direction: row; align-items: center; gap: 20px; }
  .tile-wide .tile-icon { margin-bottom: 0; }
  .tile-wide-copy { flex: 1; }
  .tile-wide .cmd-chip { margin: 0; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile-lg { grid-column: span 3; flex-direction: column; }
  .tile-lg .viz { align-self: stretch; }
  .tile-wide { grid-column: span 6; }
}

/* ---------- How it works ---------- */
.how { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; position: relative; counter-reset: s; }
.step { position: relative; padding-left: 72px; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--lime); color: var(--on-lime);
  font: 800 1.5rem/1 var(--font-display);
}
.step h3 { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -0.01em; padding-top: 4px; }
.step p { margin-top: 8px; color: var(--muted); max-width: 40ch; }
.step-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
.steps-line { display: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 76px 0 0; }
  .steps-line {
    display: block; position: absolute; left: 26px; right: 26px; top: 25px; height: 2px;
    background: var(--line); transform-origin: left; z-index: 0;
  }
  .step-num { z-index: 1; }
}
.oasis-note {
  margin-top: clamp(48px, 7vw, 72px); display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(198, 255, 61, 0.06), rgba(198, 255, 61, 0.01));
  border: 1px solid rgba(198, 255, 61, 0.17);
}
.oasis-note .tile-icon { margin: 0; }
.oasis-note p { color: #d3d2e6; max-width: 70ch; }
.oasis-note strong { color: var(--text); }
@media (max-width: 520px) { .oasis-note { flex-direction: column; gap: 14px; padding: 22px; } }

/* ---------- Packages ---------- */
.package-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .package-grid { grid-template-columns: repeat(3, 1fr); } }
.package-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 32px 28px 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s var(--ease-out);
}
.package-card:hover { transform: translateY(-4px); border-color: #45455f; }
.package-card.featured {
  background: linear-gradient(180deg, #16171a, var(--surface) 60%);
  border-color: rgba(198, 255, 61, 0.6);
  box-shadow: 0 24px 36px -20px rgba(0, 0, 0, 0.9);
}
@media (min-width: 900px) { .package-card.featured { padding-top: 44px; padding-bottom: 36px; margin-block: -12px; } }
.package-name { font: 600 0.9375rem/1 var(--font-mono); color: var(--lime); letter-spacing: 0.02em; }
.package-card h3 { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 8px; }
.package-price { margin: 12px 0 8px; }
.package-price strong { font: 800 4rem/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.package-list { display: grid; gap: 12px; margin: 8px 0 20px; color: #d6d8de; }
.package-list li { position: relative; padding-left: 28px; }
.package-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.package-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.package-meta span {
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  font-size: 0.875rem; font-weight: 600; color: #d6d8de;
}
.package-actions { display: grid; gap: 10px; margin-top: 20px; }
/* Buy here is hidden until a link is set. When it is, Fiverr becomes the quieter button. */
.package-card:has([data-buy][hidden]) .btn-fiverr { background: var(--lime); color: var(--on-lime); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7); }
.package-card:not(.featured):has([data-buy][hidden]) .btn-fiverr { background: transparent; color: var(--text); border-color: #464951; box-shadow: none; }
.package-card:not(.featured):has([data-buy][hidden]) .btn-fiverr:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }

.addons {
  margin-top: clamp(40px, 6vw, 64px); padding: 24px 28px; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px dashed #33353a;
  display: grid; gap: 16px;
}
.addons-title { font: 700 1.125rem/1.2 var(--font-display); }
.addons-list { display: grid; gap: 10px; }
.addons-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); color: #d6d8de; }
.addons-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.addons-list strong { color: var(--lime); font-family: var(--font-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 800px) {
  .addons { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .addons-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .addons-list li { flex-direction: column; border: 0; padding: 0 0 0 20px; border-left: 1px solid var(--line); gap: 4px; }
}

/* ---------- Examples ---------- */
.examples { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }
.example-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.example-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.example-card:hover { transform: translateY(-4px); border-color: #45455f; }
.example-shot { width: 100%; height: auto; max-height: 640px; object-fit: contain; object-position: top center; background: #15161a; display: block; }
.example-shot.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-weight: 600; font-size: 0.9375rem;
  background:
    radial-gradient(80% 90% at 20% 0%, rgba(198, 255, 61, 0.12), transparent 70%),
    #151520;
  border-bottom: 1px solid var(--line-soft);
}
.example-card figcaption { display: grid; gap: 8px; padding: 22px 24px 26px; }
.example-card figcaption strong { font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.example-card figcaption > span:not(.example-tags) { color: var(--muted); }
.example-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.example-tags span { padding: 4px 12px; border-radius: 999px; background: rgba(198, 255, 61, 0.08); color: #e1ffa0; font-size: 0.8125rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; gap: 40px; }
.faq-inner .section-head { margin-bottom: 0; }
@media (min-width: 960px) {
  .faq-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq-inner .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-raised); transition: border-color 0.2s, background-color 0.2s; }
.faq-list details[open] { border-color: #3d3d57; background: var(--surface); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 22px; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.35 var(--font-body); border-radius: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--lime); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Final CTA ---------- */
.final-cta { padding-top: 0; padding-bottom: clamp(48px, 7vw, 80px); }
.cta-panel {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); border-radius: 32px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(198, 255, 61, 0.24), transparent 65%),
    linear-gradient(135deg, #15170f, #0c0d0e);
  border: 1px solid rgba(198, 255, 61, 0.21);
}
.cta-panel::after {
  content: "/"; position: absolute; z-index: -1; right: 4%; bottom: -30%;
  font: 800 clamp(200px, 30vw, 420px)/1 var(--font-display); color: rgba(198, 255, 61, 0.08);
}
.cta-panel h2 { font: 800 clamp(2rem, 5vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.cta-panel p { margin-top: 16px; color: #cfcde8; font-size: 1.125rem; max-width: 48ch; }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
}
.footer-inner .brand { margin-right: 0; }
.footer-tag { color: var(--muted); margin-right: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 8px; }
.footer-nav a:hover { color: var(--text); }

/* ---------- Auth pages (login + account) ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-wrap {
  flex: 1; display: grid; place-items: center; padding: 48px var(--gutter) 80px; position: relative; isolation: isolate;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(198, 255, 61, 0.10), transparent 70%),
    radial-gradient(35% 40% at 85% 90%, rgba(198, 255, 61, 0.07), transparent 70%);
}
.login-card {
  width: 100%; max-width: 440px; padding: clamp(28px, 6vw, 40px);
  background: rgba(18, 18, 27, 0.92); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 28px 40px -24px rgba(0, 0, 0, 0.85);
  display: grid; gap: 14px;
}
.login-title { font: 800 clamp(2.25rem, 8vw, 3rem)/1 var(--font-display); letter-spacing: -0.035em; }
.login-title .slash { color: var(--lime); }
.login-sub { color: var(--muted); margin-bottom: 8px; }

.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 20px; border-radius: 14px; border: 1px solid transparent;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; width: 100%;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease-out), transform 0.15s var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
.login-btn:active { transform: scale(0.97); }
.login-discord { background: #4752c4; color: #fff; }
.login-discord:hover { background: #5865f2; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9); }
.login-google { background: #fff; color: #1f1f2b; }
.login-google:hover { background: #eef0f6; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9); }
.login-logout { background: transparent; color: var(--text); border-color: #464951; }
.login-logout:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }

.login-note {
  padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 0.9375rem;
  background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.45); color: #fde68a;
}
.login-fine { color: var(--muted); font-size: 0.875rem; text-align: center; margin-top: 4px; }
.login-back { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; padding: 0 12px; border-radius: 8px; }
.login-back:hover { color: var(--text); }

.account-user { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line-soft); }
.account-avatar-wrap { position: relative; flex: none; width: 56px; height: 56px; display: grid; }
.account-avatar-wrap > * { grid-area: 1 / 1; width: 56px; height: 56px; border-radius: 50%; }
.account-avatar-fallback { display: grid; place-items: center; background: rgba(198, 255, 61, 0.11); color: var(--lime); border: 1px solid rgba(198, 255, 61, 0.18); }
.account-avatar { object-fit: cover; background: var(--surface-2); }
.account-signed { color: var(--muted); font-size: 0.9375rem; min-width: 0; overflow-wrap: anywhere; }
.account-signed #account-name { display: block; color: var(--text); font: 700 1.1875rem/1.3 var(--font-display); }
.account-orders {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px;
  border: 1px dashed #33353a; color: var(--muted);
}
.account-orders svg { flex: none; color: var(--lime); }

/* ---------- Click feedback + cursor light ---------- */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.22; transform: scale(0);
  animation: ripple 0.6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.hero-glow {
  position: absolute; z-index: -1; left: 0; top: 0; width: 560px; height: 560px;
  border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.16), rgba(198, 255, 61, 0.05) 55%, transparent 75%);
}
.hero-visual { will-change: transform; }

/* ---------- Motion ---------- */
/* Initial states only apply when JS + motion are available (class set in <head>); motion.js removes it on failure. */
.js [data-window], .js [data-pop] { opacity: 0; }
/* The hero text enters with plain CSS so it never waits for JavaScript (keeps first paint and LCP fast). */
@media (prefers-reduced-motion: no-preference) {
  .hero-line-inner { animation: hero-line 1.1s var(--ease-out) 0.08s both; }
  .hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.2s; }
  .hero-h1[data-hero] { animation: hero-rise 0.9s var(--ease-out) 0.3s both; }
  .hero-sub[data-hero] { animation: hero-rise 0.9s var(--ease-out) 0.35s both; }
  .hero-actions[data-hero] { animation: hero-rise 0.9s var(--ease-out) 0.45s both; }
  .hero-facts[data-hero] { animation: hero-rise 0.9s var(--ease-out) 0.55s both; }
}
@keyframes hero-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .tile:hover, .package-card:hover, .example-card:hover { transform: none; }
  .btn:active, .login-btn:active { transform: none; }
  .ripple, .hero-glow { display: none; }
}

/* Simple header on log in / account: only a Packages link, always visible */
.header-nav-simple { display: none; }
@media (min-width: 480px) {
  .header-nav-simple { position: static; display: flex; flex-direction: row; padding: 0; background: none; border: 0; margin-right: 8px; }
}

/* ---------- Messages (toasts, errors) ---------- */
.login-note.is-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }
.login-btn:disabled { cursor: progress; opacity: 0.65; }
.login-btn.is-loading { opacity: 1; }
.login-btn.is-loading::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region {
  position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(92vw, 440px);
  display: grid; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 16px; border-radius: 16px;
  background: #17181b; border: 1px solid #33353a; color: var(--text);
  box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.9);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.4;
  animation: toast-in 0.4s var(--ease-out);
}
.toast > span { flex: 1; min-width: 0; }
.toast svg { flex: none; }
.toast-success svg { color: var(--lime); }
.toast-error { border-color: rgba(248, 113, 113, 0.6); }
.toast-error svg { color: #fca5a5; }
.toast-info svg { color: var(--lime); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
.toast-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: var(--muted); border: 0; border-radius: 12px; cursor: pointer;
}
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Footer extras ---------- */
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 32px; color: var(--muted); font-size: 0.875rem; }
.site-footer-compact .footer-inner { padding-block: 24px; justify-content: space-between; }
.footer-copy { color: var(--muted); font-size: 0.875rem; }

/* ---------- 404 ---------- */
.notfound-card { max-width: 560px; text-align: left; }
.notfound-code {
  font: 800 clamp(5rem, 26vw, 9rem)/0.9 var(--font-display); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(198, 255, 61, 0.5);
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .login-btn.is-loading::after { animation-duration: 2s; }
}

/* ---------- Bento chips that open the demo ---------- */
button.cmd-chip { font-family: var(--font-mono); cursor: pointer; text-align: left; transition: background-color 0.2s, border-color 0.2s, transform 0.15s; position: relative; }
button.cmd-chip::after { content: "Try it"; margin-left: 10px; padding: 2px 8px; border-radius: 99px; background: var(--lime); color: var(--on-lime); font: 700 0.6875rem/1.4 var(--font-body); }
button.cmd-chip:hover { background: rgba(198, 255, 61, 0.16); border-color: rgba(198, 255, 61, 0.5); }
button.cmd-chip:active { transform: scale(0.96); }
.tile button.cmd-chip, .tile-copy button.cmd-chip { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Add-ons link ---------- */
.addons-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--lime); font-weight: 700; text-decoration: none; border-radius: 8px; }
.addons-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 800px) { .addons { grid-template-columns: auto 1fr auto; } }

/* ---------- Package builder ---------- */
.builder { background: var(--bg-raised); border-block: 1px solid var(--line-soft); }
.builder-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .builder-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; } }

.builder-controls { display: grid; gap: 28px; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.b-field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 12px; }
.b-field legend { padding: 0; margin-bottom: 12px; font: 700 1.0625rem/1.3 var(--font-display); letter-spacing: -0.01em; }

.b-segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-soft); }
.b-seg { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; min-height: 64px; border-radius: 13px; cursor: pointer; text-align: center; border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.b-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.b-seg-name { font-weight: 700; }
.b-seg-price { font: 800 1.25rem/1.1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.b-seg:hover { background: rgba(255, 255, 255, 0.05); }
.b-seg:has(input:checked) { background: var(--lime); color: var(--on-lime); }
.b-seg:has(input:checked) .b-seg-price { color: var(--on-lime); }
.b-seg:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }

.b-toggle { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-soft); cursor: pointer; transition: border-color 0.2s; }
.b-toggle:hover { border-color: #3d3d57; }
.b-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.b-toggle:has(input:disabled) { cursor: default; }
.b-toggle:has(input:disabled) input { cursor: default; }
.b-toggle:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.b-switch { position: relative; width: 48px; height: 28px; border-radius: 99px; background: #33353a; transition: background-color 0.2s; flex: none; }
.b-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease-out); }
.b-toggle input:checked + .b-switch { background: var(--lime); }
.b-toggle input:checked + .b-switch::after { transform: translateX(20px); background: var(--on-lime); }
.b-toggle:has(input:disabled) .b-switch { opacity: 0.7; }
.b-toggle-text { display: grid; gap: 2px; min-width: 0; }
.b-toggle-text span { color: var(--muted); font-size: 0.9375rem; }
.b-toggle-price { font: 700 0.9375rem/1 var(--font-mono); color: var(--lime); white-space: nowrap; }

.b-stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-soft); min-height: 64px; }
.b-stepper { display: inline-flex; align-items: center; gap: 6px; }
.b-stepper button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.15s; }
.b-stepper button:hover:not(:disabled) { border-color: var(--lime); background: rgba(198, 255, 61, 0.1); }
.b-stepper button:active:not(:disabled) { transform: scale(0.94); }
.b-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.b-stepper input { width: 64px; height: 44px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 800 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.b-stepper input::-webkit-outer-spin-button, .b-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b-stepper input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.builder-summary { padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: linear-gradient(180deg, #16171a, var(--surface) 70%); border: 1px solid rgba(198, 255, 61, 0.45); display: grid; gap: 16px; }
@media (min-width: 960px) { .builder-summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.b-summary-label { font: 600 0.9375rem/1 var(--font-mono); color: var(--lime); }
.b-total { margin: 0; }
.b-total span { display: block; font: 800 clamp(3.5rem, 12vw, 5rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.b-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b-facts div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.b-facts dt { color: var(--muted); font-size: 0.875rem; }
.b-facts dd { margin: 2px 0 0; font: 700 1.125rem/1.3 var(--font-display); }
.b-lines { display: grid; gap: 10px; }
.b-lines li { display: flex; justify-content: space-between; gap: 16px; color: #d6d8de; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.b-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.b-lines strong { font-family: var(--font-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.b-actions { display: grid; gap: 10px; }
.b-note { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 560px) and (max-width: 959px) { .b-actions { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .d-msg-new, .d-channel-new, .d-xp span, .d-dots i { animation: none; }
  .d-channel.is-leaving { transition: none; }
}


/* =========================================================
   v3 layer: self-hosted fonts, Linear/Raycast-style surfaces,
   Lenis, card light, 3D logo stage. See /DESIGN.md.
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("vendor/fonts/onest-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --hair: rgba(255, 255, 255, 0.075);
  --hair-strong: rgba(255, 255, 255, 0.14);
  --lime-glow: rgba(198, 255, 61, 0.2);
  --section-y: clamp(80px, 10vw, 128px);
}

/* Native smooth anchors only when motion is welcome and Lenis is not driving. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }

/* ---------- Type: tighter tracking, calmer weights ---------- */
body { letter-spacing: -0.006em; }
.hero-title { letter-spacing: -0.045em; line-height: 0.96; }
.section-title { font-weight: 700; font-size: clamp(2.125rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.02; }
.section-sub { color: var(--muted); letter-spacing: -0.01em; }
.tile h3, .step h3, .package-card h3 { letter-spacing: -0.025em; }

/* ---------- Section rhythm: hairline between sections ---------- */
.section + .section::before, .section + .section-head::before { content: none; }
.section { border-top: 0; }
.section + .section:not(.builder):not(.examples)::after { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; max-width: calc(1200px - 2 * var(--gutter)); margin-inline: auto; background: linear-gradient(90deg, transparent, var(--hair-strong), transparent); }

/* ---------- Surfaces: neutral ladder + hairline borders ---------- */
.tile, .package-card, .example-card, .addons, .oasis-note, .builder-controls, .faq-item, .login-card {
  border-color: var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.tile, .example-card { background: var(--surface); }
.package-card { background: var(--surface); }
.package-card.featured {
  background: linear-gradient(180deg, #15170f, var(--surface) 55%);
  border-color: rgba(198, 255, 61, 0.55);
  box-shadow: inset 0 1px 0 rgba(198, 255, 61, 0.2), 0 24px 40px -24px rgba(0, 0, 0, 0.95);
}
.builder-summary { background: linear-gradient(180deg, #15170f, var(--surface) 70%); border-color: rgba(198, 255, 61, 0.4); }

/* ---------- Card light + 2px lift (mouse only; fx.js sets --mx / --my) ---------- */
[data-spot] { position: relative; isolation: isolate; --mx: 50%; --my: 0%; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.085), transparent 65%);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  [data-spot]:hover::before { opacity: 1; }
  .tile:hover, .package-card:hover, .example-card:hover { transform: translateY(-2px); border-color: rgba(198, 255, 61, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 32px -22px rgba(0, 0, 0, 0.95); }
  .package-card.featured:hover { border-color: rgba(198, 255, 61, 0.8); }
}

/* ---------- Header links: underline draws in ---------- */
.header-nav a:not(.btn) { position: relative; }
.header-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.header-nav a:not(.btn):hover::after, .header-nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
@media (min-width: 900px) { .header-nav a:not(.btn)::after { left: 12px; right: 12px; } }

/* ---------- Buttons: step up on hover ---------- */
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(0.96); } }

/* ---------- Keycaps (Raycast-style) ---------- */
kbd {
  display: inline-grid; place-items: center; min-width: 1.5em; padding: 1px 6px 2px; border-radius: 6px;
  font: 600 0.75rem/1.3 var(--font-mono); color: #dbdee1;
  background: linear-gradient(180deg, #2b2d31, #1e1f22); border: 1px solid #3f4147; border-bottom-width: 2px;
}
.d-main { container-type: inline-size; }
.d-kbdhint { display: none; margin-left: auto; align-items: center; gap: 6px; color: #949ba4; font-size: 0.8125rem; white-space: nowrap; }
@container (min-width: 330px) { .d-kbdhint { display: inline-flex; } }
@media (hover: none), (pointer: coarse) { .d-kbdhint { display: none !important; } }

/* ---------- Hero ---------- */
@media (min-width: 1100px) { .hero-visual { max-width: 620px; } }
.hero-facts { color: #b4b7c0; }

/* ---------- How it works: the rail (dealt moment) ---------- */
.steps.is-armed::before { content: ""; position: absolute; left: 26px; right: 26px; top: 25px; height: 2px; background: var(--hair-strong); border-radius: 2px; }
.steps-line { background: var(--lime); border-radius: 2px; }
.steps.is-armed .step-num { background: var(--surface-2); color: var(--muted); border: 1px solid var(--hair-strong); transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s, transform 0.5s var(--ease-out); }
.steps.is-armed .step-num.is-reached { background: var(--lime); color: var(--on-lime); border-color: var(--lime); transform: scale(1.06); }

/* ---------- Final CTA with the 3D logo ---------- */
.cta-panel {
  display: grid; gap: 32px; align-items: center;
  background: radial-gradient(60% 120% at 0% 0%, rgba(198, 255, 61, 0.14), transparent 62%), linear-gradient(135deg, #131510, #0b0c0d);
  border-color: rgba(198, 255, 61, 0.22);
}
.cta-panel h2 { letter-spacing: -0.04em; font-weight: 700; }
.cta-stage { display: none; position: relative; }
@media (min-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }
  .cta-panel::after { content: none; }
  .cta-stage { display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 340px; justify-self: center; }
}
.cta-logo { width: 58%; height: auto; filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.55)); transition: opacity 0.6s var(--ease-out); }
.cta-canvas { position: absolute; inset: -14%; width: 128%; height: 128%; display: block; opacity: 0; transition: opacity 0.8s var(--ease-out); pointer-events: none; }
.cta-stage.has-3d .cta-canvas { opacity: 1; }
.cta-stage.has-3d .cta-logo { opacity: 0; }

/* ---------- Reduced motion for the v3 additions ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-spot]::before { display: none; }
  .tile:hover, .package-card:hover, .example-card:hover, .btn:hover { transform: none; }
  .header-nav a:not(.btn)::after, .steps.is-armed .step-num, .cta-logo, .cta-canvas { transition: none; }
}
.hero-line-inner { white-space: nowrap; }

@media (max-width: 639px) { .footer-nav { margin-left: -10px; } }

/* ---------- v5: current page in the header, and a soft cross-fade between pages ---------- */
.header-nav a[aria-current="page"] { color: var(--text); }
.header-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
@media (min-width: 900px) { .header-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.05); } }
.brand[aria-current="page"] .brand-logo { transform: rotate(-6deg); }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: 0.22s ease-in both vt-out; }
  ::view-transition-new(root) { animation: 0.38s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Review fix: comfortable tap targets for small inline links on phones */
@media (max-width: 699px) {
  .hero-copy a:not(.btn),
  .overview a:not(.teaser):not(.mini-pkg):not(.btn),
  .final-cta a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 4px;
  }
}

.launch-deal {
  margin: 0 0 28px; padding: 18px 22px; border-radius: 16px;
  border: 1px solid rgba(198, 255, 61, 0.28); background: rgba(198, 255, 61, 0.06);
}
.launch-deal h2 { font: 700 1.25rem/1.3 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.launch-deal p { color: var(--muted); margin: 0; text-wrap: pretty; max-width: 72ch; }
.mini-deal { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; max-width: 62ch; }
.mini-deal a { font-weight: 600; text-underline-offset: 3px; }

/* new logo (Nov 13) */
.brand-logo { background: url(logo.svg) center/contain no-repeat; color: transparent; font-size: 0; border-radius: 0; }

/* ===== anim.css ===== */
/*! Server Workshop · serverworkshop.dev · © 2026 Server Workshop. All rights reserved. Build SW-4A994390 */
/* =========================================================
   v4 animation layer. Loaded after style.css on the home page.
   Everything here is decoration: the page is complete without it, and
   the motion-only rules sit inside prefers-reduced-motion: no-preference.
   Ideas only (text-split headline, ticker, pinned story, magnetic buttons,
   glowing borders, line draws, ambient gradients). No third-party templates or code.
   ========================================================= */

/* ---------- Hero headline: letters rise in one by one (pure CSS, so the headline never waits for scripts) ---------- */
.hc { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line-inner { animation: none !important; }
  .hc { animation: hc-in 0.95s var(--ease-out) backwards; transition: color 0.25s, transform 0.3s var(--ease-out); }
  .hero-line:nth-child(1) .hc:nth-child(1) { animation-delay: 0.135s; }
  .hero-line:nth-child(1) .hc:nth-child(2) { animation-delay: 0.170s; }
  .hero-line:nth-child(1) .hc:nth-child(3) { animation-delay: 0.205s; }
  .hero-line:nth-child(1) .hc:nth-child(4) { animation-delay: 0.240s; }
  .hero-line:nth-child(1) .hc:nth-child(5) { animation-delay: 0.275s; }
  .hero-line:nth-child(1) .hc:nth-child(6) { animation-delay: 0.310s; }
  .hero-line:nth-child(1) .hc:nth-child(7) { animation-delay: 0.345s; }
  .hero-line:nth-child(1) .hc:nth-child(8) { animation-delay: 0.380s; }
  .hero-line:nth-child(1) .hc:nth-child(9) { animation-delay: 0.415s; }
  .hero-line:nth-child(1) .hc:nth-child(10) { animation-delay: 0.450s; }
  .hero-line:nth-child(1) .hc:nth-child(11) { animation-delay: 0.485s; }
  .hero-line:nth-child(2) .hc:nth-child(1) { animation-delay: 0.355s; }
  .hero-line:nth-child(2) .hc:nth-child(2) { animation-delay: 0.390s; }
  .hero-line:nth-child(2) .hc:nth-child(3) { animation-delay: 0.425s; }
  .hero-line:nth-child(2) .hc:nth-child(4) { animation-delay: 0.460s; }
  .hero-line:nth-child(2) .hc:nth-child(5) { animation-delay: 0.495s; }
  .hero-line:nth-child(2) .hc:nth-child(6) { animation-delay: 0.530s; }
  .hero-line:nth-child(2) .hc:nth-child(7) { animation-delay: 0.565s; }
  .hero-line:nth-child(2) .hc:nth-child(8) { animation-delay: 0.600s; }
  .hero-line:nth-child(2) .hc:nth-child(9) { animation-delay: 0.635s; }
  .hero-line:nth-child(2) .hc:nth-child(10) { animation-delay: 0.670s; }
  .hero-line:nth-child(2) .hc:nth-child(11) { animation-delay: 0.705s; }
  .hero-line:nth-child(2) .hc:nth-child(12) { animation-delay: 0.740s; }
}
@keyframes hc-in {
  0% { transform: translateY(105%) rotate(9deg); color: var(--lime); }
  60% { color: var(--lime); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-title .hc:hover { color: var(--lime); transform: translateY(-0.035em); }
}

/* ---------- Hero: drifting slash commands behind the headline ---------- */
.hero-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-float span {
  position: absolute; bottom: -10%; font: 500 0.95rem/1 var(--font-mono); color: rgba(198, 255, 61, 0.2);
  padding: 6px 12px; border: 1px solid rgba(198, 255, 61, 0.13); border-radius: 999px; background: rgba(198, 255, 61, 0.03);
  white-space: nowrap; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-float span { animation: float-up 19s linear infinite; }
  .hero-float span:nth-child(1) { left: 4%;  animation-duration: 21s; animation-delay: 0s; }
  .hero-float span:nth-child(2) { left: 22%; animation-duration: 17s; animation-delay: -6s; font-size: 0.8rem; }
  .hero-float span:nth-child(3) { left: 41%; animation-duration: 24s; animation-delay: -11s; }
  .hero-float span:nth-child(4) { left: 55%; animation-duration: 18s; animation-delay: -3s; font-size: 0.8rem; }
  .hero-float span:nth-child(5) { left: 68%; animation-duration: 22s; animation-delay: -14s; }
  .hero-float span:nth-child(6) { left: 80%; animation-duration: 16s; animation-delay: -8s; font-size: 0.8rem; }
  .hero-float span:nth-child(7) { left: 12%; animation-duration: 26s; animation-delay: -17s; }
  .hero-float span:nth-child(8) { left: 90%; animation-duration: 20s; animation-delay: -1s; }
}
@keyframes float-up {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate3d(30px, -112vh, 0) rotate(5deg); opacity: 0; }
}
@media (max-width: 700px) { .hero-float span:nth-child(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-float { display: none; } }

/* ---------- Ambient background: slow drifting light behind every section below the hero ---------- */
body { background: transparent; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.ambient i { position: absolute; border-radius: 50%; will-change: transform; opacity: 0.9; }
.amb-a { width: 62vmax; height: 62vmax; left: -22vmax; top: 8vh; background: radial-gradient(closest-side, rgba(198, 255, 61, 0.075), transparent 72%); }
.amb-b { width: 56vmax; height: 56vmax; right: -24vmax; top: 38vh; background: radial-gradient(closest-side, rgba(88, 101, 242, 0.10), transparent 72%); }
.amb-c { width: 40vmax; height: 40vmax; left: 30vw; bottom: -22vmax; background: radial-gradient(closest-side, rgba(198, 255, 61, 0.05), transparent 72%); }
.amb-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 90%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 90%);
}
@media (prefers-reduced-motion: no-preference) {
  .amb-a { animation: drift-a 26s ease-in-out infinite alternate; }
  .amb-b { animation: drift-b 32s ease-in-out infinite alternate; }
  .amb-c { animation: drift-a 38s ease-in-out infinite alternate-reverse; }
  .amb-grid { animation: grid-slide 40s linear infinite; }
}
@keyframes drift-a { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-16vw, -8vh, 0) scale(1.1); } }
@keyframes grid-slide { to { background-position: 34px 34px; } }
@media (max-width: 700px) { .amb-c { display: none; } .amb-grid { opacity: 0.3; } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; z-index: 60; left: 0; top: 0; width: 100%; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime) 60%, #e9ff9f);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.6);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Feature ticker (two rows, opposite directions, speeds up while you scroll) ---------- */
.marquee {
  position: relative; padding: 26px 0; border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.92), rgba(8, 9, 10, 0.92));
  overflow: clip; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-row { overflow: clip; }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.mq-group li {
  display: inline-flex; align-items: center; gap: 0.5em; padding-right: 2.2rem; white-space: nowrap;
  font: 800 clamp(1.6rem, 4.4vw, 3rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--text);
}
.mq-a .mq-group li { color: transparent; -webkit-text-stroke: 1.2px rgba(244, 244, 249, 0.55); }
.mq-b .mq-group li { color: rgba(244, 244, 249, 0.9); font-size: clamp(1.2rem, 3vw, 2rem); font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.03em; }
.mq-slash { color: var(--lime); -webkit-text-stroke: 0; }
.mq-a .mq-slash { -webkit-text-stroke: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mq-a .mq-track { animation: mq-left 42s linear infinite; }
  .mq-b .mq-track { animation: mq-right 52s linear infinite; }
  .marquee:hover .mq-track { animation-play-state: paused; }
}
.js-mq .mq-track { animation: none !important; }
@keyframes mq-left { to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mq-row .mq-group[aria-hidden] { display: none; }
  .mq-track { width: auto; flex-wrap: wrap; }
  .mq-group { flex-wrap: wrap; }
  .mq-b { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Section dividers: a line that draws itself with a slash that turns ---------- */
.sec-divider { position: relative; height: 0; z-index: 2; pointer-events: none; }
.sec-divider .dv-line {
  position: absolute; left: 50%; top: 0; width: min(1200px, 100% - 2 * var(--gutter)); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(198, 255, 61, 0.7) 20%, rgba(198, 255, 61, 0.7) 80%, transparent);
  transform: scaleX(0); transform-origin: 50% 50%;
}
.sec-divider .dv-node {
  position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid rgba(198, 255, 61, 0.55);
  color: var(--lime); font: 800 1rem/1 var(--font-display); transform: scale(0) rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) { .sec-divider { display: none; } }

/* ---------- Buttons: shine sweep + magnetic pull (position comes from --bx / --by so press feedback still works) ---------- */
.btn { translate: var(--bx, 0px) var(--by, 0px); }
.btn-primary::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-130%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { transform: translateX(130%); transition: transform 0.7s var(--ease-out); }
  .hero-actions .btn-primary::after { animation: shine 5.5s ease-in-out 2.4s infinite; }
}
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* ---------- Card details ---------- */
.is-revealing { transition: none !important; }
/* tilt toward the pointer on package and example cards (mouse only) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .package-card, .example-card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: flat; }
  .package-card:hover, .example-card:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
}
/* featured package: a light that travels around the border */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.package-card.featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(198, 255, 61, 0.95) 80%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask-composite: exclude; opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .package-card.featured::after { animation: spin-ang 5s linear infinite; }
}
@keyframes spin-ang { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .package-card.featured::after { display: none; } }

/* tickets demo button pulses, moderation log lines blink in turn */
@media (prefers-reduced-motion: no-preference) {
  .viz-btn { animation: viz-pulse 2.6s ease-in-out infinite; }
  .tile-icon { animation: icon-bob 5s ease-in-out infinite; }
  .tile:nth-child(2n) .tile-icon { animation-delay: -1.7s; }
  .tile:nth-child(3n) .tile-icon { animation-delay: -3.1s; }
  .rank-bar span { animation: rank-glow 3s ease-in-out infinite; }
  .step-num.is-reached { box-shadow: 0 0 0 6px rgba(198, 255, 61, 0.12), 0 0 24px rgba(198, 255, 61, 0.35); }
  .cta-panel { animation: panel-glow 6s ease-in-out infinite alternate; }
  .cta-panel::after { animation: slash-sway 9s ease-in-out infinite alternate; }
}
@keyframes viz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(88, 101, 242, 0); } }
@keyframes icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes rank-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes panel-glow { to { border-color: rgba(198, 255, 61, 0.5); box-shadow: 0 0 60px -18px rgba(198, 255, 61, 0.3); } }
@keyframes slash-sway { to { transform: translate(-3%, -4%) rotate(4deg); } }

/* section titles: lime underline sweep after the words land */
.section-title { position: relative; }

/* How it works while pinned: steps dim until the story reaches them */
.how.is-pinned-story .step { will-change: transform, opacity; }

/* ===== pages.css ===== */
/*! Server Workshop · serverworkshop.dev · © 2026 Server Workshop. All rights reserved. Build SW-4A994390 */
/* =========================================================
   v5: the separate pages (page title, overview cards, help guide).
   Loaded after style.css and anim.css on the marketing pages.
   ========================================================= */

/* ---------- Page title block ---------- */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(8px, 2vw, 24px); position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: -10%; top: -40%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.09), transparent 75%);
}
.page-eyebrow { font: 600 0.9375rem/1 var(--font-mono); color: var(--lime); letter-spacing: 0.02em; margin-bottom: 18px; }
.page-eyebrow span { margin-right: 1px; }
.page-title {
  font: 800 clamp(2.5rem, 7.2vw, 5rem)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; max-width: 18ch;
}
.page-hero .section-sub { margin-top: 20px; font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 60ch; }
.page-hero + .section { padding-top: clamp(28px, 4.5vw, 56px); }
@media (prefers-reduced-motion: no-preference) {
  .page-eyebrow { animation: hero-rise 0.8s var(--ease-out) 0.05s both; }
  .page-title { animation: hero-rise 1s var(--ease-out) 0.12s both; }
  .page-hero .section-sub { animation: hero-rise 0.9s var(--ease-out) 0.3s both; }
}

/* ---------- Home: overview cards ---------- */
.teasers { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .teasers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .teasers { grid-template-columns: repeat(4, 1fr); } }
.teaser {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised)); border: 1px solid var(--line-soft);
  text-decoration: none; color: inherit; min-height: 250px;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.teaser:hover { border-color: rgba(198, 255, 61, 0.4); }
.teaser h3 { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 8px; }
.teaser p { color: var(--muted); text-wrap: pretty; }
.teaser-go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 700; }
.teaser-go svg { transition: transform 0.3s var(--ease-out); }
.teaser:hover .teaser-go svg { transform: translateX(5px); }
.teaser .tile-icon { position: static; }
.mini-pkgs { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mini-pkgs { grid-template-columns: repeat(3, 1fr); } }
.mini-pkg {
  position: relative; display: grid; gap: 4px; padding: 22px 24px; border-radius: 20px; text-decoration: none; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.35s var(--ease-out);
}
.mini-pkg.featured { border-color: rgba(198, 255, 61, 0.55); }
.mini-pkg:hover { border-color: rgba(198, 255, 61, 0.6); transform: translateY(-3px); }
.mini-pkg .package-price { margin: 4px 0 0; }
.mini-pkg .package-price strong { font-size: 2.75rem; color: var(--text); }

/* ---------- Features: demo section ---------- */
.try-demo-inner { display: grid; gap: clamp(32px, 6vw, 56px); align-items: center; }
@media (min-width: 1000px) { .try-demo-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.try-demo .section-title { font-size: clamp(2rem, 4.4vw, 3rem); }
.try-demo code { font: 500 0.9em var(--font-mono); color: var(--lime); background: rgba(198, 255, 61, 0.08); padding: 2px 7px; border-radius: 6px; }
.try-list { margin-top: 24px; display: grid; gap: 10px; color: var(--muted); }
.try-list li { display: flex; gap: 10px; align-items: baseline; }
.try-list li::before { content: "/"; color: var(--lime); font: 700 1rem var(--font-mono); }
.try-demo .hero-visual { padding-top: 34px; }
.js .try-demo [data-window], .js .try-demo [data-pop] { opacity: 0; }

/* ---------- How it works: what you get ---------- */
.get-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.get-grid .tile > .tile-icon { position: static; }
.get-grid .tile p a { color: var(--lime); text-underline-offset: 3px; }

/* ---------- "Next" card at the bottom of a page ---------- */
.page-next-wrap { padding-top: 0; padding-bottom: clamp(24px, 4vw, 48px); }
.page-next {
  position: relative; display: grid; gap: 4px; padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 44px); border-radius: 28px; text-decoration: none; color: var(--muted);
  background: linear-gradient(135deg, var(--surface), var(--bg-raised)); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}
.page-next:hover { border-color: rgba(198, 255, 61, 0.55); transform: translateY(-3px); }
.page-next-label { font: 600 0.875rem/1 var(--font-mono); color: var(--lime); }
.page-next strong { font: 800 clamp(1.75rem, 4.4vw, 3rem)/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--text); }
.page-next svg { position: absolute; right: clamp(20px, 4vw, 40px); top: 50%; translate: 0 -50%; color: var(--lime); transition: transform 0.35s var(--ease-out); width: 40px; height: 40px; }
.page-next:hover svg { transform: translateX(8px); }
.page-next span:last-of-type { max-width: 46ch; padding-right: 60px; }
.cta-panel:not(:has(.cta-stage)) { grid-template-columns: 1fr; }
.faq-list details p a, .step-body a, .callout a { color: var(--lime); text-underline-offset: 3px; }
.faq-list details p a { text-decoration: underline; }

/* ---------- Help page ---------- */
.help { padding-top: clamp(24px, 4vw, 40px); }
.help-layout { display: grid; gap: 24px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .help-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; } }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin: 18px 0; }
.callout p { color: #d6d8de; max-width: 70ch; }
.callout strong { color: var(--text); }
.callout-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.callout.warn { border-color: rgba(248, 113, 113, 0.55); background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.04)); }
.callout.warn .callout-icon { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.callout.tip { border-color: rgba(198, 255, 61, 0.35); background: rgba(198, 255, 61, 0.05); }
.callout.tip .callout-icon { background: rgba(198, 255, 61, 0.12); color: var(--lime); }
.help > .section-inner > .callout { margin-top: 0; }
.help-warning-first { margin-bottom: 0; }

/* sticky table of contents */
.help-toc { position: sticky; top: calc(var(--header-h) + 16px); z-index: 20; }
.help-toc-title { font: 600 0.8125rem/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; display: none; }
.help-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.help-toc a {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: 0.9375rem; line-height: 1.3; font-weight: 500; transition: color 0.2s, background-color 0.2s; min-height: 44px;
}
.help-toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.help-toc a[aria-current="true"] { color: var(--on-lime); background: var(--lime); font-weight: 700; }
.help-toc a[aria-current="true"] .toc-n { color: var(--on-lime); }
.toc-n { font: 700 0.8125rem var(--font-mono); color: var(--lime); }
.help-toc li[hidden] { display: none; }
.toc-toggle { display: none; }
@media (min-width: 1000px) {
  .help-toc { max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
  .help-toc-title { display: block; }
}
@media (max-width: 999px) {
  .help-toc { top: var(--header-h); margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); background: rgba(8, 9, 10, 0.94); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(10px); }
  .js .toc-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 12px;
    background: var(--surface); color: var(--text); border: 1px solid var(--line); font: 600 1rem var(--font-body); cursor: pointer;
  }
  .toc-toggle svg { transition: transform 0.3s var(--ease-out); }
  .toc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js .help-toc ol { display: none; margin-top: 8px; max-height: 55vh; overflow: auto; }
  .js .help-toc.is-open ol { display: grid; }
}

/* tools: search, OS switch, open/close all */
.help-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.help-search { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.help-search svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.help-search input {
  width: 100%; min-height: 52px; padding: 0 52px 0 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 1rem var(--font-body);
}
.help-search input::placeholder { color: #8b8e97; }
.help-search input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-color: transparent; }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-clear { position: absolute; right: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 1.25rem; cursor: pointer; }
.help-os, .help-all { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.help-os-label { padding: 0 8px 0 12px; color: var(--muted); font-size: 0.875rem; }
.help-os button, .help-all button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 0.9375rem var(--font-body); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.help-os button:hover, .help-all button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.help-os button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.help-os, .help-all { display: none; }
.js .help-os, .js .help-all { display: inline-flex; }
.help-status { min-height: 1.5em; margin-bottom: 8px; color: var(--muted); font-size: 0.9375rem; }

/* OS-specific blocks: all visible without JS, one at a time when you pick your system */
.os-label { display: inline-block; font: 700 0.75rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--lime); background: rgba(198, 255, 61, 0.1); padding: 5px 9px; border-radius: 6px; margin-bottom: 8px; }
.help[data-os="win"] [data-os-only]:not([data-os-only~="win"]),
.help[data-os="mac"] [data-os-only]:not([data-os-only~="mac"]),
.help[data-os="linux"] [data-os-only]:not([data-os-only~="linux"]) { display: none; }
[data-os-only] { margin-block: 12px; }
[data-os-only] [data-os-only] { margin: 0; }

/* the steps (accordion) */
.help-step {
  border: 1px solid var(--line-soft); border-radius: 20px; background: var(--bg-raised); margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 76px);
  transition: border-color 0.25s, background-color 0.25s;
}
.help-step[open] { border-color: #34363d; background: var(--surface); }
.help-step[hidden] { display: none; }
.help-step > summary {
  display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 22px; cursor: pointer; list-style: none; border-radius: 20px;
  font: 700 1.1875rem/1.3 var(--font-display); letter-spacing: -0.01em;
}
.help-step > summary::-webkit-details-marker { display: none; }
.help-step > summary::after {
  content: ""; margin-left: auto; flex: none; width: 20px; height: 20px; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.help-step[open] > summary::after { transform: rotate(45deg); }
.help-step > summary:hover .step-title { color: var(--lime); }
.step-badge {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(198, 255, 61, 0.1); color: var(--lime);
  font: 800 1.125rem/1 var(--font-display); border: 1px solid rgba(198, 255, 61, 0.2); transition: background-color 0.25s, color 0.25s;
}
.help-step[open] > summary .step-badge { background: var(--lime); color: var(--on-lime); }
.step-body { padding: 4px 24px 26px 78px; color: #cfd1d8; display: grid; gap: 12px; max-width: 80ch; }
@media (max-width: 640px) { .step-body { padding: 4px 18px 22px; } .help-step > summary { padding: 12px 16px; font-size: 1.0625rem; gap: 12px; } }
.step-body h3 { font: 700 1rem/1.3 var(--font-display); color: var(--text); margin-top: 10px; }
.step-body strong { color: var(--text); }
.step-body ul, .step-body .steps-list { padding-left: 1.25rem; display: grid; gap: 8px; }
.step-body ul { list-style: disc; }
.step-body ul li::marker { color: var(--lime); }
.step-body .steps-list { list-style: decimal; }
.step-body .steps-list li::marker { color: var(--lime); font-weight: 700; }
.step-body .steps-list li > .code { margin-top: 10px; }
.step-body p, .step-body li { text-wrap: pretty; }
.step-body code, .fix code, .callout code {
  font: 500 0.875em var(--font-mono); color: #e8ffb0; background: rgba(198, 255, 61, 0.08); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.step-body .muted, .muted { color: var(--muted); }
.step-body kbd { vertical-align: 0.05em; }

/* code blocks with a Copy button */
.code { position: relative; border-radius: 14px; background: #0a0b0d; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 16px 84px 16px 18px; overflow-x: auto; scrollbar-width: thin; }
.code pre code { background: none; padding: 0; color: #e6e8ee; font: 500 0.875rem/1.65 var(--font-mono); white-space: pre; overflow-wrap: normal; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; min-height: 44px; min-width: 64px; padding: 0 12px; border-radius: 8px; border: 1px solid #3a3c43; background: #1b1c20; color: var(--text);
  font: 600 0.8125rem var(--font-body); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.copy-btn:hover { border-color: var(--lime); color: var(--lime); }
.copy-btn.is-done { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

/* file list */
.file-table { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.file-table > div { display: grid; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.file-table > div:first-child { border-top: 0; }
.file-table > div > code:not(:first-child) { margin-top: 2px; }
@media (min-width: 720px) { .file-table > div { grid-template-columns: minmax(150px, 0.45fr) 1fr; align-items: baseline; } .file-table > div > code:nth-child(2) { grid-column: 1; } .file-table > div > span { grid-column: 2; grid-row: 1 / span 2; } }
.file-table code { justify-self: start; }

/* troubleshooting entries */
.fix { border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.fix[open] { border-color: #3a3c43; }
.fix[hidden] { display: none; }
.fix > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--text); border-radius: 14px; }
.fix > summary::-webkit-details-marker { display: none; }
.fix > summary::after { content: "+"; flex: none; color: var(--lime); font: 700 1.25rem/1 var(--font-mono); transition: transform 0.25s var(--ease-out); }
.fix[open] > summary::after { transform: rotate(45deg); }
.fix > summary:hover { color: var(--lime); }
.fix > p { padding: 0 16px 16px; color: #cfd1d8; }

mark.hit { background: rgba(198, 255, 61, 0.85); color: var(--on-lime); border-radius: 3px; padding: 0 2px; }
.help-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.help-end { margin-top: 36px; padding: 28px clamp(22px, 4vw, 36px); border-radius: 24px; border: 1px solid rgba(198, 255, 61, 0.3); background: linear-gradient(135deg, rgba(198, 255, 61, 0.1), rgba(198, 255, 61, 0.02)); }
.help-end h2 { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.help-end p { margin-top: 8px; color: #cfd1d8; }
.help-end-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }

@media print {
  .site-header, .help-toc, .help-tools, .ambient, .scroll-progress, .site-footer { display: none !important; }
  .help-step { break-inside: avoid; }
}

/* keep long code/links inside the help step cards */
.help-layout > *, .help-steps, .help-step { min-width: 0; max-width: 100%; }
.step-body { grid-template-columns: minmax(0, 1fr); }
.step-body > *, .step-body li { min-width: 0; }
.code pre code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.step-body a, .step-body p, .step-body li { overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .step-body a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 4px;
    margin: -10px 0; vertical-align: middle; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  }
}

/* Discord invite callouts (help + FAQ). Hidden when DISCORD_URL is not set. */
.discord-callout { margin-top: 28px; }
.discord-callout p { margin: 0 0 12px; color: #cfd1d8; }
.discord-callout:not(:has([data-discord]:not([hidden]))) { display: none; }


/* ---------- Pricing: Bot Care Plan (monthly add-on, not a 4th package) ---------- */
.care-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  min-width: 0;
  max-width: 100%;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s var(--ease-out);
}
.care-plan h3 { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.025em; margin-top: 8px; }
.care-plan .package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.care-plan-period {
  font: 600 1.125rem/1 var(--font-mono);
  color: var(--muted);
}
.care-plan-tagline { color: var(--muted); margin: 0 0 4px; max-width: 46ch; text-wrap: pretty; }
.care-plan .package-list { min-width: 0; }
.care-plan .package-list li { overflow-wrap: anywhere; }
@media (min-width: 800px) {
  .care-plan .package-list { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
}
.care-plan-note { color: var(--muted); margin: 4px 0 0; max-width: 62ch; text-wrap: pretty; overflow-wrap: anywhere; }
.care-plan .package-actions { margin-top: 16px; max-width: 280px; }
@media (hover: hover) and (pointer: fine) {
  .care-plan:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 255, 61, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 32px -22px rgba(0, 0, 0, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .care-plan, .care-plan:hover { transform: none; }
}

/* ---------- Guides / blog (SEO pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 2.2em 0 0.6em; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 1.125rem/1.3 var(--font-display); margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: #cfd1d8; font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4rem; display: grid; gap: 10px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--lime); font-weight: 700; }
.prose strong { color: var(--text); }
.prose a, .article-faq .faq-list details p a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose code, .article-faq code {
  font: 500 0.875em var(--font-mono); color: #e8ffb0; background: rgba(198, 255, 61, 0.08); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.page-hero + .section.article { padding-top: clamp(20px, 3vw, 40px); }
.article-faq .section-inner > * { max-width: 820px; }
.article-faq-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 24px; }
.article-faq .faq-list details p { max-width: 70ch; overflow-wrap: anywhere; }
.teasers.teasers-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .teasers.teasers-3 { grid-template-columns: repeat(3, 1fr); } }
.teasers-3 .teaser { min-height: 0; }
.footer-guides { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.footer-guides span { font: 600 0.8125rem/1 var(--font-mono); color: var(--lime); text-transform: uppercase; letter-spacing: 0.06em; padding-right: 6px; }
.footer-guides a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 8px; }
.footer-guides a:hover { color: var(--text); }
@media (max-width: 639px) { .footer-guides { padding-left: calc(var(--gutter) - 10px); } .footer-guides span { flex-basis: 100%; padding-left: 10px; } }

/* ---------- Kimi audit pass ---------- */
.fast-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(198, 255, 61, 0.14); color: var(--lime); font: 700 0.75rem/1.6 var(--font-body); letter-spacing: 0.02em; vertical-align: 0.06em; white-space: nowrap; }
.price-anchor a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.package-list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(198, 255, 61, 0.55); text-underline-offset: 3px; }
.package-list a:hover { color: var(--lime); }
.why .get-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Portfolio page ---------- */
.pf-kicker { font: 600 0.8125rem/1.2 var(--font-mono); color: var(--lime); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.pf-shots { padding-top: 0; }
.pf-shots .example-card, .pf-bot-visuals .example-card { position: relative; }
.pf-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 0.6875rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.pf-real { justify-self: start; background: rgba(198, 255, 61, 0.1); color: var(--lime); border: 1px solid rgba(198, 255, 61, 0.5); }
.pf-grid .tile { grid-column: auto; }
.pf-example { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(8, 9, 10, 0.6); color: #d6d8de; border: 1px solid #4a4d55; }
.pf-example.pf-inline { position: static; flex: none; }
.pf-build .section-head { max-width: 760px; }
.pf-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pf-tested { margin-top: 20px; display: grid; gap: 20px; align-items: center; padding: 24px clamp(20px, 3vw, 32px); border-radius: 22px; border: 1px solid rgba(198, 255, 61, 0.35); background: linear-gradient(135deg, rgba(198, 255, 61, 0.08), rgba(198, 255, 61, 0.02)); }
@media (min-width: 1000px) { .pf-tested { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); } }
.pf-tested h3 { font: 800 clamp(1.375rem, 3vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.pf-tested .pf-kicker { margin-bottom: 8px; }
.pf-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pf-counts li { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(198, 255, 61, 0.4); background: rgba(198, 255, 61, 0.06); color: #d6d8de; font-size: 0.875rem; line-height: 1.35; }
.pf-counts li strong { display: block; color: var(--lime); font: 800 1.75rem/1.1 var(--font-display); margin-bottom: 2px; }
.pf-counts .pf-counts-note { border-color: var(--line); background: rgba(255, 255, 255, 0.03); display: flex; align-items: center; }
.pf-bot { padding-top: clamp(40px, 6vw, 72px); }
.pf-bot-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .pf-bot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pf-bot-grid > * { min-width: 0; }
.pf-bot-name { font: 800 clamp(2rem, 4.6vw, 3.25rem)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 16px; }
.pf-lead { color: var(--muted); font-size: 1.125rem; line-height: 1.6; max-width: 56ch; margin: 0 0 22px; text-wrap: pretty; }
.pf-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.pf-list li { position: relative; padding-left: 30px; color: #cfd1d8; line-height: 1.6; overflow-wrap: anywhere; }
.pf-list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 5px; background: rgba(198, 255, 61, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ff3d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.pf-list li strong { color: var(--text); }
.pf-tests { display: inline-block; margin: 0; padding: 10px 18px; border-radius: 14px; border: 1px solid rgba(198, 255, 61, 0.4); background: rgba(198, 255, 61, 0.06); color: #d6d8de; }
.pf-tests strong { color: var(--lime); font: 800 1.375rem/1 var(--font-display); margin-right: 4px; }
.pf-bot-visuals { display: grid; gap: 20px; }
.pf-bot-visuals .example-card figcaption { padding: 16px 20px 20px; }
.pf-bot-visuals .example-card figcaption strong { font-size: 1.125rem; }
.pf-mockfig { margin: 0; display: grid; gap: 10px; }
.pf-mockfig figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.875rem; }
.pf-mock { position: relative; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #17181c; color: #dcdee4; font-size: 0.9375rem; overflow: hidden; }
.pf-mock-head { margin: 0 0 12px; padding-right: 92px; font: 500 0.8125rem/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.pf-msg { display: flex; gap: 12px; }
.pf-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #2c2f36; display: grid; place-items: center; font: 700 0.75rem var(--font-display); color: var(--lime); }
.pf-msg-body { min-width: 0; flex: 1; }
.pf-msg-name { margin: 0; font-size: 0.9375rem; }
.pf-app { display: inline-block; padding: 0 5px; border-radius: 4px; background: #5865f2; color: #fff; font: 700 0.625rem/1.6 var(--font-body); vertical-align: 0.08em; }
.pf-time { color: var(--muted); font-size: 0.75rem; }
.pf-embed { margin-top: 6px; padding: 12px 14px; border-radius: 6px; border-left: 4px solid var(--lime); background: rgba(0, 0, 0, 0.28); }
.pf-embed.green { border-left-color: #3ba55d; }
.pf-embed.orange { border-left-color: #f0883e; }
.pf-embed.pink { border-left-color: #ff66c4; }
.pf-embed-title { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.pf-embed-text, .pf-embed-foot { margin: 0 0 8px; color: #cfd1d8; font-size: 0.875rem; }
.pf-embed-foot { color: var(--muted); font-size: 0.8125rem; margin: 8px 0 0; }
.pf-mention { padding: 0 4px; border-radius: 4px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
.pf-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px 16px; margin: 0; }
.pf-fields-stack { grid-template-columns: 1fr; gap: 8px; }
.pf-fields dt { font-weight: 700; font-size: 0.8125rem; color: var(--text); }
.pf-fields dd { margin: 2px 0 0; color: #cfd1d8; font-size: 0.875rem; overflow-wrap: anywhere; }
.pf-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-btn { padding: 6px 14px; border-radius: 6px; font: 600 0.8125rem/1.5 var(--font-body); color: #fff; }
.pf-green { background: #248046; } .pf-blurple { background: #5865f2; } .pf-red { background: #d83c3e; } .pf-grey { background: #4e5058; }
.pf-ladder, .pf-roles, .pf-wiki { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-ladder li, .pf-roles li, .pf-wiki li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 0.8125rem; color: #d6d8de; }
.pf-ladder li b { color: var(--lime); font-family: var(--font-mono); margin-right: 6px; font-weight: 700; }
.pf-roles { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
.pf-roles li { background: none; padding: 0; font-size: 0.875rem; }
.pf-roles li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); margin-right: 10px; }
.pf-wiki { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
.pf-wiki li { background: none; padding: 0; font: 500 0.8125rem var(--font-mono); }
.pf-rules { margin: 0; padding-left: 1.2rem; font-size: 0.875rem; color: #cfd1d8; display: grid; gap: 3px; }
.pf-mock-note { margin: 12px 0 0; color: var(--muted); font-size: 0.8125rem; }
.pf-order .section-head, .pf-packages .section-head { max-width: 760px; }
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pf-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pf-steps { grid-template-columns: repeat(4, 1fr); } }
.pf-step { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--surface), var(--bg-raised)); }
.pf-step-n { display: block; margin-bottom: 10px; font: 600 0.8125rem/1 var(--font-mono); color: var(--lime); letter-spacing: 0.08em; text-transform: uppercase; }
.pf-step p { margin: 0; color: #cfd1d8; line-height: 1.6; text-wrap: pretty; }
.pf-step a, .pf-host a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.pf-host { margin-top: 16px; display: grid; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface); }
@media (min-width: 1000px) { .pf-host { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: center; } }
.pf-host p { margin: 0; color: var(--muted); }
.pf-host p strong { color: var(--text); font: 700 1.125rem var(--font-display); }
.pf-host-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-host-steps li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: #e4e6eb; }
.pf-host-steps li span { color: var(--lime); font-family: var(--font-mono); margin-right: 8px; }
.pf-packages .mini-pkgs { margin-top: 0; }
.pf-pkg-actions { margin-top: 24px; }

