:root {
  --bg: #f2f2f2;
  --paper: #ffffff;
  --ink: #111111;
  --gray: #8e8e8e;
  --gray-2: #6f6f6f;
  --line: #e5e5e5;
  --line-2: #dedede;
  --soft: #fafafa;
  --green: #16805c;
  --green-soft: #e7f4ee;
  --red: #c2413a;
  --red-soft: #fbeceb;
  --amber: #a8640f;
  --amber-soft: #fbf1e3;
  --font: "Satoshi", "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; }
h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.06; }
h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.muted { color: var(--gray); }

/* Frame */
.frame {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* Containers: full-bleed by default, padded content inside cells */
.container { width: 100%; padding: 0; margin: 0; }

/* Nav: full-width bar inside frame */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; }

.nav-links a {
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--gray-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); background: var(--soft); }

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover { border-color: var(--ink); }

.nav-menu { display: none; }

/* Buttons + tags: only rounded elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); }

.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--gray-2);
  font-size: 11px;
  line-height: 1.2;
}

/* Hero */
.hero { padding: 88px 32px 72px; text-align: center; background: var(--paper); }

.hero .container { max-width: 820px; margin: 0 auto; }

.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-2);
  font-size: 13px;
}

.proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.proof-stack { display: inline-flex; margin-right: 4px; }
.proof-stack i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #efefef;
  color: #6f6f6f;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}
.proof-stack i:first-child { margin-left: 0; }
.proof-sep { color: #c4c4c4; }

.hero h1 { max-width: 820px; margin: 0 auto; }
.hero h1 span { color: var(--gray); }

.hero-lede {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--gray-2);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--gray); font-size: 12px; }

/* Product band */
.band {
  position: relative;
  height: 560px;
  padding: 64px 48px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 58% at 14% 24%, #5fd0c7 0%, transparent 70%),
    radial-gradient(ellipse 48% 62% at 80% 16%, #4f86f7 0%, transparent 66%),
    radial-gradient(ellipse 58% 60% at 70% 94%, #f07b45 0%, transparent 68%),
    radial-gradient(ellipse 38% 46% at 42% 104%, #f4b05e 0%, transparent 70%),
    linear-gradient(135deg, #5fc9c5 0%, #5b8fe8 46%, #ef8a63 100%);
}

.band .container { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }

.app {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
}

.app-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.app-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
}
.app-search {
  flex: 1;
  max-width: 300px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #a0a0a0;
  font-size: 11px;
}
.app-top-right { display: flex; align-items: center; gap: 14px; margin-left: auto; color: #8e8e8e; font-size: 11px; }
.app-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: #6f6f6f;
  font-size: 10px;
  font-weight: 500;
}

.app-body { display: grid; grid-template-columns: 176px minmax(0, 1fr) 200px; min-height: 480px; }

.app-side { padding: 14px 10px; border-right: 1px solid #eee; background: #fafafa; }
.side-label { margin: 10px 8px 4px; color: #a0a0a0; font-size: 10px; }
.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 8px;
  border-radius: 4px;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}
.side-item:hover { background: #f1f1f1; color: var(--ink); }
.side-item.active { background: #ededed; color: var(--ink); font-weight: 500; }
.side-item span { color: #a0a0a0; font-family: var(--mono); font-size: 10px; }

.app-main { min-width: 0; padding: 20px; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-head h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.app-head-actions { display: flex; align-items: center; gap: 8px; }
.app-btn { height: 28px; padding: 0 10px; border: 1px solid #e8e8e8; border-radius: 4px; background: #fff; color: #6f6f6f; font-size: 10px; cursor: pointer; }
.app-btn-dark { background: #111; border-color: #111; color: #fff; }

.chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.chip-ok { background: var(--green-soft); color: var(--green); }
.chip-bad { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: #f1f1f1; color: #6f6f6f; }
.chip-warn { background: var(--amber-soft); color: var(--amber); }

.app-sub { margin-top: 3px; color: #8e8e8e; font-size: 11px; }
.event-table { margin-top: 18px; border-top: 1px solid #eee; }
.event-row {
  display: grid;
  grid-template-columns: 48px 1.25fr 1.5fr 96px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #eee;
  font-size: 11px;
}
.event-row:last-child { border-bottom: 0; }
.event-row.is-live { background: #f4f8f4; box-shadow: inset 2px 0 0 var(--green); }
.event-head { min-height: 30px; color: #a0a0a0; font-size: 10px; }
.event-row time { color: #8e8e8e; font-family: var(--mono); font-size: 10px; }
.event-row b { color: var(--ink); font-size: 12px; font-weight: 500; }
.event-row .detail { color: #8e8e8e; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row .result { color: #8e8e8e; font-family: var(--mono); font-size: 10px; text-align: right; }

.app-inspector { padding: 16px 14px; border-left: 1px solid #eee; background: #fcfcfc; }
.app-inspector h5 { margin: 0 0 8px; color: #a0a0a0; font-size: 10px; font-weight: 500; }
.insp-row { padding: 8px 0; border-bottom: 1px solid #eee; }
.insp-row span { display: block; color: #a0a0a0; font-size: 10px; }
.insp-row b { display: block; margin-top: 2px; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 500; }

/* Sections: hairline separated */
.section { background: var(--paper); border-top: 1px solid var(--line); }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 32px;
  border-bottom: 1px solid var(--line);
}

.section-head-row h2 { max-width: 560px; }
.section-head-row .lede { max-width: 420px; color: var(--gray-2); font-size: 16px; }
.section-head-row .lede p + p { margin-top: 10px; }

/* Feature rows: hairline-divided cells, no gaps */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row > div:first-child { border-right: 1px solid var(--line); }
.feature-row.is-reverse .feature-copy { order: 2; }
.feature-row.is-reverse .feature-art { order: 1; }
.feature-row.is-reverse > div:first-child { border-right: 0; border-left: 1px solid var(--line); }

.feature-copy { padding: 48px; min-width: 0; }
.feature-copy .tag { margin-bottom: 18px; }
.feature-copy h3 { margin-top: 10px; font-size: 32px; }
.feature-copy .lede { margin-top: 14px; max-width: 420px; color: var(--gray-2); font-size: 16px; }

.feature-list { margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--gray-2); font-size: 14px; }
.feature-list li::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: #bdbdbd; }

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.feature-link:hover { border-color: var(--ink); }

.feature-art {
  position: relative;
  min-height: 520px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grad-a {
  background:
    radial-gradient(ellipse 45% 60% at 20% 20%, #7bd0cb 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 82% 20%, #5b8fe8 0%, transparent 68%),
    radial-gradient(ellipse 55% 60% at 65% 90%, #ef8a63 0%, transparent 70%),
    linear-gradient(135deg, #66c7c4, #6a9fe8 55%, #ef8a63);
}
.grad-b {
  background:
    radial-gradient(ellipse 50% 60% at 25% 25%, #f2b56b 0%, transparent 68%),
    radial-gradient(ellipse 55% 65% at 80% 30%, #ef8a63 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 60% 90%, #5b8fe8 0%, transparent 68%),
    linear-gradient(135deg, #f2b56b, #ef8a63 50%, #6a9fe8);
}
.grad-c {
  background:
    radial-gradient(ellipse 50% 60% at 20% 25%, #5b8fe8 0%, transparent 68%),
    radial-gradient(ellipse 55% 60% at 80% 25%, #66c7c4 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 60% 90%, #f2b56b 0%, transparent 68%),
    linear-gradient(135deg, #5b8fe8, #66c7c4 55%, #f2b56b);
}

.mini-app {
  width: 100%;
  max-width: 430px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: #fff;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #8e8e8e;
  font-size: 10px;
}
.mini-head b { color: var(--ink); font-size: 11px; font-weight: 500; }
.mini-row {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #eee;
  font-size: 10px;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row .table { color: var(--green); font-family: var(--mono); font-size: 9px; }
.mini-row .detail { color: #8e8e8e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .action { color: #a0a0a0; font-family: var(--mono); font-size: 8px; }

.mini-chart { width: 100%; height: auto; display: block; }
.mini-chart .grid { stroke: #eee; }
.mini-chart .axis { fill: #a0a0a0; font-family: var(--mono); font-size: 9px; }
.mini-chart .line { fill: none; stroke: #111; stroke-width: 1.8; }
.mini-chart .area { fill: #111; opacity: 0.05; }
.mini-chart .point { fill: #111; }

.mini-timeline { display: grid; }
.mini-event {
  display: grid;
  grid-template-columns: 8px 38px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid #eee;
  font-size: 10px;
}
.mini-event:last-child { border-bottom: 0; }
.mini-event time { color: #a0a0a0; font-family: var(--mono); font-size: 9px; text-align: right; }
.mini-event .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.mini-event .dot.bad { background: var(--red); }
.mini-event em { color: #a0a0a0; font-family: var(--mono); font-size: 8px; font-style: normal; }

/* Tools bar */
.tools { background: var(--paper); border-top: 1px solid var(--line); padding: 20px 32px; }
.tools .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tools p { margin: 0; color: var(--gray); font-size: 13px; white-space: nowrap; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 24px; }
.tools-row span { color: var(--gray-2); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

/* Receipts 3x2 hairline grid */
.key-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.key-stat {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.key-stat:last-child { border-right: 0; }

.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-icon.is-green { background: var(--green-soft); color: var(--green); }
.stat-icon.is-blue { background: #e8effc; color: #2f62c4; }
.stat-icon.is-amber { background: #fbf1e3; color: #a8640f; }

.key-stat .value {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.key-stat .label {
  margin-top: 10px;
  color: var(--gray-2);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill-ok { background: var(--green-soft); color: var(--green); }

.quiet-line {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 12px;
  text-align: center;
}

.receipts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.receipt {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.receipt:nth-child(3n) { border-right: 0; }
.receipt:nth-last-child(-n+3) { border-bottom: 0; }
.receipt .kicker { color: var(--gray); font-size: 11px; }
.receipt .value {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.receipt .line { margin-top: 10px; color: var(--gray-2); font-size: 14px; }
.receipt .source { margin-top: 14px; color: #a8a8a8; font-size: 11px; }

/* Stats: 4-col bordered row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 40px 32px; border-right: 1px solid var(--line); text-align: left; }
.stat:last-child { border-right: 0; }
.stat .value {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { display: block; margin-top: 10px; color: var(--gray); font-size: 14px; }

/* Run: 3 cols hairline divided */
.run-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.run-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}
.run-card:last-child { border-right: 0; }
.run-card .tag { align-self: flex-start; margin-bottom: 14px; }
.run-title { margin-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.run-copy { margin-top: 6px; color: var(--gray-2); font-size: 13px; line-height: 1.5; }
.mini-copy {
  flex: none;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--gray-2);
  font-size: 10px;
  cursor: pointer;
}
.mini-copy:hover { border-color: var(--ink); color: var(--ink); }
.run-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--gray-2);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-list { margin: 18px 0 24px; padding: 0; list-style: none; }
.run-list li { display: flex; gap: 8px; padding: 5px 0; color: var(--gray-2); font-size: 13px; }
.run-list li::before { content: "✓"; color: var(--ink); font-size: 12px; line-height: 1.5; }
.run-list { flex: 1; }
.run-card .btn { margin-top: 24px; width: 100%; }

/* Limits / FAQ */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
.faq-grid > div:first-child { padding: 48px 32px; border-right: 1px solid var(--line); min-width: 0; }
.faq-grid > div:first-child h2 { max-width: 380px; }
.faq-grid > div:first-child .lede { margin-top: 16px; max-width: 360px; color: var(--gray-2); font-size: 16px; }
.faq-grid > div:first-child .tag { margin-bottom: 18px; }
.faq-grid > div:last-child { padding: 0 32px; min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gray); font-size: 18px; font-weight: 400; flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 0 18px; color: var(--gray-2); font-size: 13px; line-height: 1.6; max-width: 560px; }

/* Resources */
.resources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource {
  border-right: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.resource:last-child { border-right: 0; }
.resource-art { height: 240px; padding: 32px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.resource-art .mini-app { max-width: 260px; min-height: 154px; padding: 10px; }
.resource-art .mini-row { min-height: 26px; font-size: 9px; }
.resource-body { padding: 24px 32px 32px; }
.resource-meta { color: var(--gray); font-size: 11px; }
.resource-title { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.resource-link { display: inline-block; margin-top: 14px; color: var(--ink); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* Final CTA */
.cta { padding: 96px 32px; text-align: center; background: var(--paper); border-top: 1px solid var(--line); }
.cta h2 { max-width: 720px; margin: 0 auto; font-size: clamp(38px, 4.6vw, 58px); }
.cta p { max-width: 520px; margin: 18px auto 0; color: var(--gray-2); font-size: 17px; }

/* Footer */
.footer { padding: 40px 32px 24px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 10px; color: var(--gray); font-size: 12px; line-height: 1.55; }
.footer-cols { display: flex; gap: 72px; }
.footer-col h5 { margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; color: var(--gray-2); font-size: 12px; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; }
  .nav-links { display: none; }
  .nav .brand { justify-self: start; }
  .nav-cta { height: 36px; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    list-style: none;
  }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu-links {
    position: absolute;
    right: 0;
    top: 44px;
    z-index: 70;
    display: grid;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.3);
  }
  .nav-menu-links a {
    padding: 9px 10px;
    border-radius: 5px;
    color: var(--gray-2);
    font-size: 14px;
    text-decoration: none;
  }
  .nav-menu-links a:hover { background: var(--soft); color: var(--ink); }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature-row, .faq-grid { grid-template-columns: 1fr; }
  .feature-row > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-row.is-reverse > div:first-child { border-left: 0; }
  .feature-art { min-height: 360px; padding: 32px; }
  .feature-copy { padding: 32px; }
  .faq-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-body { grid-template-columns: 150px minmax(0, 1fr); }
  .app-inspector { display: none; }
  .key-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.key-stat {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.key-stat:last-child { border-right: 0; }

.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-icon.is-green { background: var(--green-soft); color: var(--green); }
.stat-icon.is-blue { background: #e8effc; color: #2f62c4; }
.stat-icon.is-amber { background: #fbf1e3; color: #a8640f; }

.key-stat .value {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.key-stat .label {
  margin-top: 10px;
  color: var(--gray-2);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill-ok { background: var(--green-soft); color: var(--green); }

.quiet-line {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 12px;
  text-align: center;
}

.receipts-grid { grid-template-columns: 1fr 1fr; }
  .receipt:nth-child(3n) { border-right: 1px solid var(--line); }
  .receipt:nth-child(2n) { border-right: 0; }
  .receipt:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .receipt:nth-last-child(-n+2) { border-bottom: 0; }
  .run-grid { grid-template-columns: 1fr 1fr; }
  .run-card:nth-child(2) { border-right: 0; }
  .run-card:last-child { border-top: 1px solid var(--line); border-right: 0; grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid .resource:nth-child(2) { border-right: 0; }
  .resources-grid .resource:last-child { border-top: 1px solid var(--line); border-right: 0; grid-column: 1 / -1; }
  .resources-grid .resource:last-child .resource-art { height: 220px; }
}

@media (max-width: 700px) {
  .frame { width: 100%; border-left: 0; border-right: 0; }
  .nav { padding: 0 16px; }
  .nav-cta { height: 34px; padding: 0 12px; font-size: 12px; }
  .hero { padding: 56px 16px 48px; }
  .hero h1 { font-size: 40px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .proof { flex-wrap: wrap; justify-content: center; font-size: 12px; }
  .band { height: auto; padding: 24px 16px 32px; }
  .band .container { max-width: none; }
  .app-top { padding: 0 10px; gap: 8px; }
  .app-search { display: none; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 14px; }
  .app-head-actions .app-btn { display: none; }
  .app-head-actions .app-btn-dark { display: inline-flex; }
  .event-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .event-row .detail { display: none; }
  .event-row .result { display: block; }
  .event-head span:nth-child(3) { display: none; }
  .section-head-row { padding: 32px 16px; }
  .feature-copy { padding: 28px 16px; }
  .feature-copy h3 { font-size: 26px; }
  .feature-art { min-height: 300px; padding: 24px 16px; }
  .tools { padding: 20px 16px; }
  .tools .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tools-row { justify-content: flex-start; gap: 8px 16px; }
  .tools-row span { font-size: 14px; }
  .receipts-grid, .run-grid, .resources-grid, .stats { grid-template-columns: 1fr; }
  .receipt, .run-card, .resource, .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .receipt:nth-child(3n), .receipt:nth-child(2n) { border-right: 0; }
  .receipt:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .receipt:last-child, .run-card:last-child, .resource:last-child, .stat:last-child { border-bottom: 0; }
  .run-grid .run-card:nth-child(2) { border-right: 0; }
  .run-grid .run-card:last-child { border-top: 0; grid-column: auto; }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat { padding: 28px 16px; }
  .stat .value { font-size: 38px; }
  .receipt { padding: 28px 16px; }
  .run-card { padding: 28px 16px; }
  .faq-grid > div:first-child { padding: 32px 16px; }
  .faq-grid > div:last-child { padding: 0 16px; }
  .resource-art { height: 220px; padding: 24px 16px; }
  .resource-body { padding: 20px 16px 28px; }
  .resources-grid .resource:last-child { grid-column: auto; }
  .cta { padding: 64px 16px; }
  .footer { padding: 32px 16px 20px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
