@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage.woff") format("woff");
  font-weight: 200 800; font-display: swap; }
/* One look, dark (the launch brand: near-black ground, one lime accent). The 3D colours stay readable on it. */
:root {
  --bg: #0a0a0b; --surface: #16171a; --text: #ecedef; --muted: #9a9ea8; --line: #26282d;
  --accent: #c8f542; --accent-text: #0a0a0b; --ok: #4cc38a; --warn: #e0a43a; --bad: #ef6b6b;
  --view-bg: #121317; --ground: #2a2d34; --static: #4a4f5a; --body: #5b8cff; --body-2: #8fb0ff; --body-3: #3563e0;
  --robot: #c9ced8; --cloth: #e0835d;
  --radius: 10px; --display: "Bricolage Grotesque", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, .brand { font-family: var(--display); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; font-weight: 650; }
h2 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.status { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.nav a { color: var(--accent); }
.soon { color: var(--muted); cursor: default; }
.soon small { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }

/* front page */
.hero { margin: 0 -16px; }
.reel { display: block; width: 100%; max-width: calc(60vh * 16 / 9); margin: 0 auto; aspect-ratio: 16 / 9;
  background: #000; object-fit: cover; }
.pitch { max-width: 760px; margin: 28px auto 8px; text-align: center; }
.pitch h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em;
  text-wrap: balance; }
.install { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding: 6px 6px 6px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
.install code { font: 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent);
  white-space: nowrap; overflow-x: auto; }
.install code::before { content: "$ "; color: var(--muted); }
.install button { min-height: 34px; padding: 6px 12px; }
.install-rows { display: grid; gap: 8px; max-width: 640px; margin: 16px auto 6px; text-align: left; }
.install-rows .install { display: flex; margin: 0; }
.install .who { flex: 0 0 72px; font-size: 12px; color: var(--muted); }
.install.agent { align-items: flex-start; }
.install.agent .who, .install.agent button { margin-top: 2px; }
.install.agent code { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px;
  line-height: 1.5; color: var(--text); }
.install.agent code::before { content: none; }
.agents .points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.agents .points li { color: var(--muted); font-size: 14px; line-height: 1.45; }
.agents .points b { color: var(--text); font-weight: 600; display: block; }
.agents .points code { font-size: 12.5px; color: var(--accent); }
.links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
h2.section { font-size: clamp(20px, 3vw, 26px); margin: 48px 0 4px; }
.section-note { margin: 0 0 16px; }
.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.loop { margin: 0; }
.loop video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
  background: var(--view-bg); }
.loop figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.loop figcaption b { font-weight: 600; display: block; }
.loop figcaption span { color: var(--muted); font-size: 12.5px; }
.pitch .sub { color: var(--muted); font-size: 14px; margin: -4px 0 16px; text-wrap: balance; }
.loop .tag { display: inline-block; margin-top: 4px; padding: 1px 7px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: 11.5px; }
.group { margin-top: 30px; }
.group h3 { font: 600 17px/1.2 var(--display); margin: 0 0 12px; }
.loop.wide { grid-column: 1 / -1; max-width: 960px; }
/* Phones: each group is one row that swipes sideways (the page itself never scrolls sideways). */
@media (max-width: 640px) {
  .loops { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .loops::-webkit-scrollbar { display: none; }
  .loop { flex: 0 0 84%; scroll-snap-align: start; }
  .loop.wide { flex-basis: 100%; }
}
main { max-width: 1240px; margin: 0 auto; padding: 0 16px 32px; }
.intro { max-width: 640px; margin: 8px 0 20px; scroll-margin-top: 16px; }
.intro p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 14px; cursor: pointer; text-align: left;
  border: 1px solid transparent; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 6px; }
.card:hover, .card:focus-visible { border-color: var(--accent); outline: none; }
.card .thumb { height: 120px; border-radius: 8px; background: var(--view-bg); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card b { font-weight: 600; }
.card span { color: var(--muted); font-size: 13.5px; }

button, select, input { font: inherit; color: var(--text); }
button { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
  cursor: pointer; min-height: 38px; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.on { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
select, input { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  min-height: 38px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

.wait-box { max-width: 560px; margin: 24px auto; text-align: center; }
.wait-box .row { justify-content: center; margin-top: 12px; }
.clip { width: 100%; border-radius: var(--radius); background: var(--view-bg); margin-top: 12px; aspect-ratio: 16/9; }

#session:not([hidden]) { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.stage { position: relative; height: min(72vh, 720px); border-radius: var(--radius); overflow: hidden;
  background: var(--view-bg); }
.view3d { position: absolute; inset: 0; touch-action: none; }
.overlay { position: absolute; pointer-events: none; }
.top-left { top: 10px; left: 12px; } .top-right { top: 10px; right: 12px; }
.bottom-left { bottom: 8px; left: 12px; } .bottom-right { bottom: 8px; right: 12px; margin: 0; }
.center { inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); }
.title { font-weight: 600; margin-bottom: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12.5px;
  font-variant-numeric: tabular-nums; }
.chip.strong { font-weight: 600; }
.chip.bad { color: var(--bad); } .chip.warn { color: var(--warn); } .chip.ok { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.controls { display: flex; flex-direction: column; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 6px 10px; min-height: 34px; font-size: 13.5px; }
.notes { margin: 0; padding-left: 16px; }
.code { grid-column: 1 / -1; }
.code summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.code pre { background: var(--surface); border-radius: 8px; padding: 10px; overflow: auto; max-height: 360px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 8px 0 0; }

.signup { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.signup label { font-weight: 600; margin-right: 4px; }
.signup input { flex: 1 1 220px; max-width: 320px; }

@media (min-width: 861px) { .reel { border-radius: var(--radius); } .hero { margin: 0; } }
@media (max-width: 860px) {
  #session:not([hidden]) { grid-template-columns: 1fr; }
  .nav .soon { display: none; }
  .install { padding-left: 10px; gap: 6px; }
  .install code { font-size: 12.5px; }
  .install button { padding: 6px 10px; }
  .install-rows .install { flex-wrap: wrap; }
  .install-rows .install .who { flex-basis: 100%; }
  .install-rows .install code { flex: 1; min-width: 0; }
  .stage { height: 58vh; }
  h1 { font-size: 22px; }
}
