/* Binders Hub, the front page. The Hub's own look: black on white or white on black, following the system, with colour
   only for state (amber waiting, green done, red found, blue working). Tokens first; components only use tokens.
   Fonts are served from the site: Nunito for display, Nunito Sans for text. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("assets/fonts/nunito-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f6f6f7;
  --ink: #0a0a0b;
  --ink-2: #3f3f46;
  --ink-3: #62626b;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --code-bg: #0a0a0b;
  --code-ink: #e4e4e7;
  --code-dim: #8b8b94;
  --shadow: 0 30px 60px -30px rgba(10, 10, 11, 0.28), 0 0 0 1px rgba(10, 10, 11, 0.08);
  --waiting: #a15c07;
  --done: #15803d;
  --found: #b91c1c;
  --working: #1d4ed8;
  --display: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0b0b0c;
    --ink: #fafafa;
    --ink-2: #d4d4d8;
    --ink-3: #a1a1aa;
    --line: #232326;
    --line-2: #34343a;
    --code-bg: #0e0e10;
    --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.09);
    --waiting: #f5b041;
    --done: #4ade80;
    --found: #f87171;
    --working: #7aa7ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font: 800 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--ink-3); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 200px; padding: 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.menu nav a { padding: 12px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.menu nav a:hover { background: var(--bg-2); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; text-decoration: none; font: 800 16px/1 var(--display); letter-spacing: -0.005em; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.button svg { width: 18px; height: 18px; }
.button.primary { background: var(--ink); color: var(--bg); }
.button.primary:hover { transform: translateY(-1px); }
.button.quiet { border-color: var(--line-2); color: var(--ink); }
.button.quiet:hover { background: var(--bg-2); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button.primary:hover { transform: none; } }
svg.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero: the words on the left, the product on the right, the flow's seven steps beneath. */
.hero { position: relative; padding-block: 72px 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; max-width: 1320px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 800 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 4px color-mix(in srgb, var(--done) 22%, transparent); }
.hero h1 { font-size: clamp(44px, 5.4vw, 78px); font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; max-width: 11ch; }
.hero .lede { margin-top: 24px; max-width: 32rem; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 22px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hero .meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta li::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--done); }

/* The product, with three parts of it lifted out: an agent asking, a Challenge finding, the change set's approval. */
.stage { position: relative; padding: 34px 0 54px 28px; }
.window { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); width: 112%; }
.window-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.url { padding: 4px 12px; border-radius: 7px; background: var(--bg); color: var(--ink-3); font: 600 12px/1.2 var(--text); }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.float { position: absolute; z-index: 1; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45); padding: 14px 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); animation: lift 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.float p { margin-top: 8px; color: var(--ink); }
.float-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.float-head b { color: var(--ink); font: 800 13px/1 var(--display); }
.float code { font-size: 12px; color: var(--ink-3); }
.who { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--bg); font: 900 10px/1 var(--display); }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font: 800 10.5px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.pill.waiting { color: var(--waiting); border-color: color-mix(in srgb, var(--waiting) 45%, transparent); background: color-mix(in srgb, var(--waiting) 12%, transparent); }
.pill.found { color: var(--found); border-color: color-mix(in srgb, var(--found) 45%, transparent); background: color-mix(in srgb, var(--found) 12%, transparent); }
.float.ask { left: -22px; top: 0; width: 300px; border-color: color-mix(in srgb, var(--waiting) 55%, var(--line-2)); animation-delay: 0.25s; }
.answer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 7px 7px 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; color: var(--ink); }
.answer .send { flex: none; padding: 5px 10px; border-radius: 7px; background: var(--ink); color: var(--bg); font: 800 11.5px/1 var(--display); }
.float.finding { right: -6%; top: 40%; width: 290px; border-left: 3px solid var(--found); animation-delay: 0.55s; }
.float.set { left: 14%; bottom: 0; display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 18px; animation-delay: 0.85s; }
.float.set b { display: block; margin-top: 3px; color: var(--ink); font: 900 15px/1.2 var(--display); letter-spacing: -0.01em; }
.float.set small { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.kicker-s { font: 800 11px/1 var(--display); letter-spacing: 0.07em; text-transform: uppercase; color: var(--waiting); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dot.done { background: var(--done); }
.approve { flex: none; padding: 11px 15px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 800 13.5px/1 var(--display); }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* The flow's seven steps, drawn like a card's lifecycle in the app: done, working, waiting, still to come. */
.lifecycle { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 64px 0 0; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.lifecycle::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 37px; height: 2px; background: linear-gradient(90deg, var(--done) 0 calc(100% / 2), var(--line-2) calc(100% / 2)); }
.lifecycle a { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 6px; text-align: center; text-decoration: none; border-radius: 10px; }
.lifecycle i { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.lifecycle .done i { background: var(--done); border-color: var(--done); }
.lifecycle .done i::after { content: ""; width: 12px; height: 12px; background: var(--bg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.lifecycle .working i { border-color: var(--working); box-shadow: 0 0 0 5px color-mix(in srgb, var(--working) 20%, transparent); }
.lifecycle .working i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--working); }
.lifecycle .waiting i { border-color: var(--waiting); }
.lifecycle b { font: 900 15px/1.1 var(--display); letter-spacing: -0.01em; }
.lifecycle span { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.lifecycle a:hover b { text-decoration: underline; text-underline-offset: 3px; }

.film-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; margin-bottom: 32px; }
.film-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.film-head p { max-width: 34rem; color: var(--ink-2); font-size: 16.5px; }
.film { border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding-block: 96px; border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.kicker { font: 800 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

/* The flow: one step per row, text beside its screen. */
.flow { display: grid; gap: 88px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 700 13px/1 var(--mono); color: var(--ink-3); }
.step-num::after { content: ""; width: 36px; height: 1px; background: var(--line-2); }
.step h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 900; line-height: 1.1; letter-spacing: -0.025em; }
.step p { margin-top: 14px; color: var(--ink-2); font-size: 17.5px; }
.step .state { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 700 13px/1 var(--display); color: var(--ink-2); }
.step .state i { width: 8px; height: 8px; border-radius: 50%; }
.shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* What sets it apart */
.apart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.apart > div { padding: 32px 30px 34px; }
.apart > div + div { border-left: 1px solid var(--line-2); }
.apart h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.apart p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.apart .tag { display: inline-block; margin-bottom: 18px; font: 700 12px/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }

/* Trust and control */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; }
.trust li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.trust li b { color: var(--ink); font-weight: 800; }
.trust li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--done); }

/* Self-host */
.host { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.host .needs { margin-top: 22px; display: grid; gap: 10px; font-size: 16px; color: var(--ink-2); }
.host .needs b { color: var(--ink); }
.host .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.terminal { border-radius: 14px; background: var(--code-bg); color: var(--code-ink); box-shadow: var(--shadow); overflow: hidden; }
.terminal .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #222226; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.terminal pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 500 14px/1.75 var(--mono); }
.terminal .dim { color: var(--code-dim); }
.terminal .then { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px dashed #2a2a2f; color: var(--code-dim); white-space: pre-wrap; }

/* The Mac app */
.mac { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.mac img { width: 88px; height: 88px; border-radius: 20px; }
.mac h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; }
.mac p { margin-top: 10px; color: var(--ink-2); max-width: 40rem; }
.mac .fine { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* Footer */
.foot { padding-block: 48px 64px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot-links a { color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot-line { width: 100%; font-size: 14px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 11ch; }
  .window { width: 100%; }
  .stage { padding: 30px 0 60px; max-width: 760px; }
  .float.ask { left: -8px; }
  .float.finding { right: -8px; }
}
@media (max-width: 760px) {
  /* The seven steps as a timeline, top to bottom. */
  .lifecycle { grid-template-columns: 1fr; gap: 0; padding-block: 20px 8px; }
  .lifecycle::before { left: 11px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: linear-gradient(180deg, var(--done) 0 50%, var(--line-2) 50%); }
  .lifecycle a { grid-template-columns: 24px auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 9px 0; text-align: left; }
  .lifecycle i { margin: 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .step, .trust, .host { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-text { order: 0; }
  .apart { grid-template-columns: 1fr; }
  .apart > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .mac { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .nav { gap: 12px; }
  .nav-end .button.primary { display: none; }
  .hero { padding-block: 44px 0; }
  .stage { padding: 0 0 70px; }
  .float { font-size: 12.5px; padding: 11px 12px; }
  .float.ask, .float.finding { display: none; }
  .float.set { left: 4px; right: 4px; gap: 12px; }
  .float.set b { font-size: 13.5px; }
  .approve { padding: 9px 11px; font-size: 12px; }
  .lifecycle { margin-top: 36px; }
  .hero .actions .button { flex: 1 1 100%; }
  .section { padding-block: 64px; }
  .flow { gap: 64px; }
  .film { border-radius: 12px; }
  .terminal pre { font-size: 12.5px; }
}
.flow { list-style: none; margin: 0; padding: 0; }
picture.shot { display: block; }
@media (min-width: 901px) { .step:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); } }
