/* Marketing visual system (home, blog, 404). Shared tokens live in be-theme.css; this layer maps them to the mr-* names the sections use. */
.mr-page {
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Liberation Sans', Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Liberation Sans', Arial, sans-serif;
  --mr-page: #fff; --mr-alt: #f2f4f7; --mr-surface: #fff; --mr-raised: #f8fafc;
  --mr-ink: #101828; --mr-muted: #475467;
  --mr-line: #e4e7ec; --mr-line-soft: #eef0f3; --mr-line-strong: #d0d5dd;
  /* Section rule (SPEC v2 2.1): full ink in light, the strong line in dark. Reuses existing colours. */
  --mr-rule: var(--mr-ink);
  --mr-blue: #6c9bff; --mr-blue-ink: #1d4ed8;
  /* The app's --c-accent-soft (blue at 12%), used only by the hover ring. */
  --mr-blue-soft: rgba(108, 155, 255, .12);
  --mr-gold: var(--be-color-primary); --mr-gold-ink: var(--be-color-primary);
  /* Gold as running text only where it clears AA: neutral ink on the white page (G1 on white is 2.17:1, recorded limitation), gold on the dark ledger. Lines and marks keep --mr-gold. */
  --mr-gold-text: var(--mr-ink);
  --mr-button-ink: #101828;
  --mr-selected-bg: #e8f0ff;
  --mr-sp-section: clamp(64px, 8vw, 112px); --mr-sp-block: 32px; --mr-sp-stack: 16px;
  --mr-gutter: 32px;
  background: var(--mr-page); color: var(--mr-ink); overflow-wrap: break-word;
  font-family: var(--font-body);
  /* Marketing body 17/1.6 (SPEC v2 2.3); every figure tabular so numbers line up. */
  font-size: 17px; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .mr-page {
  --mr-page: #0c0b09; --mr-alt: #14120e; --mr-surface: #14120e; --mr-raised: #1b1813;
  --mr-ink: #f2ede3; --mr-muted: #a79d8b;
  --mr-line: #2e2820; --mr-line-soft: #221e17; --mr-line-strong: #40382d;
  --mr-rule: var(--mr-line-strong);
  --mr-blue-ink: #6c9bff; --mr-gold-ink: var(--be-color-primary);
  --mr-gold-text: var(--be-color-primary);
  --mr-selected-bg: #19243a;
}
.mr-container { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
/* Ledger broadsheet grid (SPEC v2 2.2): 12 columns inside the container, 32px gutter; 16px on phones. */
.mr-page .mr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--mr-gutter, 32px); }
/* A section is rule + 32px + title row + content. Never a rule and a box for the same group. */
.mr-page .mr-ruled { border-top: 1px solid var(--mr-rule); padding-top: 32px; }
/* Gold wires attach to measured artwork landmarks and pass around native copy. The host clips a wire's
   outward control box (clip, not hidden: the sticky FAQ intro must keep the viewport as its scroller). */
.mr-page [data-page-connectors] { position: relative; overflow-x: clip; }
.mr-page .mr-how > .mr-container,
.mr-page #product .mr-product,
.mr-page #product .mr-journal {
  position: relative;
  border: 0;
  border-top: 1px solid var(--mr-rule);
  border-radius: 0;
  margin-block: 0;
  padding: 32px 0 var(--mr-sp-section);
}
.mr-page #product .mr-product--screener { column-gap: var(--mr-gutter); }
.mr-page #product .mr-product--screener .mr-product__copy { padding-left: 0; }
.mr-page #product .mr-illustration { width: 100%; max-width: 100%; margin-inline: 0; }
.mr-page #product .mr-journal__sheet { max-width: 880px; margin-inline: auto; }
.mr-page .mr-how .mr-how__scene { border-radius: var(--radius-card, 12px); overflow: hidden; }
/* Pricing and FAQ open under the same rule; the closing section keeps its artwork seam instead. */
.mr-page .mr-pricing > .mr-container,
.mr-page .mr-faq__layout { border-top: 1px solid var(--mr-rule); padding-top: 32px; }
.mr-page .mr-pricing > .mr-container { padding-bottom: var(--mr-sp-section); }
.mr-page .mr-page-connector {
  position: absolute; z-index: 2; overflow: hidden; pointer-events: none;
}
.mr-page .mr-page-connector path {
  fill: none; stroke: var(--mr-gold); stroke-width: 1.5;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.mr-page .mr-page-connector circle { fill: var(--mr-gold); stroke: none; }
/* One quiet trace and one draw-on layer for every section connection. */
.mr-page [data-wire-connector] path[data-wire-layer] {
  fill: none; stroke: var(--mr-gold); stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.mr-page [data-wire-connector] path[data-wire-layer="base"] {
  stroke-width: 1.5; opacity: .3;
}
.mr-page [data-wire-connector] path[data-wire-layer="draw"] {
  stroke-width: 1.5;
}
/* Travelling spark: colour, length and halo come from hero-arrows.mjs constants (set inline). Hidden unless animating, so reduced motion shows none. */
.mr-page [data-wire-connector] path[data-wire-layer="spark"] {
  stroke-width: 1.5; opacity: 0;
}
/* Keep the approved raster crops at or below their native CSS pixel width. */
.mr-page .mr-journal__sheet { max-width: 880px; }
.mr-page .mr-final .mr-final__approved-thread { width: min(1039px, calc(100% - 96px)); max-width: 1039px; margin-inline: auto; }
.mr-page [id] { scroll-margin-top: 96px; }
/* Kicker: neutral label with a small gold mark. The mark inherits border-color so the gold stays a line, not text. */
.mr-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mr-muted); border-color: var(--mr-gold-ink); font-family: var(--font-body); font-size: 12px; line-height: 1.3; letter-spacing: .08em; font-weight: 600; text-transform: uppercase; }
.mr-kicker::before { content: ""; flex: none; width: 8px; height: 8px; border: 4px solid; border-color: inherit; border-radius: 2px; }
/* Section H2 and its deck are one pairing on every section (SPEC v2 2.3 / v1 3.1). */
.mr-page .mr-heading { font-family: var(--font-display); color: var(--mr-ink); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.mr-page .mr-body { color: var(--mr-muted); font-family: var(--font-body); font-size: 18px; font-weight: 400; line-height: 1.6; }
.mr-link { color: var(--mr-blue-ink); display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-underline-offset: 6px; font-size: 17px; font-weight: 500; }
.mr-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: 10px; background: var(--mr-blue); color: #101828; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background var(--dur-base, 160ms) var(--ease-out, ease); }
.mr-button:hover { background: var(--blue-deep, #4f83f4); }
.mr-page a:focus-visible, .mr-page button:focus-visible, .mr-page summary:focus-visible, .mr-page input:focus-visible { outline: 2px solid var(--mr-blue-ink); outline-offset: 2px; }
.mr-page .site-header__cta { color: #101828; }
.mr-page .site-header__cta::before { display: none; }
.mr-page .site-header__cta, .mr-page .site-header__login { border-radius: 10px; }
.mr-page .site-header__actions > button, .mr-page .site-header__actions > a { min-height: 44px; }
.mr-page .site-header__actions > button { min-width: 44px; }
.mr-page .site-header__brand .be-logo { min-height: 44px; }
.mr-page .site-header__nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.mr-page .site-header__nav { gap: 24px; }
.mr-page footer .sc-footer, .mr-page footer p { color: var(--mr-muted); }
.mr-page footer .sc-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.mr-skip { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 12px 18px; color: var(--mr-ink); background: var(--mr-surface); border: 1px solid var(--mr-line); border-radius: 10px; transform: translateY(-160%); }
.mr-skip:focus { transform: none; }
.mr-footer-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }
.mr-footer-controls button, .mr-footer-controls a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--mr-line); border-radius: 10px; color: var(--mr-muted); background: var(--mr-surface); font: inherit; font-size: 14px; text-decoration: none; }
.mr-footer-controls button:hover, .mr-footer-controls a:hover { border-color: var(--mr-line-strong); color: var(--mr-ink); }
[data-motion-toggle][hidden], [data-motion-replay][hidden] { display: none !important; }
@media (max-width: 1023px) { .mr-page .site-header__nav { gap: 16px; } }
@media (min-width: 341px) and (max-width: 390px) {
  .mr-page .site-header .be-logo__wordmark { font-size: calc(var(--wordmark-size) * .86); }
}
@media (max-width: 340px) {
  .mr-page .site-header .be-logo__wordmark { font-size: calc(var(--wordmark-size) * .76); }
}
@media (max-width: 640px) {
  /* Phone rhythm (SPEC v2 R-M5): tighter section gap; cards are exactly as tall as their content. */
  .mr-page { --mr-sp-section: clamp(48px, 10vw, 64px); }
  .mr-page #product .mr-product,
  .mr-page #product .mr-journal,
  .mr-page .mr-plan { height: auto; min-height: 0; }
}
@media (max-width: 767px) {
  .mr-page { --mr-gutter: 16px; }
  .mr-container { width: calc(100% - 32px); }
  .mr-page .mr-final .mr-final__approved-thread { width: calc(100% - 32px); }
  /* Open sections keep the rule full width; artwork sits 16px inside the column so the stacked
     wire rail (PR #16, centred in the page margin) keeps its clearance and corner radius. */
  .mr-page #product .mr-illustration,
  .mr-page .mr-how .mr-how__scene { width: auto; max-width: none; margin-inline: 16px; }
  .mr-page .mr-body { font-size: 17px; }
  .mr-page .mr-heading { font-size: clamp(30px, 7vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .mr-page { scroll-behavior: auto; }
  .mr-page *, .mr-page *::before, .mr-page *::after { animation: none !important; transition-duration: 0s !important; }
}
