/* Self-hosted Inter — deliberately not Google Fonts, so the site makes zero
   third-party requests and no visitor IP leaves the origin. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #031024;
  --bg-2: #061a38;
  --panel: rgba(12, 30, 62, .72);
  --panel-strong: #0a1d3d;
  --line: rgba(151, 183, 231, .16);
  --text: #f7faff;
  --muted: #aebbd2;
  --blue: #1677ff;
  --blue-2: #49b6ff;
  --cyan: #62e6ff;
  --green: #4de7a4;
  --shadow: 0 30px 80px rgba(0, 34, 112, .32);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(0, 111, 255, .20), transparent 28%),
    radial-gradient(circle at 18% 35%, rgba(28, 112, 255, .10), transparent 27%),
    linear-gradient(180deg, #020b1b 0%, var(--bg) 42%, #020b18 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Visible keyboard focus everywhere — previously there was none at all. */
:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(2,11,27,.92), rgba(2,11,27,.68));
  /* No backdrop-filter: re-blurring the animations scrolling underneath cost
     whole frames, and the near-opaque background makes it invisible anyway. */
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: padding .25s ease, background .25s ease;
}

/* Denser bar once the page has scrolled, so it costs less vertical space. */
.nav-wrap.scrolled {
  padding: 8px 0;
  background: linear-gradient(to bottom, rgba(2,11,27,.97), rgba(2,11,27,.86));
}
.nav-wrap.scrolled .brand img { height: 46px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.brand { order: 1; }
.nav-links { order: 2; }
.nav-actions { order: 3; }

.brand {
  display: inline-flex;
  align-items: center;
  width: 204px;
  min-width: 180px;
}

.brand img {
  width: 100%;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(64, 148, 255, .35));
  transition: height .25s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cad5e8;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-links a:hover { color: white; }

/* Active section indicator, driven by the scroll-spy in js/main.js */
.nav-links a[aria-current="true"] { color: white; }
.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid rgba(159,190,236,.22);
  color: white;
  background: rgba(255,255,255,.025);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(92,164,255,.65);
  background: rgba(34,102,217,.12);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0b63ff, #1689ff);
  box-shadow: 0 14px 34px rgba(0,101,255,.30);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #287dff, #19a0ff);
  box-shadow: 0 18px 42px rgba(0,101,255,.42);
}

.hero {
  min-height: 720px;
  display: grid;
  /* minmax(0, …) so a wide child can't force the track past the container.
     Without it, .motion-stage's fixed width blows the hero out on phones. */
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 40px;
  padding: 78px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(51,144,255,.38);
  color: #54a9ff;
  background: rgba(10,85,184,.12);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 18px var(--blue-2);
}

h1 {
  margin: 22px 0 20px;
  font-size: clamp(52px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 730px;
}

.accent-text {
  color: #0d79f9; /* logo "Motion" blue */
}

.hero-copy > p {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #bac7dc;
  font-size: 13px;
}

.micro-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.micro-proof i {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(42,145,255,.15); color: #62b5ff;
  font-style: normal; font-size: 11px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(20,127,255,.42), rgba(6,57,156,.15) 45%, transparent 70%);
  filter: blur(3px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.06); opacity: .78; }
}

.float-card {
  position: absolute;
  width: 205px;
  padding: 16px;
  border: 1px solid rgba(122,178,255,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10,30,65,.92), rgba(4,18,42,.82));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: float 5s ease-in-out infinite;
}

.float-card strong { display: block; margin-top: 5px; font-size: 25px; }
.float-card small { color: var(--muted); }
.float-card em { color: var(--green); font-style: normal; font-size: 12px; }
.card-a { top: 205px; right: -24px; }
.card-b { bottom: 42px; left: -22px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

section { padding: 105px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
/* The workflow heading and the use-case intro read as one line wherever the
   container allows it; their neighbours keep the usual measure. */
#how .section-head, #use-cases .section-head { max-width: none; }
#how .section-head p, #use-cases .section-head h2 { max-width: 760px; }

.feature, .use-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18,43,83,.62), rgba(5,18,42,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* Cards previously had no pointer response at all. */
@media (hover: hover) {
  .feature:hover, .use-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92,164,255,.42);
    box-shadow: 0 22px 50px rgba(0,34,112,.34), inset 0 1px 0 rgba(255,255,255,.05);
  }
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
  border: 1px solid rgba(93,151,238,.20);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(5,18,42,.96), rgba(10,37,79,.76));
  padding: 18px;
  box-shadow: var(--shadow);
}

.checklist { display: grid; gap: 13px; }
.check {
  display: flex; align-items: flex-start; gap: 11px;
  color: #dce6f6;
}
.check b {
  width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(27,130,255,.18);
  color: #63b7ff;
  font-size: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature { padding: 22px 24px 24px; }
/* Small icon beside the title, so the card is only as tall as its text. */
.feature-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid #d7e4fb;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--blue);
}
.icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 0; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }

.uses {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 16px;
}
.use-card { padding: 28px; }
/* The primary card spans both rows; its figure sits at the bottom. */
.use-card:first-child { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.use-card:first-child p { margin-bottom: 26px; }
/* Three cards beside it: the last one fills the bottom row. */
.use-card:last-child { grid-column: span 2; }
.use-card h3 { margin: 24px 0 10px; font-size: 23px; }
.use-card p { margin: 0; color: var(--muted); }
.use-card .tag {
  display: inline-flex; padding: 5px 9px; border-radius: 999px;
  color: #67b8ff; background: rgba(19,115,255,.12);
  border: 1px solid rgba(57,144,255,.17);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}

.security {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.security-visual {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(24,126,255,.18), transparent 55%), rgba(5,19,43,.7);
}
.security-copy h2 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.03; letter-spacing: -.045em;
  margin: 16px 0;
}
.security-copy > p { margin-bottom: 0; color: var(--muted); font-size: 18px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-copy h2 {
  margin: 16px 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05; letter-spacing: -.045em;
}
.about-copy p { color: var(--muted); font-size: 18px; }
.team { display: grid; gap: 14px; }
.person {
  display: grid; grid-template-columns: 62px 1fr; gap: 15px;
  align-items: center; padding: 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.avatar {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #116dff, #073c9f);
  font-weight: 900; font-size: 19px;
}
.person h3 { margin: 0 0 2px; font-size: 17px; }
.person p { margin: 0; color: var(--muted); font-size: 14px; }

.cta {
  padding: 36px;
  border-radius: 30px;
  border: 1px solid rgba(86,157,255,.28);
  background:
    radial-gradient(circle at 82% 50%, rgba(33,134,255,.25), transparent 35%),
    linear-gradient(135deg, #071b3b, #05142d);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}
.cta h2 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; }
.cta p { margin: 0; color: var(--muted); }
.cta-copy > p { font-size: 18px; }
.cta-copy .mail-fallback { display: inline-flex; margin-top: 28px; }

/* Demo request form. It sends nothing itself; see js/main.js. */
.demo-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15,39,118,.10);
}
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.demo-form label {
  display: grid;
  gap: 7px;
  color: #445573;
  font-size: 13px;
  font-weight: 650;
}
.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.demo-form input:focus,
.demo-form select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16,100,255,.14);
}
.demo-form .btn { width: 100%; margin-top: 4px; }
.cta .form-note { font-size: 13px; text-align: center; }

/* Always-visible address, so a missing mail client is never a dead end. */
.mail-fallback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 14px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.mail-fallback code {
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
}
.mail-fallback.flash {
  border-color: rgba(92,164,255,.75);
  background: rgba(34,102,217,.14);
  box-shadow: 0 0 0 4px rgba(22,119,255,.14);
}

.copy-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid rgba(159,190,236,.28);
  background: rgba(255,255,255,.04);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.copy-btn:hover { border-color: rgba(92,164,255,.65); background: rgba(34,102,217,.16); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

.scope-note {
  margin: 26px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

footer {
  padding: 48px 0 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #9cabc2;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .7fr .8fr .6fr; gap: 35px;
}
.footer-brand img { width: 205px; height: 58px; object-fit: contain; object-position: left; }
.footer-brand p { max-width: 410px; }
footer h4 { color: white; margin: 0 0 12px; }
footer a { display: block; margin: 8px 0; }
footer a:hover { color: white; }
/* Footer entries for pages that are not published yet (see README → legal pages). */
footer .link-disabled { display: block; margin: 8px 0; opacity: .55; cursor: default; }
/* "Coming soon" stays in the markup for screen readers but is not shown. */
footer .link-disabled small {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.copyright {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; gap: 20px; font-size: 13px;
}

/* ---------- Legal pages (privacy.html, imprint.html) ---------- */
.legal { padding: 60px 0 90px; max-width: 780px; }
.legal h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 20px 0 10px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 42px; }
.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -.02em;
}
.legal p, .legal li { color: #ccd8ea; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: 190px 1fr; gap: 10px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: #ccd8ea; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: white; }

.draft-notice {
  margin: 0 0 34px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 182, 72, .45);
  border-radius: 14px;
  background: rgba(255, 182, 72, .08);
  color: #ffdcab;
  font-size: 14px;
  line-height: 1.6;
}
.draft-notice b { color: #ffcf8a; }

/* Unfilled placeholder — deliberately loud so it cannot ship unnoticed. */
.todo {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed #ffb648;
  background: rgba(255, 182, 72, .12);
  color: #ffcf8a;
  font-size: .92em;
  font-weight: 700;
}

@media (max-width: 680px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal dd { margin-bottom: 14px; }
}

/* Scroll-triggered reveal. Elements start hidden only once JS confirms it can
   observe them (html.js-reveal), so the page stays fully visible without JS. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  /* The section links move to a second row and stay visible while scrolling,
     instead of collapsing behind a hamburger. */
  nav { gap: 10px 16px; }
  /* Hides any secondary nav button, but never the back button on the
     legal/404 pages — that is their only nav control. */
  .nav-actions .btn:not(.btn-primary):not(.btn-back) { display: none; }

  /* Brand + CTA share row one; the link strip wraps to row two. */
  .nav-actions { order: 2; }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Break out of .container so the strip is swipeable edge-to-edge. */
    margin-inline: -20px;
    padding: 2px max(20px, env(safe-area-inset-right)) 2px max(20px, env(safe-area-inset-left));
    -webkit-mask-image: linear-gradient(90deg, transparent, black 18px, black calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, black 18px, black calc(100% - 18px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    font-size: 13px;
    font-weight: 650;
  }
  .nav-links a[aria-current="true"] {
    border-color: rgba(57,144,255,.55);
    background: rgba(19,115,255,.16);
    color: white;
  }
  /* The underline is a desktop affordance; the pill carries it here. */
  .nav-links a[aria-current="true"]::after { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 60px; }
  .hero-visual { min-height: 500px; }
  .workflow-panel, .security, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .use-card:first-child, .use-card:last-child { grid-row: auto; grid-column: 1 / -1; }
  .cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { width: 150px; min-width: 130px; }
  .brand img { height: 44px; }
  .nav-wrap.scrolled .brand img { height: 38px; }

  /* The primary CTA stays put, just smaller. */
  .nav-actions .btn-primary { min-height: 40px; padding: 0 15px; font-size: 13px; }

  .nav-links { margin-inline: -14px; padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }

  h1 { font-size: 48px; }
  .hero { min-height: auto; padding-top: 45px; }
  .hero-copy > p { font-size: 17px; }
  .hero-visual { min-height: 390px; }
  .float-card { transform: scale(.82); }
  .card-a { left: -24px; right: auto; top: -4px; }
  .card-b { left: -30px; bottom: 6px; }
  .features, .uses, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
  .use-card:first-child, .use-card:last-child { grid-column: auto; }
  .security-visual { padding: 12px; border-radius: 22px; }
  .cta { gap: 28px; }
  .cta-copy { padding: 10px 8px 0; }
  .demo-form { padding: 20px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .copyright { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Never leave revealed content stuck at opacity 0 for these users. */
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
}

/* Spacing utilities — used in place of inline style attributes so the site can
   ship a strict Content-Security-Policy without style-src 'unsafe-inline'. */
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }

/* ---------- TrackMotion light visual system ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f7fc;
  --panel: #ffffff;
  --panel-strong: #f6f8fc;
  --line: #dce4f0;
  --text: #0f2776;
  --muted: #5f6f88;
  --blue: #1064ff;
  --blue-2: #1064ff;
  --cyan: #1064ff;
  --green: #14855f;
  --shadow: 0 22px 60px rgba(15, 39, 118, .11);
}

body {
  color: var(--text);
  background: #fff;
}

body::before {
  opacity: .75;
  background-image:
    linear-gradient(rgba(15,39,118,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,39,118,.025) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black, transparent 34%);
}

.nav-wrap,
.nav-wrap.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(15,39,118,.09);
  box-shadow: 0 8px 30px rgba(15,39,118,.04);
}

.brand { width: 88px; min-width: 88px; }
.brand img {
  height: 82px;
  filter: none;
  object-fit: contain;
  object-position: center;
}
.nav-wrap.scrolled .brand img { height: 66px; }
.nav-links { color: #445573; }
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--text); }

.btn {
  border-color: #cfd9e8;
  color: var(--text);
  background: #fff;
  box-shadow: 0 5px 14px rgba(15,39,118,.04);
}
.btn:hover { border-color: #1064ff; background: #f5f8ff; }
.btn-primary,
.btn-primary:hover {
  color: #fff;
  border-color: transparent;
  background: #0f2776;
  box-shadow: 0 14px 32px rgba(15,39,118,.22);
}
.btn-primary:hover {
  background: #0f2776;
  box-shadow: 0 18px 38px rgba(15,39,118,.28);
}

/* German compounds ("Bewegungswissenschaft") are wider than a phone at heading
   size; there, let the browser hyphenate them at syllables instead of
   overflowing. Wider screens fit them whole, so nothing is hyphenated. */
@media (max-width: 680px) {
  :lang(de) h1, :lang(de) h2, :lang(de) h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* DE/EN switch beside the Contact button. Not a .btn, so the mobile rule that
   hides secondary buttons leaves it visible. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd9e8;
  border-radius: 11px;
  color: #445573;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  transition: border-color .2s ease, color .2s ease;
}
.lang-switch:hover { border-color: #1064ff; color: var(--text); }

.hero {
  min-height: 680px;
  padding-top: 64px;
}
.hero::before { display: none; }
.hero-copy > p,
.micro-proof,
.section-head p,
.feature p,
.use-card p,
.security-copy > p,
.about-copy p,
.person p,
.cta p,
.scope-note { color: var(--muted); }

.eyebrow {
  border-color: #c9daf7;
  color: #0f2776;
  background: #f7f9fc;
}
.eyebrow::before { box-shadow: none; background: var(--blue); }

/* One palette for every drawing on the page (hero skeleton, workflow
   walkthrough, card illustrations, privacy diagram), so they read as a family. */
:root {
  --wf-floor: #fff;
  --wf-floor-l: #e1e8f3;
  --wf-floor-r: #d0dbec;
  --wf-grid: #b7c5dc;
  --wf-device: #0f2776;
  --wf-body: #4b5b7c;
  --wf-body-far: #a3b0c8;
  --wf-torso: #5d6d90;
  --wf-accent: #1064ff;
  --wf-prev: #e8590c;   /* earlier session in the chart */
  --wf-rec: #ef4444;
  --wf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Hero figure: a person doing a squat with the tracked skeleton on top. It is
   deliberately not in a card. The floor fades out into the page so the figure
   sits in the same space as the headline beside it. */
.motion-stage {
  position: relative;
  width: min(520px, 100%);
  color: var(--text);
  /* Faint blue wash behind the figure, in place of a frame. */
  background: radial-gradient(ellipse 46% 40% at 50% 44%, rgba(16,100,255,.09), transparent 72%);
}
.motion-stage svg {
  display: block;
  width: 100%;
  height: auto;
}
.hs-grid line { stroke: var(--wf-grid); }
.hs-shadow { fill: var(--text); fill-opacity: .1; }
/* The body is drawn first, then the skeleton over it. Limb widths are set per
   line in the markup and script. */
.hs-body line { stroke: var(--wf-body-far); stroke-linecap: round; }
.hs-body circle { fill: var(--wf-body-far); }
.hs-arc { fill: var(--wf-accent); fill-opacity: .14; stroke: var(--wf-accent); stroke-width: 1.5; }
.hs-ref { stroke: var(--wf-body-far); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.hs-bones line { stroke: var(--wf-accent); stroke-width: 3.5; stroke-linecap: round; }
.hs-head { fill: none; stroke: var(--wf-accent); stroke-width: 3.5; }
.hs-joints circle { fill: var(--wf-floor); stroke: var(--wf-accent); stroke-width: 2.5; }
.hs-label { fill: var(--text); font-size: 13px; font-weight: 750; }
/* Live readouts: a plain row of figures under the floor, no boxes. */
.stage-readout {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
/* Fixed cell width: the row must not shift as 9° becomes 138°. */
.stage-readout div { flex: 0 0 134px; padding: 2px 0 2px 26px; border-left: 1px solid var(--line); }
.stage-readout div:first-child { border-left: 0; }
.stage-readout small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stage-readout strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  /* Fixed-width digits, so the row does not shift as the numbers change. */
  font-variant-numeric: tabular-nums;
}
.hero-visual { min-height: 560px; }
/* Side-by-side hero: the text gets the larger share, so the intro paragraph
   fits in two lines. The figure stands in the middle of a wide, faded floor,
   so the visual is pulled left over that empty edge to close the gap. */
@media (min-width: 981px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 32px; }
  .hero-visual { margin-left: -48px; }
}

section:nth-of-type(even) { background: #f7f9fc; }
/* One thin line above every section, including the first one after the hero. */
main > section { border-top: 1px solid #dfe8f5; }

#product {
  background: #fff;
}

#security {
  background: #f7f9fc;
}

#demo {
  background: #fff;
}

.feature, .use-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,39,118,.055);
}
@media (hover: hover) {
  .feature:hover, .use-card:hover {
    border-color: #a9c4f3;
    box-shadow: 0 20px 48px rgba(15,39,118,.12);
  }
}

/* Figure in the primary use-case card, built from the same parts as the
   animations: slate body, blue skeleton, white joints. */
.use-figure {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
}
.use-figure { max-width: 440px; margin-top: auto; }
.art-ghost { fill: none; stroke: #9fb0cc; stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.art-axis { stroke: var(--wf-grid); stroke-width: 1.5; stroke-linecap: round; }
.art-body line { stroke: var(--wf-body-far); stroke-width: 12; stroke-linecap: round; }
.art-bones line { stroke: var(--wf-accent); stroke-width: 3; stroke-linecap: round; }
.art-joints circle { fill: #fff; stroke: var(--wf-accent); stroke-width: 2.2; }
.art-wedge { fill: var(--wf-accent); fill-opacity: .16; stroke: var(--wf-accent); stroke-width: 1.5; stroke-linejoin: round; }
.art-line { fill: none; stroke: var(--wf-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-area { fill: var(--wf-accent); fill-opacity: .1; }
.art-dot { fill: var(--wf-accent); stroke: #fff; stroke-width: 2; }
.art-arrow { fill: none; stroke: #8a99b5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art-text { fill: var(--muted); font: 600 9px var(--wf-mono); letter-spacing: .04em; }
.use-figure .art-text { font-size: 10.5px; letter-spacing: .08em; }

.workflow-panel {
  border-color: #d7e2f0;
  background: #fff;
  box-shadow: var(--shadow);
}
.check { color: #273b63; }
.check b { background: #f7f9fc; color: #1064ff; }

/* ---------- Workflow walkthrough (animation + step list) ---------- */
/* Until js/main.js adds .is-live there is nothing to draw, so the stage is
   hidden and the steps take the full width as a plain list. */
.workflow-panel:not(.is-live) { grid-template-columns: minmax(0, 1fr); }
.workflow-panel:not(.is-live) .flow-stage { display: none; }

.flow-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfddf1;
  border-radius: 20px;
  background: #f7f9fc;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
/* Holds the 4:3 shape while still letting the stage stretch to the height of
   the step list beside it. Everything inside is absolutely positioned. */
.flow-stage::before { content: ""; display: block; padding-top: 75%; }
.flow-stage.is-compact::before { padding-top: 120%; }

.flow-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}
.wf-ft { fill: var(--wf-floor); }
.wf-fl { fill: var(--wf-floor-l); }
.wf-fr { fill: var(--wf-floor-r); }
.wf-gshadow { fill: var(--text); opacity: .06; }
.wf-walk { fill: var(--wf-grid); opacity: .2; }
.wf-grid line { stroke: var(--wf-grid); stroke-width: 1; }
.wf-ax { stroke-width: 3; stroke-linecap: round; }
.wf-ax1 { stroke: var(--wf-accent); }
.wf-ax2 { stroke: #62b5ff; }
.wf-ax3 { stroke: var(--text); }
.wf-cone {
  fill: var(--wf-accent);
  fill-opacity: .07;
  stroke: var(--wf-accent);
  stroke-opacity: .35;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.wf-c0 { fill: var(--text); }
.wf-c1 { fill: var(--wf-floor); }
.wf-bframe { fill: none; stroke: var(--text); stroke-width: 1.5; }
.wf-pshadow { fill: var(--text); fill-opacity: .12; }
.wf-bf { stroke: var(--wf-body-far); stroke-linecap: round; fill: none; }
.wf-bn { stroke: var(--wf-body); stroke-linecap: round; fill: none; }
.wf-bh { fill: var(--wf-body); }
.wf-bt { fill: var(--wf-torso); stroke: var(--wf-torso); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.wf-sk { stroke: var(--wf-accent); stroke-width: 3; stroke-linecap: round; }
.wf-skj { fill: var(--wf-floor); stroke: var(--wf-accent); stroke-width: 2.5; }
.wf-skh { fill: none; stroke: var(--wf-accent); stroke-width: 3; }
.wf-ray { stroke: var(--wf-accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.wf-tri { stroke: var(--wf-device); stroke-width: 2.5; stroke-linecap: round; }
.wf-dev { fill: var(--wf-device); }
.wf-lens { fill: #62b5ff; }
.wf-recd { fill: var(--wf-rec); }
.wf-kpf { fill: #fff; stroke: var(--line); stroke-width: 1; }
.wf-kpt { fill: var(--muted); font: 600 8px var(--wf-mono); letter-spacing: .06em; }
.wf-kpd { fill: var(--wf-accent); }

.flow-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #445573;
  font-family: var(--wf-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  /* One line always, so the label never changes height between steps. */
  max-width: calc(100% - 28px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.flow-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(15,39,118,.35);
  white-space: nowrap;
  opacity: 0;
}
.flow-calib { bottom: 14px; font-weight: 650; }
.flow-calib b { color: var(--wf-accent); }
.flow-chip {
  bottom: 14px;
  width: min(290px, calc(100% - 28px));
  white-space: normal;
}
/* The title changes three times and the percentage counts up; both are kept
   to one line at a fixed width so the pill never changes height. */
.flow-chip-row { display: flex; justify-content: space-between; gap: 16px; }
.flow-chip-row b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flow-chip-row span { flex: 0 0 auto; min-width: 4ch; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.flow-bar {
  height: 4px;
  margin-top: 9px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.flow-bar i { display: block; width: 0; height: 100%; background: var(--wf-accent); }
.flow-chip small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }

/* The report card that slides in for step 5. */
.flow-report {
  position: absolute;
  top: 50%; right: 18px;
  width: min(300px, 47%);
  transform: translateY(-50%);
  opacity: 0;
}
.flow-stage.is-compact .flow-report {
  left: 50%; right: auto;
  width: min(320px, calc(100% - 24px));
}
.flow-dash {
  position: relative;
  z-index: 2;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 50px -28px rgba(15,39,118,.4);
}
.flow-dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.flow-dash-head b { flex: 0 0 auto; font-size: 15px; }
/* Swaps text when the comparison starts; one line keeps the card still. */
.flow-dash-head span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 11px; text-align: right; }
.flow-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flow-kpi {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  line-height: 1.25;
}
.flow-kpi small { display: block; color: var(--muted); font-size: 10.5px; }
/* inline-block so js/main.js can reserve each number's final width. */
.flow-kpi strong { display: inline-block; font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.flow-kpi em { margin-left: 3px; color: var(--muted); font-size: 11px; font-style: normal; }
.flow-delta { display: inline-block; margin-left: 5px; font-size: 11px; font-weight: 750; opacity: 0; }
.flow-chart {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.flow-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
}
.flow-legend { display: flex; gap: 10px; white-space: nowrap; }
.flow-legend i {
  display: inline-block;
  width: 12px; height: 3px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: middle;
}
.flow-key-now { background: var(--wf-accent); }
.flow-key-prev { background: var(--wf-prev); }
.flow-chart svg { display: block; width: 100%; margin-top: 5px; }
.flow-gridline { stroke: var(--line); }
.flow-curve-now {
  fill: none;
  stroke: var(--wf-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;   /* the path has pathLength="1", so this draws it on */
}
.flow-curve-prev { fill: none; stroke: var(--wf-prev); stroke-width: 2; stroke-dasharray: 5 4; }
.flow-badge {
  position: absolute;
  top: -13px; right: 14px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0f2776;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
}
.flow-pdf {
  position: absolute;
  left: -34px; bottom: -26px;
  z-index: 1;
  width: 104px; height: 132px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 40px -22px rgba(15,39,118,.45);
  opacity: 0;
}
.flow-stage.is-compact .flow-pdf { display: none; }
.flow-pdf i { display: block; height: 5px; margin-bottom: 7px; border-radius: 3px; background: var(--line); }
.flow-pdf .flow-pdf-title { width: 50%; height: 7px; background: var(--wf-accent); }
.flow-pdf .w80 { width: 80%; }
.flow-pdf .w70 { width: 70%; }
.flow-pdf .w60 { width: 60%; }
.flow-pdf b {
  position: absolute;
  right: 9px; bottom: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--wf-rec);
  color: #fff;
  font-size: 10px;
}

.flow-steps {
  display: grid;
  align-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.flow-step-no {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid #d7e4fb;
  border-radius: 11px;
  background: #f7f9fc;
  font-size: 14px;
  font-weight: 850;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.flow-step strong { display: block; font-size: 17px; line-height: 1.3; }
.flow-step-body > span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (hover: hover) {
  .flow-step:hover { background: #f7f9fc; }
}
.flow-step[aria-current="step"] { border-color: #c9daf7; background: #f7f9fc; }
.flow-step[aria-current="step"] .flow-step-no { border-color: transparent; background: #0f2776; color: #fff; }
/* Without the script the rows are just a list: nothing to click. */
.workflow-panel:not(.is-live) .flow-step { cursor: default; }
.workflow-panel:not(.is-live) .flow-step:hover { background: none; }

.workflow-foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 18px 40px;
  margin-top: 4px;
  padding: 24px 14px 10px;
  border-top: 1px solid var(--line);
}
.workflow-foot h3 { margin: 0; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; }
.workflow-foot .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

.use-card .tag { color: #0f2776; background: #f7f9fc; border-color: #d6e4fb; }
.security-visual {
  border-color: #d6e2f1;
  background: #fff;
}
.person,
.mail-fallback { background: #fff; }
.avatar { color: #fff; background: #0f2776; }

/* ---------- FAQ ---------- */
/* Native <details>, so it opens and closes without any script. */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 50px;
  align-items: start;
}
.faq-head h2 {
  margin: 16px 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -.045em;
}
.faq-head p { margin: 0; color: var(--muted); font-size: 18px; }
.faq-head a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: #c9daf7; box-shadow: 0 10px 30px rgba(15,39,118,.055); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 24px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid #d7e4fb;
  border-radius: 50%;
  background: #f7f9fc;
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 60px 16px 18px; color: var(--muted); }

/* The FAQ sits inside the About section, under the team. */
.about-faq {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  /* Its top padding is less than a section's; this lands the footer's FAQ
     link with the label the same distance below the header. */
  scroll-margin-top: 32px;
}

/* Data-flow diagram in the privacy section. Drawn in the markup; same palette
   as the two animations. */
.security-visual svg { display: block; width: 100%; height: auto; }
.sd-zone {
  fill: var(--wf-accent);
  fill-opacity: .04;
  stroke: var(--wf-accent);
  stroke-opacity: .45;
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}
.sd-tag { fill: var(--text); font: 650 10px var(--wf-mono); letter-spacing: .08em; }
.sd-device { fill: var(--wf-device); }
.sd-lens { fill: #62b5ff; }
.sd-screen { fill: #fff; stroke: var(--wf-device); stroke-width: 2.5; }
.sd-shackle { fill: none; stroke: var(--wf-accent); stroke-width: 3.2; stroke-linecap: round; }
.sd-key { fill: #fff; }
/* Dashes travel along the links to show the direction the data moves. */
.sd-link {
  fill: none;
  stroke: var(--wf-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
  animation: sd-flow 1.1s linear infinite;
}
@keyframes sd-flow {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}
.sd-doc { fill: #fff; stroke: #cfddf1; stroke-width: 1.5; }
.sd-doc-title { fill: var(--wf-accent); }
.sd-doc-line { fill: var(--line); }
.sd-pdf { fill: var(--wf-rec); }
.sd-pdf-text { fill: #fff; font-size: 7px; font-weight: 800; }
.sd-label { fill: var(--text); font-size: 14px; font-weight: 750; }
.sd-sub { fill: var(--muted); font-size: 11.5px; }
.sd-mono { fill: var(--muted); font: 600 9.5px var(--wf-mono); letter-spacing: .06em; }

.cta {
  padding: 44px;
  border-color: #c9daf5;
  background: #f7f9fc;
}
.mail-fallback code { color: var(--text); }
.copy-btn { color: var(--text); background: #fff; border-color: #cbd7e8; }

footer { color: #66758d; border-top-color: #dce4ef; background: #f7f9fc; }
footer h4 { color: var(--text); }
footer a:hover { color: var(--blue); }
.footer-brand img {
  width: 132px;
  height: 142px;
  object-fit: contain;
  object-position: center;
}
.copyright { border-top-color: #dce4ef; }

.legal p, .legal li, .legal dd { color: #43536d; }
.back-link:hover { color: var(--text); }

@media (max-width: 980px) {
  .nav-links a { color: #445573; background: #f7f9fc; border-color: #dce4ef; }
  .nav-links a[aria-current="true"] { color: var(--text); background: #f7f9fc; border-color: #9bbcf4; }
  .hero::before { display: none; }
  .hero-visual { min-height: 470px; }
  .flow-stage { max-height: 540px; }
  .workflow-foot { grid-template-columns: minmax(0, 1fr); }
  .security { gap: 32px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* The header wraps to two rows here and is taller than the section padding,
     so anchor jumps would land with the heading underneath it. */
  html { scroll-padding-top: 60px; }
  .security-visual { max-width: 620px; }
}

@media (max-width: 680px) {
  .brand { width: 68px; min-width: 68px; }
  .brand img { height: 64px; }
  .nav-wrap.scrolled .brand img { height: 54px; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 380px; }
  .stage-readout div { flex-basis: 104px; padding-left: 16px; }
  .stage-readout small { font-size: 10px; letter-spacing: .06em; }
  .stage-readout strong { font-size: 22px; }
  .workflow-panel { padding: 12px; border-radius: 24px; }
  .flow-step { gap: 12px; padding: 11px 10px; }
  .flow-step strong { font-size: 16px; }
  .workflow-foot { padding: 20px 8px 8px; }
  .workflow-foot h3 { font-size: 22px; }
  .workflow-foot .checklist { grid-template-columns: minmax(0, 1fr); }
  /* The diagram is scaled down with the card, so its labels are set larger
     and the secondary ones dropped. */
  .sd-label { font-size: 18px; }
  .sd-tag, .sd-mono { font-size: 13px; }
  .sd-sub { display: none; }
  .use-figure .art-text { font-size: 13px; }
  .faq-item summary { padding: 12px 14px; font-size: 15px; }
  .faq-item p { padding: 0 14px 14px; }
  .about-faq { margin-top: 48px; padding-top: 48px; }
  html { scroll-padding-top: 78px; }
  .cta { padding: 18px; }
}
