/* Subscription pages (pricing, welcome, checkout-cancelled, support, terms, privacy, refunds): drafts in upcoming/,
   published as /assets/css/pages.css only by `python tools/build.py --upcoming` (previews) until they go live.
   Only the site's tokens (styles.css), so the Pink / Pink night schemes and any season's colours apply as they are. */

.page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.page-wide { max-width: var(--max); }
.page-hero { margin: 12px 0 28px; }
.page-hero.center, .center { text-align: center; }
.page-hero .lead { max-width: 40rem; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); margin: 10px 0 12px; }
.page-mochi { display: block; width: 150px; height: auto; margin: 0 auto 8px; }

/* blanks the owner still has to fill in: loud on purpose (build.py refuses to publish while any are left) */
.todo {
  background: rgb(var(--pink-rgb) / 0.18); color: var(--text); font-weight: 700; padding: 0 0.3em; border-radius: 6px;
  outline: 1.5px dashed var(--pink); outline-offset: 1px;
}

/* buttons */
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 46px; padding: 6px 22px;
  text-align: center;
  border-radius: 999px; border: 1px solid rgb(var(--pink-rgb) / 0.5); background: var(--pill-bg); color: var(--pink-text);
  font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 rgb(var(--pink-rgb) / 0.3);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.2s;
}
.btn:hover { border-color: var(--pink); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 rgb(var(--pink-rgb) / 0.3); }
.btn-primary { background: var(--pink-text); color: var(--bg); border-color: transparent; } /* 5.2:1 light, 7.7:1 dark */
.btn .todo { background: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.center .actions { justify-content: center; }

/* plans */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 18px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* four plans: 2 x 2 */
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } .plans .plan { padding: 24px 20px; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.plan-featured { border: 2px solid var(--pink); }
.plan-badge {
  position: absolute; top: -13px; left: 24px; padding: 3px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700;
  background: var(--pink-text); color: var(--bg);
}
.plan h2 { font-size: 1.5rem; }
.plan-for { color: var(--muted); margin-top: -6px; }
.price { font: 700 2rem/1.1 var(--font-display); color: var(--text); }
.price span { font: 400 0.9375rem var(--font-body); color: var(--muted); white-space: nowrap; }
.ticks { display: grid; gap: 8px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: "♡"; content: "♡" / ""; position: absolute; left: 0; color: var(--pink-text); font-weight: 700; }
.plan .btn { align-self: stretch; }
.note { color: var(--muted); font-size: 0.9375rem; margin: 8px 0 28px; }

/* steps on the welcome page */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; padding: 0; margin: 0 0 20px; }
.steps > li {
  counter-increment: step; position: relative; padding: 22px 22px 22px 76px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.125rem var(--font-display); background: var(--pink-text); color: var(--bg);
}
.steps h2 { font-size: 1.25rem; margin-bottom: 4px; }
.steps p { color: var(--muted); margin-bottom: 12px; }

/* long text: terms, privacy, refunds, FAQs */
.prose { color: var(--text); }
.prose h2 { font-size: 1.375rem; margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 1.0625rem; margin: 1.25rem 0 0.4rem; }
.prose p, .prose li { line-height: 1.7; }
.prose p { margin-bottom: 0.8rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 0.8rem; display: grid; gap: 6px; }
.prose a, .note a, .faq a { color: var(--pink-text); font-weight: 600; }
.prose code, .steps code, .faq code { font-size: 0.92em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.updated { color: var(--muted); }
details {
  margin: 10px 0; padding: 4px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
summary { cursor: pointer; padding: 10px 0; font-weight: 700; list-style-position: outside; }
details[open] summary { color: var(--pink-text); }
details p { margin: 0 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
/* /pricing: compare the plans (rows made by tools/build.py from tiers.json) */
.compare { margin: 8px 0 28px; }
.compare h2 { margin: 0 0 14px; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 1rem; }
.compare thead th span { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.compare thead th:not(:first-child), .compare td { width: 6.5rem; text-align: center; }
.compare tbody th { font-weight: 600; }
.compare .group th { padding-top: 16px; color: var(--pink-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.compare .yes { color: var(--pink-text); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .compare table { font-size: 0.82rem; }
  .compare th, .compare td { padding: 8px 5px; }
  .compare th:first-child { padding-left: 10px; }
  .compare thead th { font-size: 0.75rem; }
  .compare thead th span { font-size: 0.7rem; }
  .compare thead th:not(:first-child), .compare td { width: 3.3rem; }
}
@media (max-width: 380px) {   /* four plan columns on the smallest phones */
  .compare table { font-size: 0.78rem; }
  .compare th, .compare td { padding: 7px 3px; }
  .compare th:first-child { padding-left: 8px; overflow-wrap: anywhere; }
  .compare thead th { font-size: 0.66rem; }
  .compare thead th span { font-size: 0.64rem; }
  .compare thead th:not(:first-child), .compare td { width: 2.9rem; }
}
/* /features: each feature's points, folded under "How it works" (the demo stays open) */
.more { margin-top: 14px; }
.more summary { color: var(--pink-text); list-style-position: inside; }
.more .how { margin: 0 0 12px; }
.faq { margin-top: 12px; }

/* footer links (on these pages, and on every page once they go live) */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--pink-text); text-decoration: underline; }
@media (max-width: 600px) {
  .steps > li { padding: 70px 18px 18px; }
  .plan { padding: 24px 20px; }
}

/* dashboard preview (dashboard-preview.html): features by plan, like the subscriber bot's dashboard will show them */
.dp-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.dp-switch-label { color: var(--muted); font-weight: 600; margin-right: 4px; }
.dp-switch-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 600 0.9375rem var(--font-body);
  background: var(--pill-bg); color: var(--pink-text); border: 1px solid rgb(var(--pink-rgb) / 0.5);
}
.dp-switch-btn[aria-checked="true"] { background: var(--pink-text); color: var(--bg); border-color: transparent; }
.dp-panel {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.dp-server { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; }
.dp-server-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem;
  background: var(--surface-2); box-shadow: 0 0 0 3px var(--pink);
}
.dp-server-name { font: 700 1.25rem var(--font-display); }
.dp-plan { color: var(--muted); font-weight: 600; }
.dp-upgrade-top { margin-left: auto; }
.dp-head { font-size: 1.125rem; margin: 18px 0 10px; }
.dp-head::before { content: "♡ "; content: "♡ " / ""; color: var(--pink-text); }
.dp-rows { display: grid; gap: 8px; }
.dp-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px;
  background: var(--surface-2); border: 2px solid var(--line);
}
.dp-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.125rem;
  background: rgb(var(--pink-rgb) / 0.14);
}
.dp-name { flex: 1 1 0; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.dp-chip, .dp-tier { flex: none; font-size: 0.8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dp-chip { color: var(--pink-text); border: 1.5px solid currentColor; }
.dp-tier { background: var(--pink-text); color: var(--bg); }
.dp-row.locked { border-style: dashed; }
.dp-row.locked .dp-name { color: var(--muted); }
.dp-row.locked .dp-icon { filter: grayscale(1); opacity: 0.6; }
.dp-more { margin-top: 14px; padding-top: 4px; border-top: 2px dashed var(--line); }
.dp-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dp-price { color: var(--muted); font-weight: 700; }
.dp-upgrade { margin-top: 12px; }
@media (max-width: 600px) {
  .dp-panel { padding: 16px; }
  .dp-row { border-radius: 18px; align-items: flex-start; }
  .dp-upgrade-top { margin-left: 0; }
}

/* server picker (/subscribe, made by upcoming/functions/subscribe.js): one card per server the visitor manages */
.sub-list { list-style: none; display: grid; gap: 16px; padding: 0; margin: 0 0 20px; }
.sub-server {
  display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.sub-focus { border: 2px solid var(--pink); }
.sub-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sub-head > div { min-width: 0; }
.sub-head h2 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.sub-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.sub-icon-letter { display: grid; place-items: center; font-weight: 700; color: var(--pink-text); }
.sub-status { margin: 2px 0 0; color: var(--muted); }
.sub-status strong { color: var(--text); }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sub-actions .btn { font: inherit; font-weight: 700; cursor: pointer; }
.sub-hint { margin: 0; color: var(--muted); }
.sub-note { margin: 16px 0 0; padding: 10px 16px; border-radius: 14px; background: var(--pill-bg); border: 1px solid var(--line); font-weight: 600; }
.page-hero .pill a { color: inherit; }
.page-hero .lead a { color: var(--pink-text); font-weight: 600; }
/* Signature's "Get ready" step on /subscribe, its welcome page and /signature-guide (palette colours only) */
.sig-form { display: grid; gap: 16px; margin: 0 0 20px; }
.sig-step {
  display: grid; gap: 10px; margin: 0 0 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--card-shadow); min-width: 0;
}
.sig-form .sig-step { margin: 0; }
.sig-step legend, .sig-step > h2 { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 4px; font: 700 1.25rem var(--font-display); }
.sig-step legend + * { clear: both; }
.sig-num {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pink-text); color: var(--bg); font-size: 1rem;
}
.sig-hint { margin: 0; color: var(--muted); }
.sig-hint a, .sig-step a:not(.btn), .sig-tip a { color: var(--pink-text); font-weight: 600; }
.sig-input {
  width: 100%; max-width: 28rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 1.05rem;
}
.sig-input:focus-visible { outline: 3px solid rgb(var(--pink-rgb) / 0.55); outline-offset: 1px; }
.sig-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.sig-choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pink-text); }
.sig-error { margin: 0; padding: 8px 12px; border-radius: 12px; border-left: 4px solid var(--pink-text); background: var(--pill-bg); color: var(--text); font-weight: 600; }
.sig-tip { margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; background: var(--pill-bg); border: 1px solid var(--line); font-weight: 600; }
.sig-step .sig-tip { margin: 0; }
.sig-big { margin: 0; font: 700 1.25rem var(--font-display); overflow-wrap: anywhere; }
.sig-confirm { border: 2px solid var(--pink); }
.sig-confirm code, .sig-step code { font-size: 0.92em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.sig-record { width: 100%; max-width: 34rem; margin: 4px 0 12px; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
.sig-record th, .sig-record td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.sig-record th { color: var(--muted); font-size: 0.85rem; }
.sig-record { table-layout: fixed; }
.sig-record code, .steps code { overflow-wrap: anywhere; word-break: break-word; }
.sig-hint, .sig-big { overflow-wrap: anywhere; }
.sig-step > * { min-width: 0; }
.sig-step, .steps > li { overflow-wrap: anywhere; }   /* long web addresses and IDs on small phones */
@media (max-width: 400px) { .sig-step { padding: 18px 16px; } .sig-record th, .sig-record td { padding: 6px 6px; font-size: 0.85rem; } }
@media (max-width: 560px) {
  .sub-server { padding: 18px 16px; }
  .sub-actions .btn { width: 100%; }
}

/* features page: each feature = explanation + a little Discord-style chat that plays itself (upcoming/features.js).
   Drawn in the site's own tokens (no Discord blurple, no colour emoji): the strict palette holds in the demos too. */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  margin: clamp(40px, 7vw, 72px) 0;
}
.feature-flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 10px 0 12px; }
.plan-head { margin: clamp(48px, 8vw, 88px) 0 4px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.plan-head span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.plan-lead { color: var(--muted); margin: 6px 0 0; }
.plan-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plan-jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--pill-bg); color: var(--pink-text); font-weight: 700; text-decoration: none; }
.plan-jump a:hover { border-color: var(--pink); }
.feature-plain { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.feature-text p { line-height: 1.65; }
.plan-tag {
  display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--pill-bg); color: var(--pink-text); font-size: 0.8rem; font-weight: 700;
}
.how { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.2em; list-style: disc; line-height: 1.6; }
.how li::marker { color: var(--pink-text); }

.demo { margin: 0; }
.demo-window {
  border-radius: 22px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: var(--card-shadow); font-size: 0.875rem; line-height: 1.45;
}
.demo-bar { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.demo-channel { display: inline-flex; gap: 6px; }
.demo-bar .hash { color: var(--muted); font-weight: 400; }
.demo-chat { height: 440px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 16px; overflow: hidden; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.msg .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.av-user {
  display: grid; place-items: center; background: rgb(var(--pink-rgb) / 0.22); color: var(--pink-text);
  font-weight: 700; text-transform: uppercase;
}
.msg-body p { margin: 0 0 4px; }
.who { font-weight: 700; }
.tag {
  display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--pink-text); color: var(--bg);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; vertical-align: 1px;
}
.mention { padding: 0 4px; border-radius: 4px; background: rgb(var(--pink-rgb) / 0.18); color: var(--pink-text); font-size: 0.8rem; }
.embed { margin-top: 2px; padding: 8px 12px; border-left: 4px solid var(--pink); border-radius: 6px; background: var(--surface); }
.embed-alert { border-left-color: var(--pink-text); }
.e-title { font-weight: 700; }
.e-status .dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--pink); }
.e-status .dot-full { background: var(--pink); }
.e-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 6px 0 4px; }
.e-fields p { margin: 0; }
.e-fields span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.e-fields .wide { grid-column: 1 / -1; }
.e-foot { color: var(--muted); font-size: 0.75rem; }
.e-thumb { float: right; width: 48px; height: 48px; margin: 0 0 6px 10px; border-radius: 8px; font-size: 1.2rem; }
.link, .win { color: var(--pink-text); font-weight: 700; }
.count { color: var(--muted); }
.count strong { color: var(--text); }
.sys { margin: 0 0 0 46px; color: var(--muted); font-size: 0.8rem; }
.sys0 { color: var(--muted); font-size: 0.75rem; }
/* Server stats demo: a channel list */
.d-chlist { justify-content: flex-start; gap: 2px; }
.d-cat { margin: 0 0 4px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.d-cat-gap { margin-top: 14px; }
.d-vc, .d-ch { margin: 0; padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.d-vc .ic { margin-right: 8px; font-size: 0.85em; }
.d-ch .hash { margin-right: 6px; }
.sys-list { margin: auto 0 0; }
.quote { display: block; margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line); }
.e-author { font-weight: 700; font-size: 0.8rem; }
.stars { color: var(--pink); letter-spacing: 1px; }
.d-form {
  margin: 0 0 0 46px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: 0 10px 24px -12px rgb(var(--pink-rgb) / 0.45);
}
.d-form p { margin: 0 0 8px; }
.d-form p > span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.d-form .d-select { margin: 0 0 8px; }
.slash { color: var(--muted); }
.d-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dbtn, .d-select, .d-opt {
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.8rem;
  font-weight: 600; transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.dbtn-go { background: var(--pink-text); color: var(--bg); border-color: transparent; }
.d-select { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; }
.d-menu { display: grid; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.d-opt { border: 0; border-radius: 0; background: none; }
.pressed { transform: scale(0.95); box-shadow: 0 0 0 3px rgb(var(--pink-rgb) / 0.45); }
.d-opt.pressed { transform: none; background: rgb(var(--pink-rgb) / 0.18); }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 14px; margin-top: 6px; }
.eq i { width: 4px; height: 40%; border-radius: 2px; background: var(--pink); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; } .eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { to { height: 100%; } }
.composer { margin: 0 16px 14px; padding: 9px 12px; border-radius: 8px; background: var(--surface); }
.composer .placeholder { color: var(--muted); }
.composer:has(.type.on:not(.off):not(:empty)) .placeholder { display: none; }   /* something is being typed */
.composer .type.on:not(.off)::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: var(--text); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* the timeline: hidden until its moment (only while the script runs; without it the last frame shows) */
.is-live [data-at]:not(.on), [data-off].off, .demo:not(.is-live) [data-off] { display: none; }
.is-live [data-at].on { animation: demo-in 0.35s ease both; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } }
.demo figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 0.875rem; }
.demo-toggle {
  min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid rgb(var(--pink-rgb) / 0.5); background: var(--pill-bg);
  color: var(--pink-text); font: inherit; font-weight: 700; cursor: pointer;
}
.demo-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .is-live [data-at].on, .eq i, .composer .type.on::after { animation: none; }
  .pressed { transform: none; }
}
.all-features { margin: clamp(48px, 8vw, 80px) 0 24px; }
.all-features h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.plans-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plans-list > div { padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.plans-list h3 { margin: 0 0 12px; font-size: 1.2rem; }
.plans-list a { color: var(--pink-text); }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-text { order: 0; }
  .demo-chat { height: 400px; padding: 12px; }
}

/* setup guide (upcoming/setup-guide.html): steps with the same demo player, plus simple drawings of web pages,
   Discord's add-a-bot screen and the role list. Site tokens only. */
.before { margin: 8px 0 12px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.before h2 { margin: 0 0 12px; font-size: 1.4rem; }
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 1.8em; line-height: 1.55; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--pink-text); font-weight: 700; }
.step-nav { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.step-nav ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step-nav li { counter-increment: s; }
.step-nav a {
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--pill-bg); color: var(--pink-text); font-weight: 700; text-decoration: none; font-size: 0.9rem;
}
.step-nav a::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pink-text); color: var(--bg); font-size: 0.75rem; }
.step-nav a:hover { border-color: var(--pink); }
/* the step list stays at the top of the screen while you read the steps; the step you're on is filled in (features.js) */
.step-nav-sticky {
  position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 10px var(--gutter);
  border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg);
}
.step-nav a[aria-current="step"] { background: var(--pink-text); color: var(--bg); border-color: var(--pink-text); }
.step-nav a[aria-current="step"]::before { background: var(--bg); color: var(--pink-text); }
@media (max-width: 900px) {   /* phones and small windows: just the numbers, in one row (names stay for screen readers) */
  .step-nav-sticky ol { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
  .step-nav-sticky a { padding: 4px; }
  .step-nav-sticky a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .step-nav-sticky a::before { width: 28px; height: 28px; font-size: 0.85rem; }
}
@media (max-width: 400px) {
  .step-nav-sticky ol { gap: 2px; }
  .step-nav-sticky a { padding: 2px; }
  .step-nav-sticky a::before { width: 24px; height: 24px; font-size: 0.78rem; }
}
.step .feature-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 8px 0 12px; }
.step-no { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--pink-text); color: var(--bg); font-size: 0.8rem; font-weight: 700; }
.do { display: grid; gap: 10px; margin: 14px 0; padding-left: 1.4em; list-style: decimal; line-height: 1.6; }
.do li::marker { color: var(--pink-text); font-weight: 700; }
.done, .tip { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; line-height: 1.55; }
.done { background: rgb(var(--pink-rgb) / 0.12); border: 1px solid rgb(var(--pink-rgb) / 0.35); }
.tip { background: var(--surface-2); border: 1px dashed var(--line); }
.feature-text a, .guide-box a { color: var(--pink-text); }
.demo-url { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.demo-stage { height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; overflow: hidden; }
.mock { display: grid; gap: 10px; }
.mock p { margin: 0; }
.mock-pill { justify-self: start; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--pill-bg); color: var(--pink-text); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.mock-h { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.mock-sub { color: var(--muted); }
.mock-card { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.mock-card-hi { border-color: var(--pink); }
.mock-server { display: flex; gap: 10px; align-items: center; }
.mock-server .av { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.mock-server small { color: var(--muted); }
.mock-field { display: grid; gap: 4px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.mock-field span { color: var(--text); font-size: 0.9rem; font-weight: 400; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dbtn-wide { flex: 1; text-align: center; padding: 9px 12px; }
.dlg { display: grid; gap: 8px; justify-items: center; width: min(100%, 360px); margin: 0 auto; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 16px 34px -18px rgb(var(--pink-rgb) / 0.55); text-align: center; }
.dlg p { margin: 0; }
.dlg-av { border-radius: 50%; }
.dlg-h { font-weight: 700; font-size: 1.05rem; }
.dlg-label { justify-self: start; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.dlg .d-select, .dlg .d-menu { width: 100%; text-align: left; }
.dlg-actions { justify-content: flex-end; width: 100%; }
.perms { display: grid; gap: 4px; width: 100%; text-align: left; font-size: 0.82rem; }
.perms li { position: relative; padding-left: 1.6em; }
.perms li::before { content: "\2713"; position: absolute; left: 0.2em; color: var(--pink-text); font-weight: 700; }
.perms .more { color: var(--muted); }
.perms .more::before { content: ""; }
.big-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pink-text); color: var(--bg); font-size: 1.8rem; font-weight: 700; }
.roles { display: grid; gap: 6px; }
.roles li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.rdot { width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--pink-rgb) / 0.45); }
.role-bot { border-color: var(--pink) !important; }
.role-bot .rdot { background: var(--pink-text); }
.is-live .role-moved { animation: role-up 0.7s ease both; }
@keyframes role-up { from { transform: translateY(150px); } }
.stage-note { margin: 0; text-align: center; color: var(--pink-text); font-weight: 700; }
.toggles { display: grid; gap: 6px; }
.toggles p { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); transition: left 0.2s; }
.switch-on { background: var(--pink-text); }
.switch-on::after { left: 19px; }
.guide-box { margin: clamp(40px, 7vw, 64px) 0 0; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.guide-box h2 { margin-top: 0; }
.guide-box ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; margin-bottom: 0.8rem; }
.guide-end { margin: 32px 0 8px; }
@media (prefers-reduced-motion: reduce) { .is-live .role-moved { animation: none; } }
@media (max-width: 860px) { .demo-stage { height: 420px; padding: 14px; } }

.sub-change { color: var(--pink-text); font-weight: 600; }
.sub-spots { font-weight: 600; }

/* The home page after launch (tools/upcoming.py golive): the closing band's link in the band's own text colour, and the
   "...and more" line under the feature cards. */
.closing a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more-features { margin: 18px 0 0; text-align: center; font-weight: 600; }
.more-features a { color: var(--pink-text); }
