/* midbench.com — shared design system (site.v1.css)
   Palette "Ledger": warm paper / ink / forest green. All text pairs AA in both themes.
   Fonts: IBM Plex Sans, subset + self-hosted (OFL — see fonts/OFL.txt). Zero third-party requests. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans-400.v1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans-600.v1.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FAF9F7;
  --surface: #F2F0EB;
  --text: #1C1B19;
  --muted: #55524B;
  --accent: #1E6B4F;
  --on-accent: #FFFFFF;
  --border: #DDD9D0;

  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.1875rem;
  --fs-3: 1.625rem;
  --fs-4: clamp(2.1rem, 6vw, 2.85rem);

  --measure: 44rem;
  --page: 66rem;
  --r: 8px;
  --r-lg: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1C1A17;
    --text: #ECE9E3;
    --muted: #A5A096;
    --accent: #5BBF97;
    --on-accent: #10201A;
    --border: #2C2A26;
  }
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-1)/1.6 var(--font);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.shell { max-width: var(--page); margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .shell {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1rem; padding-block: 1.3rem;
}
.brand { color: var(--text); display: inline-flex; align-items: center; gap: 0.55rem; }
.brand:hover { color: var(--accent); }
.brand .mark rect { fill: var(--accent); }
.brand .wordmark { height: 0.95rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); text-decoration: underline; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  padding: 0.55rem 1.05rem; border-radius: var(--r);
  transition: filter 120ms ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { filter: brightness(0.95); }

/* ---- hero ---- */
.hero .shell {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-size: var(--fs-4); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; text-wrap: balance;
}
.hero .lede { color: var(--muted); margin-top: 1.1rem; max-width: 36rem; }
.hero .cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.8rem; }
@media (max-width: 46rem) {
  .hero .shell { grid-template-columns: 1fr; }
}

/* ---- the statement mock ---- */
.statement { max-width: 26rem; justify-self: end; width: 100%; }
@media (max-width: 46rem) { .statement { justify-self: start; } }
.statement .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.15rem 1.3rem 1.05rem;
}
.statement .card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  font-weight: 600; font-size: 0.95rem;
}
.statement .card-sub { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }
.chip {
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 99px; padding: 0.08rem 0.6rem;
}
.statement table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.9rem; }
.statement td { padding: 0.28rem 0; }
.statement td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.statement .total td {
  font-weight: 600;
  border-top: 1px solid var(--muted);
  border-bottom: 3px double var(--muted);
}
.statement .seal-line {
  margin-top: 0.7rem; font-size: 0.74rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline;
}
.statement .seal-line code { font-family: var(--mono); font-size: 0.72rem; }
.statement figcaption { margin-top: 0.6rem; font-size: 0.74rem; color: var(--muted); }

/* ---- sections ---- */
.section { padding-block: clamp(2.8rem, 6vw, 4.2rem); }
.section > .shell > h2 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.015em; }
.section .section-intro { color: var(--muted); margin-top: 0.6rem; max-width: var(--measure); }

.steps {
  list-style: none; counter-reset: step; padding: 0; margin-top: 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.steps h3 { font-size: var(--fs-2); font-weight: 600; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

.diff-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 46rem) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.diff-grid article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.3rem 1.4rem;
}
.diff-grid h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.45rem; }
.diff-grid p { color: var(--muted); font-size: 0.95rem; }

/* ---- security strip ---- */
.security-strip { background: var(--surface); border-block: 1px solid var(--border); }
.security-strip .shell { padding-block: clamp(2.4rem, 5vw, 3.4rem); }
.security-strip h2 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.015em; }
.security-strip ul {
  list-style: none; padding: 0; margin-top: 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 0.7rem 2.5rem; max-width: 56rem;
}
.security-strip li { position: relative; padding-left: 1.5rem; font-size: 0.98rem; }
.security-strip li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}
.security-strip .more { display: inline-block; margin-top: 1.3rem; font-weight: 600; font-size: 0.98rem; }

/* ---- early access ---- */
.early { text-align: center; }
.early .shell { padding-block: clamp(3.2rem, 7vw, 5rem); }
.early h2 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.015em; }
.early p { color: var(--muted); margin: 0.7rem auto 0; max-width: 34rem; }
.early .btn { margin-top: 1.6rem; }
.early .direct { font-size: 0.9rem; margin-top: 1rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .shell {
  padding-block: 1.6rem; font-size: 0.85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: baseline;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---- prose (legal, security, 404) ---- */
.prose { max-width: var(--measure); margin-inline: auto; padding-block: 2.6rem 4rem; }
.prose h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.015em; }
.prose h2 { font-size: 1.1rem; font-weight: 600; margin-top: 2.2rem; margin-bottom: 0.5rem; }
.prose p, .prose ul { margin-top: 0.7rem; }
.prose li { margin-top: 0.45rem; }
.prose li::marker { color: var(--muted); }
.prose .meta { font-size: 0.85rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }

/* ---- 404 ---- */
.notfound { text-align: center; padding-block: clamp(4rem, 14vw, 8rem); }
.notfound h1 { font-size: var(--fs-3); font-weight: 600; }
.notfound p { color: var(--muted); margin-top: 0.7rem; }
.notfound a { display: inline-block; margin-top: 1.4rem; }
