/* Layout idea: a buyer's desk. The supplier's typed list sits beside the clean sheet it becomes,
   and one highlighter stroke marks what changed. Everything else stays quiet, ruled and left-aligned. */
:root {
  --paper: #eef3f0;
  --sheet: #ffffff;
  --ink: #14261d;
  --muted: #55675d;
  --rule: #c9d6ce;
  --leaf: #17603f;
  --on-leaf: #f4faf6;
  --mark: #ffe04a;
  --flag: #a8421b;
  --flag-bg: #fbe9df;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --typed: "Courier Prime", "Courier New", Courier, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1814;
    --sheet: #17231d;
    --ink: #e6efe9;
    --muted: #9db0a5;
    --rule: #2c3b33;
    --leaf: #7fd3a4;
    --on-leaf: #0f1814;
    --mark: #6f6100;
    --flag: #f3a27a;
    --flag-bg: #3a2318;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1814;
  --sheet: #17231d;
  --ink: #e6efe9;
  --muted: #9db0a5;
  --rule: #2c3b33;
  --leaf: #7fd3a4;
  --on-leaf: #0f1814;
  --mark: #6f6100;
  --flag: #f3a27a;
  --flag-bg: #3a2318;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--leaf); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
main { flex: 1 0 auto; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--leaf); font-weight: 700; }

/* Shared section rhythm */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.band:last-of-type { border-bottom: 0; }
.label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem 3rem;
}
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1rem; }

/* Home */
.home-hero h1 {
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.home-hero .tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  margin-top: 1.1rem;
}
.home-hero .tag .mark { padding: 0 0.15em; }
.home-hero .lede { margin-top: 1.75rem; max-width: 36rem; font-size: 1.1875rem; }

.work { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.work li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.work .name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.work .name a { color: var(--ink); text-decoration-color: var(--leaf); text-decoration-thickness: 2px; }
.work .soon { color: var(--muted); }
.chip {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  white-space: nowrap;
}
.chip.flag { border-color: transparent; background: var(--flag-bg); color: var(--flag); }
.chip.ok { border-color: transparent; background: transparent; color: var(--muted); padding-left: 0; }

/* Product hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.hero-copy h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-copy h1 span { display: block; }
.hero-copy .sub { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 26rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.btn {
  font: inherit;
  font-weight: 700;
  color: var(--on-leaf);
  background: var(--leaf);
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.quiet {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.8rem;
}

/* The two sheets */
.sheets { margin: 0; display: grid; gap: 0.9rem; }
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px rgba(20, 38, 29, 0.55);
}
.sheet-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.raw pre {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-family: var(--typed);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}
.becomes {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1rem;
}
.becomes::before { content: "\2193"; margin-right: 0.5rem; color: var(--leaf); font-weight: 800; }
.scroll-x { overflow-x: auto; }
.clean table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.95rem; }
.clean th, .clean td { text-align: left; padding: 0.6rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.clean thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 700; }
.clean tbody tr:last-child th, .clean tbody tr:last-child td { border-bottom: 0; }
.clean tbody th { font-weight: 700; }
.clean .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.clean .was { display: block; font-size: 0.8125rem; color: var(--muted); }
.sheets figcaption { font-size: 0.875rem; color: var(--muted); }

.mark {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 65%;
  background-size: 100% 72%;
  padding: 0 0.2em;
  margin: 0 -0.2em;
  border-radius: 2px;
}
@keyframes stroke { from { background-size: 0% 72%; } to { background-size: 100% 72%; } }
@media (prefers-reduced-motion: no-preference) {
  .mark { animation: stroke 0.6s ease-out; }
}

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--leaf);
}
.steps h3 { font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.steps p { margin-top: 0.3rem; color: var(--muted); max-width: 34rem; }

/* What you get */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--ink); }
.gets li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.gets li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.35rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 3px solid var(--leaf);
  border-bottom: 3px solid var(--leaf);
  transform: rotate(-45deg);
}

/* Questions */
.faq { border-top: 2px solid var(--ink); }
.faq .qa { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.faq h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.faq p { margin-top: 0.4rem; color: var(--muted); max-width: 38rem; }

/* Status and contact */
.status { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: baseline; }
.status .dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--leaf);
  margin-right: 0.45rem;
}
.status .state { font-family: var(--display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }

.try { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(1.25rem, 4vw, 2.25rem); }
.try h2 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.02em; }
.try p { margin-top: 0.9rem; max-width: 38rem; }
.address { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.4rem; }
.address .addr { font-family: var(--typed); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }

.contact-line { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.contact-line .addr { font-family: var(--typed); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
#try-it { scroll-margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.site-foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* Review queue mock */
.review { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.review-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.review-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.review-source { padding: 1rem; border-right: 1px solid var(--rule); }
.review-source .from { font-size: 0.8125rem; color: var(--muted); }
.review-source .quote {
  font-family: var(--typed); font-size: 1rem; line-height: 1.5; margin-top: 0.5rem;
  overflow-wrap: anywhere;
}
.review-choices { padding: 0.5rem 1rem 1rem; }
.choice { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.choice:last-of-type { border-bottom: 0; }
.choice .n {
  font-family: var(--display); font-weight: 800; font-size: 0.9375rem; line-height: 1.6;
  text-align: center; border: 1px solid var(--rule); border-radius: 4px; height: 1.6rem; color: var(--muted);
}
.choice.pick .n { border-color: var(--leaf); color: var(--on-leaf); background: var(--leaf); }
.choice .what { display: block; font-weight: 700; }
.choice .why { display: block; font-size: 0.875rem; color: var(--muted); }
.review-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: 0.75rem 1rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted);
}
.key {
  font-family: var(--typed); font-size: 0.8125rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0.1rem 0.4rem;
}
.rule-toggle { display: flex; align-items: center; gap: 0.5rem; }
.rule-toggle .box {
  width: 1rem; height: 1rem; border: 1px solid var(--rule); border-radius: 3px; display: inline-block;
}
.caption { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }

.voice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: start;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.voice h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.3rem; }
.voice p { color: var(--muted); max-width: 34rem; }
.voice .say { font-family: var(--typed); font-weight: 700; color: var(--ink); }

/* Then and now */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.ledger h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.75rem; }
.ledger ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.ledger li {
  counter-increment: s; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0 0.75rem;
  padding: 0.45rem 0; border-top: 1px solid var(--rule);
}
.ledger li::before { content: counter(s) "."; color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger .now li { color: var(--ink); }
.ledger .then li { color: var(--muted); }
.ledger .tally { margin-top: 0.75rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.ledger .now .tally { color: var(--leaf); }

@media (max-width: 52rem) {
  .review-body { grid-template-columns: minmax(0, 1fr); }
  .review-source { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .gets { grid-template-columns: minmax(0, 1fr); }
  .work li { grid-template-columns: minmax(0, 1fr); }
}
