/* Beans Workbench website. The Launcher's look: gold on a warm dark ground, Anton titles,
   Rajdhani text. Breakpoints: 900 px (two columns, folded nav) and 560 px (one column). */
:root {
  --bg: #12100c; --bg2: #1a1712; --panel: #201c16; --line: #3a3226;
  --gold: #d4af37; --gold2: #e5c55e; --teal: #3fa3a2; --cream: #f3e9c8;
  --fg: #ece6d8; --dim: #a89f8c; --faint: #7a7160;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Rajdhani", system-ui, sans-serif; font-size: 18px; line-height: 1.55; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, .prose a, .doc a, .note a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: .85em; background: #0c0b08; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; overflow-wrap: anywhere; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, .anton { font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: 72px; line-height: .98; margin: 14px 0 18px; text-transform: uppercase; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
h2 { font-size: 44px; line-height: 1.05; margin: 0 0 14px; text-transform: uppercase; }
h2 .sub { display: block; font-size: .55em; color: var(--gold); margin-top: 8px; letter-spacing: .03em; }
h3 { font-size: 21px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; }
.lead { color: var(--dim); font-size: 20px; max-width: 680px; }
.note { color: var(--faint); font-size: 14.5px; margin: 14px 0 0; max-width: 820px; }
.dim { color: var(--dim); }
section { padding: 88px 0; border-top: 1px solid rgba(212, 175, 55, .08); }
section.tight { padding: 40px 0 88px; border-top: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; border: 1px solid var(--line); text-decoration: none !important; color: var(--fg); }
.btn.gold { background: var(--gold); color: #17130a; border-color: var(--gold); box-shadow: 0 6px 24px rgba(212, 175, 55, .25); }
.btn.gold:hover { background: var(--gold2); }
.btn.ghost:hover { border-color: var(--gold); }
.cta { display: flex; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.meta { display: flex; gap: 8px 18px; color: var(--faint); font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.meta span::before { content: "■ "; color: var(--gold); font-size: 10px; vertical-align: 2px; }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .06); display: block; width: 100%; background: #0c0b08; }
.caption { color: var(--faint); font-size: 14px; margin: 8px 0 0; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 10; background: rgba(18, 16, 12, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 175, 55, .12); }
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
nav .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
nav .brand b { font-family: "Anton"; font-weight: 400; font-size: 20px; color: var(--gold); letter-spacing: .02em; display: block; line-height: 1.1; }
nav .brand small { display: block; font-family: "Anton"; font-size: 11px; color: var(--fg); letter-spacing: .2em; }
nav .links { display: flex; gap: 22px; color: var(--dim); font-weight: 600; font-size: 16px; }
nav .links a:hover, nav .links a[aria-current] { color: var(--fg); }
nav .right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
nav .right .btn { padding: 9px 16px; font-size: 13px; }
nav details.langs { position: relative; }
nav details.langs summary { list-style: none; cursor: pointer; color: var(--dim); font-weight: 700; font-size: 15px; letter-spacing: .06em; padding: 6px 4px; }
nav details.langs summary::-webkit-details-marker { display: none; }
nav details summary::marker, details.faq summary::marker { content: ""; }
nav details.langs summary::after { content: " ▾"; font-size: 11px; }
nav details.langs summary:hover, nav details.langs[open] summary { color: var(--fg); }
nav details.langs > div { position: absolute; right: 0; top: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 150px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
nav details.langs > div a { padding: 8px 12px; border-radius: 6px; font-weight: 600; color: var(--dim); }
nav details.langs > div a:hover { background: rgba(212, 175, 55, .08); color: var(--fg); }
nav details.menu { display: none; margin-left: auto; position: relative; }
nav details.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
nav details.menu summary::-webkit-details-marker { display: none; }
nav details.menu[open] summary { border-color: var(--gold); }
nav details.menu > div { position: absolute; right: 0; top: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 220px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
nav details.menu > div a { padding: 10px 12px; border-radius: 6px; font-weight: 600; }
nav details.menu > div a:hover { background: rgba(212, 175, 55, .08); }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; border-top: none; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 15% 0%, rgba(212, 175, 55, .18), transparent 70%), radial-gradient(700px 400px at 90% 20%, rgba(63, 163, 162, .10), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(135deg, var(--gold) 0 14px, #17130a 14px 28px); opacity: .55; }
.hero .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; position: relative; }
.hero .grid > * { min-width: 0; }
.hero .watch { color: var(--gold2); font-weight: 700; }
.page-head { padding: 64px 0 36px; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--gold) 0 14px, #17130a 14px 28px); opacity: .45; }
.page-head h1 { font-size: 60px; }

/* grids */
.g2, .g3, .g4 { display: grid; gap: 16px; margin-top: 30px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.card p { color: var(--dim); font-size: 16px; margin: 0; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); margin-bottom: 12px; }
.card .tag.gold { color: var(--gold2); border-color: rgba(212, 175, 55, .45); }
.card img.shot { margin-bottom: 16px; border-radius: 8px; }
a.card { display: block; transition: border-color .15s; }
a.card:hover { border-color: rgba(212, 175, 55, .55); }
a.card .more { color: var(--gold2); font-weight: 700; font-size: 15px; margin-top: 10px; display: inline-block; }

/* steps (just ask) */
.steps .card small { color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: 13px; }

/* tools */
.group-title { font-family: "Anton"; font-size: 15px; letter-spacing: .16em; color: var(--gold); margin: 34px 0 -14px; text-transform: uppercase; }
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: block; min-width: 0; }
.tool:hover { border-color: rgba(212, 175, 55, .55); }
.tool b { display: block; font-size: 19px; margin-bottom: 2px; }
.tool p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.4; }
.tool .was { color: var(--faint); font-size: 13px; margin-top: 8px; display: block; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(63, 163, 162, .5); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }

/* feature rows */
.row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; margin-top: 64px; }
.row > * { min-width: 0; }
.row.flip { grid-template-columns: 1.15fr .85fr; }
.row.flip .txt { order: 2; }
ul.bul { padding: 0; list-style: none; margin: 18px 0 0; }
ul.bul li { padding: 6px 0 6px 26px; position: relative; color: var(--dim); }
ul.bul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 3px; background: var(--gold); }
ul.bul li b { color: var(--fg); }
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.asks div { border-left: 3px solid var(--gold); padding: 10px 14px; background: rgba(212, 175, 55, .05); color: var(--fg); font-size: 16px; font-style: italic; }
.flow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.flow span { font-family: ui-monospace, monospace; font-size: 12.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--gold2); background: #0c0b08; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tiles figure { margin: 0; }
.tiles img { width: 100%; display: block; }
.tiles figcaption { font-family: monospace; font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.item { background: radial-gradient(260px 160px at 50% 60%, rgba(212, 175, 55, .10), transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.item img { width: 100%; height: 160px; object-fit: contain; }
.item b { display: block; font-size: 16px; }
.item span { color: var(--faint); font-size: 13px; font-family: monospace; }

/* proof */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.proof .card { padding: 20px; }
.proof .card b { font-family: "Anton"; font-weight: 400; font-size: 38px; color: var(--fg); display: block; line-height: 1; }
.proof .card span { color: var(--dim); font-size: 15px; }
pre.run { background: #0c0b08; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; color: var(--dim); font-size: 13.5px; line-height: 1.6; overflow-x: auto; margin: 0; }
pre.run b { color: var(--gold2); font-weight: 400; }
pre.run i { color: var(--teal); font-style: normal; }
pre.cmd { background: #0c0b08; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--gold2); font-size: 14px; overflow-x: auto; margin: 14px 0 0; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.groups div { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: var(--panel); min-width: 0; }
.groups b { font-family: "Anton"; font-weight: 400; font-size: 30px; color: var(--gold2); line-height: 1; }
.groups h3 { font-size: 16px; margin: 6px 0 2px; }
.groups p { color: var(--dim); font-size: 13px; margin: 0; line-height: 1.4; font-family: monospace; overflow-wrap: anywhere; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.agents span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; background: var(--panel); }

/* video */
.video { position: relative; }
.video video { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #0c0b08; aspect-ratio: 16 / 9; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.plans .card { padding: 22px; display: flex; flex-direction: column; }
.plans .card .tag { align-self: flex-start; }
.plans ul { margin-bottom: 18px; }
.plans .plan-cta { margin-top: auto; justify-content: center; }
.plans .card.best { border-color: rgba(212, 175, 55, .6); box-shadow: 0 0 0 1px rgba(212, 175, 55, .25); }
.plans .price { font-family: "Anton"; font-size: 44px; line-height: 1; color: var(--fg); margin: 6px 0 2px; }
.plans .price small { font-family: "Rajdhani"; font-size: 15px; color: var(--dim); font-weight: 600; }
.plans .for { color: var(--dim); font-size: 15px; margin: 0 0 10px; min-height: 44px; }
.plans ul { padding: 0; list-style: none; margin: 0; }
.plans li { padding: 5px 0 5px 20px; position: relative; color: var(--dim); font-size: 15px; line-height: 1.4; }
.plans li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 3px; background: var(--gold); }
.plans li b { color: var(--fg); }
.packs { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.packs .card { padding: 18px 22px; }
.packs .card b { font-family: "Anton"; font-weight: 400; font-size: 26px; color: var(--gold2); display: block; line-height: 1.1; }

/* download */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.dl .card h3 { font-size: 26px; }
.dl .card .btn { margin-top: 16px; }
.dl ol, .prose ol { color: var(--dim); padding-left: 22px; }
.dl li { margin: 4px 0; }

/* suite */
.suite { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; margin-top: 36px; }
.suite .card { display: flex; gap: 20px; align-items: center; }
.suite .card img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.suite .card p { margin: 6px 0 12px; }
.suite .arrow { align-self: center; font-family: "Anton"; color: var(--gold); font-size: 15px; letter-spacing: .12em; text-align: center; line-height: 1.3; }
.suite .arrow div { font-size: 34px; }
.suite a.link { color: var(--gold2); font-weight: 700; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 860px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; position: relative; padding-right: 30px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--gold); font-family: "Anton"; font-size: 22px; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--dim); margin: 8px 0 0; }

/* changelog */
.log { display: grid; gap: 14px; margin-top: 30px; max-width: 860px; }
.log .card small { color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.log .card ul { color: var(--dim); margin: 8px 0 0; padding-left: 20px; }

/* final */
.final { text-align: center; padding: 100px 0; background: radial-gradient(700px 300px at 50% 100%, rgba(212, 175, 55, .14), transparent 70%); }
.final h2 { font-size: 56px; }
.final .lead { margin: 0 auto 26px; }
.final .cta { justify-content: center; }

/* docs and legal */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 96px; }
.docnav { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 15.5px; }
.docnav b { display: block; font-family: "Anton"; font-weight: 400; letter-spacing: .12em; color: var(--gold); font-size: 13px; text-transform: uppercase; margin: 16px 0 4px; }
.docnav a { display: block; color: var(--dim); padding: 2px 0; }
.docnav a:hover, .docnav a[aria-current] { color: var(--fg); }
.docnav a[aria-current] { font-weight: 700; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 8px; }
.crumbs a { color: var(--gold2); }
.doc, .prose { font-family: system-ui, "Segoe UI", sans-serif; font-size: 16.5px; line-height: 1.7; max-width: 820px; min-width: 0; }
.prose { padding-top: 48px; padding-bottom: 96px; }
.doc h1, .prose h1 { font-size: 46px; margin-top: 0; }
.doc h2, .prose h2 { font-size: 26px; margin: 40px 0 10px; color: var(--cream); }
.doc h3, .prose h3 { font-size: 18px; margin: 26px 0 6px; color: var(--cream); }
.doc li, .prose li { margin: 4px 0; }
.doc pre { background: #0c0b08; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
.doc pre code { border: none; padding: 0; background: none; }
.doc table, .prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td, .prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 0; padding: 4px 16px; color: var(--dim); }
.docindex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.docgroup { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.docgroup h2 { font-size: 20px; color: var(--gold); margin-bottom: 8px; }
.docgroup a { display: block; padding: 4px 0; font-weight: 600; }
.docgroup a:hover { color: var(--gold2); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--faint); font-size: 15px; }
footer .wrap { display: flex; gap: 28px 48px; flex-wrap: wrap; }
footer .tag { max-width: 260px; }
footer b { color: var(--dim); display: block; margin-bottom: 6px; }
footer a { display: block; color: var(--faint); padding: 1px 0; }
footer a:hover { color: var(--fg); }
footer .legal { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }

/* ≤ 900 px: two columns, folded nav */
@media (max-width: 900px) {
  nav .links, nav .right { display: none; }
  nav details.menu { display: block; }
  h1 { font-size: 54px; }
  .page-head h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero .grid, .row, .row.flip, .suite, .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .row.flip .txt { order: 0; }
  .row { margin-top: 48px; }
  .g3, .g4, .plans, .proof, .groups, .items, .dl, .docindex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asks { grid-template-columns: minmax(0, 1fr); }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .packs .card:first-child { grid-column: 1 / -1; }
  .suite .arrow { display: none; }
  .docnav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .docnav b { flex-basis: 100%; margin-top: 8px; }
  .docs { padding-top: 24px; gap: 24px; }
}
/* ≤ 560 px: one column */
@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 42px; }
  .page-head h1, .doc h1, .prose h1 { font-size: 36px; }
  h2, .final h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  .g2, .g3, .g4, .plans, .proof, .groups, .dl, .docindex, .packs, .tiles { grid-template-columns: minmax(0, 1fr); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item img { height: 110px; }
  .card { padding: 20px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .suite .card { flex-direction: column; align-items: flex-start; }
  footer .wrap > div { flex-basis: 45%; }
}

/* tutorial videos: on a tool's doc page, and the /tutorials/ grid */
.tutorial { margin: 18px 0 30px; scroll-margin-top: 90px; }
.tutorial video, .tut video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); background: #0c0b08; }
.tutorial figcaption { margin-top: 8px; color: var(--dim); font-size: .9em; }
.tutgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 30px; }
.tut h2 { font-size: 1.2rem; margin: 12px 0 2px; }
.tut p { margin: 0; }
