/* VOXbots public site. Same palette and type as the panel; the hero chat window is the one loud thing. */
:root {
  color-scheme: light;
  --room: #eef1f7; --raised: #fff; --raised2: #f1f4fa; --line: #dfe4ee;
  --ink: #172036; --soft: #5b6478;
  --accent: #2b59ff; --on-accent: #fff; --accent-soft: rgba(43, 89, 255, .1);
  --smiley: #ffcf3f;
  --night: #121733; --night2: #1b2250; --night-ink: #f2f4ff; --night-soft: #a7aed0; --night-line: #2a3263;
  --online: #0f8a4c; --starting: #a85c00; --offline: #8a92a6; --danger: #c62f27;
  --guest: #5b6478; --member: #0f8a4c; --mod: #1d63c9;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --room: #0d1120; --raised: #151a2c; --raised2: #1c2238; --line: #262d47;
  --ink: #e9ecf6; --soft: #9aa3bd;
  --accent: #6d8dff; --on-accent: #0a0f2a; --accent-soft: rgba(109, 141, 255, .16);
  --night: #090c19; --night2: #121733; --night-line: #1f2650;
  --online: #5fdc92; --starting: #ffb057; --offline: #7d859c; --member: #5fdc92; --mod: #7cc4ff; --guest: #9aa3bd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body { margin: 0; background: var(--room); color: var(--ink); font: 16px/1.55 var(--text); }
h1, h2 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
code { font: 700 .92em var(--text); background: var(--raised2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--raised); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.pawn { width: 26px; height: 26px; fill: var(--smiley); flex: none; }
.pawn.tiny { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--soft); }
.hint { color: var(--soft); max-width: 68ch; margin-top: 6px; }
.prewrap { white-space: pre-wrap; }

/* Top bar sits on the same night blue as the hero, so the two read as one block. */
.top { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--night-line); }
.topin { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--night-ink); text-decoration: none; font: 700 21px var(--display); margin-right: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--night-soft); text-decoration: none; padding: 7px 11px; border-radius: 7px; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--night-ink); background: var(--night2); }
.nav a[aria-current="page"] { color: var(--night-ink); box-shadow: inset 0 -2px 0 var(--smiley); border-radius: 0; }
.nav .signin { margin-left: 8px; background: var(--accent); color: #fff; border-radius: 7px; }
.nav .signin:hover { background: var(--accent); filter: brightness(1.1); color: #fff; }
.navtoggle { display: none; }

.btn { display: inline-block; font: 700 15px/1 var(--text); padding: 12px 18px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
button { font: 700 14px var(--text); padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }

/* Hero: headline on the left, a chat room doing its job on the right. */
.hero { background: var(--night); color: var(--night-ink); padding: 56px 0 72px; }
.heroin { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; max-width: 13ch; }
.lede { margin-top: 20px; color: var(--night-soft); font-size: 18px; max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn.ghost { color: var(--night-ink); border-color: var(--night-line); }
.hero .btn.ghost:hover { border-color: var(--night-soft); }
.liveline { margin-top: 22px; color: var(--night-soft); font-size: 15px; min-height: 1.5em; }
.liveline:not(:empty)::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5fdc92; margin-right: 9px; box-shadow: 0 0 0 4px rgba(95, 220, 146, .18); }

.room { background: #f6f7fb; color: #172036; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px var(--night2); overflow: hidden; transform: rotate(1.2deg); }
.roomhead { display: flex; justify-content: space-between; background: #dfe5f3; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.roomusers { color: #5b6478; font-weight: 400; }
.feed { list-style: none; margin: 0; padding: 10px 0; }
.msg { padding: 6px 16px; font-size: 15px; line-height: 1.4; }
.msg .u { display: block; font-size: 13px; }
.u.guest { color: #5b6478; } .u.member { color: #0f8a4c; } .u.mod { color: #1d63c9; }
.u.botname { color: #172036; }
.msg.bot { background: #fff8db; border-left: 3px solid var(--smiley); }
.msg.sys { color: #c62f27; font-size: 13px; font-weight: 700; padding-top: 2px; padding-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .feed .msg { animation: arrive .35s ease-out both; }
  .feed .msg:nth-child(2) { animation-delay: .5s; } .feed .msg:nth-child(3) { animation-delay: 1.1s; }
  .feed .msg:nth-child(4) { animation-delay: 1.5s; } .feed .msg:nth-child(5) { animation-delay: 2.3s; }
  .feed .msg:nth-child(6) { animation-delay: 2.7s; } .feed .msg:nth-child(7) { animation-delay: 3.6s; }
  .feed .msg:nth-child(8) { animation-delay: 4s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
}

/* What it does: a plain two-column list, no cards. */
.does { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; padding: 64px 0 56px; }
.does h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.does p { margin-top: 6px; color: var(--soft); max-width: 50ch; }
.livebots { border-top: 1px solid var(--line); padding: 32px 0 64px; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sectionhead h2 { font-size: 21px; }
.minilist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.minilist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.minilist b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.route.wrap { padding-top: 40px; padding-bottom: 72px; }
/* Sections are linked by #name, so keep the top bar from covering their heading. */
.route { scroll-margin-top: 60px; }
.pagetitle { font-size: 36px; letter-spacing: -.02em; line-height: 1.1; }

/* Bots */
.botshead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--soft); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(15, 138, 76, .5); animation: livepulse 2.2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(15, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 138, 76, 0); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }
.botstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.botstats div { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; }
.botstats b { font: 800 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.botstats span { color: var(--soft); font-size: 14px; }
.botcell { display: flex; align-items: center; gap: 12px; }
.botav { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 800 15px var(--display); background: var(--raised2); color: var(--ink); flex: none; box-shadow: 0 0 0 2px var(--offline); }
.botav.online { box-shadow: 0 0 0 2px var(--online); } .botav.starting { box-shadow: 0 0 0 2px var(--starting); }
.botwho { display: flex; flex-direction: column; min-width: 0; }
.botline { font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.botwho small { font-size: 12.5px; font-weight: 400; }
.officialnote { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 207, 63, .7); background: linear-gradient(rgba(255, 207, 63, .12), rgba(255, 207, 63, .12)), var(--raised); font-size: 14.5px; }
.officialnote .badge { flex: none; }
.officialnote a { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .officialnote { flex-direction: column; align-items: flex-start; gap: 6px; } }
.bots tr.official { background: linear-gradient(rgba(255, 207, 63, .09), rgba(255, 207, 63, .09)), var(--raised); }
.bots tr.official td:first-child { box-shadow: inset 3px 0 0 var(--smiley); }
.roomcell .roomname { font-weight: 600; margin-right: 10px; }
.openchat { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--raised2); }
.openchat:hover { border-color: var(--accent); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--soft); padding: 7px 12px; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.seg span { font-weight: 400; margin-left: 2px; }
.search input { font: 15px var(--text); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); width: 280px; max-width: 100%; }
.search.wide { display: block; margin: 24px 0 8px; }
.search.wide input { width: 360px; }
.tablewrap { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.bots { width: 100%; border-collapse: collapse; }
.bots th { text-align: left; font-size: 13px; color: var(--soft); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bots td { padding: 11px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.bots tr:last-child td { border-bottom: 0; }
.bots .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bots .name { font-weight: 700; }
.bots .note td { color: var(--soft); text-align: center; padding: 28px; }
.dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.online { color: var(--online); } .dot.starting { color: var(--starting); } .dot.offline { color: var(--offline); }
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--soft); }
.legend li { display: flex; align-items: center; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font: 700 12.5px var(--text); padding: 2px 8px 2px 6px; border-radius: 10px; white-space: nowrap; vertical-align: 1px; }
td.name .badge, .minilist .badge { margin-left: 8px; }
.botline .badge { margin-left: 6px; }
.badge .pawn.tiny { width: 14px; height: 14px; margin: 0; vertical-align: 0; }
/* Official: VOXbots' own yellow bubble on night blue. */
.badge.official { background: var(--night); color: #fff; }
.badge.official .pawn { fill: var(--smiley); }
.badge.paid { background: var(--accent-soft); color: var(--accent); padding-left: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pagebtns { display: flex; gap: 8px; }

/* Commands */
.cmdgroups { display: grid; gap: 30px; margin-top: 18px; }
.cmdgroup h2 { font-size: 19px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cmdgroup dl { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); }
.cmdgroup dt, .cmdgroup dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmdgroup dt { font-weight: 700; color: var(--accent); }
.cmdgroup dd { color: var(--ink); }

/* Guide: a real sequence, so it's numbered. */
.guide { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; max-width: 720px; }
.guide li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.guide li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 12px 12px 12px 3px; background: var(--smiley); color: #241c00; font: 700 20px/42px var(--display); text-align: center; }
.guide li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.guide h2 { font-size: 19px; }
.guide p { margin-top: 4px; color: var(--soft); }
.after { margin-top: 8px; color: var(--soft); }

/* Pricing */
.pricegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.pricecard { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.pricecard.paid { border: 2px solid var(--accent); }
.pricecard h2 { font-size: 20px; }
.price { font: 700 28px/1.2 var(--display); margin: 8px 0 18px; letter-spacing: -.01em; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 6px 0 6px 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--online); border-bottom: 2px solid var(--online); transform: rotate(-45deg); }
.checks li.lead { padding-left: 0; color: var(--soft); }
.checks li.lead::before { display: none; }
.buy { margin-top: 30px; display: grid; gap: 22px; max-width: 720px; }
.buy h2 { font-size: 19px; margin-bottom: 8px; }
.paysteps { margin: 0; padding-left: 22px; }
.paysteps li { padding: 3px 0; }
.packages { list-style: none; margin: 0 0 8px; padding: 0; }
.packages li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Privacy and terms: long reading, so a narrower column and more space between sections. */
.legal { max-width: 760px; }
.legal .updated { color: var(--soft); margin: 6px 0 22px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { margin: 6px 0 0; padding-left: 20px; }
.legal li { padding: 4px 0; }
.footlinks { display: flex; gap: 18px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--soft); font-size: 14px; }
.footin { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 860px) {
  .heroin { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .room { transform: none; }
  .does, .pricegrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .navtoggle { display: block; background: transparent; color: var(--night-ink); border-color: var(--night-line); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--night); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--night-line); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--smiley); }
  .nav .signin { margin: 8px 0 0; text-align: center; }
  .hero { padding: 36px 0 48px; }
  .wrap, .topin, .heroin { padding-left: 16px; padding-right: 16px; }
  .search input, .search.wide input { width: 100%; }
  .search { flex: 1 1 100%; }
  .seg { flex-wrap: wrap; }
  .tablewrap { background: transparent; border: 0; }
  table.bots thead { display: none; }
  table.bots, .bots tbody, .bots tr, .bots td { display: block; }
  .bots tr { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .bots td { padding: 0; border: 0; }
  .bots td.name { grid-column: 1; grid-row: 1; font-size: 16px; }
  .bots tr.official { box-shadow: inset 3px 0 0 var(--smiley); }
  .bots tr.official td:first-child { box-shadow: none; }
  .botstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .botstats div:last-child { grid-column: 1 / -1; }
  .bots td.st { grid-column: 2; grid-row: 1; text-align: right; }
  .bots td:not(.name):not(.st) { grid-column: 1 / -1; font-size: 14px; color: var(--soft); }
  .bots td:not(.name):not(.st)::before { content: attr(data-label) ": "; }
  .bots .note { display: block; }
  .cmdgroup dl { grid-template-columns: minmax(0, 1fr); }
  .cmdgroup dt { border-bottom: 0; padding-bottom: 0; }
  .minilist li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .minilist li .num { display: none; }
}

/* What's new: posts look like messages from the bot. */
.newsfeed { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; max-width: 760px; }
.post { display: flex; gap: 14px; align-items: flex-start; }
.postav { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px -8px var(--accent); }
.postav svg { width: 26px; height: 26px; fill: var(--on-accent); }
.postmain { flex: 1; min-width: 0; }
.postmeta { display: flex; gap: 10px; align-items: center; color: var(--soft); font-size: 14px; margin: 2px 0 6px; }
.posttag { font: 800 11px/1 var(--text); letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; }
.posttag.new { background: rgba(15, 138, 76, .14); color: var(--online); }
.posttag.fix { background: rgba(255, 207, 63, .25); color: var(--starting); }
.posttag.info { background: var(--accent-soft); color: var(--accent); }
.bubble { background: var(--raised); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 16px 20px; }
.post:first-child .bubble { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bubble h2 { font-size: 21px; margin-bottom: 6px; }
.bubble p { color: var(--ink); }
/* Team: staff rows like a chat's user list, with a ring in the rank's colour. */
.teamhead { display: flex; gap: 10px; align-items: baseline; margin: 34px 0 12px; flex-wrap: wrap; }
.teamhead h2 { font-size: 24px; }
.teamhead .count { font-size: 13px; font-weight: 700; background: var(--raised2); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; }
.teamlist { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.teamrow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); --ring: var(--accent); }
.teamrow:first-child { border-top: 0; }
.teamrow.founder { --ring: #d9a400; }
.teamrow.admin { --ring: var(--danger); }
.memberav { position: relative; width: 46px; height: 46px; border-radius: 14px; background: var(--raised2); display: grid; place-items: center; font: 800 19px var(--display); box-shadow: 0 0 0 2px var(--ring); flex: none; }
.memberav::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ring); border: 3px solid var(--raised); }
.memberwho { flex: 1; min-width: 0; }
.memberwho b { font-size: 17px; overflow-wrap: anywhere; }
.teamrow.founder .memberwho b { color: #b88a00; }
:root[data-theme="dark"] .teamrow.founder .memberwho b { color: var(--smiley); }
.membersub { color: var(--soft); font-size: 14px; margin-top: 2px; }
.memberrank { text-align: right; font-weight: 700; font-size: 14px; flex: none; }
.memberrank small { display: block; color: var(--online); font-size: 12px; font-weight: 700; }
.warnnote { margin-top: 26px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--danger); background: rgba(198, 47, 39, .07); max-width: 760px; }
@media (max-width: 560px) { .teamrow { flex-wrap: wrap; } .memberrank { text-align: left; width: 100%; padding-left: 60px; } }
