/* ============================================================================
   StratoSig — public marketing surface
   ----------------------------------------------------------------------------
   Design fingerprint (jarvis-core/config/estate_design_registry.json):
     layout    meteorological chart — isobar field, signal cards as stations
     type      Zilla Slab display / DM Sans body / IBM Plex Mono data
     palette   cool slate paper + graphite ink + oxide orange, ice hairlines
     motion    scroll-driven isobar draw-in; hover only elsewhere
     density   6

   This stylesheet REPLACES /static/style.css on public pages. The signed-in
   app shell stays dark and keeps style.css — do not merge the two.
   Legacy token names (--border, --text-primary, …) are re-pointed to light
   values at the bottom of the token block so a page's own inline <style> that
   still references them renders correctly instead of half-dark.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paper + ink */
  --paper:        #e8ecef;
  --paper-raise:  #f3f6f8;
  --paper-sink:   #dee4e9;
  --ink:          #1b2229;
  --ink-2:        #47535e;
  /* --ink-3 is the muted grade. Measured against --paper it clears AA at
     4.92:1; #626d77 looked close enough but measured 4.45 and failed. */
  --ink-3:        #5c666f;

  /* Rules — chart hairlines */
  --rule:         #c3cdd4;
  --rule-soft:    #d8e0e5;
  --ice:          #9cc7d6;

  /* The one signal accent. --oxide is a MARK colour (hairlines, ticks,
     display type ≥24px). --oxide-ink is the text/fill grade: AA on paper,
     AA with white on top. Never use --oxide for small text. */
  --oxide:        #e2551f;
  --oxide-ink:    #a63a11;
  --oxide-wash:   #f8e9e2;

  /* Outcome data colours — desaturated to sit inside the palette */
  --pos:          #2c6e56;
  --neg:          #9e2b1e;
  --pos-wash:     #e0e9e5;
  --neg-wash:     #f0e2df;

  --display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1180px;
  --trans: 0.16s cubic-bezier(0.32, 0.72, 0, 1);

  /* Legacy aliases — see header comment */
  --bg-app: var(--paper);
  --bg-card: var(--paper-raise);
  --bg-card-hover: var(--paper-sink);
  --bg-control: var(--paper-sink);
  --border: var(--rule);
  --border-focus: var(--oxide-ink);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --buy-text: var(--pos);
  --sell-text: var(--neg);
  --neutral-text: var(--ink-3);
  --accent: var(--oxide-ink);
  --btn-bg: var(--oxide-ink);
  --btn-hover: #8d3110;
  --error-bg: var(--neg-wash);
  --error-border: var(--neg);
  --error-text: var(--neg);
  --warn-bg: var(--oxide-wash);
  --warn-border: var(--oxide);
  --warn-text: var(--oxide-ink);
  --buy-glow: rgba(44, 110, 86, 0.16);

  /* A surface lifted clear of the page ground: the featured plan card, the
     support-chat card, a textarea. Pure white here on purpose — ordinary
     cards sit on --paper-raise, so white is what separates the featured one
     from its neighbours. It is a TOKEN rather than a literal #fff because
     the pages carrying these components are shared with the signed-in app,
     where a white panel is a hole burned in a dark page. */
  --surface-raised: #ffffff;
}

/* ---------------------------------------------------------------- base --- */

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

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The chart grid — a faint 44px graticule, the paper this whole surface is
   printed on. Fixed so it never repaints during scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(107, 132, 145, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(107, 132, 145, 0.075) 1px, transparent 1px);
  background-size: 44px 44px;
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; line-height: 1.14; }
h1 { font-weight: 700; }

a { color: var(--oxide-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

p { max-width: 68ch; }

strong, b { font-weight: 600; }

::selection { background: var(--oxide); color: #fff; }

:focus-visible {
  outline: 2px solid var(--oxide-ink);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Numbers are instrument readings — always tabular, always mono. */
.num, .mono, td.sb-td-num, .price, .plan-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Visually hidden but still announced — never `display:none` on a real label. */
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 200; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- shell --- */

.app { min-height: 100vh; display: flex; flex-direction: column; }
.mk-wrap, .container, .aff-wrap, .ck-wrap, .faq-wrap, .sb-wrapper, .sb-page-header, .sb-legend-bar {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}
.mk-main { flex: 1; }

/* ------------------------------------------------------- header / nav ---- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(232, 236, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--shell); margin-inline: auto;
  padding: 0 24px; min-height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 26px; height: 26px; display: block; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.015em; color: var(--ink);
}
/* Altitude marker beside the wordmark — the product reads pressure, so the
   brand carries a reading, not a decorative dot. */
.brand-alt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em;
  color: var(--ink-3); text-transform: uppercase;
  border-left: 1px solid var(--rule); padding-left: 10px; margin-left: 2px;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.header-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 11px; border-radius: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--rule); text-decoration: none; }
.nav-link-active, .nav-link.active {
  color: var(--ink); border-bottom-color: var(--oxide); background: none;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: background var(--trans), color var(--trans), border-color var(--trans);
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--oxide-ink); color: #fff; border-color: var(--oxide-ink); }
.btn-primary:hover { background: #8d3110; border-color: #8d3110; color: #fff; }
.btn-ghost, .btn-outline {
  background: transparent; color: var(--ink); border-color: var(--rule);
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); background: var(--paper-raise); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ------------------------------------------------- section / gutter ------ */

/* Every section is a reading off the chart: a mono annotation in the left
   margin, content to its right. That asymmetry IS the layout — it is not a
   decorative eyebrow, it names what the section measures. */
.mk-sec {
  border-top: 1px solid var(--rule);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
}
.mk-sec > .mk-gutter {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding-top: 8px; position: sticky; top: 86px;
}
.mk-gutter .mk-gutter-rule { display: block; width: 26px; height: 1px; background: var(--oxide); margin-bottom: 10px; }
.mk-sec h2 { font-size: clamp(26px, 3.1vw, 34px); margin-bottom: 10px; }
.mk-lede, .page-sub, .lede, .sub {
  color: var(--ink-2); font-size: 17px; max-width: 62ch; margin-bottom: 26px;
}

.page-title, .section-title, .sb-page-title, .blog-page-header h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; color: var(--ink);
}

.muted, .note, .sb-page-subtitle, .footnote, .sb-footnote { color: var(--ink-3); }
.accent { color: var(--oxide-ink); }

/* --------------------------------------------------------- isobar field -- */

.mk-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mk-field svg { width: 100%; height: 100%; display: block; }
/* The chart is DRAWN by default and the animation is a pure enhancement: the
   script beside the SVG sets an INLINE stroke-dashoffset to hide the paths,
   and the scroll observer clears it. Deliberately not a `.drawn` class rule —
   hiding the field in CSS and waiting on JS renders a blank hero anywhere the
   observer stays silent, and an inline style needs no specificity argument.
   Fail visible, never fail blank. */
.mk-field .iso {
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.15;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
/* The innermost contour of each system is the centre of pressure — the one
   line that carries the accent. */
.mk-field .iso-core { stroke: var(--oxide); stroke-width: 1.6; opacity: 0.85; }

/* Occluded front — barbs along a path, the second meteorological mark. */
.mk-field .front { fill: none; stroke: var(--ink-3); stroke-width: 1; opacity: 0.42; }

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

.mk-hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.mk-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--shell); margin-inline: auto; padding: 78px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px;
  align-items: center;
}
.mk-hero h1 {
  font-size: clamp(38px, 6.1vw, 68px);
  line-height: 1.02; letter-spacing: -0.028em; margin-bottom: 20px;
}
.mk-hero h1 em { font-style: normal; color: var(--oxide); }
.mk-hero .mk-lede { font-size: 18.5px; max-width: 46ch; }
.mk-eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.mk-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--oxide); flex: none; }
.mk-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.mk-fineprint { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 18px; letter-spacing: 0.01em; }

/* ------------------------------------------------------ station plots ---- */

/* A station plot: the reading pinned to the chart. Circle filled = long,
   hollow = short — the same convention a synoptic chart uses for cloud cover,
   so direction survives greyscale and never relies on colour alone. */
.mk-stations { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--paper-raise); }
.mk-station {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.mk-station:last-child { border-bottom: none; }
.mk-station-mark { width: 100%; height: 22px; display: block; }
.mk-station-mark circle { stroke: var(--ink); stroke-width: 1.5; }
.mk-station-mark .fillmark { fill: var(--ink); }
.mk-station-mark .hollowmark { fill: none; }
.mk-station-mark line { stroke: var(--ink); stroke-width: 1.5; }
.mk-station-sym { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.mk-station-dir { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); display: block; }
.mk-station-meta { display: flex; align-items: center; gap: 10px; }
.mk-station-when { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.mk-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em;
  padding: 3px 8px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2);
}
.mk-tag-win { color: var(--pos); border-color: var(--pos); background: var(--pos-wash); }
.mk-tag-loss { color: var(--neg); border-color: var(--neg); background: var(--neg-wash); }
.mk-tag-open { color: var(--ink-3); }

.mk-stations-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 0;
}

/* -------------------------------------------------------- proof strip ---- */

.proof {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper-raise);
}
.proof-pill {
  flex: 1 1 220px; padding: 15px 20px; font-size: 14px; color: var(--ink-2);
  border-right: 1px solid var(--rule-soft);
}
.proof-pill:last-child { border-right: none; }
.proof-pill b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 600; color: var(--ink); display: block; line-height: 1.2;
}
.proof-pill-cta { display: flex; align-items: center; }
.proof-pill-cta a { font-weight: 500; font-size: 14.5px; }

/* --------------------------------------------------- generic surfaces ---- */

.card, .plan-card, .blog-card, .faq-item, .linkbox, .sb-howto, .chat-card {
  background: var(--paper-raise);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.card { padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* A readings ledger replaces the templated three-card feature row: each row is
   a measurement with its own instrument label. */
.mk-ledger { border-top: 1px solid var(--rule); }
.mk-ledger-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 36px; padding: 22px 0; border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.mk-ledger-row h3 { font-size: 19px; }
.mk-ledger-row p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.mk-ledger-row .mk-ledger-idx {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.08em; display: block; margin-bottom: 6px;
}

.stat { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.markets span, .chip {
  display: inline-block; font-family: var(--mono); font-size: 12.5px;
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 5px 11px; margin: 0 6px 6px 0; color: var(--ink-2); background: var(--paper-raise);
}

/* ------------------------------------------------------------- forms ----- */

input[type="email"], input[type="text"], input[type="password"], textarea, select {
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 2px;
  padding: 11px 13px; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { border-color: var(--oxide-ink); }
label { font-size: 14px; font-weight: 500; color: var(--ink-2); display: block; margin-bottom: 6px; }

.mk-signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.mk-signup input { flex: 1 1 220px; width: auto; }

/* --------------------------------------------------------------- FAQ ----- */

.mk-faq-list { max-width: 800px; }
details.faq, .faq-item {
  border: 0; border-bottom: 1px solid var(--rule-soft);
  background: none; border-radius: 0; padding: 0; margin: 0;
  max-width: 800px;
}
details.faq summary, .faq-item > summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
}
details.faq summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
details.faq summary h3, .faq-q {
  display: inline; font-family: var(--display); font-size: 17.5px; font-weight: 600; color: var(--ink);
}
details.faq summary::after, .faq-item > summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  font-family: var(--mono); color: var(--oxide-ink); font-size: 17px;
}
details.faq[open] summary::after, .faq-item[open] > summary::after { content: "\2013"; }
details.faq p, .faq-a { color: var(--ink-2); font-size: 15.5px; padding-bottom: 18px; }

/* --------------------------------------------------- scoreboard tables --- */

.sb-page-header { padding-top: 30px; padding-bottom: 6px; }
.sb-page-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sb-window-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink-2); background: var(--paper-raise);
  border: 1px solid var(--rule); border-radius: 2px; padding: 3px 10px;
}
.sb-page-subtitle { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.sb-legend-bar { padding-top: 12px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-legend-item {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 2px; border: 1px solid var(--rule); color: var(--ink-2);
}
.sb-legend-green { background: var(--pos-wash); border-color: var(--pos); color: var(--pos); }
.sb-legend-amber { background: #f2ece0; border-color: #8a6d21; color: #6f5718; }
.sb-legend-red { background: var(--neg-wash); border-color: var(--neg); color: var(--neg); }

/* Anonymous-visitor membership CTA — a chart annotation, not a green banner.
   Lives here rather than in scoreboard.html's inline <style> because a test
   asserts the class NAME is absent from a signed-in member's HTML. */
.sb-anon-cta {
  max-width: var(--shell); margin: 22px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.sb-anon-cta > span {
  border-left: 3px solid var(--oxide); padding: 9px 0 9px 14px;
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
}
.sb-anon-cta strong { color: var(--ink); }

.sb-wrapper { flex: 1; padding-bottom: 52px; }
.sb-loading, .sb-empty, .blog-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 62px 20px; color: var(--ink-3); font-size: 15px; text-align: center;
}
.spinner {
  width: 26px; height: 26px; border: 2px solid var(--rule);
  border-top-color: var(--oxide); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.sb-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-raise); }
.sb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sb-table thead th {
  padding: 11px 14px; text-align: left;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3);
  background: var(--paper-sink); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.sb-th-num { text-align: center; }
.sb-table tbody tr { border-bottom: 1px solid var(--rule-soft); }
.sb-table tbody tr:last-child { border-bottom: none; }
.sb-table tbody tr:hover { background: var(--paper-sink); }
.sb-table tbody td { padding: 11px 14px; color: var(--ink); vertical-align: middle; }
.sb-td-num { text-align: center; font-weight: 500; }
.sb-row-green { background: var(--pos-wash); }
.sb-row-amber { background: #f3efe6; }
.sb-row-red { background: var(--neg-wash); }
.sb-pos { color: var(--pos); }
.sb-neg { color: var(--neg); }
.sb-market-icon { opacity: 0.8; }
.sb-incubating-badge {
  display: inline-block; margin-left: 7px; font-family: var(--mono);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em;
  padding: 1px 6px; border-radius: 2px; border: 1px solid #8a6d21;
  background: #f2ece0; color: #6f5718; vertical-align: middle;
}
.sb-open-count { color: var(--ink-3); }
.sb-footnote { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; max-width: 80ch; }

/* Sits OUTSIDE .sb-wrapper in the markup, so it needs its own gutter or it
   runs edge to edge on wide screens. */
.sb-howto {
  width: calc(100% - 48px);
  max-width: calc(var(--shell) - 48px);
  margin: 0 auto 20px;
  overflow: hidden;
}
@media (max-width: 640px) { .sb-howto { width: calc(100% - 32px); } }
.sb-howto > summary {
  cursor: pointer; padding: 13px 16px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); list-style: none;
}
.sb-howto > summary::-webkit-details-marker { display: none; }
.sb-howto > summary::before { content: "+ "; font-family: var(--mono); color: var(--oxide-ink); }
.sb-howto[open] > summary::before { content: "\2013 "; }
.sb-howto > summary:hover { color: var(--ink); }
.sb-glossary { list-style: none; padding: 2px 18px 18px; display: grid; gap: 10px; }
.sb-glossary li { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.sb-glossary strong { color: var(--ink); font-weight: 600; }
.sb-glossary em { color: var(--ink-3); font-style: italic; }

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

.mk-footer {
  border-top: 1px solid var(--rule); padding: 30px 0 46px;
  font-size: 14px; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center;
}
.mk-footer a { color: var(--ink-2); }
.mk-footer a:hover { color: var(--oxide-ink); }
.mk-footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.disclaimer, .footer-disclaimer, .disclaimer-banner, .chat-disclaimer {
  color: var(--ink-3); font-size: 12.5px; line-height: 1.6;
  border-top: 1px solid var(--rule-soft); padding: 22px 0; max-width: 90ch;
}
.social-row { display: flex; gap: 16px; }
.social-row a { color: var(--ink-2); font-size: 14px; }

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

@media (max-width: 900px) {
  .mk-hero-inner { grid-template-columns: minmax(0, 1fr); padding: 54px 22px 48px; gap: 34px; }
  .mk-sec { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 44px 0; }
  .mk-sec > .mk-gutter { position: static; padding-top: 0; }
  .mk-gutter .mk-gutter-rule { display: inline-block; vertical-align: middle; margin: 0 8px 3px 0; }
  .mk-ledger-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .mk-wrap, .container, .aff-wrap, .ck-wrap, .faq-wrap,
  .sb-wrapper, .sb-page-header, .sb-legend-bar, .header-inner { padding-inline: 16px; }
  .header-inner { min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .header-nav { gap: 0; }
  .nav-link { padding: 6px 8px; font-size: 13.5px; }
  .brand-alt { display: none; }
  .proof-pill { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .mk-station { grid-template-columns: 28px minmax(0, 1fr); }
  .mk-station-meta { grid-column: 1 / -1; justify-content: space-between; }
  .btn { padding: 11px 18px; }
}

/* 360px floor — nothing may push the page sideways. */
@media (max-width: 380px) {
  .mk-wrap, .container, .aff-wrap, .ck-wrap, .faq-wrap,
  .sb-wrapper, .sb-page-header, .sb-legend-bar, .header-inner { padding-inline: 12px; }
  .mk-hero-inner { padding-inline: 12px; }
  .mk-hero h1 { font-size: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mk-field .iso { stroke-dashoffset: 0; }
}

@media print {
  body::before, .mk-field { display: none; }
  .header { position: static; }
}
