/* system5.dev — site stylesheet (v2, "the engineering report"). All pages use it.
   One typeface, Lexend, for headings and text; the system mono for anything that is a fact. */

:root {
  --paper: #f6f3ea;
  --sheet: #fffdf7;
  --ink: #1a1d1a;
  --ink-2: #363b37;
  --muted: #5f655f;
  --rule: rgba(26, 29, 26, 0.16);
  --rule-soft: rgba(26, 29, 26, 0.09);
  --green: #2e9e5b;          /* the logo green: marks, rules, large text */
  --green-deep: #1c6a40;     /* buttons and links on paper (AA on paper) */
  --green-deeper: #155232;
  --green-tint: rgba(46, 158, 91, 0.10);
  --on-ink: #f6f3ea;
  --serif: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;   /* headings: same face as the text, heavier */
  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 48px;
  --section: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green-deeper); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; text-wrap: pretty; }
h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; }
p, dl, dd, figure { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 40em; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-deep);
}
.kicker.quiet { color: var(--muted); }
.fig { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); line-height: 1.5; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.prose { color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.prose.compact { font-size: 16px; }
.small { font-size: 15px; line-height: 1.55; color: var(--muted); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-deep); color: #fff; border: 1px solid var(--green-deep);
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  padding: 15px 26px; min-height: 52px; border-radius: 4px; cursor: pointer;
}
.btn:hover { background: var(--green-deeper); border-color: var(--green-deeper); color: #fff; text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.on-ink { background: var(--green); border-color: var(--green); color: #0f1411; }
.btn.on-ink:hover { background: #3cb56c; border-color: #3cb56c; color: #0f1411; }
.btn.compact { padding: 11px 20px; min-height: 44px; font-size: 15px; }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; font-size: 16px; padding: 15px 4px; min-height: 52px;
}
.btn-quiet:hover { color: var(--green-deep); text-decoration: none; }

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; color: rgba(246, 243, 234, 0.78); }
.nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero { padding-top: 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-fig { padding: 8px 0 0 12px; }
.hero-fig > .fig { margin-top: 14px; }

/* The teardown report, drawn in HTML so it stays sharp and editable */
.report {
  background: var(--sheet); border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(26, 29, 26, 0.10);
  padding: 34px 36px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.report-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px;
}
.report-head .kicker, .report-head .fig { font-size: 10.5px; white-space: nowrap; }
.report-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); margin-top: 18px; }
.report-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0;
}
.report-facts .kicker { font-size: 10px; }
.report-facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.25; color: var(--ink); margin-top: 2px; }
.report p.finding { margin-top: 14px; }
.report p.finding + p.finding { margin-top: 8px; }
.report strong { color: var(--ink); font-weight: 500; }
.redact {
  display: inline-block; height: 10px; background: var(--ink); opacity: 0.85;
  vertical-align: middle; border-radius: 1px;
}
.report-chart { margin-top: 16px; display: flex; gap: 8px; align-items: flex-end; height: 54px; border-bottom: 1px solid var(--rule); }
.report-chart i { flex: 1; display: block; background: var(--green); }
.report-chart i.after { background: var(--ink); }
.report-chart + .fig { font-size: 10.5px; margin-top: 6px; }
.report-foot { margin-top: 18px; font-size: 10.5px; color: var(--muted); }

/* Two audiences */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.door { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--green); }
.door a { font-weight: 500; font-size: 15px; }

/* Fact strip */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin-top: 80px; border-top: 2px solid var(--ink); padding-top: 24px;
}
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact h4 { font-size: 30px; line-height: 1.1; }

/* The case */
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.compare { border-top: 2px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.compare-row:first-child { border-top: 0; }
.compare-row:last-child { border-bottom: 1px solid var(--rule); }
.compare-row > div { padding: 22px 24px 22px 0; }
.compare-row .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); padding-top: 26px; }
.compare-row .ours { padding-left: 24px; border-left: 2px solid var(--green); }
.compare-row.head > div { padding-bottom: 8px; }
.compare-row .money { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 34px; line-height: 1; padding-top: 20px; padding-right: 16px; }
.compare-row .ours.money-ours { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.compare-row .ours.money-ours b { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -0.02em; }

/* Plates (illustrations) */
.plate { background: var(--sheet); border: 1px solid var(--rule); padding: 10px; }
.plate img { width: 100%; height: auto; }
.plate figcaption { padding: 12px 6px 4px; }
.strip4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.footnote { margin-top: 24px; max-width: 44em; }

/* The month */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.step { display: flex; flex-direction: column; gap: 14px; }

/* Agents table + second case */
.aside-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.aside-grid .main { display: flex; flex-direction: column; gap: 32px; }
.aside { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.agents-table { width: 100%; border-collapse: collapse; }
.agents-table th {
  text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); padding: 0 24px 14px 0; border-bottom: 2px solid var(--ink);
}
.agents-table td { vertical-align: top; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.agents-table td:first-child { font-family: var(--serif); font-size: 22px; color: var(--ink); width: 200px; }
.agents-table td:last-child { color: var(--ink); padding-right: 0; }

/* People */
.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 56px; }
.founder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; border-top: 2px solid var(--ink); padding-top: 24px; }
.founder img { width: 120px; height: 120px; border-radius: 3px; filter: grayscale(1) contrast(1.05); }
.founder-body { display: flex; flex-direction: column; gap: 12px; }
.role { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--green-deep); margin-top: 4px; }
.creds { font-size: 13.5px; }
.people-link { font-family: var(--mono); font-size: 13px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.member { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 20px; }
.member-head { display: flex; align-items: center; gap: 14px; }
.member img, .member .avatar { width: 56px; height: 56px; border-radius: 3px; flex: 0 0 auto; filter: grayscale(1) contrast(1.05); }
.member .avatar { background: var(--sheet); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.member h3 { font-size: 20px; }
.member .role { margin-top: 2px; font-size: 12px; }
.member .prose { font-size: 15px; }
.member.placeholder { border-top-style: dashed; }
.member.placeholder h3, .member.placeholder .role { color: var(--muted); }

/* Terms */
.terms-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.term { background: var(--sheet); border: 1px solid var(--rule); padding: 36px; }
.term.primary { border: 2px solid var(--green); }
.term .price { font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -0.03em; margin-top: 14px; }
.term .price + .fig { margin-top: 8px; }
.term ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.term li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.term li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--green); }
.proof { margin-top: 20px; max-width: 52em; }

/* Ask */
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; border-top: 2px solid var(--ink); padding-top: 48px; }
.ask-intro { display: flex; flex-direction: column; gap: 20px; }
.ask-form { display: flex; flex-direction: column; gap: 24px; }
.ask-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ask-field.wide { grid-column: 1 / -1; }
.ask-field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ask-field input, .ask-field textarea {
  width: 100%; border: 1px solid var(--rule); background: var(--sheet); border-radius: 3px;
  min-height: 52px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
}
.ask-field textarea { min-height: 132px; resize: vertical; }
.ask-field input:focus, .ask-field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.ask-field [aria-invalid="true"] { border-color: #b3261e; }
.ask-field .hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ask-error { font-size: 14px; color: #b3261e; margin-top: 8px; }
.ask-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); grid-column: 1 / -1; cursor: pointer; }
.ask-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green-deep); flex: 0 0 auto; }
.ask-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ask-submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ask-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ask-sent { border: 2px solid var(--green); background: var(--sheet); padding: 32px; display: flex; flex-direction: column; gap: 12px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--rule); padding: 28px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 24px; }
.faq-item p { color: var(--ink-2); font-size: 16px; }

/* Film */
/* The film sits right under the first screen, full width. preload=none keeps the
   11 MB on S3 until someone presses play. height:auto is load-bearing: without it
   the width/height attributes hold the literal 1080px. */
.hero-film { margin-top: 72px; }
.hero-film video { display: block; width: 100%; height: auto; background: var(--ink); border: 1px solid var(--rule); box-shadow: 0 30px 60px rgba(26,29,26,.14); }
.hero-film figcaption { margin-top: 14px; }

/* Footer */
.site-footer { margin-top: var(--section); background: var(--ink); color: var(--on-ink); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.foot-col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-col img { height: 28px; width: auto; }
.site-footer .small { color: rgba(246, 243, 234, 0.62); }
.site-footer a { color: rgba(246, 243, 234, 0.8); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer a.mail { font-family: var(--mono); font-size: 15px; color: #fff; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-links button { background: none; border: 0; padding: 0; color: rgba(246, 243, 234, 0.8); font-size: 14px; cursor: pointer; }
.foot-links button:hover { color: #fff; text-decoration: underline; }

/* Structured data view (footer) */
.ld { margin-top: 40px; border-top: 1px solid rgba(246, 243, 234, 0.15); padding-top: 28px; }
.ld summary { cursor: pointer; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: rgba(246, 243, 234, 0.8); }
.ld-tools { display: flex; align-items: center; gap: 16px; margin: 16px 0 12px; }
.ld-tools button { background: transparent; border: 1px solid rgba(246, 243, 234, 0.35); color: #fff; padding: 8px 14px; border-radius: 3px; font-family: var(--mono); font-size: 12.5px; cursor: pointer; }
.ld-tools button:hover { border-color: var(--green); }
.ld pre { margin: 0; max-height: 420px; overflow: auto; background: #0f1411; border: 1px solid rgba(246, 243, 234, 0.12); padding: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: #cfd6d0; }
.ld pre .k { color: #8ae8ad; }
.ld pre .s { color: #e8ebe6; }
.ld pre .n { color: #ffd98a; }
.ld pre .b { color: #9aa3b2; }

/* Consent banner (created by js/site.js) */
.consent {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 50; margin: 0 auto; max-width: 880px;
  background: var(--sheet); color: var(--ink-2); border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(26, 29, 26, 0.14); padding: 20px 24px;
  display: flex; gap: 24px; align-items: center; font-size: 14px; line-height: 1.5;
}
.consent p { flex: 1; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent button { border: 1px solid var(--green-deep); background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 4px; min-height: 44px; cursor: pointer; }
.consent button.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }

/* Small screens */
@media (max-width: 900px) {
  :root { --gutter: 22px; --section: 72px; }
  .nav { display: none; }
  .hero { padding-top: 56px; }
  .hero-grid, .doors, .case-grid, .steps, .aside-grid, .founders, .terms-grid, .terms, .ask-grid, .ask-fields, .foot-grid, .strip4 { grid-template-columns: minmax(0, 1fr); }
  .facts, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-fig { padding: 0; }
  .report { padding: 22px 20px; }
  .report-title { font-size: 22px; }
  .report-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fact h4 { font-size: 26px; }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row > div { padding: 12px 0; }
  .compare-row .label { padding-top: 18px; padding-bottom: 0; }
  .compare-row .ours { padding-left: 16px; }
  .compare-row.head .label { display: none; }
  .agents-table, .agents-table thead, .agents-table tbody, .agents-table tr, .agents-table td { display: block; width: 100%; }
  .agents-table thead { display: none; }
  .agents-table td { padding: 8px 0; border-bottom: 0; }
  .agents-table td:first-child { padding-top: 22px; border-top: 1px solid var(--rule); width: auto; }
  .agents-table td:last-child { padding-bottom: 22px; }
  .agents-table td::before { content: attr(data-col); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .agents-table td:first-child::before { display: none; }
  .founder { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; }
  .founder img { width: 88px; height: 88px; }
  .term .price { font-size: 52px; }
  .faq-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .consent { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .facts, .team { grid-template-columns: minmax(0, 1fr); }
  .btn, .btn-quiet { width: 100%; }
  .hero-actions { gap: 12px; }
}
@media print {
  .site-header .btn, .consent, .hero-film { display: none; }
  body { background: #fff; }
}
