/* bees website. Tokens are the app's "Bees" palette (bees
   cmd/bees-app/frontend/src/index.css): quiet neutrals, honey as the one
   accent. Light by default; dark follows the system unless
   <html data-theme> forces a mode (the toggle, site.js). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --background: #f7f7f5;
  --foreground: #1c1d21;
  --card: #ffffff;
  --muted: #efefec;
  --muted-foreground: #5f636d;
  --border: #e3e3df;
  --accent: #ebebe6;
  --primary: #b7791f;
  --primary-strong: #8f5e14;
  --primary-soft: #fbf1dc;
  --primary-foreground: #ffffff;
  --waiting: #2f7de1;
  --ok: #2f8a4f;
  --danger: #c2413b;
  --code-bg: #f4f4f1;
  --glow: rgba(232, 185, 62, 0.22);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 12px 40px rgba(20, 20, 30, 0.10);
  --hex: rgba(183, 121, 31, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0b0c10;
    --foreground: #e3e4e8;
    --card: #12141a;
    --muted: #181a21;
    --muted-foreground: #9ba2b2;
    --border: #23262e;
    --accent: #1e212a;
    --primary: #e8b93e;
    --primary-strong: #f0c95e;
    --primary-soft: #2b2414;
    --primary-foreground: #0b0c10;
    --waiting: #6ea8ff;
    --ok: #6cc28a;
    --danger: #f2777a;
    --code-bg: #0f1116;
    --glow: rgba(232, 185, 62, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.5);
    --hex: rgba(232, 185, 62, 0.07);
  }
}
:root[data-theme="dark"] {
  --background: #0b0c10;
  --foreground: #e3e4e8;
  --card: #12141a;
  --muted: #181a21;
  --muted-foreground: #9ba2b2;
  --border: #23262e;
  --accent: #1e212a;
  --primary: #e8b93e;
  --primary-strong: #f0c95e;
  --primary-soft: #2b2414;
  --primary-foreground: #0b0c10;
  --waiting: #6ea8ff;
  --ok: #6cc28a;
  --danger: #f2777a;
  --code-bg: #0f1116;
  --glow: rgba(232, 185, 62, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.5);
  --hex: rgba(232, 185, 62, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, kbd, pre, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
code { font-size: 0.875em; background: var(--muted); padding: 0.1em 0.35em; border-radius: 4px; }
pre code { background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted-foreground); font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--foreground); background: var(--accent); }
.nav a[aria-current="page"] { color: var(--foreground); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--primary-foreground); background: var(--primary); }
.nav a.btn-primary:hover { background: var(--primary-strong); }
.nav .btn { margin-left: 8px; }
.theme-toggle {
  border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { color: var(--foreground); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root:not([data-theme="light"]) .icon-sun { display: none; }
}
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .menu-toggle { display: grid; }
  .nav.open { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--background); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav.open a:not(.btn) { display: block; }
  .nav.open .btn { margin: 8px 0 0; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: color-mix(in srgb, var(--foreground) 25%, var(--border)); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* hero */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, var(--glow), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.3L28 64.7 0 48.5V16.2z M28 64.7v32.3' fill='none' stroke='%23b7791f' stroke-opacity='0.13' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 20%, transparent 75%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary-strong); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  padding: 5px 12px; border-radius: 999px; text-decoration: none;
}
.eyebrow:hover { border-color: var(--primary); }
.eyebrow svg { width: 14px; height: 14px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; margin: 22px auto 0; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted-foreground); max-width: 680px; margin: 22px auto 0; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-note { margin-top: 14px; font-size: 13.5px; color: var(--muted-foreground); }
.cta-note a { color: var(--muted-foreground); }

/* app window frame around screenshots */
.window {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.window-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--muted); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.window-bar i:nth-child(1) { background: #ec6a5e; } .window-bar i:nth-child(2) { background: #f4bf4f; } .window-bar i:nth-child(3) { background: #61c554; }
.hero-shot { margin: 56px auto 0; max-width: 1080px; }
.shot img { width: 100%; height: auto; }
.shot .on-dark { display: none; }
:root[data-theme="dark"] .shot .on-dark { display: block; }
:root[data-theme="dark"] .shot .on-light.has-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .on-dark { display: block; }
  :root:not([data-theme="light"]) .shot .on-light.has-dark { display: none; }
}
.shot-placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--muted-foreground); font-size: 14px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    repeating-linear-gradient(45deg, var(--muted) 0 10px, var(--card) 10px 20px);
}
.phone-frame { max-width: 300px; margin: 0 auto; border-radius: 38px; padding: 10px; background: #111; box-shadow: var(--shadow); }
.phone-frame .shot img, .phone-frame .shot-placeholder { border-radius: 30px; overflow: hidden; }
.phone-frame .shot-placeholder { aspect-ratio: 390 / 844; }

/* sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.section-head h2 { text-wrap: balance; }
.section-head p { font-size: 18px; color: var(--muted-foreground); margin: 16px 0 0; }

.feature-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.flip { grid-template-columns: 1.35fr 1fr; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: 28px; font-weight: 750; }
.feature-copy p { color: var(--muted-foreground); font-size: 17px; margin: 14px 0 0; }
.feature-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--foreground); font-size: 15.5px; }
.feature-copy li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 13px; background: var(--primary);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-row + .feature-row { margin-top: 72px; }
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--muted-foreground); margin: 8px 0 0; font-size: 15px; }
.card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 19px; height: 19px; }

/* terminal block */
.term { background: #0f1116; color: #e3e4e8; border-radius: 12px; border: 1px solid #23262e; padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; box-shadow: var(--shadow); }
.term .c { color: #8b949e; }
.term .p { color: #e8b93e; user-select: none; }

/* strip of tools */
.works-with { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chip.soon .dot { background: var(--muted-foreground); }

/* final CTA */
.final { text-align: center; }
.final h2 { max-width: 760px; margin: 0 auto; }
.final p { color: var(--muted-foreground); font-size: 18px; max-width: 600px; margin: 16px auto 0; }

/* page header for inner pages */
.page-head { padding-top: 72px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 800; }
.page-head p { font-size: 19px; color: var(--muted-foreground); max-width: 680px; margin: 16px 0 0; }
.page-body { padding-top: 24px; padding-bottom: 96px; }
.page-body section { padding: 0; border: 0; }

/* download */
.platforms { display: grid; gap: 16px; }
.platform { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.platform h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.platform h2 svg { width: 22px; height: 22px; }
.platform .note { color: var(--muted-foreground); font-size: 14px; margin-top: 6px; }
.platform .gatekeeper { grid-column: 1 / -1; font-size: 14px; }
.platform .gatekeeper code { overflow-wrap: anywhere; }
.assets { display: grid; gap: 10px; }
.asset { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); }
.asset strong { display: block; font-size: 15.5px; }
.asset span { color: var(--muted-foreground); font-size: 13.5px; }
.asset .file { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted-foreground); }
@media (max-width: 720px) { .platform { grid-template-columns: 1fr; gap: 12px; } .asset { flex-direction: column; align-items: stretch; } }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); vertical-align: middle; letter-spacing: 0; }
.badge.honey { background: var(--primary-soft); color: var(--primary-strong); }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reqs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.reqs li svg { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.reqs li .opt { color: var(--muted-foreground); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.plan h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.price { margin-top: 14px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0; }
.plan .sub { color: var(--muted-foreground); font-size: 14.5px; margin-top: 4px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; }
.plan li svg { width: 16px; height: 16px; color: var(--primary); margin-top: 4px; }
.plan .btn { width: 100%; }
.promise { margin-top: 40px; padding: 22px 24px; border-radius: 14px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.promise strong { color: var(--primary-strong); }
.fine { color: var(--muted-foreground); font-size: 13.5px; margin-top: 18px; }

/* compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare .yes { color: var(--primary); font-weight: 700; }
.compare .no { color: var(--muted-foreground); }
.table-scroll { overflow-x: auto; }

/* forms */
.interest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.interest input[type="email"], .interest input[type="text"], .interest textarea {
  flex: 1 1 220px; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--background); color: var(--foreground); min-width: 0;
}
.interest textarea { flex-basis: 100%; min-height: 84px; resize: vertical; }
.interest input:focus, .interest input[type="text"]:focus, .interest textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 18px; padding: 16px 32px 16px 0; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--muted-foreground); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { color: var(--muted-foreground); padding: 0 0 18px; font-size: 16px; }
.faq .answer p { margin: 0 0 10px; }
.faq h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin: 48px 0 6px; }
.faq h2:first-child { margin-top: 0; }

/* changelog */
.release { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--border); }
.release:first-child { border-top: 0; padding-top: 8px; }
.release-meta { position: sticky; top: 84px; align-self: start; }
.release-meta .version { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 18px; }
.release-meta time { display: block; color: var(--muted-foreground); font-size: 14px; margin-top: 4px; }
.release h2 { font-size: 24px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; }
.release h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); margin: 26px 0 8px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 6px 0; }
.release li::marker { color: var(--primary); }
.release details summary { cursor: pointer; font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); font-weight: 700; margin: 26px 0 8px; }
.beads { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 720px) { .release { grid-template-columns: 1fr; gap: 10px; } .release-meta { position: static; } }

/* prose (privacy, terms) */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted-foreground); }
.callout { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--muted); font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; font-size: 14px; color: var(--muted-foreground); }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 24px; }
.site-footer h4 { color: var(--foreground); font-size: 13px; margin: 0 0 10px; }
.site-footer a { display: block; text-decoration: none; color: var(--muted-foreground); padding: 3px 0; }
.site-footer a:hover { color: var(--foreground); }
.site-footer .brand { display: flex; color: var(--foreground); margin-bottom: 10px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.mt-lg { margin-top: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

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

/* small utilities (no inline styles: the CSP allows only this sheet) */
.mt-sm { margin-top: 14px; }
.plain { text-decoration: none; }
.band { padding: 48px 0; }
.stack { display: block; }
.h-sm { font-size: 24px; }
.h-md { font-size: 28px; margin-bottom: 20px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.split-form { min-width: min(360px, 100%); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* Accounts: sign in, account, admin */
.stack-lg { display: grid; gap: 16px; }
.signin { display: grid; gap: 12px; max-width: 420px; }
.signin .btn { justify-content: center; }
.signin .btn svg { width: 20px; height: 20px; }
.signin-status { margin: 0; min-height: 1.4em; font-size: 14.5px; color: var(--muted-foreground); }
.signin-status.error { color: var(--danger); }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.facts dt { color: var(--muted-foreground); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.card.danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); border-color: transparent; }
table.stats { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
table.stats th, table.stats td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
table.stats th { color: var(--muted-foreground); font-weight: 600; }
table.stats .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

/* promo film: a poster that becomes the player on click (nothing big loads before) */
.film-section .section-head { margin-bottom: 32px; }
.film {
  position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.film-start, .film picture, .film img, .film video { display: block; width: 100%; height: 100%; }
.film img { object-fit: cover; }
.film video { background: #000; }
.film-play {
  position: absolute; left: 50%; top: 76%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease, background 0.15s ease;
}
.film-play svg { width: 38px; height: 38px; margin-left: 5px; }
.film-start:hover .film-play, .film-start:focus-visible .film-play { transform: scale(1.06); background: var(--primary-strong); }
.film-alt { margin: 14px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.film-alt a { color: var(--muted-foreground); }
@media (max-width: 640px) {
  .film { border-radius: 10px; }
  .film-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film-play svg { width: 28px; height: 28px; margin-left: 4px; }
}

/* The OS-aware download button: site.js unhides the visitor's platform. */
[data-os-cta][hidden], [data-os-alt][hidden] { display: none; }

/* sponsors: home page spot and /sponsor list, from content/sponsors.json */
section.sponsors-section { padding: 56px 0; }
.sponsors-empty { color: var(--muted-foreground); font-size: 17px; margin: 0; }
.sponsor-logos { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; }
.center .sponsor-logos { justify-content: center; }
.sponsor-logos a { display: block; color: var(--foreground); text-decoration: none; }
.sponsor-logos img { display: block; height: 40px; width: auto; max-width: min(200px, 100%); object-fit: contain; }
.sponsor-logos .sponsor-name { font-size: 18px; font-weight: 700; }
.sponsor-logos .on-dark { display: none; }
:root[data-theme="dark"] .sponsor-logos .on-dark { display: block; }
:root[data-theme="dark"] .sponsor-logos .on-light.has-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sponsor-logos .on-dark { display: block; }
  :root:not([data-theme="light"]) .sponsor-logos .on-light.has-dark { display: none; }
}
