/* DataNXT — Tally design system · components
   ----------------------------------------------------------------------------
   This sheet is self-contained: pages that load it do NOT load main.css /
   responsive.css, so there is no cascade fight with the legacy system. It
   styles two things:

     1. The shared chrome (nav + footer) rendered by build-includes.js. Those
        keep their legacy class names and IDs so main.js keeps working — only
        the presentation changes.
     2. The Tally page components used by the redesigned pages.

   Selector discipline: one class per component root, BEM-ish children, no
   element selectors carrying spacing. Section padding lives on the section
   class alone so nothing silently doubles.
*/

@import url("./tokens.css");
/* Inner-page components (heroes, cards, forms, articles, legal documents).
   Imported after the tokens and before the rules below so anything here can
   still override it. */
@import url("./pages.css");
/* Consent manager (bottom bar, content blocker, history modal). Loaded on
   every page because the footer include ships consent.js site-wide. */
@import url("./consent.css");

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

html,
body { margin: 0; padding: 0; }

html {
  font-family: var(--font-body);
  color: var(--color-ink-0);
  background: var(--color-paper-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-size: var(--text-base);
  line-height: 1.55;
  background:
    radial-gradient(1200px 620px at 10% -12%, color-mix(in oklch, var(--color-accent-tint) 78%, transparent), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, color-mix(in oklch, var(--color-companion-tint) 70%, transparent), transparent 58%),
    var(--color-paper-0);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--color-accent); color: var(--color-paper-0); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ───────── layout primitives ───────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (max-width: 560px) {
  .container { padding-inline: var(--space-lg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.eyebrow::before {
  content: "◇";
  color: var(--color-accent);
  letter-spacing: 0;
}

.italic-accent {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--color-accent);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
  text-wrap: balance;
  margin-top: var(--space-sm);
}

.section-head__desc {
  font-size: var(--text-md);
  color: var(--color-ink-1);
  max-width: 52ch;
}

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: var(--space-md); align-items: start; }
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--color-ink-0);
  color: var(--color-paper-0);
  border-color: var(--color-ink-0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 24px -12px rgba(10, 20, 60, 0.45);
}

.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper-0);
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink-0);
  border-color: color-mix(in oklch, var(--color-ink-0) 18%, transparent);
}

.btn--ghost:hover {
  background: var(--color-paper-2);
  border-color: color-mix(in oklch, var(--color-ink-0) 26%, transparent);
}

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ───────── nav · floating pill (legacy markup, new presentation) ───────── */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 2 * var(--space-lg));
  max-width: 1180px;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 6px 8px 6px 16px;
  background: color-mix(in oklch, var(--color-paper-0) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  transition: background var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.navbar--scrolled .nav-container {
  background: color-mix(in oklch, var(--color-paper-0) 92%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 40px -16px rgba(16, 30, 70, 0.28);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 0 0 auto;
  margin-right: var(--space-2xs);
}

.logo-image { height: 32px; width: auto; }

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink-0);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--color-ink-1);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav-link:hover { background: var(--color-paper-2); color: var(--color-ink-0); }

.nav-link.active {
  color: var(--color-ink-0);
  font-weight: 500;
  background: var(--color-paper-2);
}

.nav-cta {
  margin-left: var(--space-xs);
  background: var(--color-ink-0);
  color: var(--color-paper-0);
  font-weight: 500;
  border: 1px solid var(--color-ink-0);
}

.nav-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper-0);
}

/* Landing on the CTA's own page must not restyle the pill — it keeps the same
   colours it has everywhere else. The extra scope is load-bearing: main.js
   appends `.nav-link.active { color: var(--royal-wave-blue) }` to the head at
   runtime, which ties with a bare `.nav-cta.active` on specificity and wins on
   order, painting accent text straight onto an accent fill. */
.navbar .nav-menu .nav-cta.active {
  background: var(--color-ink-0);
  border-color: var(--color-ink-0);
  color: var(--color-paper-0);
  font-weight: 500;
}

.navbar .nav-menu .nav-cta.active:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper-0);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding-left: var(--space-xs);
  margin-left: var(--space-2xs);
  border-left: var(--rule-hair);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-ink-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.lang-toggle:hover { background: var(--color-paper-2); color: var(--color-ink-0); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover { background: var(--color-paper-2); color: var(--color-ink-0); }

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; }

/* burger — hidden until the pill runs out of room */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 32px;
  padding: 0 7px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 1.6px;
  width: 100%;
  border-radius: 2px;
  background: var(--color-ink-1);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-controls { margin-left: auto; border-left: 0; padding-left: 0; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: var(--space-xs);
    background: color-mix(in oklch, var(--color-paper-0) 96%, transparent);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: var(--rule-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast);
  }

  .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-link { padding: 11px 14px; font-size: var(--text-base); border-radius: var(--radius-md); }
  .nav-cta { margin-left: 0; margin-top: var(--space-2xs); text-align: center; justify-content: center; }
}

body.nav-open { overflow: hidden; }

/* ───────── hero · marquee hero ───────── */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--color-ink-0) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--color-ink-0) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, black 28%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, black 28%, transparent 72%);
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  background: var(--color-paper-0);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-ink-1);
}

.hero__status .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  animation: pulse 1900ms var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-success) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in oklch, var(--color-success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-success) 0%, transparent); }
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-xl);
}

@media (max-width: 1000px) {
  .hero__layout { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0.36em 0 0.24em;
  max-width: 15ch;
}

.hero__sub {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-ink-1);
  max-width: 48ch;
  margin-bottom: var(--space-xl);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.hero__fineprint {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.hero__fineprint li::before {
  content: "·";
  margin-right: var(--space-md);
  color: var(--color-ink-3);
}

.hero__fineprint li:first-child::before { content: ""; margin: 0; }

/* ───────── signature · evidence card ─────────
   DataNXT's thesis is that every figure traces back to a source. The card
   states a derived KPI and shows the trail underneath it, so the claim and
   its receipts are visible in the same frame. */
.evidence {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  padding: var(--space-lg);
  background: var(--color-paper-0);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transform: rotate(0.5deg);
}

.evidence::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed color-mix(in oklch, var(--color-ink-0) 10%, transparent);
  border-radius: calc(var(--radius-lg) + 8px);
  pointer-events: none;
}

@media (max-width: 1000px) {
  .evidence { margin-inline: auto; transform: none; }
}

.evidence__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-hair);
}

.evidence__title { font-weight: 600; color: var(--color-ink-0); }

.evidence__meta {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
  margin-top: 2px;
}

.evidence__tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-success);
  background: color-mix(in oklch, var(--color-success) 18%, transparent);
}

.evidence__figure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-sm);
}

.evidence__figure .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-2);
}

.evidence__figure .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-0);
}

.evidence__trail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-sm) 0;
  border-top: var(--rule-hair);
}

.evidence__step {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-ink-1);
}

.evidence__step .src {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.evidence__step .src::before {
  content: "↳";
  color: var(--color-accent);
}

.evidence__step strong {
  font-weight: 500;
  color: var(--color-ink-0);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.evidence__bar {
  height: 6px;
  margin-top: var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-paper-3);
  overflow: hidden;
}

.evidence__bar > i {
  display: block;
  height: 100%;
  width: 92%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent), var(--color-companion));
}

.evidence__foot {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

/* ───────── marquee strip ───────── */
.marquee {
  position: relative;
  margin-top: var(--space-3xl);
  padding: var(--space-md) 0;
  border-top: var(--rule-hair);
  border-bottom: var(--rule-hair);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  animation: marquee 42s linear infinite;
}

.marquee__track li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* The star separates two slogans, so it needs the same air on both sides. It
   sits inside the <li>, which is why the track itself carries no gap — a gap
   would land entirely after the star and push it against the slogan it
   follows. */
.marquee__track li::after {
  content: "✦";
  margin: 0 var(--space-2xl);
  color: var(--color-accent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ───────── partners strip ───────── */
.partners { padding: var(--space-2xl) 0; }

.partners__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  margin-bottom: var(--space-lg);
}

.partners__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  opacity: 0.62;
}

.partners__logo:hover { opacity: 1; transform: translateY(-2px); }

.partners__logo img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

/* Dark band: the marks keep their own colours — several are coloured wordmarks
   that an invert would flatten to a white silhouette. Set them on a light plate
   instead, which is the ground they were drawn for. */
html[data-theme="dark"] .partners__logo {
  padding: var(--space-sm) var(--space-md);
  background: #ffffff;
  opacity: 0.88;
}

html[data-theme="dark"] .partners__logo:hover { opacity: 1; }

@media (max-width: 860px) {
  .partners__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-lg); }
}

@media (max-width: 480px) {
  .partners__row { grid-template-columns: repeat(2, 1fr); }
}

/* ───────── launch video ───────── */
.showcase { padding: var(--space-3xl) 0; }

.showcase__frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--rule-soft);
  background: var(--color-paper-1);
  box-shadow: var(--shadow-card);
  /* The embed is scaled; promoting the frame to its own layer makes the
     rounded clip rasterize cleanly at the corners. */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

.showcase__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* The player insets its 16:9 stage by ~11%; scale up so the video fills the
     frame edge to edge and let the frame clip the overscan. */
  transform: scale(1.13);
}

/* Seek bar — revealed only while the video is paused or hovered. */
.showcase__scrubber {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 18px;
  background: linear-gradient(180deg, rgba(8, 14, 32, 0) 0%, rgba(8, 14, 32, 0.6) 100%);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.showcase__frame.is-paused .showcase__scrubber,
.showcase__frame:hover .showcase__scrubber {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lvs-playpause {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.lvs-playpause:hover { background: rgba(255, 255, 255, 0.26); }
.lvs-playpause svg { width: 18px; height: 18px; fill: currentColor; }

.lvs-track {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  touch-action: none;            /* pointer drags scrub instead of scrolling */
  transition: height var(--dur-fast) var(--ease-out);
}

.showcase__scrubber:hover .lvs-track { height: 8px; }

.lvs-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
}

.lvs-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;          /* clicks and drags belong to the track */
}

.lvs-speed { position: relative; flex: 0 0 auto; display: flex; }

.lvs-speed-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.lvs-speed-toggle:hover,
.lvs-speed.is-open .lvs-speed-toggle { background: rgba(255, 255, 255, 0.22); }

.lvs-speed-toggle svg { width: 15px; height: 15px; fill: currentColor; }

.lvs-speed-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(10, 16, 34, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast);
}

.lvs-speed.is-open .lvs-speed-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lvs-speed-btn {
  min-width: 52px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.lvs-speed-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lvs-speed-btn.is-active { background: var(--color-accent); color: #fff; }

/* ───────── proof cards ───────── */
.proof { padding: var(--space-3xl) 0; }

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; } }

.proof__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border: var(--rule-soft);
  border-radius: var(--radius-lg);
  background: var(--color-paper-0);
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.proof__card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.proof__card:nth-child(1) { background: linear-gradient(160deg, var(--color-accent-tint), var(--color-paper-0) 58%); }
.proof__card:nth-child(2) { background: linear-gradient(160deg, var(--color-companion-tint), var(--color-paper-0) 58%); }
.proof__card:nth-child(3) { background: linear-gradient(160deg, color-mix(in oklch, var(--color-warning) 22%, var(--color-paper-0)), var(--color-paper-0) 58%); }

.proof__art {
  height: 132px;
  position: relative;
  border: var(--rule-hair);
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--color-paper-0) 70%, transparent);
  overflow: hidden;
}

/* 1 — a figure with its citations stacked beneath it */
.art-trace::before {
  content: "€ 4.812.660";
  position: absolute;
  top: 26px;
  left: 22px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink-0);
}

.art-trace::after {
  content: "↳ GB 2025 · S. 41   ↳ SAP FI · Konto 4400   ↳ Peer-Set (6)";
  position: absolute;
  top: 68px;
  left: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 2.1;
  color: var(--color-accent);
  white-space: pre-wrap;
}

/* The citation trail is CSS art, so its copy is language-switched here rather
   than in the markup. */
html[lang="en"] .art-trace::after {
  content: "↳ Annual report 2025, p. 41   ↳ SAP FI · GL 4400   ↳ Peer set (6)";
}

/* 2 — a review queue: two approved rows, one held for a human */
.art-review { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px; }

.art-review > i {
  height: 22px;
  border-radius: var(--radius-sm);
  border: var(--rule-hair);
  background: color-mix(in oklch, var(--color-success) 16%, var(--color-paper-0));
}

.art-review > i:nth-child(3) {
  background: color-mix(in oklch, var(--color-warning) 26%, var(--color-paper-0));
  border-color: color-mix(in oklch, var(--color-warning) 45%, transparent);
}

/* 3 — sources converging into one layer */
.art-context { padding: 22px; }

.art-context .node {
  position: absolute;
  padding: 4px 9px;
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  background: var(--color-paper-0);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-ink-1);
}

.art-context .node:nth-child(1) { top: 18px; left: 18px; }
.art-context .node:nth-child(2) { top: 18px; right: 18px; }
.art-context .node:nth-child(3) { bottom: 18px; left: 18px; }
.art-context .node:nth-child(4) {
  bottom: 18px;
  right: 18px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-paper-0);
}

.proof__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.proof__desc {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-ink-1);
}

/* ───────── workflows ───────── */
.workflows { padding: var(--space-3xl) 0; }

.workflows__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-hair);
}

@media (max-width: 760px) { .workflows__list { grid-template-columns: 1fr; } }

.workflows__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xs);
  border-bottom: var(--rule-hair);
  font-size: var(--text-md);
  color: var(--color-ink-0);
  transition: color var(--dur-fast) var(--ease-out);
}

/* The workflows are alternatives, not a sequence, so the marker is a plain
   pointer rather than a number — nothing here implies an order. */
.workflows__item::before {
  content: "→";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.workflows__item:hover { color: var(--color-accent); }
.workflows__item:hover::before { color: var(--color-accent); transform: translateX(3px); }

/* ───────── trust / integrations ───────── */
.trust { padding: var(--space-3xl) 0; }

/* No margin-top here — .section-head already owns the gap above it. */
.trust__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

.trust__chip {
  padding: 8px 15px;
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  background: var(--color-paper-0);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-ink-1);
}

/* ───────── closing CTA panel ───────── */
.closing { padding: var(--space-2xl) 0 var(--space-4xl); }

.closing__panel {
  position: relative;
  isolation: isolate;
  padding: var(--space-4xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--color-ink-0);
  color: var(--color-on-ink-0);
  text-align: center;
  overflow: hidden;
}

.closing__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 220px at 18% 112%, color-mix(in oklch, var(--color-accent) 62%, transparent), transparent 70%),
    radial-gradient(520px 240px at 88% -12%, color-mix(in oklch, var(--color-companion) 48%, transparent), transparent 70%);
}

.closing__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* On the dark theme --color-ink-0 is near-white, so the panel's own text and
   buttons must flip with it. */
html[data-theme="dark"] .closing__panel { color: var(--color-paper-0); }

html[data-theme="dark"] .closing__panel::after {
  background-image:
    linear-gradient(to right, rgba(10, 18, 40, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 18, 40, 0.06) 1px, transparent 1px);
}

.closing__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

.closing__title .italic-accent { color: var(--color-companion); }

.closing__sub {
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  font-size: var(--text-md);
  color: color-mix(in oklch, var(--color-on-ink-0) 78%, transparent);
}

html[data-theme="dark"] .closing__sub { color: color-mix(in oklch, var(--color-paper-0) 78%, transparent); }

.closing__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.closing__panel .btn--primary {
  background: var(--color-paper-0);
  color: var(--color-ink-0);
  border-color: var(--color-paper-0);
}

.closing__panel .btn--primary:hover {
  background: var(--color-companion);
  border-color: var(--color-companion);
  color: oklch(21% 0.045 255);
}

.closing__panel .btn--ghost {
  color: var(--color-on-ink-0);
  border-color: rgba(255, 255, 255, 0.22);
}

.closing__panel .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); }

html[data-theme="dark"] .closing__panel .btn--ghost { color: var(--color-paper-0); }

/* ───────── footer (legacy markup, new presentation) ───────── */
.footer {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-top: var(--rule-hair);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 780px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-content { grid-template-columns: 1fr; } }

.footer-section { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-logo img { height: 22px; width: auto; }

.footer-tagline,
.footer-cta {
  font-size: var(--text-sm);
  color: var(--color-ink-1);
  max-width: 40ch;
}

.footer-cta { color: var(--color-ink-2); }

.footer-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-sm); }
.footer-links a { color: var(--color-ink-1); transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--color-ink-0); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

.footer-social { display: flex; gap: var(--space-xs); }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.social-link:hover { background: var(--color-paper-2); color: var(--color-ink-0); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }

.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.footer-bottom-links a { transition: color var(--dur-fast) var(--ease-out); }
.footer-bottom-links a:hover { color: var(--color-ink-0); }
.footer-bottom-links span { color: var(--color-ink-3); }

@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ───────── scroll reveal ───────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
