:root {
  --bg: #F2F2EE;
  --bg-2: #E8E8E2;
  --ink: #141414;
  --ink-2: #3D3D3A;
  --muted: #5A5A55;
  --line: #C9C9C2;
  --line-strong: #141414;
  --link: #1A4DDB;
  --ok: #1E7B45;
  --white: #FFFFFF;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 48px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link); text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 100; }

/* Top bar */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar .brand { font-weight: 500; }
.topbar .meta { color: var(--muted); text-align: center; }
.topbar nav { display: flex; justify-content: flex-end; gap: 24px; }
.topbar nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar .meta { display: none; }
}
@media (max-width: 560px) {
  .topbar nav { gap: 16px; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  padding: 72px var(--gutter) 56px;
  border-bottom: 1px solid var(--line-strong);
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  max-width: 900px;
}
.hero .intro { font-size: 18px; color: var(--ink-2); max-width: 720px; margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 2px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; color: var(--ink); background: var(--bg-2); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: #2A2A2A; color: var(--bg); }
.btn svg { flex: none; }

.stats {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 13px;
  align-self: start;
}
.stats div { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.stats div:last-child { border-bottom: none; }
.stats span:first-child { color: var(--muted); }

/* Filter bar */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 13px;
}
.filters .label { margin-right: 6px; }
.filters .spacer { flex-grow: 1; }
.chip {
  min-height: 36px; padding: 0 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip.soft { border-color: var(--line); }
.chip.soft[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--white); }
.filters .count { color: var(--muted); }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 300px;
}
.card:nth-child(4n) { border-right: none; }
.card.hidden { display: none; }
.card .head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.card h3 { font-size: 24px; line-height: 1.15; }
.card h3 a:hover { color: var(--link); }
.card .desc { font-size: 14px; color: var(--ink-2); flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.tag { padding: 4px 8px; border: 1px solid var(--ink); border-radius: 2px; }
.tag.area { border-color: var(--line); }
.tag.available { background: var(--ok); border-color: var(--ok); color: var(--white); }
.card .more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-height: 44px; }
.card.next { background: var(--bg-2); justify-content: center; }
.card.next h3 { font-size: 22px; }
.card.next .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(4n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card:nth-child(2n), .card:nth-child(4n) { border-right: none; min-height: 0; }
}

/* Areas */
.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}
.areas > div { padding: 32px 24px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.areas > div:first-child { grid-column: 1 / -1; padding: 20px var(--gutter) 0; border-right: none; border-top: none; }
.areas > div:nth-child(4n+1) { border-right: none; }
.areas .name { font-size: 20px; font-weight: 500; margin: 12px 0 8px; }
.areas .blurb { font-size: 14px; color: var(--ink-2); }
.areas .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas > div:nth-child(4n+1) { border-right: 1px solid var(--line); }
  .areas > div:nth-child(2n+1) { border-right: none; }
}
@media (max-width: 640px) {
  .areas { grid-template-columns: 1fr; }
  .areas > div, .areas > div:nth-child(4n+1) { border-right: none; padding: 24px var(--gutter); }
}

/* About + contact */
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}
.two > section { padding: 64px var(--gutter); }
.two > section:first-child { border-right: 1px solid var(--line); }
.two h2 { font-size: 32px; line-height: 1.15; margin: 20px 0; }
.two .body { font-size: 16px; color: var(--ink-2); max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.two .links { display: flex; gap: 24px; margin-top: 20px; font-size: 14px; font-weight: 500; }
.two .links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .two > section:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .two > section { padding: 40px var(--gutter); }
}

/* Forms */
form.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
form.contact .field { display: flex; flex-direction: column; gap: 6px; }
form.contact .field.wide { grid-column: span 2; }
form.contact label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
form.contact input, form.contact select, form.contact textarea {
  min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--white); color: var(--ink);
  font-size: 15px; font-family: inherit;
}
form.contact textarea { resize: vertical; }
form.contact button { grid-column: span 2; min-height: 48px; }
form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-status { font-family: var(--mono); font-size: 13px; margin-top: 12px; min-height: 20px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #B42318; }
@media (max-width: 560px) {
  form.contact { grid-template-columns: 1fr; }
  form.contact .field.wide, form.contact button { grid-column: span 1; }
}

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }

/* Product page */
.crumbs { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px;
  padding: 64px var(--gutter) 56px; border-bottom: 1px solid var(--line-strong);
}
.product-hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; margin: 16px 0 20px; }
.product-hero .lead { font-size: 19px; color: var(--ink-2); max-width: 720px; }
.product-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.spec { border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; align-self: start; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: none; }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { text-align: right; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; } }

.product-body {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  border-bottom: 1px solid var(--line-strong);
}
.product-body > div { padding: 48px var(--gutter); }
.product-body > div:first-child { border-right: 1px solid var(--line); }
.product-body h2 { font-size: 24px; margin: 12px 0 16px; }
.product-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.product-body li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); max-width: 720px; }
.product-body li:last-child { border-bottom: 1px solid var(--line); }
.product-body .audience { font-size: 16px; color: var(--ink-2); }
@media (max-width: 900px) {
  .product-body { grid-template-columns: 1fr; }
  .product-body > div:first-child { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
}

.signup { padding: 56px var(--gutter); border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; }
.signup h2 { font-size: 28px; margin: 12px 0 12px; }
.signup p { color: var(--ink-2); max-width: 520px; }
form.waitlist { display: flex; flex-direction: column; gap: 12px; }
form.waitlist .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
form.waitlist label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
form.waitlist input { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); font-size: 15px; font-family: inherit; }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { form.waitlist .row { grid-template-columns: 1fr; } }

.related { padding: 40px var(--gutter) 0; }
.related .label { display: block; margin-bottom: 8px; }
.related .grid { border-top: 1px solid var(--line-strong); margin-top: 16px; }

.notfound { padding: 96px var(--gutter); }
.notfound h1 { font-size: 48px; margin-bottom: 16px; }

/* Brand lockup */
.topbar .brand, .footer .brand { display: inline-flex; align-items: center; gap: 10px; }
.topbar .brand .mark, .footer .brand .mark { flex: none; display: block; }
.footer .brand { color: var(--muted); }

/* Progress */
.progress { padding: 56px var(--gutter); border-bottom: 1px solid var(--line-strong); }
.progress h2, .buildlog h2 { font-size: 28px; margin: 12px 0 24px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.stage { position: relative; padding: 0 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stage .dot { width: 15px; height: 15px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); position: relative; z-index: 1; }
.stage.done .dot { background: var(--ink); }
.stage.current .dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px rgba(30,123,69,0.18); }
.stage.next .dot { border-color: var(--line); }
.stage-label { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.stage.next .stage-label { color: var(--muted); }
.stage.current .stage-label { font-weight: 500; color: var(--ok); }
.stage-note { font-size: 13px; color: var(--ink-2); }
.progress .next-up { margin-top: 28px; font-size: 16px; color: var(--ink-2); display: flex; gap: 16px; align-items: baseline; }
@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; gap: 14px; }
  .stages::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stage { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* Build log */
.buildlog { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; padding: 56px var(--gutter); border-bottom: 1px solid var(--line-strong); }
.buildlog .hint { font-size: 14px; color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
@media (max-width: 900px) { .buildlog { grid-template-columns: 1fr; gap: 20px; } .log li { grid-template-columns: 1fr; gap: 4px; } }

/* Screenshots */
.shots { padding: 40px var(--gutter) 56px; border-bottom: 1px solid var(--line-strong); }
.shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: var(--white); }
.shot figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.shot .frame { aspect-ratio: 4 / 3; border: 1px dashed var(--line); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; padding: 16px; }
.shot .frame .sub { font-size: 11px; }
@media (max-width: 760px) { .shot-row { grid-template-columns: 1fr; } }
