/* Opsider marketing site. Hand-built, no framework.
   Palette and voice per brand kit. */

:root {
  --navy: #0b1a4d;
  --navy-deep: #081238;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-tint: #eff6ff;
  --ink: #0f172a;
  --slate: #475569;
  --line: #e2e8f0;
  --red: #dc2626;
  --red-deep: #b91c1c;
  --red-soft: #f87171;
  --paper: #f8fafc;
  --green: #047857;
  --font: "Inter", "Inter var", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, Menlo, monospace;
  --shadow-lg: 0 24px 60px -18px rgba(8, 18, 56, 0.35), 0 8px 24px -12px rgba(8, 18, 56, 0.25);
  --shadow-sm: 0 2px 10px -2px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Links sitting inside prose need more than colour to stand out (WCAG 1.4.1) */
p a:not(.btn), li a:not(.btn), figcaption a, dd a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29, 78, 216, 0.45);
}
p a:not(.btn):hover, li a:not(.btn):hover { text-decoration-color: var(--blue-700); }
.band-dark p a:not(.btn), .band-dark li a:not(.btn), .dawn p a, .final-cta p a {
  color: #93b4f8;
  text-decoration-color: rgba(147, 180, 248, 0.5);
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Type scale ---------- */

h1 {
  font-size: clamp(2.55rem, 6.4vw, 4.35rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.022em;
}

.eyebrow {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.eyebrow-dark { color: #93b4f8; }

.lede {
  color: var(--slate);
  font-size: 1.14rem;
  max-width: 46rem;
  margin-top: 1.1rem;
}
.lede-dark { color: #b6c4e6; }

.num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(29, 78, 216, 0.7);
}
.btn-primary:hover { background: var(--blue-600); }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--blue-tint); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-700); }

.btn-lg { min-height: 52px; padding: 0.85rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.section-cta { margin-top: 2.6rem; }
.faq .section-cta { font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-top {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue-700);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.28rem;
  min-height: 44px;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { color: inherit; }

.site-header.is-top .brand { color: #fff; }
.site-header.is-top .brand-mark circle[fill] { fill: var(--red-soft); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav a {
  color: var(--slate);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { color: var(--ink); background: rgba(15, 23, 42, 0.05); text-decoration: none; }

.site-header.is-top .site-nav a { color: rgba(255, 255, 255, 0.82); }
.site-header.is-top .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta { min-height: 44px; padding: 0.55rem 1.1rem; }
.site-nav .nav-sheet-cta { display: none; }
.site-nav .nav-sheet-cta:hover { color: #fff; background: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-box { position: relative; width: 22px; height: 2px; display: block; }
.nav-toggle-line,
.nav-toggle-box::before,
.nav-toggle-box::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:hover { background: rgba(15, 23, 42, 0.06); }
.nav-toggle-line { top: 0; }
.nav-toggle-box::before { content: ""; top: -6px; }
.nav-toggle-box::after { content: ""; top: 6px; }
.site-header.is-top .nav-toggle-line,
.site-header.is-top .nav-toggle-box::before,
.site-header.is-top .nav-toggle-box::after { background: #fff; }

body.nav-open .nav-toggle-box::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-line { opacity: 0; }
body.nav-open .nav-toggle-box::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 72px) 0 56px;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(37, 99, 235, 0.55), transparent 62%),
    radial-gradient(900px 520px at 96% 12%, rgba(29, 78, 216, 0.42), transparent 58%),
    radial-gradient(720px 420px at 55% 112%, rgba(248, 113, 113, 0.14), transparent 62%),
    var(--navy);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dbe6ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.42rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-soft);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.16rem;
  line-height: 1.6;
  color: #c3cfec;
  max-width: 33rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.trust-strip {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a7b6dc;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.trust-strip span { margin: 0 0.55rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Browser frame & product UI mockups ---------- */

.hero-visual { position: relative; }

.frame {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame-hero { transform: rotate(0.4deg); }

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.fdot { width: 10px; height: 10px; border-radius: 50%; }
.fdot-r { background: #fda4af; }
.fdot-y { background: #fcd34d; }
.fdot-g { background: #86efac; }
.frame-url {
  margin-left: 10px;
  font-size: 11px;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 12px;
  border-radius: 99px;
  font-family: var(--mono);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-dark { background: #0d1330; border-color: rgba(255, 255, 255, 0.1); }
.frame-bar-dark { background: #131b42; border-bottom-color: rgba(255, 255, 255, 0.08); }
.frame-url-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #9fb0d8; }

/* Product UI internals */

.ui { padding: 18px 18px 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }

.ui-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.ui-title { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }
.ui-meta { font-size: 11px; color: var(--slate); }

.ui-chip {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--blue-700);
  background: var(--blue-tint);
  border: 1px solid #dbeafe;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.ui-chip-green { color: var(--green); background: #ecfdf5; border-color: #d1fae5; }

.ui-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  margin: 12px 0 2px;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 6px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.ui-main { color: var(--ink); }
.ui-main strong { font-weight: 700; }
.ui-sub { color: var(--slate); font-size: 11.5px; white-space: nowrap; }
.ui-amber { color: #b45309; font-weight: 600; }
.ui-red { color: var(--red-deep); font-weight: 600; }

.ui-lot {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue-700);
  background: var(--blue-tint);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.ui-btn {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  color: var(--blue-700);
  background: var(--blue-tint);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 5px 10px;
  white-space: nowrap;
}
.ui-btn-solid { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

.ui-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--slate);
}
.ui-link { color: var(--blue-700); font-weight: 650; }

/* Floating cards over the hero visual */

.float-card {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.4;
}

.float-toast {
  top: -22px;
  right: -14px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  max-width: 250px;
  animation: floaty 7s ease-in-out infinite;
}
.float-mark { width: 26px; height: 26px; flex: none; }
.float-toast strong { font-weight: 700; }
.float-toast p { color: var(--slate); }
.float-toast strong { color: var(--ink); }

.float-chip {
  bottom: 150px;
  left: -22px;
  padding: 9px 14px;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
  animation: floaty 7s ease-in-out 1.2s infinite;
}
.float-chip strong { color: var(--ink); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Sections scaffolding ---------- */

.section { padding: 6.5rem 0; }

/* Grid and flex children never force the page wider than the viewport */
.hero-grid > *, .trace-grid > *, .op-panels > *, .receipt-card > *,
.tl-stop > *, .footer-top > * { min-width: 0; }
.frame, .op-draft, .receipt { max-width: 100%; }

.band-dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(700px 420px at 8% 108%, rgba(220, 38, 38, 0.12), transparent 60%),
    var(--navy);
  color: #e2e8f0;
}
.band-dark h2 { color: #fff; }

/* ---------- Dawn (the 6am problem) ---------- */

.dawn {
  background:
    radial-gradient(820px 300px at 50% 118%, rgba(220, 38, 38, 0.16), transparent 65%),
    linear-gradient(180deg, #0a1029 0%, var(--navy-deep) 100%);
  color: #cbd5e1;
  padding: 5rem 0;
}

.dawn-time {
  color: #8194c4;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 34rem;
}

.dawn-lines { margin-top: 1.6rem; max-width: 44rem; }
.dawn-lines li {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #e6ebf7;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dawn-lines li:last-child { border-bottom: 0; }

.dawn-kicker {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.dawn-kicker a { color: #93b4f8; font-weight: 600; margin-left: 0.5rem; }

/* ---------- Order Pilot ---------- */

.op { background: #fff; }

.op-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  align-items: stretch;
  margin-top: 3rem;
}

.op-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.op-panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1rem;
}

.op-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}
.op-msg:first-of-type { margin-top: 0; }

.op-msg-meta {
  font-size: 0.72rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.op-bubble {
  display: inline-block;
  background: #dcfce7;
  border-radius: 4px 14px 14px 14px;
  padding: 0.55rem 0.8rem;
  color: #14532d;
  font-size: 0.95rem;
  min-height: 2.2em;
}

.op-msg-body { color: var(--slate); font-size: 0.9rem; }
.op-vm { display: flex; align-items: baseline; gap: 0.5rem; }
.op-play { color: var(--blue-700); font-size: 0.75rem; }

.op-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--blue-700);
}
.op-arrow svg { width: 44px; height: 44px; }
.op-arrow span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.op-draft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.op-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.op-draft-id { font-family: var(--mono); font-size: 0.78rem; color: var(--slate); }

.op-draft-cust { margin-top: 0.55rem; font-weight: 700; font-size: 0.98rem; }
.op-draft-cust span { font-weight: 500; color: var(--slate); font-size: 0.83rem; }

.op-lines {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.op-lines td { padding: 0.45rem 0.2rem; border-top: 1px solid var(--line); }
.op-lines tr:first-child td { border-top: 0; }
.op-total td { font-weight: 700; border-top: 2px solid var(--ink); }

.op-draft-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.op-draft-note { font-size: 0.75rem; color: #64748b; font-style: italic; }

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}

.proof {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.proof h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.proof p { margin-top: 0.55rem; color: var(--slate); font-size: 0.95rem; }

/* ---------- Traceability ---------- */

.trace-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.6rem;
  margin-top: 3rem;
  align-items: start;
}

.cool {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
}

.lot-tile {
  display: grid;
  gap: 3px;
  background: #131b42;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.35;
}
.lot-code { font-family: var(--mono); font-size: 9.5px; color: #8ea4d6; }
.lot-name { color: #e2e8f0; font-weight: 600; }
.lot-kg { color: #b6c4e6; font-variant-numeric: tabular-nums; }
.lot-fresh {
  justify-self: start;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.lf-ok { color: #34d399; background: rgba(16, 185, 129, 0.14); }
.lf-warn { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
.lf-hot { color: #f87171; background: rgba(220, 38, 38, 0.16); }

.recall-flow {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.recall-step {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: #cdd8f0;
}
.recall-step strong { color: #fff; font-family: var(--mono); font-size: 0.84rem; }
.recall-n {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.18);
  color: var(--red-soft);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}

.trace-cards { display: grid; gap: 1rem; }
.tr-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.tr-card h3 { color: #fff; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.tr-card p { margin-top: 0.55rem; color: #b6c4e6; font-size: 0.96rem; }

/* ---------- A day on Opsider ---------- */

.day { background: var(--paper); }

.tl {
  margin-top: 3rem;
  position: relative;
  display: grid;
  gap: 0.4rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.tl-stop {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.9rem 0;
}

.tl-time {
  position: relative;
  z-index: 1;
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-tint);
  border: 1px solid #dbeafe;
  padding: 4px 10px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}

.tl-body h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.tl-body p { color: var(--slate); font-size: 0.97rem; margin-top: 0.25rem; max-width: 38rem; }

.thumb {
  width: 158px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}
.thumb-head { height: 5px; }
.th-blue { background: var(--blue-600); }
.th-navy { background: var(--navy); }
.th-red { background: var(--red); }
.thumb-line {
  font-size: 9.5px;
  font-weight: 650;
  color: var(--slate);
  padding: 2px 10px 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.thumb-bar {
  height: 6px;
  border-radius: 3px;
  background: #eef2f7;
  margin: 0 10px;
}
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; }

/* ---------- Bento ---------- */

.bento-section { background: #fff; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
  margin-top: 3rem;
}

.tile {
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}
.tile h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.tile p { margin-top: 0.5rem; color: var(--slate); font-size: 0.94rem; }

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }

.tile-visual { margin-top: 1rem; }
.tile-visual .ui-row { background: #fff; font-size: 12px; }

.stage-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-pills span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.stage-pills b { color: var(--blue-700); font-variant-numeric: tabular-nums; }

.report-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.report-chips span {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-tint);
  border: 1px solid #dbeafe;
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---------- Money ---------- */

.money { background: var(--paper); }

.loop {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  counter-reset: loopstep;
}
.loop li {
  counter-increment: loopstep;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.2rem 3.1rem;
  position: relative;
  color: var(--slate);
  font-size: 0.96rem;
}
.loop li::before {
  content: counter(loopstep);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-700);
  border: 1px solid #dbeafe;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.loop b { color: var(--ink); font-weight: 700; }

.receipt-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}
.receipt-copy h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.015em; }
.receipt-copy p { margin-top: 0.6rem; color: var(--slate); }

.receipt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-variant-numeric: tabular-nums;
}
.receipt-head { font-weight: 700; font-size: 0.92rem; padding-bottom: 0.5rem; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.receipt td { padding: 0.45rem 0.15rem; border-top: 1px dashed var(--line); color: var(--slate); }
.receipt .paid { text-align: right; color: var(--green); font-weight: 650; font-size: 0.78rem; }
.receipt-total td { color: var(--ink); font-weight: 700; border-top: 2px solid var(--ink); }

/* ---------- Claims ---------- */

.claims {
  background: var(--blue-tint);
  border-block: 1px solid #dbeafe;
  padding: 4.2rem 0;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.claim-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.claim-sub { margin-top: 0.5rem; color: var(--slate); font-size: 0.93rem; max-width: 15rem; }

.claims-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Testimonial placeholders ---------- */

.partners { background: #fff; }

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}

.quote-card {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: var(--paper);
}
.quote-placeholder {
  color: #64748b;
  font-style: italic;
  font-size: 0.98rem;
}
.quote-card figcaption {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* ---------- Early access ---------- */

.early { background: var(--paper); padding-top: 2rem; }
.early-wrap { display: grid; justify-items: center; }

.early-card {
  max-width: 620px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem 2.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.early-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600) 60%, var(--red-soft));
}
.early-card h2 { font-size: 1.7rem; }
.early-card > p { margin-top: 0.9rem; color: var(--slate); }

.early-list { margin: 1.4rem 0 1.8rem; display: grid; gap: 0.6rem; }
.early-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.98rem;
}
.early-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1.5px solid var(--green);
}
.early-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: calc(0.32em + 4px);
  width: 7px; height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq { background: #fff; }
.faq-wrap { max-width: 780px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 2.4rem; }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.05rem 0.2rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq summary:hover::after {
  border-color: #dbeafe;
  background: var(--blue-tint);
  color: var(--blue-700);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--blue-tint);
  color: var(--blue-700);
  border-color: #dbeafe;
}
.faq details p {
  padding: 0 0.2rem 1.2rem;
  color: var(--slate);
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background:
    radial-gradient(820px 420px at 50% -20%, rgba(37, 99, 235, 0.5), transparent 65%),
    radial-gradient(600px 320px at 80% 110%, rgba(220, 38, 38, 0.14), transparent 60%),
    var(--navy);
  color: #fff;
  text-align: center;
}
.final-wrap { display: grid; justify-items: center; }

.final-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 1.6rem;
  animation: floaty 6s ease-in-out infinite;
}

.final-cta h2 { color: #fff; }
.final-cta p { margin-top: 0.9rem; color: #c3cfec; font-size: 1.12rem; }
.final-ctas { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #a7b6dc;
  padding: 4rem 0 2rem;
  font-size: 0.94rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer { color: #fff; }
.footer-brand > p { margin-top: 1rem; max-width: 22rem; line-height: 1.6; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-cols a {
  display: flex;
  align-items: center;
  color: #a7b6dc;
  padding: 0.35rem 0;
  min-height: 44px;
}
.footer-cols a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: #8194c4;
}
.abn-note { color: inherit; }

/* ---------- Dialog & form ---------- */

dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(460px, calc(100vw - 2rem));
  box-shadow: var(--shadow-lg);
  background: #fff;
  color: var(--ink);
}
dialog::backdrop { background: rgba(2, 6, 23, 0.62); }

#demo-form, .dialog-success { padding: 1.8rem 1.9rem; }

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dialog-head h2 { font-size: 1.4rem; letter-spacing: -0.02em; }

.dialog-close {
  flex: none;
  width: 44px; height: 44px;
  margin: -8px -10px 0 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--slate);
  line-height: 1;
}
.dialog-close:hover { background: var(--paper); color: var(--ink); }

.dialog-sub { margin-top: 0.5rem; color: var(--slate); font-size: 0.94rem; }

.field { margin-top: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 0;
  border-color: var(--blue-600);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

#demo-form .btn-block { margin-top: 1.4rem; }

.form-error {
  margin-top: 1rem;
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 550;
}

.dialog-alt {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--slate);
}

.dialog-success p { margin-top: 0.8rem; color: var(--slate); }

/* ---------- Subpages (about, privacy, terms) ---------- */

.subpage { background: var(--paper); }
.prose-page { padding: 4rem 0 6rem; max-width: 680px; }
.prose-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 1.4rem 0 1rem; }
.prose-page p { margin-top: 1rem; color: var(--slate); }
.back-link { font-weight: 600; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .span-5, .span-6, .span-7 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-sub { max-width: 40rem; }
  .hero-visual { max-width: 620px; }
  .trace-grid { grid-template-columns: 1fr; }
  .receipt-card { grid-template-columns: 1fr; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .claims-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-row { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .site-nav .nav-sheet-cta { display: inline-flex; margin-top: 0.6rem; color: #fff; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 1.25rem 1.4rem;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    color: var(--ink);
    font-size: 1.05rem;
    padding: 0.7rem 0.6rem;
  }
  .site-header.is-top .site-nav a { color: var(--ink); }

  body.nav-open .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--line);
  }
  body.nav-open .site-header .brand { color: var(--blue-700); }
  body.nav-open .site-header .nav-toggle-box::before,
  body.nav-open .site-header .nav-toggle-line,
  body.nav-open .site-header .nav-toggle-box::after { background: var(--ink); }

  .op-panels { grid-template-columns: 1fr; }
  .op-arrow { flex-direction: row; justify-content: center; gap: 0.6rem; padding: 0.2rem 0; }
  .op-arrow svg { transform: rotate(90deg); width: 36px; height: 36px; }
}

@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }
  .container { width: min(1120px, 100% - 2rem); }

  .span-4, .span-5, .span-6, .span-7 { grid-column: span 12; }
  .loop { grid-template-columns: 1fr; }
  .claims-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .tl::before { left: 26px; }
  .tl-stop {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 0;
  }
  .tl-time { justify-self: start; }
  .thumb { width: 200px; margin-top: 0.3rem; }

  .cool { grid-template-columns: repeat(2, 1fr); }

  .float-toast { top: -14px; right: 4px; max-width: 210px; }
  .float-chip { bottom: 140px; left: 4px; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-ctas .btn { width: 100%; }
  .final-ctas .btn { width: auto; }
  .trust-strip { font-size: 0.85rem; }

  .early-card { padding: 2rem 1.5rem; }
  .receipt-card { padding: 1.4rem 1.4rem; }
}

@media (max-width: 480px) {
  .ui { font-size: 11.5px; padding: 14px 12px 12px; }
  .ui-btn { font-size: 10px; padding: 4px 8px; }
  .ui-sub { white-space: normal; }
  .ui-row { flex-wrap: wrap; row-gap: 4px; }
  .op-lines { font-size: 0.8rem; }
  .stage-pills span, .report-chips span { font-size: 10px; }
}

/* ---------- Product dropdown (header) ---------- */

.nav-drop { position: relative; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--slate);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  min-height: 44px;
}
.nav-drop-btn:hover { color: var(--ink); background: rgba(15, 23, 42, 0.05); }
.nav-drop-btn .caret { transition: transform 0.18s ease; }
.nav-drop.open .nav-drop-btn .caret { transform: rotate(180deg); }
.site-header.is-top .nav-drop-btn { color: rgba(255, 255, 255, 0.82); }
.site-header.is-top .nav-drop-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  z-index: 60;
}
.nav-drop.open .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }

.nav-drop-menu a {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  min-height: 44px;
}
.site-header.is-top .nav-drop-menu a { color: var(--ink); }
.nav-drop-menu a:hover { background: var(--blue-tint); color: var(--blue-700); text-decoration: none; }

.site-nav a[aria-current="page"],
.nav-drop-menu a[aria-current="page"] { color: var(--blue-700); }

@media (max-width: 880px) {
  .nav-drop { position: static; }
  .nav-drop-btn { display: none; }
  .nav-drop-menu {
    position: static;
    display: block;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .nav-drop-menu a { font-size: 1.05rem; padding: 0.7rem 0.6rem; }
  .nav-drop-menu::before {
    content: "Product";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.5rem 0.6rem 0.15rem;
  }
  .nav-group-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.7rem 0.6rem 0.15rem;
  }
}

/* ---------- Interior page hero ---------- */

.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 56px) 0 60px;
  background:
    radial-gradient(950px 480px at 14% -14%, rgba(37, 99, 235, 0.5), transparent 62%),
    radial-gradient(760px 440px at 96% 16%, rgba(29, 78, 216, 0.38), transparent 58%),
    radial-gradient(620px 360px at 55% 115%, rgba(248, 113, 113, 0.12), transparent 62%),
    var(--navy);
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.4rem);
  letter-spacing: -0.028em;
  line-height: 1.07;
  max-width: 21ch;
}
.page-hero .lede-dark { font-size: 1.13rem; }
.page-hero .hero-ctas { margin-top: 1.9rem; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3.5rem;
  align-items: center;
}
.page-hero-grid > * { min-width: 0; }

/* ---------- Feature rows (alternating copy + screen) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
  padding: 3rem 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.band-dark .feature-row + .feature-row { border-top-color: rgba(255, 255, 255, 0.1); }
.feature-row.flip .feature-media { order: -1; }

.feature-copy h2, .feature-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 750;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.feature-copy > p { margin-top: 0.8rem; color: var(--slate); font-size: 1.02rem; }
.band-dark .feature-copy > p { color: #b6c4e6; }

.feature-points { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.feature-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate);
  font-size: 0.97rem;
}
.band-dark .feature-points li { color: #b6c4e6; }
.feature-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
}
.feature-points li strong { color: var(--ink); }
.band-dark .feature-points li strong { color: #fff; }

.feature-link { margin-top: 1.2rem; display: inline-block; font-weight: 650; }

/* ---------- Phone frame (driver app) ---------- */

.phone {
  width: 280px;
  margin-inline: auto;
  background: #fff;
  border: 8px solid #0d1330;
  border-radius: 38px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-bar {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  background: #fff;
}
.phone-bar::before {
  content: "";
  width: 74px; height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
}
.phone-body { padding: 12px 14px 18px; font-size: 12px; }
.phone .ui-row { font-size: 11.5px; }

/* ---------- Orders board (kanban) ---------- */

.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  padding: 14px;
}
.kb-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-width: 0;
}
.kb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 2px 6px;
}
.kb-head b { color: var(--blue-700); font-variant-numeric: tabular-nums; }
.kb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--slate);
}
.kb-card strong { display: block; color: var(--ink); font-size: 10.5px; }

/* ---------- Report table ---------- */

.rpt { padding: 14px; overflow-x: auto; }
.rpt-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 750;
  padding: 2px 2px 10px;
}
.rpt-table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.rpt-table th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.rpt-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f7; color: var(--ink); }
.rpt-table .num { text-align: right; }
.rpt-table .pos { color: var(--green); font-weight: 650; }
.rpt-table .neg { color: var(--red-deep); font-weight: 650; }

/* ---------- Command palette (Ctrl-K) ---------- */

.palette {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 460px;
}
.palette-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}
.palette-input .kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--paper);
}
.palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--slate);
  border-bottom: 1px solid #f1f5f9;
}
.palette-row .ui-lot { flex: none; }
.palette-answer {
  padding: 12px 14px;
  background: var(--blue-tint);
  font-size: 12.5px;
  color: var(--ink);
}
.palette-answer strong { font-variant-numeric: tabular-nums; }

/* ---------- Document mock (invoice / statement) ---------- */

.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  font-size: 11px;
  color: var(--ink);
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.doc-head .doc-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue-700); }
.doc-head .doc-brand svg { width: 16px; height: 16px; }
.doc-meta { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.doc td, .doc th { padding: 5px 4px; text-align: left; font-size: 10.5px; }
.doc th { color: #64748b; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.doc td { border-bottom: 1px solid #f1f5f9; }
.doc .num { text-align: right; }
.doc .doc-lot { font-family: var(--mono); font-size: 9px; color: var(--blue-700); }
.doc-total td { font-weight: 750; border-top: 2px solid var(--ink); border-bottom: 0; }

/* ---------- Tick grid (pricing: everything included) ---------- */

.tick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 2.2rem;
  margin-top: 2.4rem;
}
.tick-grid li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.97rem;
  font-weight: 550;
  color: var(--ink);
}
.tick-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1.5px solid var(--green);
}
.tick-grid li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: calc(0.28em + 4px);
  width: 7px; height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- Compare (the patchwork vs one system) ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.6rem;
  align-items: stretch;
}
.compare-col {
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
}
.compare-col h3 { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
.compare-col ul { margin-top: 1rem; display: grid; gap: 0.55rem; }
.compare-col li { position: relative; padding-left: 1.7rem; font-size: 0.95rem; }
.compare-bad { background: var(--paper); border: 1px solid var(--line); color: var(--slate); }
.compare-bad li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  top: -0.1em;
  color: var(--red-deep);
  font-size: 1.15rem;
  font-weight: 700;
}
.compare-good { background: var(--navy); color: #dbe6ff; border: 1px solid var(--navy); }
.compare-good h3 { color: #fff; }
.compare-good li { color: #c3cfec; }
.compare-good li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 8px; height: 5px;
  border-left: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: rotate(-45deg);
}

/* ---------- Explore cards (home hub + related pages) ---------- */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.8rem;
}
.explore-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.explore-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-600);
}
.explore-card h3 { font-size: 1.08rem; font-weight: 750; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 0.5rem; }
.explore-card h3::after { content: "\2192"; color: var(--blue-700); font-weight: 500; }
.explore-card p { margin-top: 0.45rem; color: var(--slate); font-size: 0.93rem; }

.tile-link { display: inline-block; margin-top: 0.7rem; font-weight: 650; font-size: 0.9rem; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-grid > * { min-width: 0; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }

.contact-aside h2 { font-size: 1.3rem; letter-spacing: -0.018em; }
.contact-aside .loop { margin-top: 1.4rem; grid-template-columns: 1fr; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.8rem 1.5rem; }
}

/* ---------- Page CTA band + misc ---------- */

.page-section { padding: 5rem 0; }
.page-section-tight { padding: 3.4rem 0; }

.screen-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}
.band-dark .screen-caption { color: #8ea4d6; }

@media (max-width: 1020px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .tick-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.4rem 0; }
  .feature-row.flip .feature-media { order: 0; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tick-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Motion system v2 ---------- */

/* Richer reveals with per-item stagger (JS sets --d on grid children) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Aurora drift behind dark heroes and the final band */
.hero, .page-hero, .final-cta { position: relative; overflow: clip; }
.hero::before, .page-hero::before, .final-cta::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(38% 44% at 24% 30%, rgba(37, 99, 235, 0.34), transparent 70%),
    radial-gradient(30% 38% at 76% 18%, rgba(124, 176, 255, 0.16), transparent 70%),
    radial-gradient(24% 30% at 62% 82%, rgba(248, 113, 113, 0.13), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero > .container, .page-hero > .container, .final-cta > .container,
.hero .marquee { position: relative; z-index: 1; }
@keyframes aurora {
  0% { transform: translate3d(-2.5%, -2%, 0) rotate(-1deg) scale(1); }
  100% { transform: translate3d(2.5%, 2%, 0) rotate(1deg) scale(1.07); }
}

/* Gradient-inked words in headings */
.grad {
  background: linear-gradient(94deg, #7cb0ff 0%, #c9dcff 52%, #f8a5a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Marquee (hero trust strip) */
.marquee {
  overflow: hidden;
  margin-top: 4rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  white-space: nowrap;
  color: #a7b6dc;
  font-size: 0.93rem;
}
.marquee-track span::after { content: "\00b7"; color: rgba(255, 255, 255, 0.32); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Demo player (hero): stacked scenes + video-style HUD */
.player-body { display: grid; }
.player-body .op-bubble { margin: 4px 0 2px; font-size: 0.85rem; }
.player-body .scene {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}
.player-body .scene.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.player-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.player-btn {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-btn:hover { background: var(--blue-tint); }
.player-label {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-segs { display: flex; gap: 5px; flex: none; }
.player-seg {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.player-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--blue-600);
  transform: translateX(-101%);
}
.player-seg.done::after { transform: none; }
.player-seg.now::after { animation: seg-fill 5200ms linear forwards; }
@keyframes seg-fill { from { transform: translateX(-101%); } to { transform: none; } }

/* Inbox rows that arrive one by one (JS loops the .landed class) */
[data-loop-rows] .ui-row { transition: opacity 0.45s ease, transform 0.45s ease; }
[data-loop-rows].looping .ui-row { opacity: 0; transform: translateY(9px); }
[data-loop-rows].looping .ui-row.landed { opacity: 1; transform: none; }

/* Kanban card movement */
.kb-card { transition: opacity 0.4s ease, transform 0.4s ease; }
.kb-card.kb-out { opacity: 0; transform: translateY(-8px); }
.kb-card.kb-in { animation: kb-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes kb-in { from { opacity: 0; transform: translateY(10px); } }

/* Coolroom life */
.cool .lf-warn, .cool .lf-hot { animation: pulse-soft 2.8s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.lot-kg { transition: color 0.3s ease; }
.lot-kg.tick { animation: kg-flash 0.9s ease; }
@keyframes kg-flash { 0% { color: #34d399; } }

/* Pointer tilt on the hero screen */
.tilt { transition: transform 0.3s ease; will-change: transform; }

/* Timeline progress line drawn on scroll */
.tl { --tl-p: 0; }
.tl::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 10px;
  width: 2px;
  height: calc((100% - 20px) * var(--tl-p));
  background: linear-gradient(180deg, var(--blue-600), var(--red-soft));
  border-radius: 2px;
}

/* Button and card micro-interactions */
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.85); }
.explore-card h3::after { transition: transform 0.25s ease; }
.explore-card:hover h3::after { transform: translateX(4px); }
.frame { transition: box-shadow 0.35s ease; }
.feature-media .frame:hover, .feature-media .op-panel:hover {
  box-shadow: 0 30px 70px -20px rgba(8, 18, 56, 0.4), 0 10px 28px -12px rgba(8, 18, 56, 0.28);
}

@media (max-width: 640px) {
  .tl::after { left: 26px; }
  .marquee { margin-top: 2.6rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .float-toast, .float-chip, .final-mark { animation: none; }
  .hero::before, .page-hero::before, .final-cta::before { animation: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; row-gap: 0.5rem; }
  .cool .lf-warn, .cool .lf-hot { animation: none; }
  .player-seg.now::after { animation: none; transform: none; }
  .player-body .scene { transition: none; }
  [data-loop-rows].looping .ui-row { opacity: 1; transform: none; }
  .tl::after { display: none; }
}
