/* mltox marketing site
   Matches the product UI 1:1: warm-neutral paper, white panels, hairline
   borders, one confident teal accent used sparingly, mono for instrument-style
   labels. Light-only, like the app — minimalist, modern, biotech-white.
   No gradients, glows, or dark bands. */

:root {
  --paper:      #F4F7F7;
  --paper-2:    #EDF2F2;
  --card:       #FFFFFF;
  --ink:        #0B1A1C;
  --ink-soft:   #33474A;
  --muted:      #6B7E81;
  --faint:      #93A3A5;
  --line:       #E2E9EA;
  --line-soft:  #EDF2F2;

  --accent:     #0FA896;
  --accent-dk:  #0A8375;
  --accent-wash:#E4F5F2;

  --risk-minimal: #10A697;
  --risk-low:     #3BA776;
  --risk-moderate:#DFA023;
  --risk-high:    #DC5B3E;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(11,26,28,.04), 0 8px 24px rgba(11,26,28,.05);
  --shadow-md:  0 2px 6px rgba(11,26,28,.05), 0 14px 34px rgba(11,26,28,.07);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(11,26,28,.045) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.16; letter-spacing: -.02em; margin: 0; font-weight: 660; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* instrument-style labels, exactly as in the app */
.eyebrow, .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600;
}
.eyebrow { color: var(--accent-dk); display: inline-block; margin-bottom: 14px; }
.label { color: var(--faint); }

/* ---------- buttons (match app: rectangular radius-sm, solid teal) ---------- */
.btn {
  --pad: 0 20px; --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: var(--pad);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
}
.btn-sm { --h: 36px; --pad: 0 15px; font-size: 13.5px; }
.btn-lg { --h: 50px; --pad: 0 26px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-wash); }
.btn-ghost:active { transform: translateY(1px); }

/* ---------- header (mirrors app header) ---------- */
#site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,247,247,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
#site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 13px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { display: block; }
.brand .name { font-weight: 640; font-size: 17px; letter-spacing: -.01em; }
.brand .name b { color: var(--accent-dk); font-weight: 640; }
.nav { display: flex; gap: 24px; margin-left: 6px; }
.nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--accent-dk); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.app-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.app-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* ---------- hero ---------- */
.hero { padding: 60px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.hero-copy h1 { font-size: clamp(33px, 4.4vw, 50px); font-weight: 680; margin-bottom: 18px; }
.grad { color: var(--accent-dk); }  /* solid accent, no gradient — app-consistent */
.lede { font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-soft); max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 640; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats { list-style: none; display: flex; gap: 30px; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 23px; font-weight: 680; letter-spacing: -.03em; }
.hero-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* hero visual — a report panel, styled like the app's .panel */
.hero-visual { position: relative; }
.hero-glow { display: none; }
.report-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; max-width: 400px; margin-left: auto;
}
.rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rc-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.rc-band { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.band-moderate { color: #9A7412; background: #FCF3DD; border: 1px solid #F0D9B8; }
.rc-name { font-size: 12.5px; font-weight: 640; color: var(--ink); margin-top: 10px; }
.rc-name span { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); }
.rc-mol { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #FCFDFD; margin: 10px 0 0; padding: 6px; }
.rc-dom-lbl { font-family: var(--mono); font-size: 8px; fill: var(--muted); letter-spacing: .05em; }
/* flagged finding — uses the app's alert palette */
.rc-flag {
  margin: 12px 0 14px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: #FBEDE8; border: 1px solid #F1D3C8; color: #B4482C;
  font-size: 11px; line-height: 1.4;
}
.rc-rows { display: flex; flex-direction: column; gap: 11px; }
.rc-row { display: grid; grid-template-columns: 1fr 78px 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.rc-row span { color: var(--ink-soft); }
.rc-row .bar { height: 5px; background: var(--line); border-radius: 100px; overflow: hidden; }
.rc-row .bar b { display: block; height: 100%; background: var(--risk-low); border-radius: 100px; }
.rc-row .bar b.mod { background: var(--risk-moderate); }
.rc-row em { font-family: var(--mono); font-style: normal; font-size: 11.5px; color: var(--muted); text-align: right; }
.rc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 10px; font-family: var(--mono); letter-spacing: .03em; }
.rc-foot .mono:first-child { color: var(--accent-dk); }

.disclaimer-strip {
  margin: 34px auto 0; font-size: 12.5px; color: var(--muted); text-align: center;
  max-width: 720px; line-height: 1.5;
}
.disclaimer-strip b { color: var(--ink-soft); }

/* ---------- trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.trustbar-inner { display: flex; align-items: center; gap: 24px; padding: 16px 24px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; }
.trustbar-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.trustbar-inner li { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.trustbar-inner li::before { content: "◆"; color: var(--accent); font-size: 7px; margin-right: 8px; vertical-align: 2px; }

/* ---------- generic section ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(23px, 2.8vw, 31px); font-weight: 660; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-n { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.step h3 { font-size: 16px; margin: 10px 0 7px; font-weight: 620; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.step code { font-family: var(--mono); font-size: 11.5px; background: var(--accent-wash); color: var(--accent-dk); padding: 1px 5px; border-radius: 5px; }

/* ---------- flow diagram (inline SVG) ---------- */
.flow { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); }
.flow-scroll { overflow-x: auto; }
.flow-svg { display: block; width: 100%; height: auto; }
/* the wide lane diagram can't stay legible below ~620px, so phones get a
   stacked variant of the same seven stages instead of a cropped/scrolling one */
.flow-svg--wide { min-width: 620px; }
.flow-svg--tall { display: none; min-width: 0; }

/* nodes */
.fd-box { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.fd-box.in { fill: var(--accent-wash); stroke: #BFE7E1; }
.fd-box.models { fill: var(--card); stroke: #BFE7E1; stroke-width: 1.4; }
.fd-box.out { fill: var(--accent); stroke: var(--accent); }
.fd-box.loop { fill: #FCF3DD; stroke: #F0D9B8; }

/* node text */
.fd-t { font-family: var(--sans); font-size: 13.5px; font-weight: 640; fill: var(--ink); }
.fd-t.on-accent { fill: #fff; }
.fd-t.on-loop { fill: #8A6810; }
.fd-s { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); letter-spacing: .02em; }
.fd-s.on-accent { fill: rgba(255,255,255,.85); }
.fd-s.on-in { fill: var(--accent-dk); }
.fd-s.on-loop { fill: #9A7412; }

/* connectors — the loop is dashed amber so it reads as a distinct return path */
.fd-line { stroke: var(--faint); stroke-width: 1.6; fill: none; }
.fd-line-loop { stroke: var(--risk-moderate); stroke-width: 1.6; fill: none; stroke-dasharray: 5 4; }
.fd-head { fill: var(--faint); }
.fd-head-loop { fill: var(--risk-moderate); }

/* labels */
.fd-lane { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--faint); font-weight: 600; }
.fd-lane.loop { fill: #B98A1E; }
.fd-lbl { font-family: var(--mono); font-size: 10px; fill: #9A7412; letter-spacing: .03em; }

/* caption */
.flow-caption { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.flow-caption p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.flow-caption p + p { margin-top: 10px; }
.flow-caption .muted { font-size: 12.5px; color: var(--muted); }
.flow-caption b { color: var(--ink); font-weight: 640; }

/* ---------- tracks ---------- */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.track-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: border-color .18s; }
.track-card:hover { border-color: #BFE7E1; }
.track-icon { color: var(--accent); width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-wash); border-radius: 12px; margin-bottom: 16px; }
.track-card h3 { font-size: 21px; margin-bottom: 5px; font-weight: 660; }
.track-sub { font-family: var(--mono); font-size: 11.5px; color: var(--accent-dk); margin-bottom: 18px; letter-spacing: .01em; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}

/* ---------- endpoints ---------- */
.endpoint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ep { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.ep b { display: block; font-size: 14px; margin: 9px 0 3px; font-weight: 620; }
.ep small { color: var(--muted); font-size: 12px; }
.ep-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ep-dot.high { background: var(--risk-high); box-shadow: 0 0 0 3px #F7E0D9; }
.ep-dot.mod { background: var(--risk-moderate); box-shadow: 0 0 0 3px #FBEECC; }
.ep-dot.low { background: var(--risk-low); box-shadow: 0 0 0 3px #DEEEE4; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: border-color .18s; }
.feature:hover { border-color: #BFE7E1; }
.feature h3 { font-size: 16px; margin-bottom: 9px; font-weight: 640; }
.feature h3::before { content: ""; display: block; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 13px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.feature .mono { font-size: 12px; background: var(--accent-wash); color: var(--accent-dk); padding: 0 5px; border-radius: 4px; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.trust-copy { position: sticky; top: 96px; }
.trust-copy h2 { font-size: clamp(23px, 2.6vw, 31px); margin-bottom: 14px; font-weight: 660; }
.trust-copy p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.trust-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-points li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.trust-points h3 { font-size: 14.5px; margin-bottom: 7px; color: var(--accent-dk); font-weight: 640; }
.trust-points p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- CTA (light panel, not a dark band) ---------- */
.cta { padding: 72px 0; }
.cta-inner {
  background: var(--accent-wash); border: 1px solid #BFE7E1;
  border-radius: var(--radius); padding: 52px 32px; text-align: center;
}
.cta-inner h2 { font-size: clamp(23px, 2.8vw, 32px); margin-bottom: 10px; font-weight: 660; }
.cta-inner p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 24px; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 48px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand .name { font-weight: 640; font-size: 16px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 22em; }
.footer-cols { display: flex; gap: 56px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 9px; }
.footer-cols .label { margin-bottom: 3px; }
.footer-cols a { color: var(--ink-soft); font-size: 13.5px; transition: color .15s; }
.footer-cols a:hover { color: var(--accent-dk); }
.footer-fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-fine p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.footer-fine p:first-child { margin-bottom: 9px; }
.footer-fine b { color: var(--ink-soft); }

/* ---------- reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .report-card { margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .endpoint-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-copy { position: static; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .hero { padding-top: 40px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .tracks { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  /* swap the wide flow diagram for the stacked one — no cropping/side-scroll */
  .flow-svg--wide { display: none; }
  .flow-svg--tall { display: block; }
  .flow-scroll { overflow-x: visible; }
  .flow { padding: 20px 16px 18px; }
}
@media (max-width: 500px) {
  .steps, .feature-grid, .endpoint-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .header-cta .btn { display: none; }
}
