/*
 * GENIUS AI public pages (landing, sign-in, admin). Layout and components from the genogx.com
 * page of the Baynona / GENOGX LIMS project; colours retuned to the GENIUS amber and navy
 * (genius.css). No external requests: fonts, pictures and scripts are served from this site.
 */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/poppins-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* The LIMS's one orange (web/src/design/tokens.css). */
  --o-50: #fdf1ee;
  --o-100: #fbe1d9;
  --o-200: #f6c3b4;
  --o-300: #f4a08a;
  --o-400: #ee7d60;
  --o-500: #d7492a;
  --o-600: #c4401f;
  --o-700: #a9361a;
  --o-ink: #b93c21;
  --peach: #f6b27f;

  --page: #ffffff;
  --page-alt: #f7f7f7;
  --card: #ffffff;
  --panel: #f5f5f5;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --heading: #171717;
  --ink: #3b3b3c;
  --muted: #6e6e6e;

  /* The dark bands (hero, closing call): the app's dark page with an orange glow. */
  --night: #0f0f10;
  --night-2: #1a1412;
  --night-ink: #e9e3e0;
  --night-muted: #b9aca7;

  /* Instrument colours, as in the app's mark. */
  --illumina: #4f46e5;
  --element: #0d9488;
  --nanopore: #c026d3;

  --ok: #047857;
  --radius: 20px;
  --shadow: 0 24px 60px -32px rgba(23, 23, 23, 0.45);
  --head-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0f0f10;
    --page-alt: #141415;
    --card: #171717;
    --panel: #1f1f20;
    --line: #2e2e2e;
    --line-strong: #404040;
    --heading: #fafafa;
    --ink: #d4d4d4;
    --muted: #a1a1a1;
    --o-50: #2b1d19;
    --o-100: #3a221b;
    --o-ink: #ee7d60;
    --ok: #34d399;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--o-ink); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); color: var(--heading); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--o-400); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--o-600); background: var(--o-600); color: #fff;
  font: 600 14px/1 var(--font); padding: 12px 20px; border-radius: 6px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--o-700); border-color: var(--o-700); }
.btn:active { transform: scale(0.97); }
.btn.lg { padding: 15px 26px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--o-ink); }
.btn.ghost:hover { background: var(--o-50); }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--o-700); }
.btn.on-dark:hover { background: var(--o-50); border-color: var(--o-50); }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn.ghost.on-dark:hover { background: rgba(255, 255, 255, 0.1); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- header */
.head {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.head .wrap { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand svg { width: 18px; height: 22px; flex: none; }
.brand b { font-weight: 600; font-size: 18px; letter-spacing: 0.02em; line-height: 1.1; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.72; }
.mark-i { fill: var(--illumina); } .mark-e { fill: var(--element); } .mark-n { fill: var(--nanopore); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.head-act { display: flex; gap: 8px; align-items: center; }
.head .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.head .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.burger { display: none; margin-left: auto; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

.head.solid { background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(0, 0, 0, 0.5); }
.head.solid .brand { color: var(--heading); }
.head.solid .nav a { color: var(--ink); }
.head.solid .nav a:hover { background: var(--o-50); color: var(--o-ink); }
.head.solid .btn.ghost { color: var(--o-ink); border-color: var(--o-600); }
.head.solid .btn.ghost:hover { background: var(--o-50); }
.head.solid .burger { background: var(--o-50); color: var(--o-ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; margin-top: calc(-1 * var(--head-h)); padding: calc(var(--head-h) + 72px) 0 0;
  color: var(--night-ink); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 560px at 82% 18%, rgba(217, 119, 6, 0.30), transparent 62%),
    radial-gradient(700px 520px at 6% 96%, rgba(252, 211, 77, 0.16), transparent 60%),
    linear-gradient(160deg, #0c0c0d 0%, var(--night) 40%, var(--night-2) 100%);
}
#helix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.9; }
.hero-copy { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fde7c3; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--o-400); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22); }
.hero h1 { color: #fff; font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--o-400), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: #d6d3d1; max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; list-style: none; font-size: 13.5px; color: var(--night-muted); }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--o-400); margin-right: 9px; vertical-align: middle; }

.hero-shot { position: relative; margin-top: 56px; }
.browser {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0;
  box-shadow: 0 -10px 80px -20px rgba(217, 119, 6, 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #232325; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3c; }
.browser-bar span { margin-left: 14px; flex: 1; max-width: 360px; height: 22px; border-radius: 6px; background: #2e2e30; color: #9b9b9e; font-size: 12px; line-height: 22px; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.browser picture, .browser img { display: block; width: 100%; }

.stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--card); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: 34px; line-height: 1; font-weight: 600; color: var(--o-500); letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.stats-sec { padding: 44px 0 0; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 96px 0; }
.sec.alt { background: var(--page-alt); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--o-ink); margin-bottom: 12px; }
.sec-head h2, .split h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.sec-head p, .split .lede { font-size: 17.5px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--o-200); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--o-50); color: var(--o-500); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 16px; font-size: 14.5px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 4px; background: var(--o-50); box-shadow: inset 0 0 0 2px var(--o-400); }
.ticks b { color: var(--heading); font-weight: 600; }

/* A picture with its story beside it. */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.split.flip .split-copy { order: 2; }
.split-copy .ticks { margin-top: 24px; font-size: 15.5px; gap: 12px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.shot figcaption, figure.plain figcaption { font-size: 13px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }
figure { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--heading); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.chips li i { width: 9px; height: 9px; border-radius: 3px; background: var(--o-400); }
.chips .ci { background: var(--illumina); } .chips .ce { background: var(--element); } .chips .cn { background: var(--nanopore); }
.chips .cm { background: #2563eb; } .chips .cp { background: #7c3aed; } .chips .cu { background: #a16207; }

/* The data flow: five steps. */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; }
.flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--o-600); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 35px; width: 16px; height: 2px; background: var(--o-300); }
.flow b { display: block; color: var(--heading); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.flow p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Bench and wall: two pictures side by side. */
.duo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.duo h3 { font-size: 20px; margin: 22px 0 6px; }
.duo p { color: var(--muted); font-size: 15px; }

.bench-more { margin-top: 40px; }
.bench-more .ticks { margin-top: 18px; }

/* Phones. */
.phones { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.phone { width: 260px; border-radius: 34px; padding: 9px; background: #111; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone img { border-radius: 26px; }
.phone:nth-child(2) { margin-top: 48px; }

/* Six principles. */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.num { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--o-500), var(--peach)); border-radius: 8px; padding: 6px 10px; }

/* Dark band: AI and security. */
.sec.night { color: var(--night-ink); background: radial-gradient(800px 500px at 90% 10%, rgba(217, 119, 6, 0.22), transparent 60%), linear-gradient(160deg, #0c0c0d, var(--night-2)); }
.night h2, .night h3 { color: #fff; }
.night .kicker { color: var(--o-400); }
.night .sec-head p { color: var(--night-muted); }
.night .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.night .card:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); }
.night .card p { color: var(--night-muted); }
.night .card .ico { background: rgba(245, 158, 11, 0.14); color: var(--o-400); }
.night .ticks li::before { background: rgba(245, 158, 11, 0.16); }
.night .flow { margin-bottom: 20px; }
.night .flow li { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.night .flow b { color: #fff; }
.night .flow p { color: var(--night-muted); }
.night .flow li:not(:last-child)::after { background: rgba(245, 158, 11, 0.6); }
.night .note { margin-top: 28px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); color: #fde7c3; font-size: 15px; }

/* Hospital ordering lanes. */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto minmax(0, 1.1fr); gap: 14px; align-items: stretch; margin-bottom: 36px; }
.lane { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.lane small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lane b { display: block; color: var(--heading); font-size: 16px; font-weight: 600; margin: 4px 0 2px; }
.lane span { font-size: 13.5px; color: var(--muted); }
.lane.lab { background: linear-gradient(135deg, var(--o-600), var(--o-500)); border-color: transparent; color: #fff; }
.lane.lab small, .lane.lab span { color: rgba(255, 255, 255, 0.82); }
.lane.lab b { color: #fff; }
.arrow { display: grid; place-items: center; color: var(--o-400); }
.arrow svg { width: 28px; height: 28px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; list-style: none; }
.feature-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list b { display: block; color: var(--heading); font-weight: 600; margin-bottom: 4px; }
.feature-list span { font-size: 15px; color: var(--muted); }

/* Standards. */
.isos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.iso { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--card); }
.iso small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); }
.iso.sup small { color: var(--o-ink); }
.iso b { display: block; font-size: 20px; font-weight: 600; color: var(--heading); margin: 8px 0 2px; letter-spacing: -0.01em; white-space: nowrap; }
.iso span { font-size: 13.5px; color: var(--muted); }
.iso.sup { background: var(--o-50); border-color: var(--o-200); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--panel); padding: 12px 18px; }
td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--heading); font-weight: 500; }
td:nth-child(2) { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 90ch; }

/* Downloads. */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.doc .ico { flex: none; }
.doc h3 { font-size: 17px; margin: 2px 0 6px; }
.doc p { font-size: 14.5px; }
.doc .meta { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--o-ink); }

/* Closing call. */
.cta-band { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: var(--night-ink);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: radial-gradient(600px 400px at 100% 0%, rgba(217, 119, 6, 0.45), transparent 65%), linear-gradient(160deg, #121213, var(--night-2));
}
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-box p { color: var(--night-muted); font-size: 17px; }
.cta-box .ctas { margin-top: 0; justify-content: flex-end; }
.contact { list-style: none; font-size: 14.5px; color: var(--night-muted); display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.contact a { color: #fff; }

/* Footer. */
.foot { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot .brand { color: var(--heading); margin-bottom: 14px; }
.foot h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heading); margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--o-ink); }
.legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* Reveal on scroll (only when scripts run and motion is welcome). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1080px) {
  .nav { display: none; }
  .head-act .btn.ghost { display: none; }
  .burger { display: grid; margin-left: auto; }
  .head-act { margin-left: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lanes .arrow { display: none; }
  .lanes .lane.lab { grid-column: 1 / -1; }
  .isos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip .split-copy { order: 0; }
  .cta-box { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .cta-box .ctas { justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root { --head-h: 64px; }
  .sec { padding: 64px 0; }
  .hero { padding-top: calc(var(--head-h) + 40px); }
  #helix { opacity: 0.35; }
  .head-act .btn { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 28px; }
  .stats div { padding: 18px; }
  .pillars, .grid3, .docs, .duo, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .isos { grid-template-columns: minmax(0, 1fr); }
  .browser-bar span { display: none; }
  .phones { gap: 12px; }
  .phone { width: 46%; max-width: 220px; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
  .phone:nth-child(2) { margin-top: 32px; }
  .cta-box { padding: 32px 22px; border-radius: 22px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* The mobile menu: a sheet under the header. */
.sheet { display: none; }
.sheet.open {
  display: flex; flex-direction: column; gap: 4px; position: fixed; z-index: 29; inset: var(--head-h) 0 auto 0;
  background: var(--page); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.5);
}
.sheet a:not(.btn) { color: var(--heading); text-decoration: none; font-weight: 500; padding: 12px 10px; border-radius: 8px; }
.sheet a:not(.btn):hover { background: var(--o-50); }
.sheet .btn { margin-top: 10px; }
@media (min-width: 1081px) { .sheet.open { display: none; } }
@media print { .js .reveal { opacity: 1; transform: none; } .head, .sheet, #helix { position: static; } }

/* The page-not-found page. */
.lost-hero { margin-top: 0; min-height: 100vh; min-height: 100dvh; padding: 48px 0; display: flex; align-items: center; }
.lost-hero .brand { margin-bottom: 40px; }

/* The contact form on the closing call: a light card on the dark band. */
.cta-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.form { background: var(--card); color: var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.form h3 { font-size: 20px; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--heading); }
.fld i, .check i { color: var(--o-ink); font-style: normal; }
.fld input, .fld select, .fld textarea {
  font: 400 15px/1.4 var(--font); color: var(--heading); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--o-500); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: #dc2626; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--o-600); flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid #dc2626; outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: #b91c1c; background: rgba(239, 68, 68, 0.08); border-radius: 8px; padding: 10px 12px; }
.form-msg.ok { color: var(--ok); }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form.sent .fld, .form.sent .row2, .form.sent .check, .form.sent .btn { display: none; }
.form.sent .form-msg { font-size: 16px; padding: 18px 0; }
@media (prefers-color-scheme: dark) { .form-msg.err { color: #f87171; } }
@media (max-width: 1080px) { .cta-box { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .row2 { grid-template-columns: minmax(0, 1fr); } .form { padding: 20px; } }
