@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --paper: #EFF1EC;
  --card: #FFFFFF;
  --ink: #1C2B24;
  --ink-2: #57665C;
  --ink-3: #8A968E;
  --rule: #D4DACF;
  --rule-strong: #B6C0B2;
  --flag: #A2381F;
  --flag-bg: #F7EAE5;
  --ok: #34614B;
  --ok-bg: #E4EDE7;
  --focus: #1C2B24;

  --sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 68rem;
  --gap: clamp(2.5rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wordmark .plumb {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ok);
}

.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.masthead nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--gap);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.hero p.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 2.4rem;
}

.crumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 0 0 1.4rem;
}

.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }

/* ---------- report block (signature element) ---------- */

.report {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.5;
}

.report-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.report-bar b { color: var(--ink-2); font-weight: 500; }

.finding {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  gap: 0 0.9rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.finding:last-child { border-bottom: 0; }

.finding .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--flag);
  align-self: center;
}

.finding.clean .dot { background: var(--ok); }

.finding .what { color: var(--ink); }
.finding .what small {
  display: block;
  color: var(--ink-3);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.finding .amount {
  color: var(--flag);
  font-weight: 700;
  white-space: nowrap;
}

.finding.clean .amount { color: var(--ok); }

.report-foot {
  padding: 0.75rem 1.1rem;
  background: var(--flag-bg);
  color: var(--flag);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- generic sections ---------- */

.band {
  padding-top: var(--gap);
  padding-bottom: var(--gap);
  border-top: 1px solid var(--rule);
}

.band h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 0.6rem;
  max-width: 30ch;
}

.band > .wrap > p {
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 2rem;
}

/* ---------- app index table ---------- */

.catalog {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.catalog th {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
}

.catalog td {
  padding: 1.15rem 1rem 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.catalog td:last-child, .catalog th:last-child { padding-right: 0; text-align: right; }

.catalog a.name {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}

.catalog a.name:hover { border-bottom-color: var(--ink); }

.catalog .desc {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-top: 0.3rem;
  max-width: 46ch;
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.price-cell {
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.price-cell small { display: block; color: var(--ink-3); font-size: 0.74rem; }

/* ---------- prose lists ---------- */

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.checks li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
}

.checks li b {
  font-family: var(--mono);
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-3);
}

.checks li span { color: var(--ink-2); max-width: 58ch; }
.checks li span strong { color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */

.tiers {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.88rem;
  max-width: 34rem;
}

.tiers th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.76rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-strong);
}

.tiers td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.tiers td:last-child, .tiers th:last-child { text-align: right; }

/* ---------- cta ---------- */

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.72rem 1.3rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
}

.btn:hover { background: #101a15; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn.ghost:hover { background: var(--card); border-color: var(--ink); }

.note {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin: 0.9rem 0 0;
}

/* ---------- trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  border: 1px solid var(--rule-strong);
  background: var(--card);
}

.trust div {
  padding: 1.15rem 1.2rem;
  border-right: 1px solid var(--rule);
}

.trust div:last-child { border-right: 0; }

.trust b {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.trust span { font-size: 0.88rem; color: var(--ink-2); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--rule); max-width: 62ch; }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--ink-3);
}

.faq details[open] summary::after { content: '–'; }

.faq p { color: var(--ink-2); margin: 0.8rem 0 0; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule-strong);
  padding: 2rem 0 3rem;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .catalog thead { display: none; }
  .catalog tr { display: block; border-bottom: 1px solid var(--rule); padding: 1rem 0; }
  .catalog td { display: block; border: 0; padding: 0.15rem 0; }
  .catalog td:last-child { text-align: left; padding-top: 0.6rem; }
  .checks li { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1.2rem 1fr; }
  .finding .amount { grid-column: 2; margin-top: 0.3rem; }
  .trust div { border-right: 0; border-bottom: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- long-form prose (docs, legal, about) ---------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

.prose p { color: var(--ink-2); margin: 0 0 1rem; }
.prose p strong { color: var(--ink); font-weight: 600; }

.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.1em 0.35em;
}

.prose .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

/* ---------- callout ---------- */

.callout {
  border-left: 3px solid var(--flag);
  background: var(--flag-bg);
  padding: 1rem 1.2rem;
  margin: 0 0 1.6rem;
}

.callout p { margin: 0; color: var(--ink); font-size: 0.93rem; }
.callout b { font-family: var(--mono); font-size: 0.8rem; display: block; margin-bottom: 0.4rem; color: var(--flag); }

.callout.info { border-left-color: var(--ok); background: var(--ok-bg); }
.callout.info b { color: var(--ok); }

/* ---------- two column layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  align-items: start;
}

.split aside {
  position: sticky;
  top: 2rem;
  font-size: 0.9rem;
}

.split aside b {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin: 0 0 0.7rem;
}

.split aside a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-2);
  text-decoration: none;
}

.split aside a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split aside { position: static; }
  .split aside a { display: inline-block; margin-right: 1rem; }
}

/* ---------- pricing comparison ---------- */

.allprices { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.allprices th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
  padding: 0 0 0.7rem 1rem;
  border-bottom: 1px solid var(--rule-strong);
}
.allprices th:first-child { text-align: left; padding-left: 0; }
.allprices td {
  padding: 0.85rem 0 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-family: var(--mono);
}
.allprices td:first-child {
  text-align: left;
  padding-left: 0;
  font-family: var(--sans);
  font-weight: 600;
}
.allprices td:first-child small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-family: var(--sans);
}

/* ---------- brand mark ---------- */

.mark { width: 13px; height: 19px; display: block; color: var(--ok); flex: none; }
.wordmark { align-items: center; gap: 0.55rem; }

/* ---------- app icons ---------- */

.appicon {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem;
  flex: none;
}

.catalog td:first-child .row-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.catalog .row-head > div { min-width: 0; }

/* ---------- seat bar ---------- */

.seatbar { margin: 0 0 0.15rem; }

.seatbar svg { width: 100%; height: auto; display: block; }

.seatkey {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  margin-top: 0.7rem;
}

.seatkey span { display: inline-flex; align-items: center; gap: 0.4rem; }

.seatkey i {
  width: 0.65rem;
  height: 0.65rem;
  display: inline-block;
  font-style: normal;
}

/* ---------- diagram ---------- */

.diagram {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 1.6rem 1.2rem 1.2rem;
  margin: 0 0 1.6rem;
}

.diagram svg { width: 100%; height: auto; display: block; }

.diagram figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 1rem;
  text-align: center;
}

/* ---------- app page masthead icon ---------- */

.pagehead {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.3rem;
}

.pagehead .appicon { width: 3.2rem; height: 3.2rem; padding: 0.65rem; }

/* ==========================================================
   Appended 2026-08: illustrative SVG diagrams + hero texture.
   New rules only — nothing above this line was modified.
   ========================================================== */

/* faint baseline grid behind the index hero (static, no animation) */
.hero-grid {
  background-image:
    repeating-linear-gradient(to right,
      rgba(28, 43, 36, 0.05) 0, rgba(28, 43, 36, 0.05) 1px,
      transparent 1px, transparent 44px),
    repeating-linear-gradient(to bottom,
      rgba(28, 43, 36, 0.05) 0, rgba(28, 43, 36, 0.05) 1px,
      transparent 1px, transparent 44px);
}

/* breathing room when a diagram follows a checks list or prose */
.checks + .diagram,
p + .diagram { margin-top: 2rem; }

/* hero art: plumb-line technical drawing beside the headline (index only) */
.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.hero-art {
  width: 176px;
  height: auto;
  margin-top: 0.4rem;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; gap: 0; }
  .hero-art { display: none; }
}
