/* ==========================================================================
   NueX LIS Demo Landing Page — Design System
   Palette + type sourced from Nue Technology Enterprise Framework (v2 canvas)
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0B1B3F;
  --navy-800: #12244F;
  --navy-700: #24304F;
  --navy-600: #2E3A5C;
  --blue-600: #1B3FA0;
  --blue-500: #1247B5;
  --blue-300: #8FAAFF;
  --white: #FFFFFF;

  /* Tints / surfaces */
  --tint-100: #F4F7FC;
  --tint-200: #F2F5FA;
  --border: #E3E9F5;
  --border-strong: #C8D3E8;

  /* Text */
  --ink-900: #0B1B3F;
  --ink-700: #4A5875;
  --ink-500: #63728F; /* 4.85:1 on white — clears WCAG AA for small text */
  --ink-on-dark: #E3E9F5;
  --ink-on-dark-dim: #9AA9C8;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14, 21, 38, 0.04), 0 2px 8px rgba(14, 21, 38, 0.04);
  --shadow-md: 0 4px 18px rgba(11, 27, 63, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 27, 63, 0.18);

  /* Radius */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Type */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-w: 1140px;
  --gutter: 20px;
  --header-h: 68px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
/* Blockify SVGs so they never sit on a text baseline — this is what keeps
   every icon optically centred inside its container. */
svg { display: block; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(27, 63, 160, 0.24);
}
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 10px 24px rgba(27, 63, 160, 0.30); }
.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--tint-100); }
.btn-on-dark { background: var(--white); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--blue-300); color: var(--navy-900); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Section scaffolding ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
  flex-shrink: 0;
}
.on-dark .eyebrow { color: var(--blue-300); }
.on-dark .eyebrow::before { background: var(--blue-300); }

.section-head {
  max-width: 660px;
  margin: 0 auto 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-head p {
  color: var(--ink-700);
  font-size: 16.5px;
  max-width: 56ch;
  text-wrap: pretty;
}

section { padding: 64px 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 768px) { section { padding: 92px 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  flex-shrink: 0;
  line-height: 1;
}
.brand img { width: 28px; height: 28px; }
.brand strong { color: var(--blue-600); font-weight: 700; }
.nav-desktop {
  display: none;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.15s ease;
  line-height: 1;
}
.nav-desktop a:hover { color: var(--blue-600); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-cta { display: none; }
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--navy-900);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hamburger:hover { border-color: var(--blue-600); background: var(--tint-100); }
.hamburger svg { width: 20px; height: 20px; }
.nav-mobile {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 8px var(--gutter) 20px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  display: block;
  padding: 14px 2px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border);
}
.nav-mobile .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .hamburger { display: none; }
  .nav-mobile { display: none !important; }
  .header-actions { margin-left: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 40px 0 52px;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(143, 170, 255, 0.20), transparent 62%),
    linear-gradient(180deg, var(--tint-100) 0%, var(--white) 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; gap: 34px; }
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(31px, 4.6vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin: 16px 0 16px;
  color: var(--navy-900);
  text-wrap: balance;
}
.hero-copy .sub {
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--ink-700);
  max-width: 30ch;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}
.hero-ctas .btn { width: 100%; }

.hero-visual { position: relative; }
.hero-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--tint-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-figure img { width: 100%; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.hero-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

@media (min-width: 880px) {
  .hero { padding: 60px 0 78px; }
  .hero-inner { grid-template-columns: 1.06fr 1fr; align-items: center; gap: 48px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .hero-copy .sub { max-width: 36ch; }
  .hero-ctas { flex-direction: row; width: auto; }
  .hero-ctas .btn { width: auto; }
  .hero-tags { justify-content: flex-start; flex-wrap: nowrap; }
}

/* ==========================================================================
   Value props
   ========================================================================== */
.value-props { background: var(--white); }
.value-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(27, 63, 160, 0.22);
}
.value-icon svg { width: 22px; height: 22px; }
.value-card .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1;
  margin-bottom: 12px;
}
.value-card h3 {
  font-size: 18.5px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.value-card p { color: var(--ink-700); font-size: 15px; text-wrap: pretty; }

/* ==========================================================================
   How it works — connected flow
   ========================================================================== */
.how-it-works { background: var(--tint-100); border-block: 1px solid var(--border); }

.flow {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.flow-node {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}
.flow-node svg { width: 24px; height: 24px; }
.flow-label {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--navy-900);
  letter-spacing: -0.005em;
}
/* vertical rail between nodes (mobile) */
.flow-connector {
  flex: 0 0 auto;
  width: 1px;
  height: 20px;
  margin-left: 28px;
  background-image: repeating-linear-gradient(to bottom, var(--border-strong) 0 4px, transparent 4px 8px);
}

@media (min-width: 880px) {
  .flow {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
  }
  .flow-step {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    width: 96px;
  }
  .flow-node { width: 60px; height: 60px; }
  .flow-label { font-size: 14.5px; text-wrap: balance; }
  /* horizontal rail, vertically centred on the 60px node */
  .flow-connector {
    flex: 1 1 auto;
    width: auto;
    min-width: 16px;
    height: 1px;
    margin: 30px 6px 0;
    background-image: repeating-linear-gradient(to right, var(--border-strong) 0 4px, transparent 4px 8px);
  }
}

/* ==========================================================================
   See it in action (dark)
   ========================================================================== */
.in-action {
  background: var(--navy-900);
  background-image: radial-gradient(900px 500px at 15% 0%, rgba(143,170,255,0.12), transparent 62%);
  color: var(--ink-on-dark);
}
.in-action .section-head h2 { color: var(--white); }
.in-action .section-head p { color: var(--ink-on-dark-dim); }

.video-frame {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(143,170,255,0.20);
  box-shadow: var(--shadow-lg);
  background: #081530;
  position: relative;
  isolation: isolate;
}
.video-frame video,
.video-frame .video-poster {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #081530;
}
/* Before play, a light scrim over the poster so the play control reads
   clearly against the bright product screenshot. Removed once playing. */
.video-frame:not(.is-playing)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 36, 0.34);
  pointer-events: none;
  z-index: 1;
}
.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--white);
}
.video-play .circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px rgba(2, 8, 24, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.video-play:hover .circle { transform: scale(1.07); background: var(--blue-300); }
.video-play svg { width: 27px; height: 27px; margin-left: 4px; }
/* once playing, the browser's own controls take over the frame */
.video-frame.is-playing .video-play { display: none; }

.video-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-on-dark-dim);
}

.action-cta {
  text-align: center;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.action-cta p { color: var(--ink-on-dark-dim); font-size: 14.5px; }

/* ==========================================================================
   Built for diagnostic laboratories
   ========================================================================== */
.built-for { background: var(--white); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
@media (min-width: 760px) { .audience-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.audience-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tint-100);
  border: 1px solid var(--border);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.audience-icon svg { width: 22px; height: 22px; }
.audience-card span {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--navy-900);
  text-wrap: balance;
}

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1;
  color: var(--blue-600);
  background: var(--tint-100);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 11px 18px;
}

/* ==========================================================================
   Demo form section
   ========================================================================== */
.demo-form-section { background: var(--tint-100); border-top: 1px solid var(--border); }
.demo-form-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 20px;
}
@media (min-width: 640px) { .demo-form-inner { padding: 46px 48px; } }
.demo-form-inner h2 {
  font-size: clamp(23px, 3.4vw, 30px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-align: center;
  text-wrap: balance;
}
.demo-form-inner .lede {
  color: var(--ink-700);
  text-align: center;
  margin: 12px auto 0;
  max-width: 46ch;
  font-size: 15.5px;
  text-wrap: pretty;
}

.tally-wrap { margin-top: 26px; min-height: 400px; position: relative; }
.tally-wrap iframe { width: 100%; border: 0; display: block; }

.form-error {
  display: none;
  text-align: center;
  padding: 32px 18px;
  margin-top: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--tint-200);
}
.form-error.is-visible { display: block; }
.form-error p { color: var(--ink-700); margin-bottom: 16px; }
.form-error a { color: var(--blue-600); font-weight: 600; }
.form-error .contact-line { display: block; margin-top: 6px; font-size: 15px; }

.form-view[hidden] { display: none; }
.thankyou-wrap { display: none; text-align: center; }
.thankyou-wrap.is-visible { display: block; animation: fadeUp 0.4s ease both; }
.thankyou-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--tint-200);
  color: var(--blue-600);
}
.thankyou-icon svg { width: 28px; height: 28px; }
.thankyou-wrap h3 {
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-align: center;
  margin-top: 18px;
}
.thankyou-wrap > p { color: var(--ink-700); text-align: center; margin: 10px auto 0; max-width: 44ch; }
.reach-out { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-500); }
.reach-out a { color: var(--blue-600); font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; background: var(--white); }
.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.final-cta h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}
.final-cta p { color: var(--ink-700); max-width: 44ch; margin-bottom: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: var(--ink-on-dark-dim);
  padding: 52px 0 0;
}
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 12px;
}
.footer-brand img { width: 24px; height: 24px; }
.footer-tagline { font-size: 14.5px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--blue-300);
  margin-bottom: 16px;
  /* optically align with the brand lockup in column 1 */
  padding-top: 4px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-on-dark-dim);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom-wrap { margin-top: 40px; }
.footer-bottom {
  border-top: 1px solid rgba(143,170,255,0.16);
  padding: 20px 0 26px;
  font-size: 13px;
  color: var(--ink-on-dark-dim);
  text-align: center;
}
