/* Tokens copied from spreadjam.com's own CSS (30 Nov 2026) */
:root {
  --paper: #f1f1f1;
  --card: #fbfbfc;
  --ink: #3d3b4f;
  --muted: #3d3b4fad;
  --faint: #3d3b4f6b;
  --rule: #55536833;
  --wash: color-mix(in srgb, var(--ink) 4%, var(--card));
  --wash2: color-mix(in srgb, var(--ink) 8%, var(--card));
  --brand: #fa114e;
  --btn: #3d3b4f;
  --btn-fg: #fff;
  --agent-eye: #1f1f1f;
  --agent-red: #ea3a2e;
  --agent-purple: #7a4de8;
  --agent-yellow: #f4b71c;
  --agent-pink: #f2679a;
  --agent-orange: #f2731d;
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --ca-up: cubic-bezier(.15, .75, .35, 1);
  --ca-down: cubic-bezier(.6, 0, .85, .35);
  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "Geist Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: light;
}
/* Dark: the theme picked on spreadjam.com (data-theme, set in the page head) wins; otherwise the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1b24;
    --card: #24232e;
    --ink: #ecebf2;
    --muted: #ecebf29e;
    --faint: #ecebf259;
    --rule: #ecebf21f;
    --btn: #ecebf2;
    --btn-fg: #1c1b24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1b24;
  --card: #24232e;
  --ink: #ecebf2;
  --muted: #ecebf29e;
  --faint: #ecebf259;
  --rule: #ecebf21f;
  --btn: #ecebf2;
  --btn-fg: #1c1b24;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.5 var(--f);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* The dashed frame spreadjam.com draws around every section */
.frame {
  position: relative;
  z-index: 1;
  background: var(--paper);
  max-width: 760px;
  margin: 0 auto;
  border-left: 1px dashed var(--rule);
  border-right: 1px dashed var(--rule);
  min-height: 100vh;
}
.sec { position: relative; padding: 56px 56px; border-bottom: 1px dashed var(--rule); }
.sec:last-child { border-bottom: 0; }
.corner { position: absolute; width: 7px; height: 7px; border: 1px solid var(--faint); background: var(--paper); }
.corner.tl { left: -4px; top: -4px; } .corner.tr { right: -4px; top: -4px; }

/* Top bar, like spreadjam.com's announcement strip */
.strip { border-bottom: 1px solid var(--rule); text-align: center; font-size: 14px; padding: 9px 16px; }
.strip a { color: var(--brand); font-family: var(--fm); font-size: 13px; text-decoration: none; margin-left: 6px; }
.strip a:hover { text-decoration: underline; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 56px; border-bottom: 1px dashed var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 26px; animation: logo-appear .5s var(--ca-up) both; }
.brand b { font: 500 26px/1 var(--f); letter-spacing: -.03em; }
.handle { font: 400 13px/1 var(--fm); color: var(--muted); text-decoration: none; }
.handle:hover { color: var(--ink); }

/* Type */
.h1 { font: 500 clamp(38px, 6vw, 58px)/.98 var(--f); letter-spacing: -.025em; text-wrap: balance; }
.h1 em { font-style: normal; color: var(--muted); }
.h2 { font: 500 clamp(30px, 4.6vw, 42px)/1.02 var(--f); letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 560px; }
.lede strong { color: var(--ink); font-weight: 400; }
.eyebrow { font: 400 13px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--brand); letter-spacing: .06em; text-transform: none; font-size: 15px; }

/* Pills */
.pillrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--rule); background: var(--card); border-radius: 3px; font: 400 12px/1 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.pill svg.i { width: 12px; height: 12px; }
.pill.on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }

/* Buttons: spreadjam.com .btn (3px radius, weight 300, 17.4px) */
.btn { height: 44px; padding: 0 20px; border-radius: 3px; font: 300 17.4px/1 var(--f); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; transition: transform .2s, background-color .15s var(--ease-ui), opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--btn); color: var(--btn-fg); }
.btn.pri:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.btn.ghost:hover { background: var(--wash); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }

/* Paste form */
.paste { margin-top: 34px; display: flex; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
.paste input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); font: 300 16px var(--f); outline: none; transition: border-color .15s var(--ease-ui); }
.paste input::placeholder { color: var(--faint); }
.paste input:focus { border-color: var(--ink); }
.paste.bad { animation: shake .35s var(--ease-ui); }
.paste.bad input { border-color: var(--brand); }
.hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hint b { color: var(--ink); font-weight: 400; }
.err { margin-top: 12px; font-size: 14px; color: var(--brand); display: none; }
.err.show { display: block; }

/* How it works: spreadjam.com's chip flow (BUYER ASKS → AGENT SEARCHES ...) */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 22px; }
.chip { font: 400 13px/1 var(--fm); letter-spacing: .08em; text-transform: uppercase; padding: 9px 11px; border: 1px solid var(--rule); background: var(--card); white-space: nowrap; }
.chip.hot { background: var(--brand); color: #fff; border-color: var(--brand); }
.flow .ln { width: 28px; height: 1px; background: var(--rule); }

/* Characters: same build as spreadjam.com's agents (body + two eyes) */
.agent { position: relative; display: inline-block; width: 34px; height: 34px; }
.agent .body { position: absolute; inset: 0; transform-origin: 50% 100%; animation: ca-idle-breathe 3.2s ease-in-out infinite; }
.agent .eyes { position: absolute; inset: 0; animation: ca-idle-glance 5s ease-in-out infinite; }
.agent .eye { position: absolute; top: 11.5%; width: 18.4%; height: 30%; border-radius: 50%; background: var(--agent-eye); animation: ca-blink 4s infinite; }
.agent .eye.l { left: 12.5%; } .agent .eye.r { right: 12.5%; }
.agent.hop .body { animation: ca-hop .9s infinite; }
.agent.done .body { animation: ca-squash 1.2s 1; }
.crew { display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 52px; }
.crew .agent:nth-child(2) .eye { animation-delay: .7s; } .crew .agent:nth-child(3) .eye { animation-delay: 1.9s; }
.crew .agent:nth-child(4) .eye { animation-delay: 1.2s; } .crew .agent:nth-child(5) .eye { animation-delay: 2.6s; }
.crew .agent:nth-child(2) .eyes { animation-delay: 1.1s; } .crew .agent:nth-child(4) .eyes { animation-delay: 2.3s; }

/* Overlay cards (loading + follow gate) */
.scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-ui); }
.scrim.show { opacity: 1; pointer-events: auto; }
.card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 32px; position: relative; box-shadow: 0 24px 60px -24px #1c1b2440; transform: translateY(8px) scale(.98); transition: transform .3s var(--ca-up); }
.scrim.show .card { transform: none; }
.card .h3 { font: 500 26px/1.1 var(--f); letter-spacing: -.02em; text-align: center; margin-top: 20px; }
.card .sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: 15px; }
.steps { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--faint); transition: color .2s; }
.steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.steps li .dot svg.i { width: 13px; height: 13px; opacity: 0; color: var(--btn-fg); }
.steps li.now { color: var(--ink); }
.steps li.now .dot { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.ok { color: var(--ink); }
.steps li.ok .dot { background: var(--btn); border-color: var(--btn); }
.steps li.ok .dot svg.i { opacity: 1; }
.bar { height: 3px; background: var(--wash2); margin-top: 26px; overflow: hidden; border-radius: 2px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease-ui); }
.x-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 3px; }
.x-close:hover { background: var(--wash); color: var(--ink); }
.gate-steps { display: grid; gap: 10px; margin-top: 26px; }
.gate-steps .row { display: flex; align-items: center; gap: 12px; }
.num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 var(--fm); background: var(--wash2); color: var(--ink); }
.row.done .num { background: var(--btn); color: var(--btn-fg); }
.fineprint { margin-top: 16px; text-align: center; font-size: 13px; color: var(--faint); }

/* Unlocked page */
.proof { display: flex; gap: 22px; align-items: center; margin-top: 18px; padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; transition: background .15s var(--ease-ui); }
.proof:hover { background: var(--wash); }
.proof .big { font: 500 clamp(40px, 7vw, 58px)/1 var(--f); letter-spacing: -.03em; }
.proof .meta { color: var(--muted); font-size: 15px; margin-top: 6px; }
.proof .go { margin-top: 12px; font: 400 13px/1 var(--fm); text-decoration: underline; text-underline-offset: 3px; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px dashed var(--rule); border-left: 1px dashed var(--rule); }
.logos span { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 18px 10px; font-size: 16px; color: var(--muted); border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); white-space: nowrap; }
.logos img { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
.note { font-size: 13px; color: var(--faint); margin-top: 12px; }
.inside { list-style: none; margin-top: 18px; border: 1px solid var(--rule); background: var(--card); border-radius: 4px; }
.inside li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.inside li:last-child { border-bottom: 0; }
.inside li span { font: 400 12px/1.6 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.how { list-style: none; display: grid; gap: 14px; margin-top: 18px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.how li code { font: 400 14px var(--fm); background: var(--wash2); padding: 1px 6px; border-radius: 3px; }
.prompt { margin-top: 22px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); overflow: hidden; }
.prompt .head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--rule); font: 400 13px var(--fm); color: var(--muted); }
.prompt .head .btn { height: 34px; font-size: 15px; padding: 0 14px; }
.prompt pre { padding: 18px; font: 400 13.5px/1.7 var(--fm); white-space: pre-wrap; word-break: break-word; background: var(--wash); }
.calm { font-size: 15px; color: var(--muted); }
.calm a { color: var(--ink); text-underline-offset: 3px; }
.back { margin-top: 26px; font: 400 13px var(--fm); color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* spreadjam.com's .reveal: blur + fade in */
.reveal { transition: opacity .5s ease-out, filter .5s ease-out, transform .5s ease-out; }
.reveal.pre { opacity: .15; filter: blur(6px); transform: scale(.98); }
[hidden] { display: none !important; }

/* Keyframes copied from spreadjam.com */
@keyframes ca-hop { 0%,20% { animation-timing-function: var(--ca-up); transform: translateY(0) } 50% { animation-timing-function: var(--ca-down); transform: translateY(-22%) } 80%,to { transform: translateY(0) } }
@keyframes ca-blink { 0%,91%,97%,to { transform: scale(1) } 94% { transform: scale(1.05,.06) } }
@keyframes ca-idle-breathe { 0%,to { transform: scale(1) } 50% { transform: scale(1.015,.98) } }
@keyframes ca-idle-glance { 0%,56%,78%,to { transform: translate(0) } 60%,72% { transform: translate(12%,-3%) } }
@keyframes ca-squash { 0%,92%,to { transform: scale(1) } 18% { transform: scale(1.12,.84) } 32% { transform: scale(.9,1.1) } 62% { transform: scale(.98,1.03) } 80% { transform: scale(1.12,.86) } }
@keyframes logo-appear { 0% { opacity: 0; transform: scale(0) translateY(4px) } to { opacity: 1; transform: scale(1) translateY(0) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes shake { 0%,to { transform: translateX(0) } 25% { transform: translateX(-6px) } 50% { transform: translateX(5px) } 75% { transform: translateX(-3px) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; filter: none; transform: none; }
}

@media (max-width: 640px) {
  .sec { padding: 40px 16px; }
  .top { padding: 18px 16px; }
  .paste { flex-direction: column; }
  .paste input { flex: none; }
  .paste .btn { width: 100%; }
  .flow { gap: 6px; }
  .flow .ln { display: none; }
  .chip { font-size: 11px; padding: 8px 8px; }
  .inside li { grid-template-columns: 1fr; gap: 4px; }
  .proof { flex-direction: column; align-items: flex-start; }
  .card { padding: 26px 20px; }
  .logos span { font-size: 15px; padding: 14px 6px; }
}

.btn:focus-visible, .paste input:focus-visible, .x-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .how li code { display: inline-block; margin-top: 6px; }
  .prompt .fname { display: none; }
  .prompt .head { justify-content: flex-end; }
}

/* Side canvas: dot grid + square trails */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(46% 42%, #0000 0% 45%, #000 100%); mask-image: radial-gradient(46% 42%, #0000 0% 45%, #000 100%); }
.strip { position: relative; z-index: 1; background: var(--paper); }

/* Hover or tap a character: squash, jump, land */
.agent { cursor: default; }
.agent.boing .body { animation: ca-boing .62s var(--ca-up) 1 !important; animation-delay: 0s !important; }
@keyframes ca-boing {
  0% { transform: translateY(0) scale(1); }
  16% { transform: translateY(0) scale(1.16, .8); }
  46% { transform: translateY(-38%) scale(.9, 1.12); animation-timing-function: var(--ca-down); }
  72% { transform: translateY(0) scale(1.12, .86); }
  86% { transform: translateY(0) scale(.97, 1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* Proof tiles (like Ernesto's "views I've generated" grid) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.stat { display: block; padding: 20px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); }
a.stat { transition: background .15s var(--ease-ui); }
a.stat:hover { background: var(--wash); }
.stat b { display: block; font: 500 clamp(30px, 4.4vw, 40px)/1 var(--f); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.note a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
.logos { grid-template-columns: repeat(12, 1fr); }
.logos span { grid-column: span 3; }
.logos span:nth-child(n+5) { grid-column: span 4; }
@media (max-width: 640px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos span, .logos span:nth-child(n+5) { grid-column: span 1; }
  .logos span:last-child { grid-column: span 2; }
}
.note code { font: 400 12.5px var(--fm); background: var(--wash2); padding: 1px 5px; border-radius: 3px; color: var(--ink); }

/* Intro note: same look as the .lede paragraphs */
.intro { margin-top: 14px; }
.intro p { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 560px; }
.intro p:first-child { margin-top: 0; }

/* "star" in the copy: a star pops up on hover, click opens GitHub */
.star-word { position: relative; color: var(--ink); text-decoration: underline dotted; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.star-word:hover { text-decoration-color: var(--agent-yellow); }
.star-word .pop { position: absolute; left: 50%; bottom: 100%; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transform: translate(-50%, 6px) scale(.2) rotate(-40deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .15s var(--ease-ui); }
.star-word .pop svg { width: 100%; height: 100%; fill: var(--agent-yellow); stroke: #1f1f1f; stroke-width: 1.2; }
.star-word:hover .pop, .star-word:focus-visible .pop { opacity: 1; transform: translate(-50%, -2px) scale(1) rotate(0deg); }

/* Star button: GitHub-style split button in Jam's style */
.star-btn { display: inline-flex; align-items: stretch; margin-top: 24px; height: 44px; border-radius: 3px; overflow: hidden; text-decoration: none; background: var(--btn); color: var(--btn-fg); font: 300 17px/1 var(--f); letter-spacing: -.01em; transition: transform .2s; }
.star-btn:active { transform: scale(.97); }
.star-btn .sb-main { display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; }
.star-btn .gh { width: 18px; height: 18px; fill: currentColor; }
.star-btn .sb-star { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border-left: 1px solid color-mix(in srgb, var(--btn-fg) 22%, transparent); transition: background .15s var(--ease-ui); }
.star-btn .sb-star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), fill .15s, stroke .15s; }
.star-btn .sb-star b { font: 400 14px/1 var(--fm); }
.star-btn .sb-star b:empty { display: none; }
.star-btn:hover .sb-star { background: color-mix(in srgb, var(--btn-fg) 10%, transparent); }
.star-btn:hover .sb-star svg { fill: var(--agent-yellow); stroke: var(--agent-yellow); transform: scale(1.25) rotate(72deg); }
@media (max-width: 640px) { .star-btn { width: 100%; } .star-btn .sb-main { flex: 1; justify-content: center; } }
.inside li a { color: var(--ink); text-underline-offset: 3px; }
html { scroll-behavior: smooth; }
#install { scroll-margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Install: two full-width buttons */
.get { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.get .arrow { transition: transform .25s var(--ca-up); }
.get .btn:hover .arrow { transform: translateY(3px); }

