/* www.mhomentum.com — landing page styles.
 *
 * Every colour, radius, space and duration below is a token from
 * assets/brand/palette.css; every type ramp is one from
 * assets/brand/typography.css. There is deliberately not a single hex value in
 * this file — Nora changes colours, and that has to stay a one-file edit.
 *
 * The two rules that are easiest to break and worst to break:
 *   Current is a FILL on light and a TEXT colour on dark  -> never `color: var(--mh-current)`
 *   Buttons are Ink on Current                            -> --mh-on-accent, never white
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mh-bg);
  color: var(--mh-text);
  font: var(--mh-t-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mh-link); }

:where(a, button, summary):focus-visible {
  outline: none;
  box-shadow: var(--mh-focus-ring);
  border-radius: var(--mh-radius-sm);
}

/* Keyboard users first: a project manager lives on a keyboard all day. */
.skip {
  position: absolute; left: var(--mh-space-4); top: calc(var(--mh-space-4) * -4);
  z-index: 10; padding: var(--mh-space-3) var(--mh-space-4);
  background: var(--mh-surface); color: var(--mh-text);
  border: 1px solid var(--mh-border-strong); border-radius: var(--mh-radius-sm);
  font: var(--mh-t-label); text-decoration: none;
  transition: top var(--mh-dur-base) var(--mh-ease);
}
.skip:focus { top: var(--mh-space-4); }

/* On a phone the header CTA is the third copy of the same button above the
   fold. Drop it; the hero one is 300px away. */
@media (max-width: 599px) { .site-head .btn { display: none; } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--mh-gutter); }

/* ---- Lockup: inline mark + live-text wordmark ---------------------------- */
/* The wordmark ships as text on purpose so it stays translatable, selectable
   and editable. Its size and the Mho highlight both come from a typography.css
   size step -- `.mh-wordmark--head` in the header, `--foot` in the footer --
   so the drop-the-highlight-below-24px rule is Nora's CSS and not ours. v1.0
   needed a hand override here; v1.1 does not, and there is none left. */
/* Proportions are taken from logo/mhomentum-lockup.svg, not eyeballed. In that
   file the mark's ink is 0.96 x the wordmark's font-size and the gap is 0.30 x
   the mark's height. mhomentum-mark.svg's ink fills 78% of its square viewBox
   and leaves 6% of padding on the right, so the box is 0.96/0.78 = 1.23em and
   the CSS gap is the 0.29em gap minus that built-in 0.074em. */
.lockup {
  display: inline-flex; align-items: center; gap: 0.215em;
  color: var(--mh-text); text-decoration: none;
  line-height: 1;
}
.lockup .mark { width: 1.23em; height: 1.23em; flex: none; }
/* The mark is a sibling of the wordmark, so it cannot inherit the step's
   font-size -- the lockup carries it instead, set to the same number as the
   step it wraps, and the wordmark re-inherits it. The step class is then left
   doing the one job only it can do: --mh-wordmark-mho. */
.site-head .lockup { font-size: 28px; }   /* pairs with .mh-wordmark--head */
.site-foot .lockup { font-size: 20px; }   /* pairs with .mh-wordmark--foot */
.lockup .mh-wordmark { font-size: inherit; }
.lockup:hover { color: var(--mh-text); }

/* The mark draws itself once on first load — left shoulder first, out through
   the right. Once. Never a loop, and nothing depends on it being seen. */
.mark path { stroke-dasharray: 100; stroke-dashoffset: 0; }
.mark--draw path { animation: mh-draw 600ms var(--mh-ease-flow) 1 both; }
@keyframes mh-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark--draw path { animation: none; stroke-dashoffset: 0; }
}

/* ---- Header -------------------------------------------------------------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--mh-space-4);
  padding: var(--mh-space-6) 0;
}

/* ---- Buttons — Ink on Current. Do not "fix" this to white. --------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--mh-tap-min);          /* gloves, even on the marketing site */
  padding: 0 var(--mh-space-6);
  border: 1px solid transparent; border-radius: var(--mh-radius-sm);
  font: var(--mh-t-button); text-decoration: none; cursor: pointer;
  transition: transform var(--mh-dur-fast) var(--mh-ease),
              background-color var(--mh-dur-fast) var(--mh-ease);
}
.btn--primary { background: var(--mh-accent); color: var(--mh-on-accent); }
.btn--primary:hover { transform: translateY(-1px); }
/* Ghost sits on a --mh-surface fill rather than on the page. In v1.0 that was
   forced: --mh-border-strong was 3.09:1 on white and 2.86:1 on Papir. v1.1
   re-measured the token against Papir (3.63) and white (3.92), so the fill is
   now a design choice -- the button reads as a small card -- and not a fix.
   The value itself is palette.css's business; not one hex lives in this file. */
.btn--ghost {
  background: var(--mh-surface); color: var(--mh-text);
  border-color: var(--mh-border-strong);
}
.btn--ghost:hover { background: var(--mh-surface-sunk); }
.btn:active { transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--mh-space-3); margin: var(--mh-space-8) 0 var(--mh-space-4); }
.cta-note { font: var(--mh-t-small); color: var(--mh-text-muted); margin: 0; }

/* A pill that says what we are, honestly, while there is no shipped product. */
.pill {
  display: inline-block; padding: var(--mh-space-1) var(--mh-space-3);
  background: var(--mh-accent-quiet); color: var(--mh-text);
  border: 1px solid var(--mh-border); border-radius: var(--mh-radius-xs);
  font: var(--mh-t-caption); letter-spacing: var(--mh-track-caps);
  text-transform: uppercase;
}

/* ---- Sections ------------------------------------------------------------ */
.eyebrow { color: var(--mh-text-muted); margin: 0 0 var(--mh-space-4); }
.hero { padding: var(--mh-space-6) 0 var(--mh-space-20); }
.hero h1 { margin: 0 0 var(--mh-space-5); }
.hero .lead { margin: 0; color: var(--mh-text-muted); max-width: 30ch; }

.split {
  display: grid; gap: var(--mh-space-10);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--mh-space-16); }
  .split--flip .split__text { order: 2; }
}

.claims { display: grid; gap: var(--mh-space-16); padding-bottom: var(--mh-space-16); }
.claim h2 { margin: 0 0 var(--mh-space-4); }
.claim p { margin: 0; color: var(--mh-text-muted); max-width: 42ch; }
.claim .footnote { margin-top: var(--mh-space-5); font: var(--mh-t-small); color: var(--mh-text-muted); }

/* Illustrations sit on Papir in BOTH themes — never inverted, never recoloured.
   That is why this is --mh-paper and not --mh-surface: on Natt the card has to
   stay Paper or the artwork loses its ground.

   NO BORDER, deliberately. Brand v1.1 pins every derivative's background to
   exact Papir, so on a Papir page the plate has no edge at all and that is the
   intended effect — ALT_TEXT.md rule 4 says in as many words not to add a
   border to "define" it. v1.0 had one, because the five masters each had their
   own off-white and the plate was doing the defining. It is not needed now and
   putting it back would undo the fix. On Natt the Paper card is ~15:1 against
   the page and needs no help either. */
.plate {
  max-width: 520px; margin-inline: auto;
  background: var(--mh-paper);
  border-radius: var(--mh-radius-lg);
  padding: var(--mh-space-4);
  margin: 0;
  overflow: hidden;
}
.plate img { border-radius: var(--mh-radius-md); width: 100%; }
/* The hero illustration gets the room; the four claims sit a size down so the
   copy stays the thing you read first. */
.claim .plate { max-width: 440px; }

/* ---- Closing ------------------------------------------------------------- */
.closing {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-lg);
  padding: var(--mh-space-12) var(--mh-space-8);
  margin-bottom: var(--mh-space-16);
  text-align: center;
}
.closing h2 { margin: 0 0 var(--mh-space-4); }
.closing p { margin: 0 auto; color: var(--mh-text-muted); max-width: 46ch; }
.closing .cta-row { justify-content: center; }

/* ---- Footer -------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--mh-border);
  padding: var(--mh-space-8) 0 var(--mh-space-12);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-space-4);
  justify-content: space-between;
  color: var(--mh-text-muted); font: var(--mh-t-small);
}
.site-foot p { margin: 0; }
/* The language switch is deliberately quiet: Norwegian first, and an
   English page that is available rather than advertised. */
.site-foot .lang { color: var(--mh-text-muted); }
.origin { font: var(--mh-t-mono); color: var(--mh-text-subtle); }
