/* CollisionPulseIQ.com (c) 2026 PulseIQ. All rights reserved. */
/* Developed by PulseIQ Engineering -- CollisionPulseIQ.com */

/* ============================================================
   Landing page. Same design language as the www marketing site
   (marketing/src/styles/global.css): warm gunmetal darks, brand
   teal, amber accent, Archivo display + IBM Plex Sans.

   CONTRAST, measured against the WCAG ratios, not eyeballed:
   - Filled buttons are DARK INK ON BRIGHT TEAL (#0e1512 on #19c2ad,
     ~8:1). White on the brand teal #03a18d is only ~3.3:1 and fails
     normal-size text, so it is never used for button labels.
   - Muted text on white is #6b6457 (~5.8:1); the www token #877f70
     is ~4:1 and fails small text, so it is not used here.
   - Amber is only ever used ON DARK (#ef8a3c on #15181c ~7:1).
   ============================================================ */

:root {
  --teal: #03a18d;
  --teal-bright: #19c2ad;
  --teal-deep: #047a6b;
  --amber: #ef8a3c;

  --ink-900: #15181c;
  --ink-800: #1c2026;
  --ink-700: #262c33;
  --on-btn: #0e1512;

  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --border: #e5dfd5;

  --text: #1b1915;
  --text-body: #514a40;
  --text-muted: #6b6457;
  --on-dark: #efece5;
  --on-dark-mute: #b3ac9e;

  --red: #b42318;
  --green: #2f9e6b;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 14px 30px -18px rgba(28, 26, 22, 0.3);
  --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, 0.65);
  --ring: 0 0 0 3px rgba(25, 194, 173, 0.45);

  --maxw: 1180px;
  --top-h: 72px;

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { max-width: 68ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
/* A <p> is capped at 68ch, so inside a centered block it must also be centered
   as a BOX or it sits flush left under a centered heading. */
.center p { margin-left: auto; margin-right: auto; }
.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;
}
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--ink-900); color: var(--on-dark); }
.dark h2 { color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--text); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-bright);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--teal-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem;
  padding: 12px 20px; min-height: 44px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 0.92rem; }
.btn-lg { padding: 15px 26px; min-height: 52px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal-bright); color: var(--on-btn); }
.btn-primary:hover { background: #2fd3be; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(25, 194, 173, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }

/* ---------- top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--top-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(21, 24, 28, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.top-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 44px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.link-signin {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center;
}
.link-signin:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink-900); color: var(--on-dark);
  padding: calc(var(--top-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 8vw, 104px);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: 0.22; filter: saturate(0.6); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(25, 194, 173, 0.16), transparent 60%),
    linear-gradient(90deg, rgba(21, 24, 28, 0.96) 0%, rgba(21, 24, 28, 0.82) 45%, rgba(21, 24, 28, 0.55) 100%),
    linear-gradient(0deg, var(--ink-900) 0%, transparent 30%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 .hl { color: var(--teal-bright); }
/* The tagline (Tom, 2026-10-11): same sentence as the www home page's hero. */
.hero-tagline { font-family: var(--font-display); font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 700; line-height: 1.28; color: #fff; max-width: 34em; margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-dark); opacity: 0.92; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 0.92rem; color: var(--on-dark-mute); }

/* The glimpse: a board with the details left out on purpose. */
.glimpse {
  position: relative; background: #1d2228; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; max-width: 560px; width: 100%;
  justify-self: center;
}
.glimpse-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.g-dots { display: flex; gap: 5px; }
.g-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.g-title { font-size: 0.8rem; font-weight: 600; color: var(--on-dark-mute); letter-spacing: 0.02em; }
.g-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright);
  background: rgba(25, 194, 173, 0.12); border: 1px solid rgba(25, 194, 173, 0.35); padding: 3px 8px; border-radius: 20px;
}
.g-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --gg (column gap) and --gp (column padding) are shared with the mover's
   keyframes, which travel exactly one column: card width + 2 x padding + gap. */
.glimpse-cols { --gg: 9px; --gp: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gg); padding-top: 12px; min-height: 230px; }
.gcol { position: relative; background: rgba(255, 255, 255, 0.03); border-radius: 9px; padding: var(--gp); display: flex; flex-direction: column; gap: 7px; }
.gcol-h { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; color: var(--on-dark-mute); margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.gcol-h b { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.gcol-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gcard { position: relative; background: #2a3037; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 7px; padding: 9px 8px; display: flex; flex-direction: column; gap: 6px; }
.gcard s { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.gcard s:first-child { background: rgba(255, 255, 255, 0.28); }
.gcard .w30 { width: 30%; } .gcard .w35 { width: 35%; } .gcard .w40 { width: 40%; } .gcard .w45 { width: 45%; }
.gcard .w50 { width: 50%; } .gcard .w55 { width: 55%; } .gcard .w60 { width: 60%; } .gcard .w65 { width: 65%; } .gcard .w70 { width: 70%; }
.gcard.ghost { background: transparent; border: 1px dashed rgba(25, 194, 173, 0.45); height: 38px; animation: ghost 6s ease-in-out infinite; }
/* The slot lights up just before the card lands in it. */
@keyframes ghost { 0%, 20% { opacity: 0; } 30%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* The one card that moves: Body -> Paint, then back, forever. transform only. */
.gcard.mover { border-color: rgba(25, 194, 173, 0.55); box-shadow: 0 0 0 1px rgba(25, 194, 173, 0.25), 0 10px 20px -12px rgba(25, 194, 173, 0.6); z-index: 2; animation: move 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.gcard.mover u { position: absolute; right: 7px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
@keyframes move {
  0%, 30% { transform: translate(0, 0); }
  45%, 88% { transform: translate(calc(100% + 2 * var(--gp) + var(--gg)), 0); }
  100% { transform: translate(0, 0); }
}
.glimpse-toast {
  position: absolute; left: 18px; bottom: -18px; display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--text); font-size: 0.82rem; font-weight: 600; padding: 9px 13px;
  border-radius: 10px; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7); animation: toast 6s ease-in-out infinite;
}
.glimpse-toast .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 158, 107, 0.6); animation: ping 1.6s ease-out infinite; }
@keyframes toast { 0%, 44% { opacity: 0; transform: translateY(8px); } 52%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 107, 0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(47, 158, 107, 0); } }

/* ---------- questions ---------- */
.questions h2 { margin-bottom: 36px; }
.q-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 980px; margin: 0 auto 32px; }
.q {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: 12px; padding: 22px 22px;
}
.q-answer { font-size: 1.12rem; }
.q-answer strong { color: var(--text); }

/* ---------- what changes ---------- */
.head { margin-bottom: 44px; }
.head h2 { max-width: 20ch; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow); }
.tile h3 { margin: 16px 0 8px; }
.tile p { font-size: 0.98rem; }
.ic {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(3, 161, 141, 0.1); color: var(--teal-deep);
}
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- customer spotlight ---------- */
.spotlight-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.spot-photo { margin: 0 auto; max-width: 420px; width: 100%; }
/* The photo has a dark studio background of its own, so it sits in a rounded
   frame on the light page rather than being blended into it. */
.spot-photo img {
  width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(21, 24, 28, 0.55), 0 0 0 1px rgba(21, 24, 28, 0.06);
}
.spot-copy h2 { margin-bottom: 16px; }
.spot-lead { font-size: 1.12rem; }
.spot-copy .checks { margin-bottom: 0; }

/* ---------- breadth ---------- */
.breadth { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.breadth h2 { margin-bottom: 16px; }
.lead-dark { color: var(--on-dark); opacity: 0.88; font-size: 1.08rem; margin-bottom: 28px; }
.depts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.depts li {
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: #fff;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; padding: 16px 12px; text-align: center; letter-spacing: -0.01em;
}
.depts li.more { color: var(--amber); border-style: dashed; border-color: rgba(239, 138, 60, 0.5); background: transparent; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: 1fr; gap: 28px; }
.trust-item { border-top: 3px solid var(--teal); padding-top: 18px; }
.trust-item h3 { margin-bottom: 8px; }
.trust-item p { font-size: 0.98rem; }

/* ---------- demo ---------- */
.demo { background: var(--bg-soft); border-top: 1px solid var(--border); }
.demo-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.demo-copy h2 { margin-bottom: 16px; }
.demo-copy > p { font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 500; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(3, 161, 141, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.already { font-size: 0.96rem; color: var(--text-muted); }
.already a { color: var(--teal-deep); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid #cfc7ba; border-radius: 9px; padding: 11px 12px; min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; margin-bottom: 14px; }
.fine { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; text-align: center; max-width: none; }
.fine a { color: var(--teal-deep); }
.form-done { text-align: center; padding: 26px 8px; outline: none; }
.form-done h3 { font-size: 1.4rem; margin: 16px 0 8px; }
.form-done p { margin: 0 auto; }
.done-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: rgba(47, 158, 107, 0.14); color: var(--green); display: flex; align-items: center; justify-content: center; }
.done-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */
.foot { background: var(--ink-900); color: var(--on-dark-mute); padding: 48px 0 28px; font-size: 0.92rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.foot-brand img { height: 38px; width: auto; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--on-dark); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--teal-bright); }
.foot-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; }

/* ---------- reveal on scroll (landing.js adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .q-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .glimpse { justify-self: end; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .breadth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .demo-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .spotlight-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
  .spot-photo { margin: 0; justify-self: center; }
}
@media (max-width: 520px) {
  :root { --top-h: 64px; }
  .brand img { height: 34px; }
  .link-signin { padding: 10px 10px; }
  .top-actions .btn-sm { padding: 8px 12px; }
  .glimpse-cols { --gg: 6px; --gp: 6px; min-height: 200px; }
  .gcol-h { font-size: 0.6rem; }
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depts li.more { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .top-actions .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gcard.ghost { opacity: 0; }
  .glimpse-toast { opacity: 1; transform: none; }
}
