/* Aspectobots, an Aspectora product. bots.aspectora.site
   Night (default): black app surfaces over a maroon ground.
   Day: warm light surfaces, maroon and black ink. */

:root {
  color-scheme: dark;
  --ground: #3b0a14;
  --ground-deep: #25060c;
  --app: #0d0909;
  --app-2: #141010;
  --app-3: #1c1516;
  --app-4: #261c1e;
  --rail: #070404;
  --line: #2e2022;
  --text: #f1e8e5;
  --muted: #b09da0;
  --faint: #8e7a7d;
  --accent: #a3243b;
  --accent-hover: #bc2e48;
  --dock-tile: #3b0a14;
  --brand-ink: #e2435f; /* the accent red, lightened just enough to read on the maroon ground */
  --accent-soft: rgba(188, 46, 72, 0.16);
  --on-accent: #fff5f2;
  --gold: #e3b96a;
  --gold-soft: rgba(227, 185, 106, 0.12);
  --online: #4fbf85;
  --soon: #6f5f62;
  --code: #0a0707;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --focus: #f0c878;

  --f-display: "Unbounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body: "Rethink Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --f-mono: "Martian Mono", "Consolas", "Menlo", monospace;

  --step--1: 0.82rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.2rem, 1.4rem + 2.9vw, 3.7rem);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1220px;
}

:root[data-mode="day"] {
  color-scheme: light;
  --ground: #e6d6d1;
  --ground-deep: #d9c5bf;
  --app: #fbf7f6;
  --app-2: #f5efed;
  --app-3: #ede4e2;
  --app-4: #e2d6d3;
  --rail: #e8dcd9;
  --line: #dac9c5;
  --text: #1d1013;
  --muted: #5d4a4e;
  --faint: #74616a;
  --accent: #8e1a30;
  --accent-hover: #a3243b;
  --brand-ink: #a3243b;
  --dock-tile: #3b0a14;
  --accent-soft: rgba(142, 26, 48, 0.1);
  --gold: #6f4f14;
  --gold-soft: rgba(135, 97, 29, 0.1);
  --online: #1c7650;
  --soon: #a7959a;
  --code: #f0e8e6;
  --shadow: 0 18px 44px rgba(59, 10, 20, 0.14);
  --focus: #8e1a30;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--f-mono); font-size: 0.86em; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo__word span { color: var(--gold); }
.logo__by { display: block; font-family: var(--f-body); font-weight: 400; font-size: 0.72rem; color: var(--faint); margin-top: 3px; letter-spacing: 0; }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--app) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.masthead__tools { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 0.92rem; padding: 8px 11px; border-radius: var(--r-sm);
}
.nav a:hover { color: var(--text); background: var(--app-3); }
.nav a.nav__cta { background: var(--accent); color: var(--on-accent); margin-left: 6px; font-weight: 700; }
.nav a.nav__cta:hover { background: var(--accent-hover); }

.mode {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--app-3); border-radius: 999px;
}
.mode button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 0.78rem; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.mode button[aria-pressed="true"] { background: var(--app); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.menu-btn {
  display: none; appearance: none; background: var(--app-3); color: var(--text);
  border: 0; border-radius: var(--r-sm); padding: 9px 13px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.nav__modes { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--app); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.nav__cta { margin: 8px 0 0; text-align: center; }
  .nav .nav__modes { display: inline-flex; align-self: flex-start; margin-top: 10px; }
}
@media (max-width: 640px) {
  .mode--bar { display: none; }
  .logo__by { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--grey { background: var(--app-4); color: var(--text); }
.btn--grey:hover { background: color-mix(in srgb, var(--app-4) 80%, var(--text)); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 0.85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Common surfaces ---------- */
.panel { background: var(--app); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--dark { background: var(--ground-deep); }
.section__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 4vw, 40px);
}
.section h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em;
  margin: 8px 0 0; text-wrap: balance;
}
.section__intro { margin: 0; color: var(--muted); max-width: 58ch; }
.section__intro strong { color: var(--text); }
.channel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--gold);
  background: var(--gold-soft); padding: 4px 9px; border-radius: var(--r-sm);
}
@media (max-width: 820px) { .section__head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--step-4); line-height: 1; letter-spacing: -0.035em;
  margin: 14px 0 20px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand-ink); }
/* The "a" in "actually" is drawn as the bot-face logo. Its bowl matches the x-height and sits on the baseline. */
.hero-a { display: inline-block; height: 0.9em; width: auto; aspect-ratio: 37 / 45.5; vertical-align: baseline; margin-right: 0.01em; overflow: visible; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; color: var(--text); margin: 0 0 26px; max-width: 32em; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted);
  background: color-mix(in srgb, var(--app) 70%, transparent);
  padding: 6px 12px 6px 8px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px color-mix(in srgb, var(--online) 25%, transparent); flex: none; }

/* Scheduled event card */
.event {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--r);
  background: var(--app); display: grid; gap: 10px; max-width: 470px;
  border: 1px solid var(--line);
}
.event__when { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 0.86rem; font-weight: 700; }
.event__when svg { width: 16px; height: 16px; flex: none; }
.event__title { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin: 0; }
.event__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.event__count { font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.event__count b { color: var(--text); font-weight: 500; }
.event__local { color: var(--faint); font-size: 0.82rem; }

/* ---------- Discord-style window ---------- */
.client {
  display: grid;
  grid-template-columns: 64px 180px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 540px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--app-2);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.client__rail {
  background: var(--rail); display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 12px 0;
}
.guild {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--app-3); color: var(--muted);
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 600;
  position: relative; flex: none;
}
.guild--active { border-radius: 14px; background: var(--accent); }
.guild--active::before {
  content: ""; position: absolute; left: -12px; top: 8px; width: 4px; height: 28px;
  background: var(--text); border-radius: 0 4px 4px 0;
}
.guild svg { width: 28px; height: 28px; }
.rail-sep { width: 28px; height: 2px; background: var(--line); border-radius: 1px; }
.client__side { background: var(--app); display: flex; flex-direction: column; min-width: 0; }
.client__server {
  padding: 14px 14px 12px; font-weight: 700; font-size: 0.92rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chan-group { padding: 14px 8px 0; }
.chan-group .label { padding: 0 6px 6px; display: block; font-size: 0.6rem; }
.chan {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--r-sm);
  color: var(--faint); font-size: 0.9rem; white-space: nowrap; overflow: hidden;
}
.chan b { font-weight: 400; font-family: var(--f-mono); font-size: 0.85rem; opacity: .7; }
.chan--active { background: var(--app-3); color: var(--text); }
.client__me {
  margin-top: auto; padding: 10px 10px; background: var(--rail);
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem;
}
.client__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.client__head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); min-width: 0;
}
.client__head strong { white-space: nowrap; }
.client__head span { color: var(--faint); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--line); padding-left: 10px; }
.feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  color: #fff; flex: none; overflow: hidden;
}
.avatar svg { width: 100%; height: 100%; }
.msg__who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.msg__who strong { font-size: 0.95rem; }
.msg__who time { font-size: 0.72rem; color: var(--faint); }
.app-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--accent); color: var(--on-accent);
  padding: 1px 5px; border-radius: 4px; align-self: center;
}
.msg__text { margin: 2px 0 0; font-size: 0.93rem; line-height: 1.5; }
.msg__used { font-size: 0.8rem; color: var(--faint); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.msg__used code { color: var(--gold); }
.slash { color: var(--gold); background: var(--gold-soft); padding: 0 4px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.82em; }
.embed {
  margin-top: 6px; background: var(--app-3); border-left: 4px solid var(--accent);
  border-radius: 4px; padding: 10px 14px 12px; max-width: 460px; font-size: 0.88rem;
}
.embed h3, .embed h4 { margin: 0 0 8px; font-size: 0.96rem; }
.embed p { margin: 0 0 8px; color: var(--muted); }
.embed__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.embed__fields div b { display: block; font-size: 0.78rem; margin-bottom: 1px; }
.embed__fields div span { color: var(--muted); font-size: 0.84rem; }
.embed__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.typing { font-size: 0.78rem; color: var(--faint); padding: 0 16px 4px; min-height: 1.4em; }
.composer { padding: 0 16px 16px; position: relative; }
.composer__box {
  display: flex; align-items: center; gap: 10px;
  background: var(--app-4); border-radius: var(--r); padding: 0 12px;
}
.composer__box span { color: var(--faint); font-weight: 700; font-size: 1.2rem; }
.composer input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 0.93rem; padding: 12px 0;
}
.composer input:focus { outline: none; }
.composer__box:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.suggest {
  position: absolute; left: 16px; right: 16px; bottom: calc(100% - 8px);
  background: var(--app); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 6px; margin: 0; list-style: none; border: 1px solid var(--line);
}
.suggest li {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--app-3); }
.suggest li code { color: var(--text); font-weight: 500; }
.suggest li span { color: var(--faint); font-size: 0.82rem; }
.suggest__head { padding: 4px 10px 6px; }

@media (max-width: 1080px) {
  .client { grid-template-columns: 64px minmax(0, 1fr); }
  .client__side { display: none; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .client { grid-template-columns: minmax(0, 1fr); height: 500px; }
  .client__rail { display: none; }
  .embed__fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.platform {
  background: var(--app); border-radius: var(--r-lg); padding: 18px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 14px; align-content: start;
}
.platform__icon {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%;
  background: var(--app-3); display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; color: var(--muted); position: relative;
}
.platform__icon::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--soon); border: 3px solid var(--app);
}
.platform--live .platform__icon { background: var(--accent); color: var(--on-accent); border-radius: 16px; }
.platform--live .platform__icon::after { background: var(--online); }
.platform h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.platform__status { font-size: 0.8rem; color: var(--faint); }
.platform--live .platform__status { color: var(--online); font-weight: 700; }
.platform p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.platform .notify { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.platform--live { grid-column: span 2; }
@media (max-width: 520px) { .platform--live { grid-column: auto; } }
.notify {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.notify:hover { color: var(--text); border-color: var(--faint); }
.notify[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* ---------- Requests (forum style) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag-btn {
  appearance: none; border: 0; background: var(--app); color: var(--muted);
  font: inherit; font-size: 0.86rem; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.tag-btn[aria-pressed="true"] { background: var(--text); color: var(--app); }
.tag-btn .count { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.forum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.post { background: var(--app); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.post__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--app-3); color: var(--muted);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--safety { color: #e0707f; }
.pill--moderation { color: #d9a441; }
.pill--community { color: #62b6d9; }
.pill--automation { color: #8fbf6a; }
.pill--games { color: #c38ae0; }
:root[data-mode="day"] .pill--safety { color: #a3243b; }
:root[data-mode="day"] .pill--moderation { color: #8a5d0f; }
:root[data-mode="day"] .pill--community { color: #1f6f92; }
:root[data-mode="day"] .pill--automation { color: #3f7a1c; }
:root[data-mode="day"] .pill--games { color: #7b3a9c; }
.post__date { font-size: 0.8rem; color: var(--faint); }
.post h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.post__body { margin: 0; color: var(--muted); font-size: 0.94rem; }
.reply {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  background: var(--app-2); border-radius: var(--r); padding: 12px;
}
.reply .avatar { width: 26px; height: 26px; }
.reply__who { font-size: 0.8rem; display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.reply p { margin: 0; font-size: 0.9rem; }
@media (max-width: 760px) { .forum { grid-template-columns: minmax(0, 1fr); } }

.market { margin-top: 28px; padding: 22px; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 20px 32px; }
.market h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); margin: 0 0 8px; }
.market p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .market { grid-template-columns: minmax(0, 1fr); } }
.table-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { font-size: 0.75rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.ledger td.num { white-space: nowrap; color: var(--gold); font-weight: 700; }

/* ---------- Build ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
.builder__form { padding: clamp(18px, 3vw, 28px); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label-text, fieldset legend {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
input[type="text"], input[type="email"], select, textarea {
  width: 100%; background: var(--app-3); border: 1px solid transparent; color: var(--text);
  font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: var(--r-sm);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset legend { margin-bottom: 10px; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  font-size: 0.88rem; padding: 7px 12px; border-radius: 999px;
  background: var(--app-3); color: var(--muted); cursor: pointer; border: 1px solid transparent;
}
.chips input:checked + label { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chips input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips input:disabled + label { opacity: .5; cursor: not-allowed; }

.modgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.modgroup h3 { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: var(--app-2); border-radius: var(--r); padding: 4px; }
.mod { position: relative; }
.mod input { position: absolute; opacity: 0; pointer-events: none; }
.mod label {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer;
}
.mod label:hover { background: var(--app-3); }
.mod__name { font-weight: 700; font-size: 0.95rem; }
.mod__desc { grid-column: 1; font-size: 0.84rem; color: var(--muted); }
.mod__plan { font-size: 0.72rem; color: var(--faint); margin-left: 6px; font-weight: 400; }
.switch {
  grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 24px; border-radius: 999px;
  background: var(--soon); position: relative; transition: background-color .15s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .15s ease;
}
.mod input:checked + label .switch { background: var(--online); }
.mod input:checked + label .switch::after { transform: translateX(16px); }
.mod input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -2px; }

.builder__out { position: sticky; top: 84px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.summary { padding: 20px; }
.summary__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.summary__price b { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); color: var(--gold); line-height: 1; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.summary__row span:first-child { color: var(--muted); }
.summary__row strong { text-align: right; }
.summary .btn { margin-top: 12px; width: 100%; }
.preview { padding: 16px; background: var(--app-2); border-radius: var(--r-lg); }
.codebox { background: var(--code); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.codebox__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); }
.codebox pre { margin: 0; padding: 12px 14px; overflow: auto; max-height: 300px; font-family: var(--f-mono); font-size: 0.7rem; line-height: 1.7; color: var(--muted); }
.codebox pre .c { color: var(--faint); }
.codebox pre .k { color: var(--gold); }
.copy { appearance: none; border: 0; background: var(--app-4); color: var(--text); font: inherit; font-size: 0.75rem; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.builder__sticky { display: none; }
@media (max-width: 980px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder__out { position: static; }
  .builder__sticky {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 5;
    margin: 18px calc(clamp(18px, 3vw, 28px) * -1) calc(clamp(18px, 3vw, 28px) * -1);
    padding: 12px clamp(18px, 3vw, 28px);
    background: var(--app-2); border-top: 1px solid var(--line);
    border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 0.9rem;
  }
  .builder__sticky b { font-family: var(--f-display); color: var(--gold); font-size: 1.2rem; }
  .builder__sticky { padding-right: 112px; } /* room for the docked companion orb */
}

/* ---------- Pricing ---------- */
.toggles { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 20px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .switch { display: inline-block; }
.toggle input:checked + .switch { background: var(--online); }
.toggle input:checked + .switch::after { transform: translateX(16px); }
.toggle input:focus-visible + .switch { outline: 3px solid var(--focus); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan {
  background: var(--app); border-radius: var(--r-lg); padding: 22px 20px;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px;
}
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__name { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.plan__name i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.plan__for { margin: 0; color: var(--muted); font-size: 0.92rem; min-height: 2.9em; }
.price { display: grid; gap: 1px; }
.price__amt { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.price__was { text-decoration: line-through; color: var(--faint); font-size: 0.82rem; }
.price__per { color: var(--faint); font-size: 0.85rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; font-size: 0.92rem; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.plan li::before { content: "✓"; color: var(--online); font-weight: 700; }
.plan li.no { color: var(--faint); }
.plan li.no::before { content: "×"; color: var(--faint); }
.plan--main { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan--ads { background: linear-gradient(var(--app), var(--app)) padding-box; }
.badge { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--app-3); color: var(--muted); white-space: nowrap; }
.badge--mit { background: var(--gold-soft); color: var(--gold); }
.badge--pop { background: var(--accent); color: var(--on-accent); }
.plan .btn { width: 100%; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.onetime { margin-top: 14px; padding: clamp(20px, 3vw, 28px); }
.onetime__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 36px; align-items: end; margin-bottom: 18px; }
.onetime__head h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); margin: 4px 0 0; }
.onetime__head p { margin: 0; color: var(--muted); }
.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.build { background: var(--app-2); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.build h4 { margin: 0; font-size: 1.05rem; }
.build p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 820px) { .onetime__head, .builds { grid-template-columns: minmax(0, 1fr); } }

.duty {
  margin-top: 14px; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px);
  background: var(--accent); color: var(--on-accent);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px;
}
.duty h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); margin: 0 0 8px; }
.duty p { margin: 0 0 12px; opacity: .95; }
.duty ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.duty li { font-size: 0.82rem; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.22); }
.duty__small { font-size: 0.86rem; opacity: .85; }
.duty__rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.duty__rate { background: rgba(0, 0, 0, 0.22); border-radius: var(--r); padding: 14px; }
.duty__rate b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1.1; }
.duty__rate span { font-size: 0.85rem; opacity: .9; }
@media (max-width: 820px) { .duty { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ownership ---------- */
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.own { background: var(--app); border-radius: var(--r-lg); padding: 22px; }
.own h3 { margin: 0 0 8px; font-size: 1.12rem; }
.own p { margin: 0; color: var(--muted); }
.own p strong { color: var(--text); }
.own__num { font-family: var(--f-mono); font-size: 0.72rem; color: var(--gold); }
.own-table { margin-top: 12px; padding: 8px 10px; }
.own-table td:first-child { color: var(--muted); white-space: nowrap; }
.yes { color: var(--online); font-weight: 700; }
.nope { color: var(--faint); }
@media (max-width: 820px) { .own-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--app); border-radius: var(--r); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); max-width: 72ch; }
.faq .answer p { margin: 0; }

/* ---------- Join ---------- */
.join { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.join__side { padding: clamp(22px, 3vw, 32px); }
.join__side p { color: var(--muted); }
.join__count { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.join__count b { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.1; font-variant-numeric: tabular-nums; }
.modal { padding: 0; overflow: hidden; }
.modal__head { padding: 20px 24px 6px; }
.modal__head h3 { margin: 0; font-size: 1.25rem; }
.modal__head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.modal__body { padding: 16px 24px 8px; }
.modal__foot { background: var(--app-2); padding: 16px 24px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; flex: 1 1 200px; }
.form-status.is-error { color: #ff8f9c; }
:root[data-mode="day"] .form-status.is-error { color: #a3243b; }
.field-error { color: #ff8f9c; font-size: 0.85rem; }
:root[data-mode="day"] .field-error { color: #a3243b; }
.form-note { color: var(--faint); font-size: 0.82rem; margin: 0 0 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.welcome { padding: 28px 24px; display: grid; gap: 10px; }
.welcome h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); }
.welcome__id { font-family: var(--f-mono); font-size: 1.1rem; color: var(--gold); }
.welcome p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: var(--app); border-top: 1px solid var(--line); padding-block: 40px 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer h4 { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer__base a { text-decoration: underline; text-underline-offset: 3px; }
.footer__about { color: var(--muted); margin: 12px 0 0; max-width: 40ch; font-size: 0.92rem; }
.footer__base { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 0.85rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Long-form page ---------- */
.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc__body { padding: clamp(22px, 4vw, 44px); max-width: 880px; }
.doc__body h1 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0; }
.doc__body h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); margin: 40px 0 10px; }
.doc__body p, .doc__body li { color: var(--muted); max-width: 70ch; }
.doc__body strong { color: var(--text); }
.doc__body pre { background: var(--code); padding: 16px; border-radius: var(--r); overflow-x: auto; font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.7; white-space: pre-wrap; color: var(--text); }
.doc__body code { background: var(--app-3); padding: 1px 5px; border-radius: 4px; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; padding: 0; list-style: none; }
.doc__toc a { display: inline-block; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; background: var(--app-3); text-decoration: none; color: var(--muted); }
.doc__toc a:hover { color: var(--text); }
.draft-note { display: inline-flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--gold); background: var(--gold-soft); padding: 5px 11px; border-radius: 999px; }
.unsub { background: var(--app-2); border-radius: var(--r); padding: 18px; margin-top: 16px; display: grid; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (min-width: 1140px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.more-wrap { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- Companion (assets/scrollbot.js) ---------- */
.sbx { position: fixed; inset: 0; pointer-events: none; z-index: 45; --sbx-in: 0; }
.sbx-probe { position: fixed; left: 0; bottom: 0; width: 0; height: env(safe-area-inset-bottom, 0px); visibility: hidden; }
.sbx-bot {
  position: fixed; left: 0; top: 0; width: 96px; height: 96px; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer; pointer-events: none;
  transform-origin: 0 0; will-change: transform; border-radius: 50%;
  -webkit-tap-highlight-color: transparent; z-index: 2;
}
.sbx-bot canvas, .sbx-bot svg { width: 100%; height: 100%; display: block; }
.sbx.is-docked .sbx-bot canvas { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.sbx-bot:focus-visible { outline: 2px solid var(--focus); outline-offset: -8px; }

/* The orb: glass disc, glowing progress ring, black outer edge */
.sbx-dock { position: fixed; left: 0; top: 0; width: 96px; height: 96px; transform-origin: 0 0; opacity: var(--sbx-in); will-change: transform; }
.sbx-dock::before {
  content: ""; position: absolute; inset: 13px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 110%, rgba(226, 67, 95, 0.35), rgba(226, 67, 95, 0) 55%),
    radial-gradient(circle at 40% 30%, rgba(120, 22, 42, 0.62), rgba(34, 5, 12, 0.82) 60%, rgba(0, 0, 0, 0.92));
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -12px 20px rgba(0, 0, 0, 0.55), 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1.5px #000;
}
.sbx-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sbx-ring circle { fill: none; }
.sbx-ring__edge { stroke: #000; stroke-width: 3; }
.sbx-ring__track { stroke: rgba(255, 255, 255, 0.1); stroke-width: 3; }
.sbx-ring__fg {
  stroke: url(#sbxRingGrad); stroke-width: 3.4; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  filter: drop-shadow(0 0 3px rgba(227, 185, 106, 0.9)) drop-shadow(0 0 7px rgba(226, 67, 95, 0.5));
}

/* Particles */
.sbx-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sbx-p { position: absolute; left: 0; top: 0; will-change: transform, opacity; line-height: 1; }
.sbx-p--spark { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffd98a 45%, rgba(226, 67, 95, 0) 72%); box-shadow: 0 0 10px rgba(255, 210, 130, 0.9); }
.sbx-p--star { color: #ffd98a; font-size: 15px; text-shadow: 0 0 8px rgba(255, 210, 130, 0.95); }
.sbx-p--heart { color: #ff6b86; font-size: 17px; text-shadow: 0 0 10px rgba(255, 90, 120, 0.85); }
.sbx-p--z { color: #f1e8e5; font: 700 15px var(--f-display); text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); }
.sbx-p--ring { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 217, 138, 0.9); box-shadow: 0 0 18px rgba(255, 217, 138, 0.6), inset 0 0 12px rgba(226, 67, 95, 0.5); }

/* Speech bubble, above the orb */
.sbx-bubble { position: fixed; left: 0; top: 0; will-change: transform; }
.sbx-bubble__in {
  max-width: min(270px, 68vw); color: #f1e8e5; font-size: 0.9rem; line-height: 1.42;
  background: linear-gradient(180deg, rgba(38, 14, 20, 0.84), rgba(12, 8, 9, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px 16px 6px 16px; padding: 10px 14px 12px;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(10px) scale(0.92); transform-origin: 100% 100%;
  transition: opacity .3s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .9, .25, 1.2);
}
.sbx.is-docked .sbx-bubble.is-on .sbx-bubble__in { opacity: 1; transform: none; }
.sbx-bubble b { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; margin-bottom: 3px; color: #fff; }
.sbx-bubble i { font-style: normal; font-size: 0.56rem; font-weight: 700; background: #a3243b; color: #fff5f2; padding: 1px 4px; border-radius: 3px; }
.sbx-bubble p { margin: 0; color: #e9dcd8; }

@media (prefers-reduced-motion: reduce) {
  .sbx-bubble__in { transition: opacity .2s ease; transform: none; }
}

/* Sections rise into place as they scroll into view (browsers with scroll-driven animations) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section__head, .platform, .post, .plan, .build, .own, .faq details, .market, .onetime, .duty, .own-table, .builder__form, .summary, .preview, .codebox, .join > .panel {
      animation: ab-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .client {
      animation: ab-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 720px;
    }
  }
}
@keyframes ab-rise { from { opacity: 0.35; translate: 0 38px; scale: 0.985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ab-drift { to { translate: 0 80px; rotate: -1.5deg; scale: 0.965; } }

/* =====================================================================
   2.5D glass theme: layered translucent surfaces, glossy controls,
   ambient depth orbs (assets/depth.js) and pointer tilt with glare.
   ===================================================================== */
:root {
  --glass: linear-gradient(160deg, rgba(58, 22, 31, 0.62), rgba(14, 9, 10, 0.8) 55%, rgba(10, 7, 8, 0.86));
  --glass-border: rgba(255, 255, 255, 0.075);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 50px -22px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.22);
  --glass-inner: rgba(255, 255, 255, 0.035);
  --glass-inner-border: rgba(255, 255, 255, 0.05);
  --glare: rgba(255, 255, 255, 0.09);
  --head-top: #fff7f4;
  --head-bot: #d6c1bc;
  --btn2: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  --btn2-border: rgba(255, 255, 255, 0.1);
  --field: rgba(255, 255, 255, 0.045);
  --field-border: rgba(255, 255, 255, 0.08);
  --dark-band: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.34));
}
:root[data-mode="day"] {
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(250, 243, 241, 0.7) 55%, rgba(246, 237, 234, 0.72));
  --glass-border: rgba(90, 20, 35, 0.1);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 24px 46px -24px rgba(59, 10, 20, 0.3), 0 2px 8px rgba(59, 10, 20, 0.06);
  --glass-inner: rgba(90, 20, 35, 0.035);
  --glass-inner-border: rgba(90, 20, 35, 0.06);
  --glare: rgba(255, 255, 255, 0.55);
  --head-top: #2d1217;
  --head-bot: #6a3f47;
  --btn2: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 230, 227, 0.9));
  --btn2-border: rgba(90, 20, 35, 0.14);
  --field: rgba(255, 255, 255, 0.7);
  --field-border: rgba(90, 20, 35, 0.12);
  --dark-band: linear-gradient(180deg, rgba(90, 20, 35, 0.03), rgba(90, 20, 35, 0.07));
}

body { position: relative; }
main, .footer { position: relative; z-index: 1; }

/* Ambient orbs (built by depth.js) */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient__orb { position: absolute; width: min(70vw, 760px); aspect-ratio: 1; will-change: transform; }
.ambient__orb i {
  position: absolute; inset: 0; border-radius: 50%; display: block;
  animation: ambient-float 26s ease-in-out infinite alternate;
}
.ambient__orb--maroon i { background: radial-gradient(circle, rgba(163, 36, 59, 0.42), rgba(163, 36, 59, 0) 62%); }
.ambient__orb--rose i { background: radial-gradient(circle, rgba(226, 67, 95, 0.26), rgba(226, 67, 95, 0) 60%); animation-duration: 31s; }
.ambient__orb--gold i { background: radial-gradient(circle, rgba(227, 185, 106, 0.14), rgba(227, 185, 106, 0) 58%); animation-duration: 36s; }
.ambient__orb--wine i { background: radial-gradient(circle, rgba(92, 12, 40, 0.5), rgba(92, 12, 40, 0) 62%); animation-duration: 29s; }
:root[data-mode="day"] .ambient__orb i { opacity: 0.55; }
@keyframes ambient-float {
  from { translate: -3% -2%; scale: 1; }
  to { translate: 4% 5%; scale: 1.12; }
}

/* Dark bands let the orbs glow through */
.section--dark { background: var(--dark-band); }

/* Glass surfaces */
.panel, .platform, .post, .plan, .own, .faq details, .event, .client {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.client { box-shadow: var(--glass-shadow), 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 70px -24px rgba(226, 67, 95, 0.4); }
.plan--main { box-shadow: 0 0 0 1.5px var(--accent), 0 0 38px -8px rgba(226, 67, 95, 0.5), var(--glass-shadow); }
.embed, .reply, .build, .mods, .preview, .summary__row, .suggest, .composer__box, .modal__foot {
  border-color: var(--glass-inner-border);
}
.embed, .reply, .build, .mods, .preview { background: var(--glass-inner); border: 1px solid var(--glass-inner-border); }
.embed { border-left: 4px solid var(--accent); }
.client__rail, .client__side, .client__me { background: rgba(0, 0, 0, 0.22); }
:root[data-mode="day"] .client__rail, :root[data-mode="day"] .client__side, :root[data-mode="day"] .client__me { background: rgba(90, 20, 35, 0.04); }
.duty {
  background: linear-gradient(160deg, #c8354f, #a3243b 42%, #6d1326);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -20px 40px rgba(0, 0, 0, 0.18), 0 34px 70px -28px rgba(163, 36, 59, 0.85);
}

/* Glossy headings */
.hero h1, .section h2, .doc__body h1 {
  background: linear-gradient(180deg, var(--head-top) 20%, var(--head-bot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { color: var(--brand-ink); -webkit-text-fill-color: currentColor; }

/* Glossy controls */
.btn--primary, .nav a.nav__cta {
  background: linear-gradient(180deg, #d4435d 0%, #a3243b 52%, #85182d 100%);
  color: #fff6f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 10px 24px -8px rgba(163, 36, 59, 0.8);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}
.btn--primary:hover, .nav a.nav__cta:hover { background: linear-gradient(180deg, #df4e68 0%, #b02a43 52%, #8f1c32 100%); }
.btn--grey {
  background: var(--btn2); border: 1px solid var(--btn2-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}
.btn { transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease, background-color .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.tag-btn, .notify, .chips label, .mode {
  background: var(--btn2); border: 1px solid var(--btn2-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tag-btn[aria-pressed="true"] { background: var(--text); color: var(--app); border-color: transparent; }
.chips input:checked + label { background: var(--accent-soft); border-color: var(--accent); }
input[type="text"], input[type="email"], select, textarea {
  background: var(--field); border: 1px solid var(--field-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.masthead {
  background: color-mix(in srgb, var(--app) 58%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 -1px 0 var(--glass-border), 0 12px 30px -24px rgba(0, 0, 0, 0.8);
  border-bottom-color: transparent;
}
.footer { background: color-mix(in srgb, var(--app) 70%, transparent); }

/* Round glossy logo everywhere it appears */
.logo__mark { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.guild--active { background: transparent; border-radius: 50%; }
.platform--live .platform__icon {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #e4546d, #a3243b 55%, #5e1022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -8px rgba(163, 36, 59, 0.8);
}

/* Tilt + glare (depth.js adds .tilt) */
.tilt {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.tilt.is-tilting { transition: transform .12s ease-out, box-shadow .3s ease; z-index: 2; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--glare), transparent 42%);
  opacity: 0; transition: opacity .35s ease;
}
.tilt.is-tilting::after { opacity: 1; }
.client {
  transform: perspective(1400px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .tilt, .client { transform: none; transition: none; }
  .ambient__orb i { animation: none; }
}

/* =====================================================================
   Logo lockup: the bot orb is the rounded end of a glass capsule, so
   mark and name read as one piece. The orb blinks now and then.
   ===================================================================== */
.logo {
  position: relative; isolation: isolate; gap: 11px;
  padding: 4px 18px 4px 4px; border-radius: 999px; overflow: hidden;
  background:
    radial-gradient(90px 60px at 22px 50%, rgba(226, 67, 95, 0.32), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.12));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px -14px rgba(0, 0, 0, 0.8);
  transition: box-shadow .3s ease;
}
.logo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 60%);
  translate: -110% 0; transition: translate .9s cubic-bezier(.2, .8, .2, 1);
}
.logo:hover::after { translate: 110% 0; }
.logo:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(226, 67, 95, 0.25), 0 14px 30px -14px rgba(163, 36, 59, 0.9); }
.logo__mark {
  width: 42px; height: 42px; flex: none; display: block; border-radius: 50%; filter: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(255, 95, 124, 0.6);
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
  animation: lm-breathe 4.5s ease-in-out infinite;
}
@keyframes lm-breathe {
  50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.7), 0 0 30px 1px rgba(255, 95, 124, 0.85); }
}
.logo__mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.06); }
.logo__text { display: grid; gap: 3px; }
.logo__word {
  font-size: 1.08rem; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--head-top) 25%, var(--head-bot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__word span {
  background: linear-gradient(180deg, #ffe7b3 10%, #e3b96a 55%, #b9832f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-mode="day"] .logo__word span { background-image: linear-gradient(180deg, #a57a2a, #87611d 60%, #6b4a12); }
.logo__by {
  margin: 0; font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
:root[data-mode="day"] .logo {
  background:
    radial-gradient(90px 60px at 22px 50%, rgba(163, 36, 59, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -16px rgba(59, 10, 20, 0.45);
}
.lm-eyes { transform-box: fill-box; transform-origin: center; animation: lm-blink 7s infinite; }
.lm-glow { opacity: 0.55; transform-box: fill-box; transform-origin: center; animation: lm-glow 3.2s ease-in-out infinite; }
@keyframes lm-blink { 0%, 93%, 100% { scale: 1 1; } 94.5% { scale: 1 0.1; } 96% { scale: 1 1; } 97.2% { scale: 1 0.1; } 98.4% { scale: 1 1; } }
@keyframes lm-glow { 50% { opacity: 1; scale: 1.25; } }
.footer .logo { padding-right: 16px; }
@media (max-width: 640px) {
  .logo { padding-right: 14px; gap: 9px; }
  .logo__mark { width: 38px; height: 38px; }
}

/* =====================================================================
   Dropdowns (select.js): glass button and option list
   ===================================================================== */
.cs { position: relative; }
.cs.is-open { z-index: 40; }
.cs__native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.cs__btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px 10px 14px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--field-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cs__btn:hover { border-color: color-mix(in srgb, var(--brand-ink) 45%, var(--field-border)); }
.cs__btn:focus-visible, .cs.is-open .cs__btn {
  outline: none; border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cs__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs__chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), stroke .2s; }
.cs.is-open .cs__chev { transform: rotate(180deg); stroke: var(--brand-ink); }
.cs__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  max-height: 300px; overflow: auto; overscroll-behavior: contain; border-radius: 14px;
  background: linear-gradient(165deg, rgba(62, 20, 30, 0.9), rgba(16, 10, 11, 0.94) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -18px rgba(0, 0, 0, 0.85), 0 0 40px -18px rgba(226, 67, 95, 0.55);
  transform-origin: 50% 0; animation: cs-in .22s cubic-bezier(.2, .9, .3, 1.15);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.cs--up .cs__list { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; animation-name: cs-in-up; }
@keyframes cs-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes cs-in-up { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
.cs__list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-size: 0.97rem; line-height: 1.3;
  animation: cs-opt .3s both cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i) * 18ms);
  transition: background-color .15s ease, color .15s ease;
}
@keyframes cs-opt { from { opacity: 0; translate: 0 -4px; } }
.cs__list li span { flex: 1; min-width: 0; }
.cs__list li.is-active { color: var(--text); background: rgba(255, 255, 255, 0.11); box-shadow: inset 2px 0 0 var(--brand-ink); }
.cs__list li[aria-selected="true"] {
  color: #fff6f3;
  background: linear-gradient(180deg, rgba(212, 67, 93, 0.55), rgba(133, 24, 45, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cs__list li[aria-selected="true"].is-active { background: linear-gradient(180deg, rgba(223, 78, 104, 0.7), rgba(143, 28, 50, 0.7)); }
.cs__list li[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.cs__check { width: 15px; height: 15px; flex: none; fill: none; stroke: #ffe3a6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cs__list li[aria-selected="true"] .cs__check { opacity: 1; transform: none; }
:root[data-mode="day"] .cs__list {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 242, 240, 0.94));
  border-color: rgba(90, 20, 35, 0.12);
  box-shadow: inset 0 1px 0 #fff, 0 26px 50px -20px rgba(59, 10, 20, 0.35);
}
:root[data-mode="day"] .cs__list li.is-active { background: rgba(90, 20, 35, 0.06); }
:root[data-mode="day"] .cs__list li[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #b52f48, #8e1a30); }
:root[data-mode="day"] .cs__check { stroke: #fff; }

/* =====================================================================
   Silk background (bg.js) and extra bot particles
   ===================================================================== */
.silk { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; display: block; }
.has-silk body { background: #0a0305; }
:root[data-mode="day"].has-silk body { background: #efe4e1; }
.has-silk .ambient__orb i { opacity: 0.55; mix-blend-mode: screen; }
:root[data-mode="day"].has-silk .ambient__orb i { opacity: 0.3; mix-blend-mode: normal; }
.sbx-p--vein { width: 22px; height: 22px; }
.sbx-p--vein svg { width: 100%; height: 100%; display: block; fill: none; stroke: #ff4d6d; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.8)); }
.sbx-p--puff { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 236, 0.85), rgba(255, 240, 236, 0) 70%); }
@media (prefers-reduced-motion: reduce) {
  .lm-eyes, .lm-glow, .logo__mark, .cs__list, .cs__list li { animation: none; }
}

/* =====================================================================
   Announcement notice (dialog shown once per visit) and planned-price note
   ===================================================================== */
.notice {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible;
}
.notice::backdrop {
  background: radial-gradient(circle at 50% 40%, rgba(59, 10, 20, 0.55), rgba(5, 2, 3, 0.82));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.notice__card {
  position: relative; display: grid; gap: 10px; justify-items: start; margin: 0;
  padding: 30px clamp(20px, 5vw, 32px) 24px; border-radius: 22px;
  background: linear-gradient(165deg, rgba(70, 20, 32, 0.92), rgba(16, 10, 11, 0.95) 62%);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(226, 67, 95, 0.55);
}
.notice[open] .notice__card { animation: notice-in .45s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes notice-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.notice__mark { width: 56px; height: 56px; margin-top: -58px; margin-bottom: 4px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(13, 9, 9, 0.9), 0 10px 30px -6px rgba(226, 67, 95, 0.7); }
.notice__mark svg { width: 100%; height: 100%; display: block; }
.notice h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); line-height: 1.15;
  background: linear-gradient(180deg, var(--head-top) 20%, var(--head-bot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice p { margin: 0 0 10px; color: var(--muted); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
:root[data-mode="day"] .notice__card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(249, 240, 238, 0.95));
  border-color: rgba(90, 20, 35, 0.12);
  box-shadow: inset 0 1px 0 #fff, 0 40px 80px -30px rgba(59, 10, 20, 0.45);
}
:root[data-mode="day"] .notice::backdrop { background: rgba(60, 25, 32, 0.35); }
:root[data-mode="day"] .notice__mark { box-shadow: 0 0 0 4px #fff, 0 10px 30px -8px rgba(163, 36, 59, 0.5); }
.planned-note {
  grid-column: 1 / -1; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 0.92rem; color: var(--muted);
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.planned-note b { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .notice[open] .notice__card { animation: none; } }

/* Join with Discord (shown when Discord sign-in is switched on) */
.discord-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.discord-join__or { color: var(--faint); font-size: 0.88rem; }
.btn--discord { background: linear-gradient(180deg, #6b76ff, #5865f2 55%, #4752c4); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -10px rgba(88, 101, 242, 0.8); }
.btn--discord:hover { background: linear-gradient(180deg, #7a84ff, #6571ff 55%, #525dd6); }
.btn--discord svg { width: 20px; height: 20px; }
.discord-me { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border-radius: 12px; background: rgba(88, 101, 242, 0.12); border: 1px solid rgba(88, 101, 242, 0.35); }
.discord-me img { border-radius: 50%; }
.discord-me span { flex: 1; min-width: 0; display: grid; }
.discord-me small { color: var(--muted); font-size: 0.8rem; }
.field-hint { color: var(--faint); font-size: 0.8rem; }
