/* The mobile site's shell, shared by every page in m/: the top bar and its menu, the footer,
   the sign-up sheet and the cookie bar (shell.js puts them in), and the few pieces every
   page uses: the button, the info card, the section head. Loads after live/theme.css (the
   brand tokens) and, on the ported pages, after live/site.css, so its rules win where they
   overlap. Its own class names start m- (or ra- for the sign-up) so they don't meet site.css's. */
:root {
  --m-edge: 20px;                         /* the page's side gutter */
  --m-head: 56px;                         /* the top bar */
  --m-ease: cubic-bezier(.16, 1, .3, 1);
  /* the info block, as the desktop landing's cards: raised paper, a thin dark edge,
     rounded, a soft drop shadow (--lift-sm for a row, --lift for a larger card) */
  --card-edge: 1px solid rgba(31, 32, 31, 0.55);
  --lift-sm: 0 1px 1px rgba(31, 32, 31, 0.05), 0 8px 20px -10px rgba(31, 32, 31, 0.34);
  --lift: 0 1px 1px rgba(31, 32, 31, 0.06), 0 18px 40px -18px rgba(31, 32, 31, 0.42);
}
html { -webkit-text-size-adjust: 100%; }
body.m { margin: 0; background: var(--surface-page); color: var(--text-primary); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.m-locked { overflow: hidden; }

/* ---- the top bar: the wordmark, and the menu button ---- */
.m-head { position: sticky; top: 0; z-index: 40; height: var(--m-head); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--m-edge) - 10px) 0 var(--m-edge); background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-bottom: 1px solid rgba(31, 32, 31, 0.08); transition: background-color .3s ease, border-color .3s ease; }   /* the colour of the ground under it, as the desktop nav: Silver Gray, Mute Black (.is-dark) over a data-ground="dark" section */
.m-head.is-dark { background: var(--slate); border-bottom-color: var(--line-inverse-subtle); }
.m-logo { font-family: var(--font-logo); font-size: 25px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; transition: color .3s ease; }
.m-head.is-dark .m-logo, .m-head.is-dark .m-burger { color: var(--ink-inverse); }
.m-logo:hover, .m-head.is-dark .m-logo:hover { color: var(--accent-interactive); }   /* as the desktop nav's logo */
.m-head-r { display: flex; align-items: center; gap: 2px; }
.m-head-cta { position: relative; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; border: 0; border-radius: 999px; background: var(--mu-electric-blue); color: var(--mu-silver-gray); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.m-head-cta::after { content: ''; position: absolute; inset: -5px -4px; }   /* a 44px target round the 34px pill */
.m-burger { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); transition: color .3s ease; }
.m-burger i { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .35s var(--m-ease), top .35s var(--m-ease); }
.m-burger i:nth-child(1) { top: 17px; }
.m-burger i:nth-child(2) { top: 25px; }
.m-burger[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.m-burger[aria-expanded="true"] i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* the menu: the site's four pages, large, then log in and get started */
.m-menu { position: fixed; z-index: 39; inset: var(--m-head) 0 0; display: flex; flex-direction: column; padding: 18px var(--m-edge) max(28px, env(safe-area-inset-bottom)); background: var(--surface-page); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .4s var(--m-ease), visibility 0s .4s; }
.m-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .4s var(--m-ease); }
.m-menu a.m-link { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0 15px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.m-menu a.m-link small { font-family: 'Alte Haas Grotesk', sans-serif; font-size: 12px; letter-spacing: 0; color: var(--ink-tertiary); }
.m-menu .m-menu-cta { margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: 24px; }
.m-menu .m-menu-cta a { font-size: 15px; font-weight: 600; color: var(--ink-secondary); text-decoration: none; }
.m-menu .m-menu-cta .m-btn { flex: 1; justify-content: center; }
.m-menu.open a.m-link { animation: m-in .5s var(--m-ease) both; }
.m-menu.open a.m-link:nth-child(2) { animation-delay: .04s; }
.m-menu.open a.m-link:nth-child(3) { animation-delay: .08s; }
.m-menu.open a.m-link:nth-child(4) { animation-delay: .12s; }
@keyframes m-in { from { opacity: 0; transform: translateY(10px); } }

/* ---- shared pieces ---- */
.m-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--mu-electric-blue); color: var(--mu-silver-gray); font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(21, 148, 237, 0.75), inset 0 -2px 0 rgba(31, 32, 31, 0.12); }
.m-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.m-btn:active { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(21, 148, 237, 0.75); }
.m-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--blue-ink); text-decoration: underline; text-decoration-color: var(--mu-electric-blue); text-underline-offset: 4px; }
.m-card { border: var(--card-edge); border-radius: 14px; background: var(--paper-raised); box-shadow: var(--lift-sm); }
.m-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-secondary); }
.m-mark { padding: 0 .06em; background: linear-gradient(transparent 55%, rgba(234, 255, 0, 0.45) 55%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---- the footer, as the live site's: its links, then the line ---- */
.m-foot { margin: 0; padding: 30px var(--m-edge) max(34px, env(safe-area-inset-bottom)); letter-spacing: 0; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-tertiary); }
.m-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-bottom: 8px; }   /* 44px tall links */
.m-foot nav a, .m-foot nav button, .m-foot .consent-settings { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-secondary); text-decoration: none; cursor: pointer; }
.m-foot.dark { background: var(--slate); border-top-color: var(--line-inverse-subtle); color: var(--ink-inverse-tertiary); }
.m-foot.dark nav a, .m-foot.dark nav button, .m-foot.dark .consent-settings { color: var(--ink-inverse-secondary); }

/* the cookie bar: the live site's (tracking.js builds it; its rules are in site.css, which the
   home page doesn't load), set for a phone; the shell's stand-in uses the same markup */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 16px 16px 14px; border-radius: 16px; background: var(--slate); color: var(--ink-inverse); box-shadow: 0 20px 50px -20px rgba(31, 32, 31, 0.6); animation: m-in .4s var(--m-ease); }
.consent .consent-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink-inverse); }
.consent .consent-text a { color: var(--ink-inverse); text-decoration: underline; text-underline-offset: 3px; }
.consent .consent-actions { display: flex; gap: 10px; }
.consent .consent-actions .btn { flex: 1; height: 42px; padding: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transform: none; }
.consent .btn-ghost { border: 1px solid var(--line-inverse-strong); background: none; color: var(--ink-inverse); }
.consent .btn-primary { border: 0; background: var(--mu-electric-blue); color: var(--mu-silver-gray); }

/* ---- request access: the app's sign-up (apps/web request-access) as a sheet from the
   bottom, and the same card set in a page (.ra-inline) ---- */
.ra { color: var(--ink); font-family: var(--font-sans); }
dialog.ra { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: calc(100svh - 24px); margin: 0 auto; padding: 22px var(--m-edge) max(20px, env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; background: var(--paper-raised); box-shadow: 0 -20px 60px -20px rgba(31, 32, 31, 0.45); overflow: auto; overscroll-behavior: contain; }
dialog.ra[open] { animation: ra-up .5s var(--m-ease); }
dialog.ra::backdrop { background: rgba(31, 32, 31, 0.45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: ra-fade .3s ease; }
@keyframes ra-up { from { transform: translateY(100%); } }
@keyframes ra-fade { from { opacity: 0; } }
.ra .grab { width: 40px; height: 4px; margin: -8px auto 14px; border-radius: 2px; background: rgba(31, 32, 31, 0.16); }
.ra-x { position: absolute; top: 14px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ink-tertiary); cursor: pointer; }
.ra-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ra-inline { padding: 22px 20px 18px; border: 1px solid rgba(31, 32, 31, 0.06); border-radius: 22px; background: var(--paper-raised); box-shadow: 0 30px 80px -30px rgba(31, 32, 31, 0.6); }
.ra-eye { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-secondary); }
.ra h2 { margin: 12px 0 0; font-family: 'Perfectly Nineties', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.ra-inline h2 { margin-top: 0; }
.ra .sub { margin: 7px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-secondary); }
.ra .field { margin-top: 11px; }
.ra .field:first-of-type { margin-top: 16px; }
.ra label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.ra .iw { position: relative; display: flex; align-items: center; }
.ra .iw svg { position: absolute; left: 14px; width: 17px; height: 17px; fill: none; stroke: rgba(31, 32, 31, 0.38); stroke-width: 1.8; pointer-events: none; }
/* 16px in the fields: a phone zooms in on anything smaller */
.ra :is(input, select, textarea) { width: 100%; box-sizing: border-box; border: 1px solid rgba(31, 32, 31, 0.12); border-radius: 14px; background: rgba(31, 32, 31, 0.035); font: inherit; font-size: 16px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.ra input { height: 46px; padding: 0 14px 0 42px; }
.ra select { height: 46px; padding: 0 36px 0 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F201F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ra select:invalid { color: rgba(31, 32, 31, 0.36); }
.ra textarea { min-height: 64px; padding: 11px 12px; resize: none; line-height: 1.4; }
.ra input.other { margin-top: 8px; padding-left: 14px; }   /* "Other": their own words, under the choice (no icon) */
.ra :is(input, textarea)::placeholder { color: rgba(31, 32, 31, 0.36); }
.ra :is(input, select, textarea):focus { background-color: var(--paper-raised); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(234, 255, 0, 0.35); }
.ra .go { width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--mu-electric-blue); font: inherit; font-size: 16px; font-weight: 700; color: var(--mu-silver-gray); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(21, 148, 237, 0.5); }
.ra .go:disabled { opacity: .55; box-shadow: none; }
.ra .note, .m-note { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.4; border: 1px solid rgba(31, 32, 31, 0.12); background: rgba(31, 32, 31, 0.04); color: var(--ink-secondary); }
.ra .note.ok, .m-note.ok { border-color: rgba(85, 182, 47, 0.28); background: rgba(85, 182, 47, 0.1); color: var(--green-ink); }
.ra .note.bad, .m-note.bad { border-color: var(--line-strong); background: var(--paper-sunken); color: var(--ink); }   /* errors stay in the brand neutrals */
.ra .switch { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-secondary); }
.ra .switch a { padding: 0 2px; font-weight: 700; color: var(--ink); text-decoration: none; background: linear-gradient(transparent 55%, var(--yellow-edge) 55%); }
.ra .legal { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-tertiary); }
.ra .legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* the reports' email field (the mµ Insights double opt-in, as the live site's bar) */
.m-sub { display: flex; gap: 8px; }
.m-sub input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; box-sizing: border-box; border: var(--card-edge); border-radius: 999px; background: var(--paper-raised); box-shadow: var(--lift-sm); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.m-sub input:focus { border-color: var(--mu-electric-blue); box-shadow: 0 0 0 3px rgba(21, 148, 237, 0.2); }
.m-sub button { flex: none; }
.m-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) { .m-menu, .m-menu.open a.m-link, dialog.ra[open], .consent { animation: none !important; transition: none !important; } }
