/* what: styles for the omnixscience.com bridge, mobile-first (designed at 390 px, then scaled up), in the omnixresearch.com look:
 * tokens from the live gate screen (omnix-gate/assets/gate.css), the light Omnix emails (omnix-emails/templates/emails) and the
 * child theme (Inter); sources per token in omnix/projects/tiktok-launch-2026-11/notes/2026-11-10_bridge_build.md. Background
 * (design pass 10 Nov): a pale lab-grey field with a slow light drift, the molecular lattice canvas drawn by site.js and a static
 * fine grain, all fixed behind the page (no layout shift); static when the visitor prefers reduced motion · system fonts, no
 * webfonts, no outside requests · owner: builder (omnix/patches/omnixscience-bridge-2026-11) · read when: changing the bridge
 * look · updated: 2026-11-10 (design pass: notes/2026-11-10_design_pass.md) */
:root {
  --ink: #16171a;      /* gate.css --ink; email templates text */
  --muted: #5b5f68;    /* gate.css --muted #6b6f78, one step darker so small text on the grey field keeps 4.5:1 */
  --pill: #4a4d55;     /* gate.css pill badge colour */
  --line: #e3e5ea;     /* gate.css --line */
  --field: #d5d8de;    /* gate.css --field */
  --mist: #F7F8FA;     /* gate.css --mist; product photo background */
  --page: #eceef0;     /* email-header.php page background = the field */
  --card: #ffffff;     /* email card; the logo is flattened on #ffffff */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* gate.css --font */
  --radius: 12px;      /* gate.css inputs, buttons */
  --panel-radius: 14px;
  --panel-shadow: 0 1px 2px rgba(22,23,26,.05), 0 22px 44px -22px rgba(22,23,26,.30);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---- background: light field (this file), lattice canvas (site.js), grain (site.js fills --grain-tile) ----
   All three are fixed and sit at z-index -1 under the page, so nothing on the page moves when they change. The light field
   drifts only on wide screens (a full-screen moving layer costs phone memory; on phones only the lattice moves). */
body::before { content: ""; position: fixed; z-index: -1; inset: -8vmax; pointer-events: none;
  background:
    radial-gradient(closest-side at 36% 22%, rgba(255,255,255,.95), rgba(255,255,255,0)),
    radial-gradient(closest-side at 76% 84%, rgba(22,23,26,.07), rgba(22,23,26,0)); }
@keyframes field-drift { to { transform: translate3d(-5vmax, 3vmax, 0) scale(1.05); } }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  body::before { animation: field-drift 44s ease-in-out infinite alternate; }
}
.lattice { position: fixed; z-index: -1; left: 0; top: 0; width: 100%; height: 100vh; display: block; pointer-events: none; color: var(--page); }
body::after { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background-image: var(--grain-tile, none); background-size: 64px 64px; }

/* research-use strip: first thing on every page */
.ruo-bar { background: var(--ink); color: #fff; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 8px 14px; margin: 0; }

/* the layout column (transparent: the field shows round the panels) */
.card { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 14px; }
.wrap { padding: 0; }

/* header sits on the field: logo + pill in one row, then the headline */
.head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 10px 2px 0; }
.head br { display: none; }
.logo { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.logo img { display: block; height: 28px; width: auto; max-width: 180px; mix-blend-mode: multiply; } /* white logo box melts into the field */
.pill { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pill); white-space: nowrap; }
.head h1, .head .lede { grid-column: 1 / -1; }
h1 { margin: 10px 0 0; font-size: 23px; line-height: 1.16; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin: 6px 0 0; max-width: 36em; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
h3 { font-size: 15px; font-weight: 700; margin: 18px 0 4px; }

main { padding: 14px 0 26px; }

/* the entry panel: first on the page, crisp white, one ink rule on top */
.gate { position: relative; overflow: hidden; margin: 0; padding: 15px 14px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--panel-radius); box-shadow: var(--panel-shadow); }
.gate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ink); }
.gate h2 { margin: 2px 0 10px; }
.acks { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check { display: flex; gap: 11px; align-items: flex-start; min-height: 44px; padding: 11px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist);
  font-size: 14.5px; font-weight: 500; line-height: 1.38; transition: border-color .15s ease, background-color .15s ease; }
.check:hover { border-color: var(--field); }
.check:has(input:checked) { border-color: var(--ink); background: var(--card); }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(22,23,26,.12); }
/* gate.css main button (base + main size) */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 16px;
  border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 17px var(--font); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, box-shadow .2s ease; }
.btn:not(:disabled) { box-shadow: 0 12px 24px -12px rgba(22,23,26,.55); }
.btn:active { transform: scale(.98); opacity: .92; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* below the first screen: proof chips and the batch steps, on white */
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.chips li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 12px 14px; }
.tick { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chips strong { display: block; font-size: 15px; }
.chips span { display: block; font-size: 14px; color: var(--muted); }

.block { margin: 12px 0 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--panel-radius); }
.steps { margin: 0; padding-left: 22px; font-size: 15px; }
.steps li { margin: 0 0 6px; }
.steps li:last-child { margin-bottom: 0; }

/* Terms / Privacy / Contact: header on the field, the text on one white panel */
.doc { padding-top: 14px; }
.doc .wrap { padding: 4px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--panel-radius); box-shadow: var(--panel-shadow); }
.doc h1 { text-align: left; margin-top: 16px; }
.doc h2 { margin-top: 26px; }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 14px; }

footer.foot { max-width: 560px; margin: 0 auto; padding: 6px 20px 32px; font-size: 13px; color: var(--muted); text-align: center; }
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin: 2px 0 8px; font-size: 14px; }
footer.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
footer.foot p { margin: 0 0 8px; }
.entity { color: var(--ink); font-weight: 600; }

@media (min-width: 640px) {
  .ruo-bar { font-size: 13px; padding: 9px 16px; }
  .card { padding: 0 24px; }
  .head { padding-top: 34px; }
  .logo img { height: 32px; max-width: 200px; }
  .pill { font-size: 11px; padding: 5px 12px; }
  h1 { font-size: 32px; margin-top: 18px; }
  .lede { font-size: 15.5px; margin-top: 8px; }
  main { padding-top: 22px; }
  .gate { padding: 22px 22px 18px; }
  .gate h2 { font-size: 17px; margin-bottom: 12px; }
  .check { font-size: 15px; padding: 13px 14px; }
  .btn { min-height: 54px; margin-top: 16px; }
  .block { padding: 18px 20px; }
  .doc .wrap { padding: 8px 32px 28px; }
}
@media (min-width: 1024px) {
  .head { padding-top: 56px; }
  h1 { font-size: 36px; }
}
/* reduced motion: nothing moves - the field never drifts (see above) and site.js draws the lattice once and never animates it */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .btn, .check { transition: none; }
  .btn:active { transform: none; }
}
