/* Additions to the founder v4 styles (ui-ux-pro-max review, 2026-10-25). Loaded after panorama.css and
   before image-integrity.css, which stays last and authoritative for the founder images. Nothing here
   changes the layout or the images; it adds keyboard, contrast and motion fixes, <picture> display,
   and the prose styles of the legal pages. */

/* <picture> wraps each founder image (WebP srcset); it must behave like the block <img> it contains. */
picture{display:block}

/* Keyboard: a skip link and a visible focus ring on every control (the founder CSS sets none). */
.skip-link{position:absolute;left:16px;top:-60px;z-index:100;background:var(--navy);color:#fff;padding:10px 16px;border-radius:7px;font-weight:700}
.skip-link:focus{top:12px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
.site-footer a:focus-visible{outline-color:#fff}
main:focus{outline:none}

/* In-page targets clear the sticky header (78px, 68px on phones). */
[id]{scroll-margin-top:92px}


/* Touch: the menu button is at least 44px square. */
.mobile-toggle{min-width:44px;min-height:44px;color:var(--ink)}

/* Reduced motion: no smooth scrolling and no button lift. */
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}.btn:hover{transform:none}}

/* Legal pages and the 404 page: the founder header and footer around a plain reading column. */
.legal-hero{padding:72px 0 24px;background:#f7faf9;border-bottom:1px solid var(--line)}
.legal-hero h1{font-size:clamp(2.2rem,4vw,3.4rem)}
.prose{max-width:760px}
.prose h2{font-size:clamp(1.35rem,2.2vw,1.7rem);margin:40px 0 12px;letter-spacing:-.025em}
.prose p,.prose li{color:#33495b}
.prose ul{padding-left:22px;margin:0 0 20px}
.prose li{margin-bottom:8px}
.prose a,.legal-hero a{color:#126181;text-decoration:underline;text-underline-offset:3px}
.prose .note{background:#eef5f4;border-left:4px solid #1f7480;border-radius:8px;padding:14px 18px;color:var(--ink)}
.prose .small{font-size:.85rem;color:#586b7d}
.routes{list-style:none;padding:0;margin:24px 0 0}
.routes li{border-bottom:1px solid var(--line);padding:16px 0;display:flex;flex-direction:column;gap:4px}
.routes a{font-weight:700;color:#126181}
.routes span{color:var(--muted);font-size:.95rem}
.legal-doc h1{font-size:clamp(2.2rem,4vw,3.4rem);margin-top:8px}
.prose h3{font-size:1.1rem;margin:28px 0 10px}
.prose table{width:100%;border-collapse:collapse;margin:8px 0 24px;font-size:.92rem;display:block;overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:10px 12px 10px 0;text-align:left;vertical-align:top;color:#33495b}
.prose th{font-family:'IBM Plex Sans',Arial,sans-serif;color:var(--ink)}
.prose code{font-size:.88em;background:#eef5f4;border-radius:4px;padding:1px 5px;overflow-wrap:anywhere}

/* 2026-10-25 UI/UX Pro Max pass: minimum 12px text, 44px touch targets on the billing toggle, room for the SVG use-case icons. */
.mobile-toggle svg{display:block;margin:auto}
.footer-bottom{font-size:max(.75rem,12px)}

/* ===========================================================================================
   Design pass (founder feedback, 2026-10-25): design-system tokens and fonts, high-contrast yellow
   trial CTAs and colour. The page design itself is in /v5.css. Everything here overrides
   styles.css/panorama.css by selector match and source order; neither file is edited (styles.css
   stays byte-pinned to the founder original; panorama.css and image-integrity.css keep the founder
   images full-frame).
   =========================================================================================== */

/* ---- Fonts: self-hosted IBM Plex Sans (+ Mono for identifiers), DESIGN_SYSTEM.md §2 ---- */
body{font-family:'IBM Plex Sans',Arial,sans-serif}
h1,h2,h3,.brand{font-family:'IBM Plex Sans',Arial,sans-serif;font-weight:700;letter-spacing:-.02em}
.eyebrow{font-family:'IBM Plex Sans',Arial,sans-serif}
code{font-family:'IBM Plex Mono','IBM Plex Sans',monospace}

/* ---- Colour: @metagnition/design-system tokens.css v0.6.0 (subset), Layer 1 primitives and Layer 3
   product themes. DESIGN_SYSTEM.md §2: colours come from tokens, never hard-coded; SemiTrace accent
   #2A83AC, BESS primary #0A8A82 (darker interactive shades for text and buttons); yellow is reserved
   for the "Start 7-day free trial" call to action. ---- */
:root{
  --mg-ink-900:#102a43;--mg-ink-700:#31455b;--mg-ink-600:#44586f;--mg-ink-500:#5b6f86;--mg-ink-200:#d0dae5;--mg-ink-100:#eaf0f6;--mg-ink-50:#f4f8fb;
  --mg-blue-500:#4169e1;--mg-blue-600:#3358d0;--mg-blue-700:#2946ae;--mg-blue-800:#21388a;--mg-blue-50:#eef2fd;--mg-blue-100:#dce4fb;
  --mg-semitrace-500:#2a83ac;--mg-semitrace-600:#236f94;--mg-semitrace-700:#1c607f;--mg-semitrace-50:#eaf5fa;--mg-semitrace-100:#d4eaf4;
  --mg-bess-500:#0a8a82;--mg-bess-600:#08746e;--mg-bess-700:#05635d;--mg-bess-50:#e9f7f5;--mg-bess-100:#cdeee9;
  --mg-yellow-300:#ffd95c;--mg-yellow-400:#ffc826;--mg-yellow-500:#f5b400;--mg-yellow-50:#fffbeb;
  --mg-viz-royal:#3358d0;--mg-viz-steel:#2a83ac;--mg-viz-teal:#009485;--mg-viz-aqua:#08a29e;--mg-viz-ochre:#b98517;--mg-viz-rose:#c8517a;--mg-viz-sky:#4c97d2;--mg-viz-marine:#1d5e9b;--mg-viz-indigo:#5d6dc0;
  --mg-mark-blue:#3358d0;--mg-mark-teal:#3cc0b5;
  /* Remap the founder's variable names (styles.css :root) to the token values, scoped per product below. */
  --ink:var(--mg-ink-900);--muted:var(--mg-ink-600);--line:var(--mg-ink-200);--cream:var(--mg-ink-50);
  --blue:var(--mg-blue-600);--navy:var(--mg-ink-900);--accent:var(--mg-blue-50);
  --viz-1:var(--mg-viz-royal);--viz-2:var(--mg-viz-sky);--viz-3:var(--mg-viz-ochre);
}
[data-product="semitrace"]{--blue:var(--mg-semitrace-600);--navy:var(--mg-semitrace-700);--accent:var(--mg-semitrace-100);--viz-1:var(--mg-viz-steel);--viz-2:var(--mg-viz-sky);--viz-3:var(--mg-viz-marine);}
[data-product="bess"]{--blue:var(--mg-bess-600);--navy:var(--mg-bess-700);--accent:var(--mg-bess-100);--viz-1:var(--mg-viz-teal);--viz-2:var(--mg-viz-aqua);--viz-3:var(--mg-viz-indigo);}

/* ---- CTA: the yellow trial button, large and high-contrast, on hero, pricing and the closing panel.
   Text is --mg-ink-900 on --mg-yellow-400 (9.4:1, far past WCAG AA); yellow is used nowhere else. ---- */
.btn-trial{background:var(--mg-yellow-400);border-color:var(--mg-yellow-500);color:var(--mg-ink-900);font-weight:800;padding:17px 28px;font-size:.92rem;box-shadow:0 12px 26px rgba(245,180,0,.32)}
.btn-trial:hover{background:var(--mg-yellow-300);color:var(--mg-ink-900)}
.btn-trial:focus-visible{outline-color:var(--mg-yellow-500)}
