/* Broadsheet: MethodosOS's own house style for this page (spec 7.9, 7.9.3).
   Zero chroma; heavy rules head every section, fine black hairlines divide the ledger columns,
   and oversized section numerals sit in a margin rail beside the headings.
   Logo: wordmark only, "Methodos" at 400 and a reversed-out "OS" block at 500, on one baseline.
   First screen: the full-size headline with a compact foot, so the hero fits a 1512 x 760 window.
   Steps carry "Step N" labels; the closing section is one graphite band.
   Everything here is copied byte for byte to apps/site/public/broadsheet.css (criterion 18). */

/* ---- tokens: root scope only. Every [data-tenant] scope redeclares these, so nothing reaches the demo. */
:root {
  --brand-ink: oklch(0.18 0 0);
  --brand-ink-strong: oklch(0.18 0 0);
  --brand-fill: oklch(0.12 0 0);
  --brand-fill-hover: oklch(0.3 0 0);
  --brand-fill-border: oklch(0.12 0 0);
  --brand-rule: oklch(0.12 0 0);
  --tenant-radius: 0;
  --bs-heavy: 3px;
  --bs-hair: 1px;
  --bs-rail: 10.5rem;
  --bs-col: var(--space-4);
}
.dark {
  --brand-ink: oklch(0.955 0 0);
  --brand-ink-strong: oklch(0.955 0 0);
  --brand-fill: oklch(0.955 0 0);
  --brand-fill-hover: oklch(0.82 0 0);
  --brand-fill-border: oklch(0.955 0 0);
  --brand-on-fill: oklch(0.12 0 0);
  --brand-rule: oklch(0.955 0 0);
}

/* ---- links and buttons (house only: never inside a tenant scope) */
a:not([data-tenant] *):not(.btn):not(.mos-logo) { color: var(--foreground); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
a:not([data-tenant] *):not(.btn):not(.mos-logo):hover { text-decoration-thickness: 4px; }
.btn:not([data-tenant] *) { border-radius: 0; }
.btn-primary:not([data-tenant] *) { background: var(--brand-fill); color: var(--brand-on-fill); border-color: var(--brand-fill); }
.btn-primary:not([data-tenant] *):hover { background: var(--brand-fill-hover); border-color: var(--brand-fill-hover); }
.btn-secondary:not([data-tenant] *) { border-color: var(--foreground); background: transparent; }
.btn-secondary:not([data-tenant] *):hover { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.badge:not([data-tenant] *) { border-radius: 0; }

/* ---- masthead */
.tenant-rule:not([data-tenant] *) { height: 6px; background: var(--foreground); }
.site-header { position: relative; border-bottom: var(--bs-heavy) solid var(--foreground); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--bs-heavy) - 4px); height: var(--bs-hair); background: var(--foreground); }
.site-header .wrap { min-height: 5rem; }
.mos-logo { font-size: 1.75rem; letter-spacing: 0; color: var(--foreground); }
.mos-word { display: inline-flex; align-items: baseline; font-weight: var(--weight-regular); letter-spacing: -0.04em; line-height: 1; }
.mos-word .os {
  margin-left: 0.06em; padding: 0 0.1em; font-size: 1em; line-height: 1; font-weight: var(--weight-medium); letter-spacing: 0;
  background: var(--foreground); color: var(--background);
}
.site-nav a { font-size: var(--fs-sm); }
.site-nav a:hover { text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* ---- hero: a lighter display whose last words wear a highlighter mark; public/hero-mark.js picks its colour per load, yellow until then (7.9.9) */
.hero { padding: var(--space-6) 0 var(--space-8); }
.hero-title { font-size: clamp(var(--fs-4xl), 6.1vw, 5.5rem); line-height: 1.06; letter-spacing: -0.035em; max-width: none; color: var(--foreground); }
.hero-title .hero-line { display: block; max-width: 16ch; }
.hero-title .mark { background: linear-gradient(transparent 56%, var(--hero-mark, #ffe066) 56%, var(--hero-mark, #ffe066) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; }
.hero-title .quiet { display: block; margin-top: var(--space-3); font-size: clamp(var(--fs-lg), 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--muted-foreground); }
.hero-foot { margin-top: var(--space-8); padding-top: var(--space-4); border-top: var(--bs-heavy) solid var(--foreground); gap: var(--space-8); grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.hero-main { display: grid; gap: var(--space-4); align-content: start; }
.hero-foot .lead { font-size: 1.3125rem; line-height: 1.6; letter-spacing: -0.005em; max-width: 52ch; }
.hero-facts { gap: var(--space-2); align-self: start; padding-left: var(--space-3); border-left: var(--bs-hair) solid var(--border); line-height: 1.5; }
.cta-row .btn { min-height: 3.5rem; font-size: 1.0625rem; }

/* ---- section heads: heavy rule, tracked caps label, numeral in the rail */
.section { padding: var(--space-10) 0; }
.proofbar { padding-bottom: var(--space-10); }
.bs-grid { display: grid; grid-template-columns: var(--bs-rail) minmax(0, 1fr); column-gap: var(--bs-col); }
.bs-grid > * { grid-column: 1 / -1; min-width: 0; }
.bs-grid > .secno { grid-column: 1; grid-row: 2; }
.bs-grid > .h-section, .bs-grid > .hero-title { grid-column: 2; grid-row: 2; }
.bs-grid > .section-intro, .bs-grid > .trust-lede, .closing .bs-grid > p, .closing .bs-grid > .cta-row { grid-column: 2; }
.sh { border-top: var(--bs-heavy) solid var(--foreground); padding-top: var(--space-1); margin-bottom: var(--space-3); }
.sh .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: var(--weight-medium); }
.sh .folio { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--foreground); }
.secno {
  display: block; font-size: 5.5rem; line-height: 0.74; font-weight: var(--weight-medium); letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--foreground); margin-top: var(--space-1);
  padding-right: var(--space-2); border-right: var(--bs-hair) solid var(--foreground); align-self: stretch;
}
.h-section { font-size: clamp(var(--fs-2xl), 3.9vw, 3.5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 19ch; }
.section-intro, .trust-lede { color: var(--foreground); font-size: var(--fs-md); }

/* ---- flow strip: heavy top rule, black column hairlines */
.flow { border-top: var(--bs-heavy) solid var(--foreground); border-bottom: var(--bs-hair) solid var(--foreground); }
.flow li + li { border-left: var(--bs-hair) solid var(--foreground); }
.flow .icon-md { color: var(--foreground); }
.flow strong { font-size: var(--fs-lg); letter-spacing: -0.015em; }
.flow span { color: var(--foreground); }
.flow .flow-a { color: var(--foreground); }

/* ---- five steps: numerals in the rail, hairline columns */
.steps li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 var(--bs-col); padding: 0; border-bottom: var(--bs-hair) solid var(--foreground); align-items: stretch; }
.steps li:first-child { border-top: 0; }
.steps .folio {
  grid-column: 1; grid-row: 1; padding: var(--space-3) 0 0; color: var(--foreground);
  font-size: var(--fs-xs); line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--weight-medium);
}
.steps .folio::before { content: "Step "; }
.steps h3 { grid-column: 1; grid-row: 2; font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -0.02em; padding: var(--space-1) var(--space-4) var(--space-3) 0; }
.steps p { grid-column: 2; grid-row: 1 / span 2; color: var(--foreground); padding: var(--space-3) 0 var(--space-3) var(--bs-col); border-left: var(--bs-hair) solid var(--border-strong); }

/* ---- the demo section: house chrome only */
.wl-tabs { gap: 0; }
.wl-tabs [role="tab"] { border-radius: 0; border-color: var(--foreground); margin-right: -1px; }
.wl-tabs [role="tab"][aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--foreground); }
.wl-side { border-left: var(--bs-hair) solid var(--foreground); padding-left: var(--bs-col); }
.wl-guard { border-top: var(--bs-hair) solid var(--foreground); }
.wl-side h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.wl-side p.small { color: var(--foreground); }

/* ---- problem ledger: column hairline */
.ledger li { padding: 0; border-bottom: var(--bs-hair) solid var(--foreground); gap: 0; }
.ledger li:first-child { border-top: var(--bs-heavy) solid var(--foreground); }
.ledger h3 { font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.02em; padding: var(--space-3) var(--space-4) var(--space-3) 0; }
.ledger p { color: var(--foreground); padding: var(--space-3) 0 var(--space-3) var(--bs-col); border-left: var(--bs-hair) solid var(--foreground); }

/* ---- mechanism: two columns with a centre rule */
.mech { gap: 0; border-top: var(--bs-heavy) solid var(--foreground); }
.mech > div { border-top: 0; border-bottom: var(--bs-hair) solid var(--foreground); padding: var(--space-3) var(--bs-col) var(--space-3) 0; }
.mech > div:nth-child(even) { border-left: var(--bs-hair) solid var(--foreground); padding-left: var(--bs-col); padding-right: 0; }
.mech .icon { color: var(--foreground); }
.mech h3 { font-size: var(--fs-lg); letter-spacing: -0.015em; }
.mech p { color: var(--foreground); }
.mech q { font-style: italic; }

/* ---- proof */
.proof { gap: 0; }
.excerpt { border-top: var(--bs-heavy) solid var(--foreground); padding-right: var(--space-6); }
.proof > div:last-child { border-top: var(--bs-heavy) solid var(--foreground); border-left: var(--bs-hair) solid var(--foreground); padding: var(--space-2) 0 0 var(--bs-col); align-self: stretch; }
.excerpt h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.move { border-top: var(--bs-hair) solid var(--foreground); }
.move .n { font-size: var(--fs-3xl); line-height: 0.9; letter-spacing: -0.04em; }
.quote blockquote { font-size: var(--fs-2xl); font-style: italic; line-height: 1.15; letter-spacing: -0.025em; }
.quote figcaption { color: var(--foreground); }
.fact { border-top: var(--bs-hair) solid var(--foreground); font-size: var(--fs-xl); letter-spacing: -0.015em; }

/* ---- trust: ruled table with column hairlines, four ruled points */
.trust-lede { margin-top: var(--space-3); }
.who { border-top: var(--bs-heavy) solid var(--foreground); }
.who caption { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.who th, .who td { padding: var(--space-1-5) var(--space-2); border-bottom: var(--bs-hair) solid var(--foreground); }
.who td { border-left: var(--bs-hair) solid var(--foreground); }
.who thead th + th { border-left: var(--bs-hair) solid var(--foreground); }
.who thead th { color: var(--foreground); text-transform: uppercase; letter-spacing: 0.12em; border-bottom: var(--bs-hair) solid var(--foreground); }
.who th:first-child { padding-left: 0; }
.who tbody th { font-size: var(--fs-base); }
.who .yes { color: var(--foreground); }
.who .no { color: var(--muted-foreground); }
.trust-points { gap: 0; border-bottom: var(--bs-hair) solid var(--foreground); }
.trust-points > div { border-top: var(--bs-heavy) solid var(--foreground); padding: var(--space-3) var(--space-3) var(--space-3) 0; }
.trust-points > div + div { border-left: var(--bs-hair) solid var(--foreground); padding-left: var(--space-3); }
.trust-points .icon { color: var(--foreground); }
.trust-points p { color: var(--foreground); }
.docs h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; }
.doclist { border-top: var(--bs-heavy) solid var(--foreground); gap: 0; }
.doclist li { border-bottom: var(--bs-hair) solid var(--foreground); padding-right: var(--bs-col); }
.doclist li:nth-child(even) { border-left: var(--bs-hair) solid var(--foreground); padding-left: var(--bs-col); padding-right: 0; }
.doclist .icon { color: var(--foreground); }

/* ---- pricing: large plan names, column hairlines */
.price-table { border-top: var(--bs-heavy) solid var(--foreground); }
.price-table th { color: var(--foreground); text-transform: uppercase; letter-spacing: 0.12em; border-bottom: var(--bs-hair) solid var(--foreground); }
.price-table td { border-bottom: var(--bs-hair) solid var(--foreground); vertical-align: middle; }
.price-table td + td, .price-table th + th { border-left: var(--bs-hair) solid var(--foreground); }
.price-table td:first-child { font-size: var(--fs-3xl); letter-spacing: -0.04em; line-height: 1; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.price-table td.r { font-size: var(--fs-lg); letter-spacing: -0.015em; }
.price-table tbody tr:hover { background: transparent; }
.price-notes { color: var(--foreground); }

/* ---- Start: the one full-width inverted band */
.closing {
  --foreground: oklch(0.985 0 0); --background: oklch(0.3 0 0); --muted-foreground: oklch(0.84 0 0);
  --brand-fill: oklch(0.985 0 0); --brand-fill-hover: oklch(0.88 0 0); --brand-on-fill: oklch(0.12 0 0);
  --ring: oklch(0.985 0 0);
  background: var(--background); color: var(--foreground); padding: var(--space-6) 0 var(--space-12);
}
.dark .closing {
  --foreground: oklch(0.12 0 0); --background: oklch(0.955 0 0); --muted-foreground: oklch(0.38 0 0);
  --brand-fill: oklch(0.12 0 0); --brand-fill-hover: oklch(0.3 0 0); --brand-on-fill: oklch(0.985 0 0); --ring: oklch(0.12 0 0);
}
.closing .hero-title { font-size: clamp(var(--fs-3xl), 5.6vw, 5rem); line-height: 0.95; max-width: 13ch; }
.closing p { color: var(--foreground); font-size: var(--fs-lg); line-height: 1.35; max-width: 38rem; }
.closing .secno { border-right-color: oklch(0.6 0 0); }
.dark .closing .secno { border-right-color: oklch(0.45 0 0); }

/* ---- footer: a masthead to close the page */
.site-footer { border-top: 0; color: var(--foreground); padding-top: var(--space-4); }
.site-footer a { color: var(--foreground); }
.site-footer .foot-mast { flex-basis: 100%; font-size: 3.5rem; color: var(--foreground); padding-bottom: var(--space-2); margin-bottom: var(--space-1); border-bottom: var(--bs-heavy) solid var(--foreground); }
.site-footer .foot-mast + li::before { content: none; }

@media (max-width: 47.99rem) {
  .bs-grid { grid-template-columns: minmax(0, 1fr); }
  .bs-grid > * , .bs-grid > .secno, .bs-grid > .h-section, .bs-grid > .hero-title,
  .bs-grid > .section-intro, .bs-grid > .trust-lede, .closing .bs-grid > p, .closing .bs-grid > .cta-row { grid-column: 1; grid-row: auto; }
  .secno { font-size: 3.5rem; border-right: 0; margin-bottom: var(--space-2); }
  .hero-facts { border-left: 0; padding-left: 0; border-top: var(--bs-hair) solid var(--border); padding-top: var(--space-2); }
  .ledger p, .steps p { border-left: 0; padding-left: 0; }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .steps .folio, .steps h3, .steps p { grid-column: 1; grid-row: auto; }
  .steps p { padding-top: 0; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hero-foot .lead { font-size: var(--fs-md); }
  .mech > div:nth-child(even), .trust-points > div + div, .doclist li:nth-child(even) { border-left: 0; padding-left: 0; }
  .proof > div:last-child { border-left: 0; padding-left: 0; }
  .wl-side { border-left: 0; padding-left: 0; }
}
