/* OmnioIQ site, revamp (OmnioIQ Foresight design system).
   Night sections by default; .light for Silver/white sections. */

:root {
  --night: #0A1518;
  --night-raised: #101F22;
  --night-deep: #071012;
  --frost: #EEF6F4;
  --silver: #EEEEEE;
  --white: #FFFFFF;
  --teal: #5EC8C2;
  --teal-deep: #12716B;
  --teal-mid: #1F8A84;
  --on-teal: #0A1518;
  --positive: #00E676;
  --positive-light: #08773F;
  --benchmark: #F2B84B;
  --benchmark-light: #8A5A00;

  --ink: var(--frost);
  --ink-muted: #9CB0AA;
  --line: rgba(94, 200, 194, 0.16);
  --line-soft: rgba(94, 200, 194, 0.10);
  --accent: var(--teal);
  --surface: var(--night);
  --surface-raised: var(--night-raised);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --r-control: 10px;
  --r-card: 18px;
  --shadow-card-light: 0 1px 2px rgba(10, 21, 24, 0.04), 0 16px 40px rgba(10, 21, 24, 0.07);
}

.light {
  --ink: var(--night);
  --ink-muted: #4A5C58;
  --line: #D9DEE2;
  --line-soft: #E6EAED;
  --accent: var(--teal-deep);
  --surface: var(--silver);
  --surface-raised: var(--white);
  background: var(--surface);
  color: var(--ink);
}
.light.white { --surface: var(--white); --surface-raised: var(--silver); }

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may make the page scroll sideways on a phone (clip keeps sticky nav working). */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--positive); }
.light a:hover { color: var(--night); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
.mono, .label {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label { font-size: 13px; color: var(--accent); margin: 0; display: flex; align-items: center; gap: 10px; }
.label .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--positive); box-shadow: 0 0 12px var(--positive); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.h-hero { font-size: clamp(56px, 9vw, 104px); line-height: 0.92; }
.h-xl { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.92; }
.h-l { font-size: clamp(36px, 4.4vw, 60px); line-height: 0.96; }
.h-m { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; }
.h-card { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -0.02em; }
.h-s { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-muted); margin: 0; max-width: 720px; }
.body { font-size: 15px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
.fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.accent { color: var(--accent); }
.hl-teal { color: #157A74; }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section.tight { padding-top: 80px; padding-bottom: 80px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-l { display: flex; flex-direction: column; gap: 56px; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.g2, .g3, .g4 { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 22px; border-radius: var(--r-control);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { color: var(--on-teal); background: #7AD6D1; }
.btn-ghost { border: 1px solid rgba(94, 200, 194, 0.35); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); }
.light .btn-ghost { border-color: #B9C3CD; }
.link { font-weight: 600; text-decoration: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 21, 24, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { color: #FFFFFF; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--teal); }
.navlinks { display: flex; gap: 28px; flex: 1; font-size: 15px; }
.navlinks a, .nav .signin { color: var(--ink-muted); text-decoration: none; }
.navlinks a:hover, .nav .signin:hover { color: #FFFFFF; }
.nav .signin { font-size: 15px; }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; background: var(--night-raised); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-width: 220px; display: flex; flex-direction: column; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 8px; }
.menu-panel a:hover { background: rgba(94, 200, 194, 0.1); color: #FFFFFF; }

/* ---------- screenshots ---------- */
.shot {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 0; border: 1px solid var(--line);
  background: var(--night-raised);
  aspect-ratio: 16 / 10;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot.r-wide { aspect-ratio: 16 / 7; }
.shot.r-43 { aspect-ratio: 4 / 3; }
.shot.r-32 { aspect-ratio: 3 / 2; }
.shot.r-card { aspect-ratio: 16 / 9; }
/* A thin crop (e.g. a stats strip) shown whole, centred in its frame */
.shot.contain img { object-fit: contain; object-position: center; }
/* A crop shown at its own shape (e.g. a single panel) */
.shot.natural { aspect-ratio: auto; }
.shot.natural img, .shot.needs img { height: auto; }
.shot.phone { aspect-ratio: 390 / 844; border-radius: 24px; border: 6px solid var(--night); }
.shot.hero { border-bottom: 0; }
/* Pending: the label sits under every image, so a slot shows
   "Screen pending · ID" until its screenshot exists and loads. */
.shot { background: repeating-linear-gradient(135deg, rgba(94, 200, 194, 0.06) 0 12px, rgba(94, 200, 194, 0.02) 12px 24px), var(--night-raised); }
.shot::before {
  content: "Screen pending · " attr(data-shot);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #9CB0AA;
}
.shot img { position: relative; z-index: 1; color: transparent; }
.shot.pending img { visibility: hidden; }
.shot.loaded::before { content: none; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 12px; }

/* ---------- hero ---------- */
.hero { background: var(--night); }
.hero-copy { padding-top: 88px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.hero-copy .h-hero { color: #FFFFFF; max-width: 980px; }
.hero-copy .lede { max-width: 700px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pill { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--frost); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(94, 200, 194, 0.2); padding: 8px 12px; border-radius: 999px; }

.hero-shots { position: relative; }
.shot.needs { position: absolute; z-index: 3; right: 64px; bottom: 48px; width: 360px; aspect-ratio: auto; border-color: rgba(94, 200, 194, 0.5); box-shadow: 0 24px 60px rgba(10, 21, 24, 0.55); }
.shot.needs:not(.loaded) { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 0; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.light .card { box-shadow: var(--shadow-card-light); border-radius: var(--r-card); }
.card-head { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card .shot { box-shadow: none; }
.tile { background: var(--night-raised); border: 1px solid var(--line); border-radius: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile strong { font-size: 17px; color: #FFFFFF; }
.light .tile { background: var(--silver); border-color: transparent; border-radius: var(--r-card); }
.light .tile strong { color: var(--night); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--silver); color: #4A5C58; padding: 5px 9px; border-radius: 999px; }

/* Night band inside a light section (Cognitive OS band) */
.night {
  --ink: var(--frost); --ink-muted: #9CB0AA; --accent: var(--teal);
  --line: rgba(94, 200, 194, 0.16); --line-soft: rgba(94, 200, 194, 0.10);
  --surface: var(--night); --surface-raised: var(--night-raised);
  background: var(--night); color: var(--frost);
}
.night .tile { background: var(--night-raised); border-color: var(--line); border-radius: 0; }
.night .tile strong { color: #FFFFFF; }
.night a:hover { color: var(--positive); }

/* Built around you */
.yours-brand { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; align-items: end; }
.connectors { display: flex; justify-content: space-around; padding: 0 10%; }
.connectors span { width: 2px; height: 48px; background: var(--teal-mid); }
.os-band { border-top: 3px solid var(--teal); }
.q-badge { display: flex; align-items: center; gap: 10px; background: var(--night-raised); border: 1px solid var(--line); padding: 12px 16px; }
.q { width: 30px; height: 30px; border-radius: 8px; background: var(--teal); color: var(--on-teal); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }

/* Foresight */
.foresight { background: var(--night); border-top: 1px solid var(--line-soft); }

/* Proof strip */
.strip { background: var(--night-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.strip .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; gap: 16px 40px; align-items: center; flex-wrap: wrap; justify-content: space-between; color: var(--ink-muted); }

/* Day timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.ev { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev .node { width: 24px; height: 24px; border-radius: 12px; background: var(--white); border: 3px solid var(--teal-mid); }
.ev.ask .node { border-color: var(--benchmark); }
.ev .time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.ev.ask .time { color: #B86D0E; }
.ev .card { border-radius: 14px; flex: 1; }
.ev .card-body { margin-top: auto; }
.ev .card-head { padding: 16px 16px 12px; gap: 6px; }
.ev .card-head strong { font-size: 16px; }
.ev .card-body { padding: 0 16px 16px; }

/* Control */
.switches { display: flex; flex-direction: column; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.switch-row:first-child { border-top: 0; }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lane { border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lane.hitl { background: rgba(242, 184, 75, 0.12); border: 1px solid rgba(138, 90, 0, 0.35); }
.lane.hotl { background: rgba(8, 119, 63, 0.08); border: 1px solid rgba(8, 119, 63, 0.3); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; background: var(--white); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }

/* A text column that stays alongside a tall column of screenshots */
.sticky-col { position: sticky; top: 112px; }

/* Autonomy levels */
.level { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.level .body { display: inline; }
.lv { width: 36px; height: 36px; border-radius: 18px; border: 2px solid #B9C3CD; color: #4A5C58; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.lv.on { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.lv.dark { background: var(--night); border-color: var(--night); color: #FFFFFF; }

.levels { gap: 24px; }
.guardrails { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; align-items: center; border-top: 1px solid #D9DEE2; padding-top: 28px; }
.guardrails .body { grid-column: 1 / -1; }
@media (max-width: 720px) { .guardrails { grid-template-columns: minmax(0, 1fr); } }

/* Speed wars */
.speed-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.speed-stats div { display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.speed-stats b { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; color: #FFFFFF; line-height: 1; }
@media (max-width: 720px) { .speed-stats { grid-template-columns: minmax(0, 1fr); } }

/* Ask AgentQ */
.points { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.points div { display: flex; gap: 12px; color: var(--ink-muted); line-height: 1.5; }
.points div::before { content: "+"; color: var(--accent); font-family: var(--mono); }
.points strong { color: #FFFFFF; }

/* Numbers */
.numbers { background: var(--night-raised); border-top: 1px solid var(--line-soft); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; color: var(--ink-muted); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(48px, 5.5vw, 76px); line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; }
.stat b.pos { color: var(--positive); }

/* Principles */
.principle { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--teal-mid); padding-top: 20px; min-width: 0; }
.principle:first-child { border-top-color: var(--night); }

/* Verticals */
.vert { text-decoration: none; color: var(--ink); display: flex; }
.vert .card { flex: 1; }
.vert .card-body { margin-top: auto; }
.phone-box { aspect-ratio: 16 / 9; display: flex; justify-content: center; }
.vert:hover { color: var(--ink); }
.vert:hover .card { border-color: var(--teal-mid); }
.vert .card-head { padding: 18px 18px 12px; }
.vert .card-body { padding: 0 18px 18px; }
.vert .shot.phone { height: 100%; width: auto; border-width: 4px; border-radius: 14px; }

/* Pricing (render-pricing.sh replaces each data-price / data-period line) */
.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pricing-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card-light); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pricing-card.featured { border: 2px solid var(--teal-mid); }
.pricing-badge { position: absolute; top: -12px; left: 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; background: var(--teal); color: var(--on-teal); padding: 4px 8px; border-radius: 999px; }
.pricing-tier { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #5A6C68; }
.pricing-name { font-size: 22px; letter-spacing: -0.01em; }
.pricing-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--night); text-decoration: none; }
.pricing-price.pricing-cta { font-size: 20px; color: var(--teal-deep); }
.pricing-price .currency { font-size: 0.6em; vertical-align: super; margin-right: 2px; }
.pricing-period { margin: 0; font-size: 13px; color: #5A6C68; min-height: 18px; }
.pricing-description { margin: 0; font-size: 14px; line-height: 1.45; color: #4A5C58; }
.pricing-features { list-style: none; margin: 4px 0 8px; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.pricing-features li { display: flex; gap: 8px; line-height: 1.35; }
.pricing-features li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8A84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.pricing-card .btn { width: 100%; font-size: 15px; }

/* Pilot CTA */
.pilot-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--teal-deep); color: #FFFFFF; border-radius: var(--r-card); padding: 56px; }
.pilot-card .lede { color: #CFEDEA; }
.pilot-card .btn-white { background: #FFFFFF; color: var(--night); }
.pilot-card .btn-white:hover { color: var(--night); background: var(--frost); }
.pilot-card .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; }
.why strong { display: block; color: #FFFFFF; }
.why span { color: #CFEDEA; font-size: 14px; line-height: 1.45; }

/* Footer */
.footer { background: var(--night-deep); color: var(--ink-muted); border-top: 1px solid var(--line-soft); }
/* Equal gaps between columns of different widths */
.footer .cols { padding-top: 64px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer .col b { color: #FFFFFF; font-weight: 600; }
.footer a { color: var(--ink-muted); text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer .bar { padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
.footer .bar strong { color: #FFFFFF; }

/* Inside the Cognitive OS: capability tabs */
.cap-tabs { display: none; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.caps.js .cap-tabs { display: flex; }
.cap-tabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-muted); font: 500 15px/1 var(--sans); padding: 16px 18px; min-height: 48px; cursor: pointer; white-space: nowrap; }
.cap-tabs button:hover { color: #FFFFFF; }
.cap-tabs button[aria-selected="true"] { color: #FFFFFF; border-bottom-color: var(--teal); }
.cap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 40px; }
.cap[hidden] { display: none; }
.caps:not(.js) .cap + .cap { border-top: 1px solid var(--line); margin-top: 40px; }
.cap .h-card { color: #FFFFFF; }
.cap-points { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.cap-points li { display: flex; gap: 12px; color: var(--ink-muted); line-height: 1.5; font-size: 15px; }
.cap-points li::before { content: "+"; color: var(--accent); font-family: var(--mono); }

/* ---------- motion ---------- */
/* Hero dot grid (motion.js) */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.dotgrid { position: absolute; left: 0; top: 0; width: 100%; height: 760px; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 92%); mask-image: linear-gradient(#000 40%, transparent 92%); }

.route-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* Foresight time bubbles (after the OmnioIQ login screen) */
.bubbles { position: relative; height: 150px; margin: -24px 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bubble, .tip { position: absolute; opacity: 0; font-family: var(--mono); letter-spacing: 0.06em; animation: drift var(--dur, 26s) linear var(--delay, 0s) infinite; }
.bubble { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 1.1;
  border: 1.5px solid var(--teal); color: var(--teal); background: rgba(94, 200, 194, 0.05); }
.bubble.green { border-color: var(--positive); color: var(--positive); background: rgba(0, 230, 118, 0.05); }
.bubble.amber { border-color: var(--benchmark); color: var(--benchmark); background: rgba(242, 184, 75, 0.05); }
.tip { background: var(--night-raised); border: 1px solid var(--line); color: var(--frost); font-size: 12px; padding: 8px 12px; white-space: nowrap; }
/* Time drifts left to right across the strip, the way the day comes towards you. */
.b1 { left: 2%;  top: 20%; --dx: 260px; --dy: 10px;  --dur: 24s; --delay: -2s; }
.b2 { left: 22%; top: 48%; --dx: 300px; --dy: -14px; --dur: 28s; --delay: -9s; }
.b3 { left: 46%; top: 12%; --dx: 240px; --dy: 18px;  --dur: 22s; --delay: -15s; }
.b4 { left: 64%; top: 40%; --dx: 280px; --dy: -10px; --dur: 30s; --delay: -5s; width: 76px; height: 76px; }
.b5 { left: 80%; top: 14%; --dx: 220px; --dy: 16px;  --dur: 26s; --delay: -19s; }
.b6 { left: 36%; top: 56%; --dx: 260px; --dy: -8px;  --dur: 25s; --delay: -12s; }
.t1 { left: 10%; top: 62%; --dx: 280px; --dy: -6px;  --dur: 27s; --delay: -7s; }
.t2 { left: 58%; top: 4%;  --dx: 240px; --dy: 8px;   --dur: 29s; --delay: -21s; }
@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  8%   { opacity: 0.75; transform: translate(calc(var(--dx) * 0.08), calc(var(--dy) * 0.08)) scale(1); }
  80%  { opacity: 0.75; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* Cognitive OS helix (motion.js) */
.helix-wrap { position: relative; margin-top: -6%; margin-bottom: -7%; }
.hx-box { position: relative; }
.helix { display: block; width: 100%; aspect-ratio: 1060 / 640; }
.hx-pill { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 20.755%; text-align: center; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--frost);
  background: var(--night); border: 1px solid rgba(94, 200, 194, 0.6); border-radius: 999px; padding: 7px 0; }
.hx-card { position: absolute; width: 22%; background: rgba(7, 16, 18, 0.94); border: 1px solid var(--line); padding: 12px 14px 14px; }
.hx-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.hx-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.hx-title i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.hx-1 { left: 8.81%;  top: 64.375%; border-top: 2px solid rgba(94, 200, 194, 0.6); }
.hx-2 { left: 30.13%; bottom: 64.375%; border-bottom: 2px solid rgba(45, 142, 138, 0.7); }
.hx-3 { left: 48.43%; top: 64.375%; border-top: 2px solid rgba(0, 230, 118, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .bubble, .tip { animation: none; opacity: 0.4; }
}
@media (max-width: 759px) {
  .helix-wrap { display: grid; gap: 12px; margin-bottom: 0; }
  .hx-card { position: static; width: auto; }
  .hx-pill { font-size: 8px; letter-spacing: 0.06em; width: auto; padding: 5px 9px; }
  .bubbles { height: 120px; }
  .b4, .b5, .t2 { display: none; }
}

/* ---------- sub-pages ---------- */
.page-hero { background: var(--night); border-bottom: 1px solid var(--line-soft); }
.page-hero .wrap { padding-top: 88px; padding-bottom: 88px; }
.page-hero .crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.page-hero .crumb a { color: var(--ink-muted); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--frost); }
.page-hero h1 { color: #FFFFFF; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .split { padding-top: 88px; padding-bottom: 88px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.prose a { color: var(--accent); }

/* ---------- redesign: switchers, manifest rows, chapter index ---------- */
/* Running section index: every chapter label is numbered in page order */
main { counter-reset: chap; }
main section:not(.hero) p.label::before { counter-increment: chap; content: counter(chap, decimal-leading-zero) " / "; color: var(--ink-muted); }

.switch.js .sw-panel[hidden] { display: none; }
.switch:not(.js) .sw-panel + .sw-panel { margin-top: 40px; }

/* Day track: one large screen per moment */
.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--line); margin-bottom: 32px; }
.track button { background: none; border: 0; border-top: 2px solid transparent; margin-top: -2px; padding: 14px 12px 0 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); font: inherit; min-height: 64px; }
.track .t { font-family: var(--mono); font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.02em; color: var(--ink-muted); }
.track .n { font-size: 14px; font-weight: 600; line-height: 1.3; }
.track button[aria-selected="true"] { border-top-color: var(--teal-mid); color: var(--ink); }
.track button[aria-selected="true"] .t { color: var(--teal-deep); }
.track button.ask[aria-selected="true"] { border-top-color: var(--benchmark); }
.track button.ask[aria-selected="true"] .t { color: #B86D0E; }
.track button:hover .t { color: var(--ink); }
.sw-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.sw-copy { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.sw-copy .body { font-size: 17px; }

/* Six jobs: index on the left, one screen on the right */
.jobs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.job-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.job-list button { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 8px 18px 0; cursor: pointer; font: inherit; color: var(--ink); }
.job-list .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); padding-top: 6px; grid-row: span 2; }
.job-list .nm { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.job-list .ds { font-size: 14px; line-height: 1.5; color: var(--ink-muted); display: none; }
.job-list button[aria-selected="true"] .ds { display: block; }
.job-list button[aria-selected="true"] .idx { color: var(--teal-deep); }
.job-list button[aria-selected="true"] .nm { color: var(--teal-deep); }
.jobs:not(.js) .job-list .ds { display: block; }
.job-shots { position: sticky; top: 104px; }
.job-shots .sw-panel { display: block; }
.job-shots .shot { aspect-ratio: 16 / 10; }

/* Manifest: industries as numbered rows */
.manifest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) 132px 20px; gap: 4px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row-item .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); grid-row: span 2; align-self: start; padding-top: 6px; }
.row-item .nm { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; grid-column: 2; }
.row-item .ds { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.row-item .th { grid-column: 3; grid-row: 1 / span 2; }
.row-item .th .shot { aspect-ratio: 16 / 10; box-shadow: none; }
.row-item .th .shot.phone { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 0; }
.row-item .th .shot.phone img { object-fit: cover; object-position: top center; }
.row-item .go { grid-column: 4; grid-row: 1 / span 2; color: var(--ink-muted); transition: transform .2s; }
.row-item:hover .nm, .row-item:hover .go { color: var(--teal-deep); }
.row-item:hover .go { transform: translateX(4px); }
.light a.row-item:hover { color: var(--ink); }

/* Reasons: numbered rows with a screen each */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.reason { display: grid; grid-template-columns: 40px minmax(0, 1fr) 200px; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.reason .idx { font-family: var(--mono); font-size: 12px; color: var(--teal-deep); padding-top: 6px; }
.reason .shot { box-shadow: none; }

@media (max-width: 1100px) {
  .sw-panel, .jobs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .job-shots { position: static; }
  .manifest, .reasons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .track { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .row-item { grid-template-columns: 28px minmax(0, 1fr) 96px; }
  .row-item .go { display: none; }
  .reason { grid-template-columns: 32px minmax(0, 1fr); }
  .reason .shot { grid-column: 1 / -1; }
}

/* Hero: "More" stays, the rest scatters and re-forms (motion.js) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.morph { display: block; color: var(--teal); min-height: 0.92em; }
.morph .ch { display: inline-block; white-space: pre; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease, filter .45s ease; }
.morph .ch.out { opacity: 0; filter: blur(8px); }
.morph .ch.in { opacity: 0; filter: blur(8px); transform: translateY(0.35em) scale(0.9); }

/* Book a pilot: a light that runs round the button's edge */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-primary { position: relative; isolation: isolate; }
.btn-primary::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--ang), rgba(94,200,194,0) 0deg, rgba(94,200,194,0) 250deg, #00E676 300deg, #FFFFFF 330deg, #5EC8C2 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: btn-orbit 3.2s linear infinite; }
.btn-primary::after { content: ""; position: absolute; inset: -6px; border-radius: 14px; z-index: -2; background: radial-gradient(60% 80% at 50% 50%, rgba(94,200,194,0.35), rgba(94,200,194,0)); opacity: 0.6; }
@keyframes btn-orbit { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn-primary::before { animation: none; } }

/* ---------- sub-page polish ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .wrap { position: relative; z-index: 1; padding-top: 104px; padding-bottom: 104px; }
.page-hero .dotgrid { height: 100%; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%); mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.94; }
.page-hero .lede { font-size: clamp(17px, 1.4vw, 19px); }
.page-hero .shot { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45); }
/* Phones never fill a column: keep them phone-sized and centred */
.feature .shot.phone, .page-hero .shot.phone, .split > .shot.phone { width: 100%; max-width: 300px; justify-self: center; margin: 0 auto; }
.feature .split { padding-top: 104px; padding-bottom: 104px; gap: 72px; }
.feature h2.h-m { font-size: clamp(30px, 3.2vw, 44px); }
.feature .stack > .body { font-size: 17px; line-height: 1.6; }
.feature ul { margin: 4px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature ul li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.feature ul li::before { content: "+"; font-family: var(--mono); color: var(--accent); }
/* Alternate a dark band among light feature rows for rhythm */
.feature.dark { background: var(--night); --ink: var(--frost); --ink-muted: #9CB0AA; --accent: var(--teal); --line: rgba(94,200,194,0.16); color: var(--frost); }
.feature.dark h2 { color: #FFFFFF; }
@media (max-width: 720px) { .page-hero > .wrap { padding-top: 64px; padding-bottom: 64px; } .feature .split { padding-top: 64px; padding-bottom: 64px; gap: 32px; } }

/* Meet AgentQ: phone chat that plays itself (motion.js) */
.aq-phone { display: flex; justify-content: center; }
.aq-frame { width: 320px; max-width: 100%; height: 600px; border-radius: 44px; background: #050B0D; padding: 12px; border: 1px solid rgba(94,200,194,0.25); box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 6px rgba(94,200,194,0.05); position: relative; }
.aq-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 12px; background: #000; z-index: 2; }
.aq-screen { height: 100%; border-radius: 34px; background: var(--night-raised); display: flex; flex-direction: column; overflow: hidden; }
.aq-top { display: flex; align-items: center; gap: 10px; padding: 48px 18px 14px; border-bottom: 1px solid var(--line); }
.aq-top b { display: block; font-size: 15px; color: #FFFFFF; }
.aq-live { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--positive); }
.aq-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; overflow: hidden; justify-content: flex-end; }
.aq-m { max-width: 84%; padding: 10px 13px; font-size: 13.5px; line-height: 1.45; border-radius: 16px; }
.aq-m.u { align-self: flex-end; background: var(--teal); color: var(--on-teal); border-bottom-right-radius: 4px; }
.aq-m.a { align-self: flex-start; background: rgba(255,255,255,0.06); color: var(--frost); border-bottom-left-radius: 4px; }
.aq-m.dots { display: inline-flex; gap: 4px; padding: 13px 14px; }
.aq-m.dots i { width: 6px; height: 6px; border-radius: 3px; background: #9CB0AA; animation: aq-dot 1s infinite ease-in-out; }
.aq-m.dots i:nth-child(2) { animation-delay: .15s; } .aq-m.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aq-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aq-play .aq-m { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.aq-play .aq-m.show { opacity: 1; transform: none; }
.aq-play .aq-m.gone { display: none; }
.aq-input { display: flex; align-items: center; gap: 2px; margin: 0 12px 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 22px; min-height: 42px; font-size: 13px; color: var(--frost); }
.aq-typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.aq-caret { width: 1.5px; height: 16px; background: var(--teal); animation: aq-blink 1s steps(1) infinite; }
.aq-send { margin-left: auto; color: var(--teal); font-size: 13px; }
@keyframes aq-blink { 50% { opacity: 0; } }
@media (max-width: 720px) { .aq-frame { height: 540px; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g3, .split, .split.rev, .pilot-card, .cap { grid-template-columns: minmax(0, 1fr); }
  .g4, .timeline, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; padding: 16px 0; }
  .navlinks { display: none; }
  .menu { display: block; }
  .shot.needs { display: none; }
  .sticky-col { position: static; }
  .pilot-card { padding: 40px; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .g2, .g4, .timeline, .stats, .lanes, .why, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .nav .signin { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .btn { margin-left: auto; }
  .yours-brand { grid-template-columns: minmax(0, 1fr); }
  .yours-brand .shot.phone { width: 60%; margin: 0 auto; }
  .connectors { display: none; }
  .pilot-card { padding: 28px 20px; }
    }
@media (max-width: 380px) {
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; }
  .nav .wrap { gap: 8px; }
  .h-xl { font-size: 40px; }
}
