/* Street on the left, café on the hero, pool on the lower right.
   A white veil fades the street out and the pool in, so the
   middle of the page is clear for the copy. */

:root {
  --ink: #111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --brown: #4b3d35;
  --brown-soft: #d9cfc8;
  --blue: oklch(0.746 0.16 232.661);
  --blue-ink: oklch(0.293 0.066 243.157);
  --green: #1f8a45;
  --wash: #e7f6ee;
  --max: 46rem;
  --scene-width: clamp(30rem, 38vw, 42rem);
  --road-width: 5rem;
}
main { position: relative; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
::selection { background: var(--blue); color: var(--blue-ink); }
.nav-wrap, .hero, .section, .site-footer {
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
}
header { border-bottom: 1px solid var(--line); background: #fff; }
.look-down { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.look-down header { position: sticky; top: 0; z-index: 20; flex: none; }
.look-down iframe { flex: 1; width: 100%; border: 0; background: #111; }
header nav {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.links { display: flex; align-items: center; gap: 1.35rem; font-size: 0.95rem; }
.nav-cta {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: #fafafa;
}
.nav-cta:hover { background: #f2f2f2; }
.hero {
  width: min(100% - 2.5rem, 44rem);
  padding: 3.25rem 0 2.75rem;
  text-align: center;
}
.prompt {
  text-align: left;
  background: #2d374d;
  color: #fff;
  border-radius: 14px;
  padding: 1.05rem 1.4rem 1.25rem;
  box-shadow: 0 18px 50px rgba(75, 61, 53, 0.16);
}
.prompt-top {
  text-align: center;
  color: var(--brown-soft);
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
}
.prompt-meta { display: flex; gap: 0.75rem; align-items: center; }
.prompt-meta .mark {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 6px;
  background: #f27e3a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
}
.prompt-meta strong { display: block; font-weight: 600; font-size: 0.95rem; }
.prompt-meta span, .prompt-path, .prompt-foot { color: var(--brown-soft); font-size: 0.82rem; }
.prompt-path { margin: 1.15rem 0 0.85rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.prompt-line {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}
.prompt-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.prompt-foot span:first-child {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.prompt-foot span:last-child {
  color: #ff9550;
  font-size: 1.05rem;
}
h1 {
  margin: 2.6rem auto 0.9rem;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
}
.lede em { font-style: normal; color: var(--ink); }
.actions {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.signup {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding: 0 1.15rem;
  border-radius: 12px;
  background: var(--blue);
  color: var(--blue-ink);
  font-weight: 700;
}
.signup:hover { filter: brightness(0.97); }
.connect { text-align: left; }
.connect p { margin: 0 0 0.45rem; font-size: 0.92rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip, .step {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.chip { padding: 0.28rem 0.55rem; font-size: 0.82rem; }
.chip.on, .step.on { background: #f4f8ff; border-color: #c9dff5; }
.docs-link {
  display: inline-block;
  margin-top: 1.15rem;
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}
.facts {
  width: min(100% - 2.5rem, 64rem);
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 1.15rem 1.1rem 1.15rem 0; }
.fact + .fact { padding-left: 1.15rem; border-left: 1px solid var(--line); }
.fact b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 0.88rem; }
.section { padding: 3.25rem 0 1rem; }
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.flow article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.3rem;
}
.flow .n {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.flow h3 { margin: 0.45rem 0 0.4rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.flow p, .peace-copy { margin: 0; color: var(--muted); }
.peace-copy { max-width: 28rem; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.pair b { display: block; font-weight: 600; }
.pair span { color: var(--muted); font-size: 0.88rem; }
.close {
  width: min(100% - 2.5rem, 40rem);
  margin: 2rem auto 0;
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.close h2 { margin-bottom: 0.85rem; }
.close p { margin: 0 auto 1.5rem; max-width: 32rem; color: var(--muted); }
.agents {
  background: #fbfaf7;
  border-block: 1px solid var(--line);
  padding: 3.5rem 0 3.75rem;
  margin-top: 2rem;
}
.agents-inner {
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
}
.agents .signup { margin-bottom: 1.35rem; }
.agents h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.agent-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.agent-chip:hover {
  border-color: #cfcfcf;
  background: #fafafa;
}
.agents .docs-link { margin-top: 1.25rem; }
.topics {
  width: min(100% - 2.5rem, 64rem);
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.topics h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.topics > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin-bottom: 2rem;
}
.topic-grid a {
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}
@media (max-width: 800px) {
  .topic-grid { grid-template-columns: 1fr; }
}
h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
h2 b { font-weight: 700; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1.75rem;
  align-items: start;
}
.editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.file-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: #ece7e2;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.path { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; }
pre {
  margin: 0;
  padding: 1rem 1.05rem 1.2rem;
  overflow: auto;
  font: 13.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #fff;
}
#filter pre { min-height: 15rem; }
pre[hidden] { display: none; }
.k { color: #1d4e89; }
.s { color: #0b6b3a; }
.m { color: #4a4a4a; }
.steps { display: flex; flex-direction: column; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.7rem 0.75rem;
  width: 100%;
}
.check {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 0.15rem;
  font-size: 0.68rem;
}
.step small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.quiet {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quiet > div { background: #fff; }
.quiet h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; }
.quiet p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.world {
  position: relative;
  overflow: visible;
  padding: 1rem 0 1.5rem;
  min-height: 28rem;
}
.world-road {
  position: absolute;
  background: #e5ded3;
  z-index: 0;
  pointer-events: none;
}
.world-road-h { height: 2.25rem; }
.world-road-v { width: 2.25rem; }
.world-road-x,
.world-road-corner { width: 2.25rem; height: 2.25rem; }
.world-piece {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.page { position: relative; }
.town-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.town-scene {
  position: absolute;
  top: 0;
  width: var(--scene-width);
  height: auto;
  aspect-ratio: 820 / 1457;
  z-index: 1;
  display: block;
  object-fit: contain;
}
.town-cafe {
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  right: 0.25rem;
  width: min(1100px, 52vw);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.town-veil {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
}
/* Bottom of the street is solid white; a short fade runs upward into the drawing. */
#town-street {
  left: -3.5rem;
  width: calc(var(--scene-width) * 0.9);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 92%, transparent 100%);
}
/* Top of the pool is solid white; a short fade runs downward into the drawing. */
#town-pool {
  right: -0.75rem;
  left: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, #000 22%, #000 100%);
}
.paver-patch {
  position: absolute;
  z-index: 2;
  width: calc(var(--road-width) * 1.7);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}
.page > section { position: relative; z-index: 3; }
.world-next { margin-top: 3.5rem; }
.world-next .facts,
.world-next .section {
  position: relative;
  z-index: 3;
  width: auto;
  margin-left: calc(var(--scene-width) * 0.9 - 2.25rem);
  margin-right: max(1.25rem, 3vw);
}
.world-pool { margin-top: 9.5rem; }
.world-pool .section {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
}
#peace {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, 52rem);
  margin-inline: auto;
}
.agents { background: transparent; border: 0; }
.agents-inner,
.close {
  width: min(100% - 2.5rem, 34rem);
  margin-left: max(1.5rem, 4vw);
  margin-right: auto;
  text-align: left;
}
.close p { margin-left: 0; margin-right: 0; }
.world .hero {
  position: relative;
  z-index: 3;
  width: min(36rem, 50vw);
  margin: 0 0 0 max(1.5rem, 10vw);
  text-align: left;
  padding-top: 2.75rem;
  padding-bottom: 1.25rem;
}
.world h1,
.world .lede { margin-left: 0; margin-right: 0; }
.world .actions { justify-content: flex-start; }
.world .hero a,
.world .hero button { position: relative; z-index: 4; }
footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 2rem;
  margin-top: 1rem;
}
.site-footer {
  display: grid;
  gap: 2.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.35;
  height: auto;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.footer-col a {
  color: var(--ink);
}
.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer-col a.muted {
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom .brand {
  font-size: 1rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1180px) {
  :root { --scene-width: clamp(18rem, 34vw, 26rem); }
  .town-cafe { width: min(1100px, 52vw); right: 1rem; }
  .world .hero { width: min(26rem, 52vw); margin-left: 6vw; }
  .world-next .facts,
  .world-next .section {
    width: auto;
    margin-left: calc(var(--scene-width) * 0.9 - 1rem);
    margin-right: 1.25rem;
  }
  .world-pool .section { width: min(100% - 2rem, 64rem); }
  #peace { width: min(24rem, 48vw); }
}
@media (max-width: 800px) {
  .links a[href="#benefit"], .links a[href="#filter"], .links a[href="/docs/quickstart"] { display: none; }
  .split, .quiet, .flow { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .world, .world-next, .world-pool { min-height: 0; padding-bottom: 1rem; margin-top: 0; }
  .town-world, .world-piece, .world-road, .paver-patch { display: none; }
  .world-next .facts,
  .world-next .section,
  .world-pool .section,
  #peace {
    width: min(100% - 2.5rem, 64rem);
    margin-inline: auto;
  }
  .agents-inner, .close {
    width: min(100% - 2.5rem, 40rem);
    margin-inline: auto;
    text-align: center;
  }
  .close p { margin-inline: auto; }
  .world .hero {
    width: min(100% - 2.5rem, 44rem);
    margin-inline: auto;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 0;
  }
  .world h1, .world .lede { margin-left: auto; margin-right: auto; }
  .world .actions { justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blink { animation: none; }
}
