@font-face { font-family: "BM"; src: local("Berkeley Mono"), local("BerkeleyMono-Regular"); font-weight: 400; }
@font-face { font-family: "BM"; src: local("Berkeley Mono Bold"), local("BerkeleyMono-Bold"); font-weight: 700; }
@font-face { font-family: "BM"; src: local("Berkeley Mono SemiBold"), local("BerkeleyMono-SemiBold"); font-weight: 600; }
@font-face { font-family: "BM"; src: local("Berkeley Mono Light"), local("BerkeleyMono-Light"); font-weight: 300; }

:root {
  --paper: #f3f1ea;
  --paper-2: #e9e6dc;
  --ink: #141413;
  --ink-2: #4a4843;
  --ink-3: #85827a;
  --line: #cfcbbf;
  --accent: #e8551e;
  --cf: #e8551e;
  --gh: #5b4bc4;
  --shop: #1f7a4d;
  --you: #b3261e;
  --client: #1d5fa8;
  --ai: #5b4bc4;
  --auto: #4a4843;
  --font: "BM", "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
code { font-family: var(--font); font-size: .92em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243,241,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 24px; }
.mark { font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sq { width: 12px; height: 12px; background: var(--accent); display: inline-block; }
.top nav { display: flex; gap: 18px; overflow-x: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 12px; white-space: nowrap; }
.top nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--ink); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 28px; }
.lede { max-width: 760px; font-size: 16px; color: var(--ink-2); }

/* section scaffold */
.block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 24px; display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.num { font-size: 12px; color: var(--paper); background: var(--ink); padding: 2px 7px; font-weight: 400; transform: translateY(-3px); }
.sub { color: var(--ink-2); max-width: 820px; margin-bottom: 28px; }
.caption { font-size: 12px; color: var(--ink-3); margin-top: 14px; max-width: 820px; }
.h3 { font-size: 16px; margin: 48px 0 16px; }

/* verdict */
.verdict { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border: 1.5px solid var(--ink); background: #fff; }
.verdict-main { padding: 32px; border-right: 1.5px solid var(--ink); }
.verdict-main .big { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.verdict-main em { font-style: normal; background: var(--accent); color: #fff; padding: 0 5px; }
.verdict-why { list-style: none; margin: 0; padding: 0; }
.verdict-why li { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.verdict-why li:last-child { border-bottom: 0; }
.verdict-why b { display: block; color: var(--ink); margin-bottom: 2px; }

/* tags */
.tag { display: inline-block; font-size: 10px; letter-spacing: .08em; padding: 1px 6px; border: 1px solid currentColor; margin-right: 4px; font-weight: 600; vertical-align: 1px; }
.t-auto { color: var(--auto); }
.t-ai { color: var(--ai); }
.t-you { color: var(--you); }
.t-client { color: var(--client); }

/* pipeline */
.pipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.pipe li { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: #fff; position: relative; display: flex; flex-direction: column; }
.pipe li:not(:nth-child(5n))::after { content: "→"; position: absolute; right: -10px; top: 12px; background: var(--paper); font-weight: 700; z-index: 2; padding: 0 2px; }
.stage-n { font-size: 34px; font-weight: 300; color: var(--accent); padding: 14px 18px 0; line-height: 1; }
.stage-body { padding: 10px 18px 20px; }
.stage-body h3 { font-size: 14px; margin-bottom: 8px; }
.stage-body p { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.55; }

.state-strip { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; }
.state-strip span { background: var(--ink); color: var(--paper); padding: 3px 8px; }
.state-strip i { width: 14px; height: 1.5px; background: var(--ink); }

/* architecture */
.arch { display: grid; grid-template-columns: 1.2fr 110px 1fr; grid-template-rows: auto auto; gap: 20px 0; }
.plane { border: 1.5px solid var(--ink); background: #fff; padding: 20px; }
.p-cf { grid-row: 1 / span 2; border-top: 6px solid var(--cf); display: flex; flex-direction: column; }
.p-cf .store-row { margin-top: auto; padding-top: 16px; }
.p-shop { border-top: 6px solid var(--shop); }
.p-gh { grid-column: 3; border-top: 6px solid var(--gh); }
.plane-h { font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.plane-h span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.plane-sub { font-size: 12px; color: var(--ink-2); margin: 6px 0 16px; }
.plane-foot { font-size: 11px; color: var(--ink-3); margin: 14px 0 0; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.box { border: 1px solid var(--line); padding: 10px 12px; background: var(--paper); }
.box b { display: block; font-size: 12.5px; }
.box small { font-size: 11px; color: var(--ink-3); }
.store-row { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.store-row span { font-size: 11px; border-left: 3px solid var(--cf); padding: 4px 10px; background: var(--paper-2); }
.arrows { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 0 8px; }
.arr { font-size: 22px; font-weight: 700; text-align: center; line-height: 1; }
.arr span { display: block; font-size: 10px; font-weight: 400; color: var(--ink-2); margin: 4px 0; line-height: 1.3; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid var(--ink); font-size: 12.5px; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 12px; }
.cmp thead th:nth-child(2) { background: var(--shop); }
.cmp td:first-child { color: var(--ink-2); width: 30%; }
.cmp td.y::before, .cmp td.m::before, .cmp td.n::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; }
.cmp td.y::before { background: var(--shop); }
.cmp td.m::before { background: #d6a21e; }
.cmp td.n::before { background: var(--you); }
.partners td:first-child { width: 24%; color: var(--ink); font-weight: 600; }
.partners thead th:nth-child(2) { background: var(--ink); }

/* design system */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.two.tight { gap: 16px; margin-top: 20px; }
.layers { margin: 20px 0 0; border-top: 1.5px solid var(--ink); }
.layers dt { font-weight: 700; padding-top: 12px; }
.layers dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }
.code { background: var(--ink); color: #e9e6dc; border-radius: 2px; overflow: hidden; }
.code-h { font-size: 11px; padding: 10px 16px; border-bottom: 1px solid #333; color: #fff; }
.code-h span { color: #8d8a82; }
.code pre { margin: 0; padding: 16px; font-family: var(--font); font-size: 12px; line-height: 1.55; overflow-x: auto; }
.code .c { color: var(--accent); }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1.5px solid var(--ink); padding: 20px; }
.card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--accent); }
.card ul, .card ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.card li { margin-bottom: 6px; }
.card p { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.callout { margin-top: 16px; background: var(--ai); color: #fff; padding: 18px 22px; font-size: 13px; }

/* loop */
.loop { display: grid; grid-template-columns: repeat(6, 1fr); border: 1.5px solid var(--ink); background: #fff; }
.lp { padding: 16px; border-right: 1px solid var(--line); position: relative; }
.lp:last-child { border-right: 0; }
.lp span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--client); color: #fff; font-size: 11px; margin-bottom: 10px; }
.lp:nth-child(4) span { background: var(--ai); }
.lp:nth-child(5) span { background: var(--you); }
.lp b { display: block; font-size: 12.5px; margin-bottom: 4px; }
.lp small { font-size: 11px; color: var(--ink-3); }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: #fff; border: 1.5px solid var(--ink); }
.tier-h { background: var(--shop); color: #fff; padding: 10px 16px; font-weight: 600; font-size: 12.5px; }
.tier:nth-child(2) .tier-h { background: #145536; }
.tier:nth-child(3) .tier-h { background: var(--ink); }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tier li:last-child { border-bottom: 0; }
.tier small { display: block; color: var(--ink-3); font-size: 11px; }

/* data */
.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tbl { background: #fff; border: 1px solid var(--ink); padding: 12px 14px; }
.tbl b { display: block; font-size: 13px; margin-bottom: 4px; }
.tbl b::before { content: "▤ "; color: var(--cf); }
.tbl small { font-size: 11px; color: var(--ink-2); }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); background: #fff; }
.phase { padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.phase:last-child { border-right: 0; }
.ph-h { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.ph-h span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.phase ul { margin: 0 0 16px; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); flex: 1; }
.phase li { margin-bottom: 5px; }
.exit { font-size: 11px; background: var(--paper-2); padding: 8px 10px; margin: 0; border-left: 3px solid var(--accent); }

/* questions */
.qs { margin: 0; padding-left: 22px; max-width: 860px; }
.qs li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.qs b { color: var(--ink); }

.foot { padding: 32px 0 48px; font-size: 11px; color: var(--ink-3); }

@media (max-width: 960px) {
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .pipe li::after { display: none; }
  .verdict, .two, .grid3, .apps { grid-template-columns: 1fr; }
  .verdict-main { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .arch { grid-template-columns: 1fr; }
  .p-cf, .p-gh, .arrows { grid-row: auto; grid-column: auto; }
  .arrows { flex-direction: row; justify-content: center; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .tables { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; }
}
