/* Checks and Balances: the ledger pages (checks-and-balances.html).
   Self-contained on purpose, like the other product pages: no merano.css, no merano.js, nothing from another host.
   The page is a sheet of ledger paper: cream stock, pale green ruling, one red margin rule, figures in a monospace.
   The ledger bar (.cb-bar) is the studio's shared product-bar layout in this product's own style. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f4f0e6;        /* the ledger's cream stock */
  --paper-2: #ebe6d9;      /* a darker sheet for panels */
  --paper-3: #e2dccc;
  --rule: #c7d4c0;         /* the pale green ruling */
  --rule-2: #a9bba2;
  --margin: #c4544a;       /* the one red margin rule */
  --ink: #1b2420;          /* fountain-pen ink, green-black */
  --ink-2: #3b4842;
  --ink-3: #596860;
  --ink-4: #6b7a72;        /* the faintest text; 4.6:1 on --paper */
  --green: #1e5e44;        /* the ledger's stamp green: links, marks and the buy button */
  --green-2: #2a7a59;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --page: 1240px;
  --gutter: 32px;
  --line: 34px;            /* the ruling pitch */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cb-skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; }
.cb-skip:focus { top: 16px; }
.cb-wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.cb-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- The bar ---------- */

.cb-bar { position: sticky; top: 0; z-index: 20; background: rgba(244, 240, 230, 0.94); border-bottom: 1px solid var(--rule-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
/* the sheet's top edge: the green ruling, then the red margin rule */
.cb-bar::before { content: ""; display: block; height: 7px; border-top: 3px solid var(--rule-2); border-bottom: 1px solid var(--margin); }
.cb-bar-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); min-height: 56px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.cb-crumb { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.cb-crumb a { color: var(--ink-3); text-decoration: none; }
.cb-crumb a[aria-current="page"], .cb-crumb a:last-child { color: var(--ink); }
.cb-crumb a:hover { color: var(--green); }
.cb-crumb-sep { color: var(--rule-2); }
.cb-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.cb-nav a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cb-nav a:hover, .cb-nav a[aria-current="page"] { color: var(--ink); }
.cb-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--margin); text-underline-offset: 6px; }
.cb-nav { margin-left: auto; }
.cb-download { display: inline-flex; align-items: center; padding: 0 16px; min-height: 36px; background: var(--ink); color: var(--paper);
  border-radius: 999px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.cb-download:hover { background: #000; color: #fff; }

/* "Other apps": a disclosure, numbered like entries in a ledger */
.cb-apps { position: relative; }
.cb-apps summary { list-style: none; cursor: pointer; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.cb-apps summary::-webkit-details-marker { display: none; }
.cb-apps summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.cb-apps[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.cb-apps-list { position: absolute; left: -16px; top: 46px; width: 270px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--rule-2); box-shadow: 0 18px 40px rgba(27, 36, 32, 0.18); }
.cb-apps-list a { display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 16px; color: var(--ink-3); }
.cb-apps-list a:hover { color: var(--ink); background: var(--paper-2); }
.cb-apps-list a[aria-current="page"] { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.cb-apps-list .cb-no { color: var(--green); min-width: 3ch; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 150px; }
  .cb-bar-inner { font-size: 12px; letter-spacing: 0.05em; gap: 0 12px; }
  .cb-download { margin-left: auto; }
  .cb-nav { order: 3; width: 100%; margin-left: 0; }
  .cb-nav > ul { gap: 0 16px; justify-content: space-between; }
  .cb-apps-list { left: 0; width: min(270px, calc(100vw - 32px)); }
}

/* ---------- Product page ---------- */

/* The hero: plain stock, the headline doing the work */
.cb-hero-sheet { border-bottom: 1px solid var(--rule-2); }
.cb-hero-window { margin: 0; position: relative; max-height: 520px; overflow: hidden; border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px rgba(27, 36, 32, 0.25); }
.cb-hero-window img { display: block; width: 100%; height: auto; }
.cb-hero-window::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, rgba(244, 240, 230, 0), var(--paper)); }
@media (max-width: 760px) { .cb-hero-window { max-height: none; border-radius: 8px 8px 0 0; } .cb-hero-window::after { height: 18%; } }

.cb-hero { padding-top: 96px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.cb-eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--ink-3); }
.cb-hero h1 { margin: 0; max-width: 1180px; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 116px); line-height: 0.98; letter-spacing: -0.01em; }
.cb-hero h1 em { color: var(--green); }
.cb-lede { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.cb-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.cb-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; min-height: 48px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; text-decoration: none; }
.cb-button:hover { background: #000; color: #fff; }
.cb-button-green { background: var(--green); }
.cb-button-green:hover { background: var(--green-2); color: #fff; }
.cb-button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.cb-button-quiet:hover { background: var(--paper-2); color: var(--ink); }
.cb-cta-note { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* One journey, with the middle crossed out */
.cb-flows { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.cb-flow { border: 1px solid var(--rule-2); background: #f8f5ee; padding: 32px; }
.cb-flow-path { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.cb-node { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--rule-2); background: var(--paper); border-radius: 12px; }
.cb-node strong { font-weight: 600; font-size: 20px; color: var(--ink); }
.cb-node span { font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.cb-node-cloud { border-style: dashed; border-color: var(--ink-4); background: var(--paper-2); }
.cb-node-cloud strong, .cb-node-cloud span { color: var(--ink-4); }
.cb-cross { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.cb-node-mac { border-color: var(--green); border-width: 2px; }
.cb-node-mac strong { color: var(--green); }
.cb-arrow { flex: 0 0 64px; position: relative; }
.cb-arrow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px solid var(--green); }
.cb-arrow::after { content: ""; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: translateY(-50%) rotate(45deg); }
.cb-flows-foot { margin: 0; font-size: 16px; color: var(--ink-3); max-width: 760px; }
@media (max-width: 760px) {
  .cb-flow { padding: 16px; }
  .cb-flow-path { flex-direction: column; }
  .cb-arrow { flex-basis: 44px; height: 44px; }
  .cb-arrow::before { left: 50%; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px solid var(--green); }
  .cb-arrow::after { right: auto; left: 50%; top: auto; bottom: 8px; transform: translateX(-50%) rotate(135deg); }
}

/* The trade: two short columns of prose */
.cb-trade { padding-top: 24px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.cb-trade h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; }
.cb-trade h2 em { color: var(--green); }
.cb-trade-copy { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.cb-trade-copy p { margin: 0; }
.cb-trade-copy strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .cb-trade { grid-template-columns: 1fr; gap: 28px; } }

/* The window */
.cb-app { border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: var(--paper-2); }
.cb-app .cb-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.cb-section-title em { color: var(--green); }
.cb-section-title { margin: 0; max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.cb-window { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cb-window img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(27, 36, 32, 0.22); }
.cb-window figcaption { font-family: var(--mono); font-size: 13px; color: var(--ink-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Search: a field and three hits, drawn */
.cb-search { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.cb-search-copy { display: flex; flex-direction: column; gap: 18px; }
.cb-search-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.cb-search-demo { border: 1px solid var(--rule-2); border-radius: 12px; background: #f8f5ee; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(27, 36, 32, 0.08); }
.cb-search-field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--paper); font-family: var(--mono); font-size: 17px; }
.cb-search-glass { width: 14px; height: 14px; border: 2px solid var(--ink-4); border-radius: 50%; position: relative; flex: none; }
.cb-search-glass::after { content: ""; position: absolute; left: 11px; top: 11px; width: 7px; border-top: 2px solid var(--ink-4); transform: rotate(45deg); transform-origin: left top; }
.cb-search-caret { width: 2px; height: 22px; background: var(--ink); animation: cb-blink 1.1s steps(2, start) infinite; }
@keyframes cb-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .cb-search-caret { animation: none; } }
.cb-search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cb-search-results li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 18px; align-items: baseline; padding: 12px 10px; border-top: 1px solid var(--rule); font-size: 16px; }
.cb-search-results li:first-child { border-top: 0; background: #e6efe4; border-radius: 6px; }
.cb-search-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.cb-search-results .cb-num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.cb-search-results .cb-in { color: var(--green); }
@media (max-width: 900px) { .cb-search { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .cb-search-results li { grid-template-columns: minmax(0, 1fr) auto; } .cb-search-meta { grid-column: 1; } }

/* Formats strip */
.cb-formats { border-bottom: 1px solid var(--rule-2); }
.cb-formats .cb-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.cb-formats h2 { margin: 0; font: inherit; font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; color: var(--ink); }
.cb-formats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1; color: var(--ink); }
.cb-formats p { margin: 0; font-size: 15px; color: var(--ink-4); }
@media (max-width: 760px) { .cb-formats ul { justify-content: flex-start; } }

/* Inside: six vignettes */
.cb-inside { padding-top: 112px; padding-bottom: 112px; }
.cb-inside .cb-section-title { margin-bottom: 48px; }
.cb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.cb-cards li { display: flex; flex-direction: column; gap: 12px; }
.cb-vignette { display: block; width: 100%; height: auto; aspect-ratio: 320 / 150; border: 1px solid var(--rule-2); border-radius: 10px; background: #f8f5ee; margin-bottom: 6px; }
.cb-cards h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.cb-cards p { margin: 0; color: var(--ink-2); font-size: 16px; }
.cb-inside-foot { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-2); font-size: 16px; color: var(--ink-3); max-width: 820px; }
@media (max-width: 900px) { .cb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-cards { grid-template-columns: 1fr; } }

/* What it will never do: the struck-through ledger */
.cb-never { background: var(--ink); color: var(--paper); }
.cb-never .cb-wrap { padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.cb-never h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.cb-never h2 em { color: #8fd3b4; }
.cb-never-intro { margin: 18px 0 0; max-width: 420px; font-size: 18px; line-height: 1.6; color: #b9c4bd; }
.cb-refusals { list-style: none; margin: 0; padding: 0; }
.cb-refusals li { padding: 20px 0; border-bottom: 1px solid rgba(244, 240, 230, 0.16); }
.cb-refusals li:first-child { border-top: 1px solid rgba(244, 240, 230, 0.16); }
.cb-refusals h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--paper); }
.cb-refusals p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: #b9c4bd; max-width: 560px; }
@media (max-width: 900px) { .cb-never .cb-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Privacy */
.cb-privacy { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.cb-privacy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.cb-privacy-copy { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.cb-privacy-copy p { margin: 0; }
.cb-stamp { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 8px 14px; border: 2px solid var(--green); border-radius: 6px; color: var(--green);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-2deg); }

/* Price */
.cb-price-section { padding-top: 0; padding-bottom: 120px; }
.cb-price { border: 1px solid var(--rule-2); background: #f8f5ee; padding: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cb-price-copy { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.cb-price h2 { margin: 0; }
.cb-price-line { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.cb-price-copy p:not(.cb-price-line) { margin: 0; color: var(--ink-2); }
.cb-fine { font-size: 14px; color: var(--ink-4) !important; }
@media (max-width: 760px) { .cb-price { padding: 28px 20px; } }

/* The waiting list */
.cb-follow { background: var(--ink); color: var(--paper); }
.cb-follow .cb-wrap { padding-top: 96px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cb-follow .cb-label { color: #8fd3b4; }
.cb-follow h2 { margin: 0; max-width: 760px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; }
.cb-follow h2 em { color: #8fd3b4; }
.cb-follow p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: #b9c4bd; }
.cb-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; width: 100%; max-width: 560px; }
.cb-form input[type="email"] { flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(244, 240, 230, 0.3); background: rgba(244, 240, 230, 0.06); color: var(--paper); font: inherit; font-size: 16px; }
.cb-form input[type="email"]::placeholder { color: rgba(244, 240, 230, 0.45); }
.cb-form input[type="email"]:focus-visible { outline: 2px solid #8fd3b4; outline-offset: 2px; }
.cb-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.cb-form-status { min-height: 1.6em; font-size: 16px; color: var(--paper) !important; }
.cb-form-status:empty { margin: 0; }
.cb-form-note { font-size: 14px !important; color: #8e9a93 !important; }

/* Footer */
.cb-footer { border-top: 1px solid var(--rule-2); }
.cb-footer .cb-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-4); }
.cb-footer p { margin: 0; }
.cb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cb-footer a { color: var(--ink-3); }
