/* BrightBots site. Every token and rule is documented in DESIGN.md; change a value there and here.
   Direction: a quiet, precise product site in the manner of Linear, Vercel and Resend. A neutral off-white
   (or graphite) ground, one grotesk with character for headings, a plain text face, hairlines instead of
   boxes, and one marigold accent. The loud colour on every page is the real product: Discord windows and
   BrightBots Panel screenshots. */

/* Fonts: self-hosted variable fonts (SIL Open Font License), so no visitor data goes to a font service.
   latin covers English, Spanish, Portuguese, German and French; latin-ext adds the Turkish letters. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/noto-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/noto-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f7f4;
  --bg-sunk: #eeeeea;
  --raised: #fdfdfb;
  --ink: #16171a;
  --ink-2: #474a52;
  --ink-3: #62666f;
  --line: #e1e1db;
  --line-strong: #c4c4bc;
  --accent: #f2b33d;
  --accent-hover: #e8a52a;
  --on-accent: #16171a;
  --accent-text: #8a5400;
  --accent-soft: #f8e7c4;
  --focus: #16171a;
  --stage: #e9e9e4;
  --shadow: 0 1px 2px rgb(22 23 26 / 0.06), 0 16px 36px -16px rgb(22 23 26 / 0.24);
  --shadow-window: 0 0 0 1px rgb(22 23 26 / 0.14), 0 2px 4px rgb(22 23 26 / 0.06), 0 28px 56px -24px rgb(22 23 26 / 0.42);

  --font-display: 'Schibsted Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Geist', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.4vw, 4rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: clamp(64px, 40px + 6vw, 120px);

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 150ms;
  --base: 220ms;
  --slow: 300ms;

  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  color-scheme: light;
}

/* The dark theme follows the system unless the visitor chose a theme with the button. */
:root[data-theme='dark'] {
  --bg: #0f1012; --bg-sunk: #15161a; --raised: #1b1c21;
  --ink: #ededef; --ink-2: #b5b8bf; --ink-3: #8e929b;
  --line: #26282d; --line-strong: #3a3d44;
  --accent: #f2b33d; --accent-hover: #f6c35f; --on-accent: #16171a; --accent-text: #f5c566; --accent-soft: #3a2f1a;
  --focus: #f5c566; --stage: #17181c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 36px -16px rgb(0 0 0 / 0.7);
  --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.09), 0 28px 56px -24px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1012; --bg-sunk: #15161a; --raised: #1b1c21;
    --ink: #ededef; --ink-2: #b5b8bf; --ink-3: #8e929b;
    --line: #26282d; --line-strong: #3a3d44;
    --accent: #f2b33d; --accent-hover: #f6c35f; --on-accent: #16171a; --accent-text: #f5c566; --accent-soft: #3a2f1a;
    --focus: #f5c566; --stage: #17181c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 36px -16px rgb(0 0 0 / 0.7);
    --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.09), 0 28px 56px -24px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.icon { width: 1.125em; height: 1.125em; flex: none; stroke-width: 1.75; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 60;
  background: var(--ink); color: var(--bg); padding: var(--space-3) var(--space-4); border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--space-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type. Headings use the display face; everything else the text face. Sentence case everywhere. */
h1, h2, .product-name, .display {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); line-height: 1.04; }
h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.024em; }
h3 { font-size: var(--step-1); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.prose { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--step--1); color: var(--ink-3); line-height: 1.55; }
strong { font-weight: 600; color: var(--ink); }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link-arrow { display: inline-flex; align-items: center; gap: 0.375em; font-weight: 600; text-decoration: none; }
.text-link-arrow:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.text-link-arrow .icon { width: 1em; height: 1em; transition: transform var(--base) var(--ease); }
.text-link-arrow:hover .icon-arrow-right { transform: translateX(2px); }

/* Buttons. One marigold primary per view; everything else is the quiet button or a text link. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 10px 1.125rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn .icon { width: 1em; height: 1em; stroke-width: 2; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.14), 0 1px 2px rgb(22 23 26 / 0.12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: var(--raised); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-quiet:active { transform: translateY(1px); }
.btn-small { min-height: 36px; padding: 6px 0.875rem; font-size: 0.875rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* Header: sticky, a hairline under it, the panel as its only button. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.125rem; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-5); }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; padding: 6px 10px; border-radius: var(--radius-s); transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.nav a:hover { color: var(--ink); background: var(--bg-sunk); }
.nav a[aria-current='page'] { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-s);
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.header-panel-link { margin-left: var(--space-2); }

/* Language menu: the current language as a flag and a short code; the list names every language in its own language. */
.lang-menu { position: relative; }
.flag { display: inline-block; flex: none; width: 18px; height: 13px; border-radius: 2px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14); }
.flag-tr { background-image: url(/assets/img/flags/tr.svg); }
.flag-gb { background-image: url(/assets/img/flags/gb.svg); }
.flag-es { background-image: url(/assets/img/flags/es.svg); }
.flag-br { background-image: url(/assets/img/flags/br.svg); }
.flag-de { background-image: url(/assets/img/flags/de.svg); }
.flag-fr { background-image: url(/assets/img/flags/fr.svg); }
.lang-summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px;
  border-radius: var(--radius-s); cursor: pointer; color: var(--ink-2);
  font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang-summary::-webkit-details-marker { display: none; }
.lang-summary:hover, .lang-menu[open] .lang-summary { background: var(--bg-sunk); color: var(--ink); }
.lang-summary .icon-chevron-down { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.lang-menu[open] .icon-chevron-down { transform: rotate(180deg); }
.lang-panel, .menu-panel {
  list-style: none; margin: 0; position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 216px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow);
  padding: 6px; display: grid; gap: 2px; transform-origin: top right; animation: menu-in var(--base) var(--ease);
}
.lang-panel a, .menu-panel a { display: flex; align-items: center; gap: var(--space-3); padding: 9px 10px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); }
.lang-panel a:hover, .menu-panel a:hover { background: var(--bg-sunk); color: var(--ink); }
.lang-panel a[aria-current], .menu-panel a[aria-current='page'] { color: var(--ink); font-weight: 600; background: var(--bg-sunk); }
.menu-panel .menu-cta { margin-top: 4px; justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.menu-panel .menu-cta:hover { background: var(--accent-hover); color: var(--on-accent); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .icon-moon { display: none; }
}
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .nav, .header-panel-link { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .site-header .wrap { gap: var(--space-3); }
  .lang-summary { padding: 0 6px; }
}

/* Sections. The rhythm changes on purpose: a plain section, a sunk band, a ruled section. */
.section { padding-block: var(--space-9); }
.band { background: var(--bg-sunk); }
.rule-top { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--space-4); max-width: 44rem; margin-bottom: var(--space-7); }
.section-head h2 { max-width: 22ch; }
/* A heading that sits in a side column beside its content is one step smaller, so it keeps to two or three lines. */
.faq-grid h2, .early h2, .langs h2, .custom h2, .closing h2, .install h2, .plan-grid h2, .split h2, .how-grid h2, .compare-block > .product-copy h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); }

/* Home hero: copy on the left, the working Ticketpost demo on a stage on the right. */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-copy { display: grid; gap: var(--space-5); align-content: start; }
.hero h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.hero-note { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--ink-3); font-size: var(--step--1); line-height: 1.5; max-width: 46ch; }
.hero-note .icon { margin-top: 0.15em; color: var(--accent-text); width: 1rem; height: 1rem; }
.stage { position: relative; min-width: 0; padding: var(--space-5); border-radius: var(--radius-l); background: var(--stage); border: 1px solid var(--line); }
.stage .demo-note { padding-inline: var(--space-1); }
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-8); }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); }
  .hero h1 { font-size: clamp(3rem, 1.4rem + 3vw, 4.25rem); }
  .stage { padding: var(--space-6); }
}
@media (max-width: 600px) {
  .stage { margin-inline: calc(-1 * var(--gutter) + 8px); padding: var(--space-3); border-radius: var(--radius-m); }
}

/* Demo wrapper: a Discord window plus one sentence that says what to try. */
.demo { display: grid; gap: var(--space-3); min-width: 0; }
.demo-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); font-size: var(--step--1); color: var(--ink-3); line-height: 1.5; }
.demo-reset { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.demo-reset:hover { text-decoration-color: currentColor; }
.demo .dc-window + .dc-window-small { margin-top: var(--space-3); }
.dc-window, .panel-frame { box-shadow: var(--shadow-window); }

/* Product rows: the bot name with its avatar, one paragraph, a short list, two actions, one product view. */
.products { display: grid; gap: var(--space-9); }
.product { display: grid; gap: var(--space-6); align-items: start; }
.product-copy { display: grid; gap: var(--space-4); align-content: start; }
.product-name { display: flex; align-items: center; gap: var(--space-3); font-size: var(--step-3); line-height: 1.05; }
.product-name img { width: 40px; height: 40px; border-radius: 50%; }
.product-points { display: grid; gap: var(--space-3); padding: 0; margin: var(--space-1) 0 0; list-style: none; color: var(--ink-2); }
.product-points li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; text-wrap: pretty; }
.product-points .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--accent-text); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-3); }
.product-media { min-width: 0; }
@media (min-width: 1024px) {
  .product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .product.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .product.is-flipped .product-copy { order: 2; }
  .product-copy { padding-top: var(--space-5); }
  .product .product-copy { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

/* Stepper: a list of sentences that switches a stacked set of images with a crossfade. */
.stepper { display: grid; gap: var(--space-6); }
.stepper-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; align-content: start; border-top: 1px solid var(--line); }
.stepper-tab {
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); width: 100%; text-align: left;
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--ink-3);
  transition: color var(--base) var(--ease);
}
.stepper-tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: width var(--slow) var(--ease); }
.stepper-tab:hover { color: var(--ink-2); }
.stepper-tab[aria-selected='true'] { color: var(--ink-2); }
.stepper-tab[aria-selected='true']::after { width: 100%; }
.stepper-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 0.75rem; font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums; transition: background-color var(--base) var(--ease), border-color var(--base) var(--ease), color var(--base) var(--ease);
}
.stepper-tab[aria-selected='true'] .stepper-no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper-text { display: grid; gap: var(--space-1); }
.stepper-text strong { font-size: 1rem; font-weight: 600; color: var(--ink-2); transition: color var(--base) var(--ease); }
.stepper-tab[aria-selected='true'] .stepper-text strong, .stepper-tab:hover .stepper-text strong { color: var(--ink); }
.stepper-text span { font-size: 0.9375rem; line-height: 1.55; }
.stepper-stage { display: grid; min-width: 0; align-items: start; }
.stepper-panel { grid-area: 1 / 1; min-width: 0; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), visibility 0s linear 0s; }
.stepper-panel[data-state='hidden'] { opacity: 0; transform: translateY(6px); visibility: hidden; pointer-events: none; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear var(--base); }
@media (min-width: 1024px) {
  .stepper { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); }
}

/* BrightBots Panel screenshots: a plain dark browser frame, so they never read as Discord. */
.panel-frame { border-radius: var(--radius-m); overflow: hidden; background: #0b0d14; border: 0; }
.panel-frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #161922; border-bottom: 1px solid #23273a; }
.panel-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3142; }
.panel-frame img { width: 100%; }
.panel-frame.is-light { background: #fff; }
.panel-frame.is-light .panel-frame-bar { background: #eceae4; border-bottom-color: #dcd8cf; }
.panel-frame.is-light .panel-frame-bar i { background: #cfcac0; }
@media (max-width: 600px) {
  .panel-frame { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .panel-frame img { min-width: 560px; }
  .panel-frame-bar { position: sticky; left: 0; }
}
figcaption.caption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--ink-3); max-width: 62ch; }

/* Panel section on the home page: heading and facts beside the stepper. */
.panel-facts[role='list'] { padding-top: var(--space-6); }
.panel-facts { display: grid; gap: var(--space-4); margin-top: var(--space-7); padding: var(--space-6) 0 0; border-top: 1px solid var(--line); list-style: none; }
.panel-facts li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); color: var(--ink-2); text-wrap: pretty; }
.panel-facts .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--accent-text); }
@media (min-width: 900px) { .panel-facts { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-8); } }

/* Languages: the six languages as a quiet list beside one sentence. */
.langs { display: grid; gap: var(--space-6); align-items: start; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.lang-list li { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-4); border-bottom: 1px solid var(--line); font-weight: 500; min-width: 0; }
.lang-list .flag { width: 22px; height: 16px; }
@media (min-width: 640px) { .lang-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .langs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }

/* Early access: the one place where the accent fills a surface, as a narrow rule, not a block. */
.early { display: grid; gap: var(--space-6); }
.early-copy { display: grid; gap: var(--space-4); padding-left: var(--space-5); border-left: 3px solid var(--accent); }
.early-copy .text-link-arrow { margin-top: var(--space-2); }
@media (min-width: 1024px) { .early { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; } }

/* Features: sentence lists grouped under a sentence. */
.features { display: grid; gap: var(--space-7) var(--space-8); }
.feature-group { display: grid; gap: var(--space-4); align-content: start; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.feature-group h3 { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; }
.feature-group h3 .icon { width: 20px; height: 20px; margin-top: 0.15em; color: var(--accent-text); }
.feature-list { display: grid; gap: var(--space-3); padding: 0 0 0 32px; list-style: none; color: var(--ink-2); }
.feature-list li { position: relative; text-wrap: pretty; }
.feature-list li::before { content: ''; position: absolute; left: -16px; top: 0.75em; width: 6px; height: 1px; background: var(--ink-3); }
@media (min-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }

/* Plans */
.plan-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); } }
.plan-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; font-size: 0.9375rem; }
.plan-table th, .plan-table td { text-align: left; padding: 14px var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); background: var(--bg-sunk); }
.plan-table tbody th { font-weight: 500; color: var(--ink); }
.plan-table td { color: var(--ink-2); white-space: nowrap; width: 9rem; }
.plan-table td.is-premium { color: var(--ink); font-weight: 600; }
.plan-table tbody tr:last-child > * { border-bottom: 0; }
.plan-table .col-premium { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plan-table thead .col-premium { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, var(--bg-sunk)); }
.plan-table caption { caption-side: bottom; text-align: left; padding-top: var(--space-3); }
.plan-notes { display: grid; gap: var(--space-4); }
@media (max-width: 600px) { .plan-table th, .plan-table td { padding: var(--space-3); hyphens: auto; } .plan-table td { width: auto; white-space: normal; } }

/* Add to Discord block */
.install { display: grid; gap: var(--space-6); }
.install-options { display: grid; border-top: 1px solid var(--line); }
.install-option { display: grid; gap: var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--line); justify-items: start; }
@media (min-width: 900px) { .install { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); } }

/* FAQ: native details with an animated height where the browser supports ::details-content. */
.faq-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.005em;
  transition: color var(--fast) var(--ease);
}
.faq-item summary:hover { color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform var(--base) var(--ease); color: var(--ink-3); }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--base) var(--ease), content-visibility var(--base) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-answer { padding: 0 var(--space-7) 20px 0; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 600px) { .faq-answer { padding-right: 0; } }

/* Closing call to action: the Discord server, on a sunk band. */
.closing { display: grid; gap: var(--space-6); padding-block: var(--space-9); }
.closing h2 { max-width: 20ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
@media (min-width: 1024px) { .closing { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-8); } }

/* Product page hero */
.p-hero { padding-block: var(--space-8) var(--space-9); }
.p-hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.p-hero-copy { display: grid; gap: var(--space-5); align-content: start; }
.p-hero-copy h1 { font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.125rem); max-width: 20ch; }
.p-hero-name { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; }
.p-hero-name img { width: 36px; height: 36px; border-radius: 50%; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
.p-hero-copy .small { max-width: 52ch; }
@media (min-width: 1024px) { .p-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); } }

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); } }
.how-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }

/* Reasons: a ruled list, the claim on the left and its plain proof on the right. No cards, no icons. */
.reasons { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: reason; }
.reasons li { counter-increment: reason; display: grid; gap: var(--space-2) var(--space-7); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.reasons h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.018em; text-wrap: balance; }
.reasons p { color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }
@media (min-width: 900px) { .reasons li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }

/* Why BrightBots: a calm comparison table. The "with BrightBots" column carries the marigold rule. */
.why-rows { display: grid; border-top: 1px solid var(--line); }
.why-row { display: grid; gap: var(--space-3) var(--space-6); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.why-row h3 { font-size: var(--step-0); }
.why-row .why-usual { color: var(--ink-3); }
.why-row .why-here { color: var(--ink); padding-left: var(--space-4); border-left: 2px solid var(--accent); }
.why-label { display: block; font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--space-1); }
.why-here .why-label { color: var(--accent-text); }
.why-head { display: none; }
@media (min-width: 900px) {
  .why-row, .why-head { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); align-items: baseline; }
  .why-head { display: grid; gap: var(--space-6); padding-bottom: var(--space-3); font-size: var(--step--1); font-weight: 500; color: var(--ink-3); }
  .why-head span:last-child { color: var(--accent-text); padding-left: var(--space-4); }
  .why-row .why-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Custom bots */
.custom { display: grid; gap: var(--space-7); align-items: start; }
.custom > *, .hero-grid > *, .p-hero-grid > *, .faq-grid > *, .early > *, .langs > *, .closing > * { min-width: 0; }
.custom-order { display: grid; gap: var(--space-5); align-content: start; }
.custom-order .btn { justify-self: start; }
@media (min-width: 1024px) { .custom { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); } }
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: buy; border-top: 1px solid var(--line); }
.buy-steps li { counter-increment: buy; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); padding-block: var(--space-4); border-bottom: 1px solid var(--line); color: var(--ink-2); text-wrap: pretty; }
.buy-steps li::before {
  content: counter(buy); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 0.75rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums;
}

/* Pricing */
.price-hero { padding-block: var(--space-8) var(--space-9); }
.price-hero-grid { display: grid; gap: var(--space-7); }
.price-hero h1 { font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.125rem); max-width: 22ch; }
.price-hero .p-hero-copy .actions { margin-top: var(--space-2); }
.price-facts { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); align-self: end; }
.price-facts li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); padding-block: var(--space-4); border-bottom: 1px solid var(--line); color: var(--ink-2); text-wrap: pretty; }
.price-facts .icon { width: 18px; height: 18px; margin-top: 0.2em; color: var(--accent-text); }
@media (min-width: 1024px) { .price-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-8); } }
.compare { display: grid; gap: var(--space-8); }
.compare-block { display: grid; gap: var(--space-5); }
.compare-block h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .compare-block { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; } }
.compare-block .plan-table td { white-space: normal; }
.doc-links { display: grid; gap: var(--space-3); padding: 0; margin: 0; list-style: none; }

/* Contact page */
.contact-section { padding-bottom: var(--space-9); }
.contact-ways { display: grid; border-top: 1px solid var(--line); }
.contact-way { display: grid; gap: var(--space-2) var(--space-7); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.contact-way h2 { font-size: var(--step-2); letter-spacing: -0.018em; }
.contact-way p { color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.contact-way .actions { margin-top: var(--space-3); }
@media (min-width: 900px) { .contact-way { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: baseline; } }

/* Footer: the studio in one sentence, three link columns, then the small print. */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-6); font-size: 0.9375rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; display: grid; gap: var(--space-4); align-content: start; max-width: 34ch; }
.footer-about .brand { color: var(--ink); justify-self: start; }
.footer-about p { color: var(--ink-3); }
.footer-col { display: grid; gap: var(--space-3); align-content: start; }
.footer-col h2 { font-family: var(--font-text); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; color: var(--ink); }
.footer-col ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.footer-col a { text-decoration: none; color: var(--ink-3); transition: color var(--fast) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-3); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); }
  .footer-about { grid-column: auto; }
}

.error-page { min-height: 56vh; display: grid; align-content: center; gap: var(--space-5); justify-items: start; }
.error-page h1 { max-width: 16ch; }

/* Long documents: the legal pages. A ruled head, a sticky table of contents and a 68ch reading column. */
.doc-head { display: grid; gap: var(--space-5); padding-block: var(--space-8) var(--space-7); }
.doc-head h1 { font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.125rem); max-width: 24ch; }
.doc-head .lead { max-width: 60ch; }
.doc-meta { font-size: var(--step--1); color: var(--ink-3); }
.legal-note { display: flex; gap: var(--space-3); align-items: flex-start; max-width: 68ch; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent); background: var(--raised); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.legal-note .icon { margin-top: 0.2em; color: var(--accent-text); }
.doc-layout { display: grid; gap: var(--space-7); padding-block: var(--space-7) var(--space-9); background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.toc { align-self: start; }
.toc-title { font-size: var(--step--1); font-weight: 600; color: var(--ink); margin-bottom: var(--space-3); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.75rem 1fr; padding: 6px var(--space-3); margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; font-size: 0.875rem; line-height: 1.45; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.toc a::before { content: counter(toc); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc-body { min-width: 0; max-width: 68ch; counter-reset: sec; }
.doc-body > section { padding-block: var(--space-6); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-body > section:first-child { border-top: 0; padding-top: 0; }
.doc-body h2 { font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.018em; margin-bottom: var(--space-4); counter-increment: sec; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.doc-body h2::before { content: counter(sec); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.doc-body h3 { font-size: 1rem; margin: var(--space-5) 0 var(--space-2); }
.doc-body p, .doc-body li { color: var(--ink-2); line-height: 1.7; text-wrap: pretty; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p, .doc-body p + ol, .doc-body ol + p, .doc-body * + .facts, .doc-body .facts + p, .doc-body * + .doc-table-wrap, .doc-body .doc-table-wrap + p { margin-top: var(--space-4); }
.doc-body ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.doc-body ul > li { padding-left: 1.25rem; position: relative; }
.doc-body ul > li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1px; background: var(--ink-3); }
.doc-body ol { padding-left: 1.5rem; display: grid; gap: var(--space-2); }
.doc-body ol > li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc-layout > .product-copy h2 { font-size: var(--step-2); }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-8); }
  .toc { position: sticky; top: calc(var(--header-h) + var(--space-5)); max-height: calc(100vh - var(--header-h) - 2 * var(--space-5)); overflow-y: auto; }
}
.doc-short { padding-block: var(--space-7) var(--space-9); background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.doc-short .doc-body h2::before { content: none; }
.doc-short .doc-body h2 { display: block; }

/* Facts: a definition list with hairlines between rows. */
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: var(--space-1) var(--space-5); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--ink-3); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 600px) { .facts > div { grid-template-columns: 13rem 1fr; align-items: baseline; } }

/* A seller detail the owner has not written yet. Only a local build in paid mode shows it. */
mark.fill-in { background: transparent; color: var(--accent-text); border: 1px dashed var(--accent-text); border-radius: 4px; padding: 0 0.35em; font-weight: 600; font-size: 0.9375em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.7; }

/* Tables inside documents scroll sideways on phones instead of widening the page. */
.doc-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--radius-m); border: 1px solid var(--line); }
.doc-table { width: 100%; border-collapse: collapse; background: var(--raised); font-size: 0.9375rem; min-width: 34rem; }
.doc-table th, .doc-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.doc-table thead th { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); background: var(--bg-sunk); }
.doc-table tbody th { font-weight: 600; color: var(--ink); }
.doc-table td { color: var(--ink-2); }
.doc-table tr:last-child > * { border-bottom: 0; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
