/* Nodus website 3.0 — tokens + header */

:root {
  --blue: #1107A4;
  --blue-hover: #0C0580;
  --ink: #111118;
  --ink-soft: #55555F;
  --line: #E6E6EC;
  --net-line: #D2D2DA;              /* network paths: light grey */
  --net-node: #C2C2CC;              /* network nodes: a step darker so they read */
  --bg: #FFFFFF;                    /* header, cards */
  --page: #FDFCFC;                  /* page background: very slight beige */
  --header-h: 68px;
  --gutter: 24px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Header is fixed, so the page needs to start below it. */
  padding-top: var(--header-h);
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .25s ease,
              -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease;
}
.header.is-scrolled,
.header.is-open { border-bottom-color: var(--line); }
/* Scrolled: translucent white with the page blurring through. */
.header.is-scrolled:not(.is-open) {
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header.is-scrolled:not(.is-open) { background: rgba(255, 255, 255, .95); }
}

.header__inner {
  height: 100%;
  width: 85%;                       /* 15% narrower than the viewport... */
  max-width: 1306px;                /* ...and than the old cap (1536 - 15%) */
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* brand | nav (true centre) | actions */
  align-items: center;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.brand__logo { display: block; width: 50px; height: 30px; }
.brand__name {
  font-family: "Questrial", var(--font);
  font-weight: 550;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Centre nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header__nav > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  transition: color .15s ease;
}
.header__nav > a:hover { color: var(--blue); }

/* Right actions */
.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}
.link-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s ease;
}
.link-login:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s ease;
}
.btn:hover { background: var(--blue-hover); }

/* Mobile toggle + in-menu actions are hidden on desktop */
.header__toggle,
.header__nav-actions { display: none; }

/* ------------------------------------------------------------------
   Hero: network animation
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  margin-top: 96px;                 /* gap between header and animation */
  padding-bottom: 96px;
  overflow-x: clip;                 /* the iframe bleeds 24px past the gutter (shadow room) */
  background: var(--page);
}
.hero__network {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* dissolve into the white page at the top and bottom edges */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 120px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 120px), transparent 100%);
}
.hero__network svg { display: block; width: 100%; height: 100%; }
.hero__content {
  position: relative;
  width: 85%;                       /* 15% narrower than the viewport... */
  max-width: 1251px;                /* ...and than the old cap (1472 - 15%); the walkthrough scales with this width */
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Headline + lead */
/* Left-aligned with the walkthrough's left edge (same content box).
   The headline is sized from the container's width so it stays on ONE line:
   measured, the text is ~18.5em wide at weight 700, so width / 19.6 leaves ~5% spare. */
.hero__content { container-type: inline-size; }
.hero__title {
  margin: 0;
  text-align: left;
  white-space: nowrap;
  font-size: min(calc(100cqw / 19.6), 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero__lead {
  margin: 20px 0 56px;
  max-width: 62ch;
  text-align: left;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink-soft);
}

/* Walkthrough: the iframe is 24px wider on each side so the embedded
   page can keep the stage's drop shadow; its height follows from its
   width in CSS (see .wt-stack), so nothing moves when it loads. */
.walkthrough { margin: 0 -24px; }
.walkthrough iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color-scheme: light;
}

/* Shared content column: same box as the hero, so section edges line up
   with the walkthrough. */
.container {
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ------------------------------------------------------------------
   Platform: sliding module cards
   ------------------------------------------------------------------ */
.platform { padding: 24px 0 128px; }

.platform__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.platform__nav { display: flex; gap: 10px; flex-shrink: 0; }
.platform__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #D9D6CF;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.platform__arrow:hover:not(:disabled) { border-color: var(--ink); }
.platform__arrow:disabled { opacity: .35; cursor: default; }

/* The track is full-bleed; platform.js sets --edge (left edge of the content
   column) and --content-w, so the first card lines up with the heading and
   the last card can still snap to that edge. */
.platform__track {
  --edge: 7.5vw;
  --content-w: 85vw;
  --gap: 20px;
  --card-h: calc(var(--content-w) * 0.413);   /* 0.54 -> 0.459 (-15%) -> 0.413 (-10%) */
  --card-w: calc(var(--card-h) * 0.65);       /* resting width: slightly narrower than tall */
  --card-w-open: var(--card-h);               /* hovered width: expands to square */
  position: relative;                         /* offsetParent for platform.js */
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--edge);
  padding: 2px calc(100% - var(--edge) - var(--card-w)) 4px var(--edge);
  scrollbar-width: none;
}
.platform__track::-webkit-scrollbar { display: none; }
.platform__track:focus-visible { outline: none; }
.platform__track:focus-visible .pcard.is-active { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Card */
.pcard {
  --base: #15162E;
  --hi: #3A3F8F;
  --lo: #262A66;
  position: relative;
  flex: 0 0 var(--card-w);
  /* copy on top, screenshot below in its own row, so the screenshot can never
     cover the "Explore" link; a card grows if its copy needs more room (the
     track stretches the others to match) */
  display: flex;
  flex-direction: column;
  min-height: max(340px, var(--card-h));
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  color: #fff;
  background:
    radial-gradient(85% 70% at 88% 8%, var(--hi), transparent 72%),
    radial-gradient(75% 65% at 0% 100%, var(--lo), transparent 70%),
    linear-gradient(160deg, var(--base) 10%, color-mix(in srgb, var(--base) 70%, #000) 100%);
  transition:
    flex-basis .55s cubic-bezier(.22, .7, .2, 1),
    opacity .5s ease,
    filter .5s ease;
}
/* Mottled, brushed texture: coarse fractal noise turned into dark clouds */
.pcard::before,
.about__card::before,
.cta::before,
.contact__card::before,
.footer--dark .footer__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'><filter id='m' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0035 .006' numOctaves='5' seed='11'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.8 0 0 0 -1.2'/></filter><rect width='600' height='600' filter='url(%23m)'/></svg>") center / cover no-repeat;
  opacity: .75;
}
/* Fine film grain over everything */
.pcard::after,
.about__card::after,
.cta::after,
.contact__card::after,
.footer--dark .footer__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;                 /* above the gradient, below text and screenshots */
  pointer-events: none;
  /* Two speckle layers (light + dark), plain alpha blending so the grain shows on any tone */
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  3.4 0 0 0 -1.7'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>") repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -3.4 0 0 0 1.7'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>") repeat;
  opacity: .17;
}
/* Vary the cloud pattern per card */
.pcard--3d::before         { transform: scale(-1, 1); }
.pcard--steel::before      { transform: scale(1, -1); }
.pcard--foundation::before { transform: scale(-1, -1); }

/* Palettes: deep, desaturated, so white type always reads */
.pcard--2d         { --base: #12143A; --hi: #3B3F9A; --lo: #1F2370; }  /* Nodus indigo */
.pcard--3d         { --base: #17201F; --hi: #48625D; --lo: #2A3B39; }  /* slate teal */
.pcard--steel      { --base: #1C1B18; --hi: #6A5F49; --lo: #3A3428; }  /* bronze */
.pcard--foundation { --base: #231E1A; --hi: #7A6654; --lo: #4A3B30; }  /* clay */

.pcard__body {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.9vw, 40px);
  max-width: 460px;
}
.pcard__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pcard__text {
  margin: 0 0 20px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
/* Text-only link: no border, underline appears on hover / focus */
.pcard__btn {
  display: inline-block;
  padding: 2px 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .15s ease;
}
.pcard__btn:hover,
.pcard__btn:focus-visible { text-decoration-color: currentColor; }
.pcard__btn:focus-visible { outline-color: #fff; }

/* App-window placeholder, bleeding off the bottom-right like a screenshot */
.pcard__media {
  position: relative;
  z-index: 1;
  /* same height on every card, at the bottom, so the screenshots line up */
  flex: 0 0 auto;
  height: calc(var(--card-h) * 0.5);
  margin-top: auto;
  margin-left: calc(var(--card-h) * 0.12);   /* fixed, so widening the card slides more screenshot into view */
  border-radius: 8px 0 0 0;
  background: linear-gradient(to right, #15161B 0 44px, #FFFFFF 44px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
  display: grid;
  place-items: center;
  padding-left: 44px;
}
.pcard__media span {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #B5B5BD;
}

/* A real image replaces the placeholder: plain white panel, drawing contained */
.pcard__media--img {
  background: #fff;
  padding: 24px 28px;
  place-items: center;
}
.pcard__media--img img {
  position: absolute;
  inset: 24px 28px;                 /* pinned to the padded box, so it can never overflow */
  width: calc(100% - 56px);
  height: calc(100% - 48px);
  object-fit: contain;
  object-position: center;
}

/* Inactive cards wash out into the page, like the reference */
.platform.is-ready .pcard:not(.is-active) {
  opacity: .42;
  filter: saturate(.6);
  cursor: pointer;
}

/* Hover (or keyboard focus) expands a card horizontally and brings it
   forward; the rest wash out. Leaving the row returns to the resting state. */
.pcard:focus-within { flex-basis: var(--card-w-open); }
@media (hover: hover) {
  .pcard:hover { flex-basis: var(--card-w-open); }
  .platform.is-ready .platform__track:has(.pcard:hover) .pcard:not(:hover) {
    opacity: .42;
    filter: saturate(.6);
  }
  .platform.is-ready .platform__track:has(.pcard:hover) .pcard:hover {
    opacity: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcard { transition: none; }
}

/* ------------------------------------------------------------------
   Narrow screens: nav + actions collapse behind a two-line toggle
   ------------------------------------------------------------------ */
@media (max-width: 820px) {
  :root { --gutter: 16px; }

  /* Phones keep the full width; the 85% reduction is for larger screens only. */
  .header__inner,
  .hero__content,
  .container { width: 100%; }

  .platform { padding-bottom: 80px; }
  .platform__head { margin-bottom: 24px; }
  .platform__arrow { width: 40px; height: 40px; }
  .platform__track {
    --card-h: 367px;                          /* 480 - 15% - 10% */
    --card-w: calc(var(--content-w) * 0.70);  /* 0.9 - 15% - 10% */
    --card-w-open: var(--card-w);             /* no hover expansion on phones */
    --gap: 12px;
  }
  .pcard__media { margin-left: 10%; }

  /* One line would be ~11px on a phone, so the headline wraps there. */
  .hero__title { white-space: normal; font-size: clamp(30px, 9vw, 40px); }
}

/* ------------------------------------------------------------------
   Header width steps. The full row (brand, four nav links, language,
   Log in, Sign up) needs about 1045px in French, the longest language.
   - above 1360px: nav truly centred (1fr auto 1fr)
   - 1061-1360px: nav centred between brand and actions, so the actions
     column is never squeezed into wrapping
   - 1060px and below: nav + actions collapse behind the menu toggle
   ------------------------------------------------------------------ */
.header__actions > * { white-space: nowrap; }
@media (max-width: 1360px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__nav { justify-self: center; }
}
@media (max-width: 1060px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .header__actions { display: none; }

  .header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .header__toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease;
  }
  .header.is-open .header__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .header.is-open .header__toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  .header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-self: stretch;          /* full width (the 1361px step centres it) */
    /* items line up with the brand: the header row is 85% wide above 820px */
    padding: 8px calc(7.5% + var(--gutter)) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .header.is-open .header__nav { display: flex; }

  .header__nav > a {
    font-size: 17px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .header__nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
  }
  .header__nav-actions .link-login { font-size: 17px; }
  .header__nav-actions .btn { flex: 1; max-width: 160px; }
}
@media (max-width: 820px) {
  .header__nav { padding-inline: var(--gutter); }   /* phones: full-width header row */
}

/* Full app screenshot: fixed scale, anchored top-left, cropped by the card.
   Widening the card on hover reveals more of the canvas, like the reference. */
.pcard__media--shot {
  background: #fff;
  padding: 0;
  display: block;
  overflow: hidden;
}
.pcard__media--shot img {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--card-h) * 1.3);
  height: auto;
  max-width: none;
}

/* Section intro: heading + supporting line, left-aligned with the cards */
.platform__intro { min-width: 0; }
.platform__lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   Closing call to action: full-bleed grainy gradient + network
   (mottling and grain come from the shared .pcard/.cta ::before/::after)
   ------------------------------------------------------------------ */
.cta {
  --net-line: rgba(255, 255, 255, .20);
  --net-node: rgba(255, 255, 255, .42);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(60% 90% at 85% 0%, #3B3F9A, transparent 70%),
    radial-gradient(55% 85% at 8% 100%, #1F2370, transparent 72%),
    radial-gradient(40% 60% at 50% 55%, #23276E, transparent 75%),
    linear-gradient(165deg, #12143A 10%, #0A0B24 100%);
}
.cta__network {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* thin the network out behind the text so the copy stays calm */
  -webkit-mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, rgba(0,0,0,.2), #000);
          mask-image: radial-gradient(ellipse 42% 48% at 50% 50%, rgba(0,0,0,.2), #000);
}
.cta__network svg { display: block; width: 100%; height: 100%; }
.cta__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.cta__title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta__lead {
  margin: 22px auto 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(255, 255, 255, .78);
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  height: 52px;
  padding: 0 30px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.cta__btn:focus-visible { outline-color: #fff; outline-offset: 3px; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer { padding: 64px 0 40px; background: var(--page); }
.footer__panel {
  padding: 52px clamp(20px, 3vw, 40px) 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer__tag {
  margin: 14px 0 0;
  max-width: 24ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__heading {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6E6E78;
}
/* Placeholder links: no destination, just the hover underline */
.footer__link {
  font-size: 16px;
  color: var(--ink);
  cursor: default;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.footer__link:hover { text-decoration-color: currentColor; }
.footer__bottom {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #6E6E78;
}
.footer__bottom p { margin: 0; }

/* Contact page only: the footer panel takes the closing-CTA look
   (grainy indigo gradient + live network from network.js) */
.footer--dark .footer__panel {
  --net-line: rgba(255, 255, 255, .20);
  --net-node: rgba(255, 255, 255, .42);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  color: #fff;
  background:
    radial-gradient(60% 90% at 85% 0%, #3B3F9A, transparent 70%),
    radial-gradient(55% 85% at 8% 100%, #1F2370, transparent 72%),
    radial-gradient(40% 60% at 50% 55%, #23276E, transparent 75%),
    linear-gradient(165deg, #12143A 10%, #0A0B24 100%);
}
/* full screen width: drop the container's width/gutter, square the panel,
   and keep the footer content itself aligned with the page column */
.footer--dark { padding-bottom: 0; }
.footer--dark .container { width: 100%; max-width: none; padding: 0; }
.footer--dark .footer__panel { border-radius: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
.footer--dark .footer__grid,
.footer--dark .footer__bottom { width: 85%; max-width: 1251px; margin-left: auto; margin-right: auto; }
.footer__network {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.footer__network svg { display: block; width: 100%; height: 100%; }
.footer--dark .footer__grid,
.footer--dark .footer__bottom { position: relative; z-index: 2; }
.footer--dark .brand__name,
.footer--dark .footer__link { color: #fff; }
.footer--dark .brand__logo { filter: brightness(0) invert(1); }
.footer--dark .footer__tag { color: rgba(255, 255, 255, .72); }
.footer--dark .footer__heading,
.footer--dark .footer__bottom { color: rgba(255, 255, 255, .55); }
.footer--dark .footer__bottom { border-top-color: rgba(255, 255, 255, .14); }

@media (max-width: 820px) {
  .footer__panel { border-radius: 24px 24px 0 0; padding-top: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   Legal pages (privacy.html, terms.html): copy of the app's policy text
   ------------------------------------------------------------------ */
.footer__link[href] { cursor: pointer; }

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 24px;
}
.legal-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(17, 7, 164, .08);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}
.legal-content h1 {
  margin: 16px 0 8px;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.legal-updated { margin: 0 0 48px; font-size: 15px; color: #6E6E78; }
.legal-content section { margin-bottom: 40px; }
.legal-content h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.legal-content h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; }
.legal-content p,
.legal-content li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.legal-content p { margin: 0 0 12px; }
.legal-content ul { margin: 8px 0 16px 24px; padding: 0; }
.legal-content li { margin-bottom: 4px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--blue); }
.legal-content a:hover { text-decoration: underline; }
.legal-content .contact-list { list-style: none; margin-left: 0; }
.legal-content .contact-list li { margin-bottom: 8px; }

/* ------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------ */
.pricing { padding: 0 0 128px; }
.pricing .platform__lead { margin-bottom: 0; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.plan__name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 28px; min-height: 64px; }
.plan__amount { font-size: clamp(44px, 4.4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.plan__amount--text { font-size: clamp(34px, 3.4vw, 46px); }
.plan__per { font-size: 16px; color: var(--ink-soft); }
.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  height: 48px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.plan__btn:hover,
.plan__btn:focus-visible { background: none; text-decoration-color: currentColor; }
.plan__actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 22px; }
.plan__actions .plan__btn + .plan__btn { font-weight: 500; color: var(--ink-soft); }
.plan__actions .plan__btn + .plan__btn:hover,
.plan__actions .plan__btn + .plan__btn:focus-visible { color: var(--ink); }
.plan__list { margin: 32px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.4; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .32em;
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: .8;
}

@media (max-width: 820px) {
  .pricing { padding-bottom: 88px; }
  .pricing__grid { grid-template-columns: 1fr; margin-top: 40px; }
}

/* Pricing list details: a smaller second line (code list) and the
   Nodus assistant term with a dashed underline + tooltip */
.plan__sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.plan__tip {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: help;
  text-align: left;
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.plan__tooltip {
  position: absolute;
  left: 20px;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(280px, 80vw);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.plan__tooltip::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.plan__tip:hover + .plan__tooltip,
.plan__tip:focus-visible + .plan__tooltip,
.plan__tip:focus + .plan__tooltip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Controls row: billing toggle (sliding underline), then currency dropdown.
   No borders or pills anywhere. */
.pricing__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 28px;
  margin: 72px 0 20px;
}
.pricing__billing { position: relative; display: flex; gap: 22px; }
.pricing__opt {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.pricing__opt:hover,
.pricing__opt.is-on { color: var(--ink); }
/* "2 months free": a tilted, hand-written note with a squiggly arrow pointing
   down at the Annual label */
.pricing__tag {
  position: absolute;
  left: 46%;
  bottom: calc(100% - 2px);
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: var(--blue);
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-7deg);
  transform-origin: 0 100%;
}
.pricing__arrow { width: 30px; height: 27px; flex: none; margin-bottom: -2px; }
.pricing__tagtext {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 14px;
}
.pricing__slider {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: transform .3s cubic-bezier(.22, .7, .2, 1), width .3s cubic-bezier(.22, .7, .2, 1);
}

/* Currency dropdown */
.cur { position: relative; }
.cur__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cur__chev { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .2s ease; }
.cur__btn[aria-expanded="true"] .cur__chev { transform: rotate(180deg); }
.flag { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .10); }
.cur__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(17, 17, 24, .14);
}
.cur__menu[hidden] { display: none; }
.cur__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.cur__opt:hover,
.cur__opt:focus-visible { background: #F3F2EF; }
.cur__opt[aria-selected="true"] { font-weight: 700; }
.cur__name { margin-left: auto; color: var(--ink-soft); font-size: 13px; font-weight: 400; white-space: nowrap; }

/* Four plans: price may wrap its "/ month" under the amount in narrow cards */
.plan__price { flex-wrap: wrap; row-gap: 2px; }
.plan__amount { font-size: clamp(36px, 3.4vw, 50px); }
.plan__amount--text { font-size: clamp(30px, 2.8vw, 40px); }
.plan__tooltip { left: 0; }
.plan__tooltip::after { left: 24px; }

@media (max-width: 1100px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .plan__amount { font-size: 48px; }
}

/* ------------------------------------------------------------------
   Pricing cards, redesign: one joined row (no gaps), 15 % wider than the
   content column, hairline separators that fade out top and bottom, and a
   light grainy tint that flows down from the top and whitens to the bottom.
   Free stays plain white.
   ------------------------------------------------------------------ */
.pricing__grid,
.pricing__controls {
  /* 109 %: with the 3 × 20 px gaps gone, this makes each card 15 % wider than before */
  --wide: min(109.2%, calc(100vw - 32px));
  width: var(--wide);
  margin-left: calc((100% - var(--wide)) / 2);
}
.pricing__grid { gap: 0; }

.plan {
  --tint: transparent;
  --tint-hi: transparent;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(90% 45% at 22% 0%, var(--tint-hi), transparent 72%),
    linear-gradient(to bottom, var(--tint) 0%, #fff 62%);
}
.plan:first-child { border-radius: 18px 0 0 18px; }
.plan:last-child  { border-radius: 0 18px 18px 0; }
.plan--free { background: #fff; }

.plan--standard { --tint: #E4ECF8; --tint-hi: #D3E0F4; }   /* cool steel blue */
.plan--pro      { --tint: #DFDCFB; --tint-hi: #CBC6F8; }   /* Nodus lavender */
.plan--business { --tint: #F2E8DA; --tint-hi: #EADBC6; }   /* warm sand */

/* Grain: dark speckle, strongest at the top, gone where the card turns white */
.plan:not(.plan--free)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .2  -3 0 0 0 1.6'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>") repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
}

/* Vertical separator between neighbours, fading out at both ends */
.plan + .plan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(17, 17, 24, .14) 18%, rgba(17, 17, 24, .14) 82%, transparent 100%);
}

/* Divider inside a card reads lighter on the tinted tops */
.plan__list { border-top-color: rgba(17, 17, 24, .09); }

/* Narrower screens: back to separate, rounded cards */
@media (max-width: 1100px) {
  .pricing__grid { gap: 16px; }
  .plan,
  .plan:first-child,
  .plan:last-child { border-radius: 16px; border: 1px solid var(--line); }
  .plan + .plan::before { display: none; }
}
@media (max-width: 820px) {
  .pricing__grid,
  .pricing__controls { --wide: 100%; }
}

/* ------------------------------------------------------------------
   Hero walkthroughs: stacked carousel (behaviour in walkthroughs.js)
   The front card (--d: 0) sits in place; each card behind is shrunk from its
   top edge and raised by --peek, so only a strip of it shows above the one in
   front, washed out and paused. --n = number of cards.
   ------------------------------------------------------------------ */
/* Horizontal coverflow: the playing card in the centre, the others shrunk
   and set to its left and right (walkthroughs.js writes --pos: 0 = centre,
   +1 right, −1 left, ±2 further out; --abs = |pos|). The side cards may
   bleed past the content column; the hero clips them at the viewport. */
/* Sizes are fixed before anything loads, so the hero never jumps (CLS): a
   walkthrough page is its 1440 x 840 stage at the card width less 50 px (24 px
   of shadow room each side + a 1 px border), plus 48 px of padding, i.e.
   card height = (w - 50) * 7/12 + 48 = w * 7/12 + 18.83 px. Padding
   percentages are of the parent's width, so a spacer sizes the stack from the
   front card (--card of the stack's width) and each card from its own width. */
.wt-stack {
  --side-shift: 21%;   /* of a card's own width, per slot */
  --side-scale: .2;    /* shrink per slot */
  --card: .84;         /* card width / stack width: left and right 8 % */
  position: relative;
}
.wt-stack::before { content: ""; display: block; padding-top: calc(var(--card) * 100% * 7 / 12 + 18.83px); }
.wt-slide::before { content: ""; display: block; padding-top: calc(100% * 7 / 12 + 18.83px); }
.wt-slide {
  --pos: 0;
  --abs: 0;
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  z-index: calc(20 - var(--abs));
  transform-origin: 50% 50%;
  transform: translateX(calc(var(--pos) * var(--side-shift))) scale(calc(1 - var(--abs) * var(--side-scale)));
  transition:
    transform .9s cubic-bezier(.22, .7, .2, 1),
    opacity .6s ease,
    filter .6s ease;
}
/* a card travelling round the back (left end ↔ right end) is hidden on the way */
.wt-slide.is-wrapping { opacity: 0; transition: none; }
/* Wash out only the walkthrough inside a card behind, so its brand outline stays full colour */
.wt-slide iframe { transition: opacity .6s ease, filter .6s ease; }
.wt-slide:not(.is-front) iframe { opacity: .62; filter: saturate(.55); }
.wt-slide iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; }
.wt-slide:not(.is-front) iframe { pointer-events: none; }
/* A card whose walkthrough has not loaded yet (walkthroughs.js loads the cards
   behind the front one when the page is idle) shows an empty app window. */
.wt-slide.is-pending::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #d9dce1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
.wt-slide.is-pending:not(.is-front)::after { opacity: .62; }

/* Click target over a card behind; the front card's is switched off */
.wt-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wt-slide.is-front .wt-hit { display: none; }
/* Brand-blue outline on the cards behind. Drawn on the click target, inset by
   the iframe's 24px padding so it hugs the walkthrough stage itself. */
.wt-hit::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px solid var(--blue);
  border-radius: 7px;
  pointer-events: none;
}
.wt-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -20px; border-radius: 10px; }

/* Hovering a card behind lifts it a little more out of the stack */
@media (hover: hover) {
  .wt-slide:not(.is-front):hover iframe { opacity: .85; filter: saturate(.8); }
  .wt-slide:not(.is-front):hover {
    transform: translateX(calc(var(--pos) * var(--side-shift))) scale(calc(1 - var(--abs) * var(--side-scale) + .025));
  }
}
@media (max-width: 820px) {
  .wt-stack { --side-shift: 17%; --side-scale: .14; --card: .88; }
  .wt-slide { left: 6%; right: 6%; }
}

/* Under the coverflow: one dot per walkthrough (the playing one filled), then
   the pause button. Each dot is a 24 px target with the small ring drawn inside. */
.wt-controls { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 34px; margin-top: 16px; }
.wt-dots { display: flex; justify-content: center; }
.wt-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.wt-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  transition: background .3s ease, transform .3s ease;
}
.wt-dot:hover::before { background: rgba(255, 255, 255, .45); }
.wt-dot.is-on::before { background: #fff; transform: scale(1.2); }
.wt-dot:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) {
  .wt-slide, .wt-dot::before { transition: none; }
}

/* ------------------------------------------------------------------
   Header dropdowns (Features, Resources): open on hover or keyboard focus
   ------------------------------------------------------------------ */
.nav-item { position: relative; }
.nav-item__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s ease;
}
.nav-item__chev { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .2s ease; }
.nav-item:hover .nav-item__link,
.nav-item:focus-within .nav-item__link { color: var(--blue); }
.nav-item:hover .nav-item__chev,
.nav-item:focus-within .nav-item__chev { transform: rotate(180deg); color: var(--blue); }

.nav-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 110;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 260px;
  margin-top: 14px;
  padding: 8px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(17, 17, 24, .04), 0 18px 48px rgba(17, 17, 24, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* invisible bridge over the gap so the pointer can travel from link to menu */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-menu--features { grid-template-columns: repeat(2, minmax(250px, 1fr)); }

.nav-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .15s ease;
}
.nav-menu__item:hover,
.nav-menu__item:focus-visible { background: #F4F3EF; }
.nav-menu__item b { display: block; font-size: 15px; font-weight: 600; }
.nav-menu__item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.nav-menu__thumb {
  width: 64px;
  height: 44px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  object-position: 0 0;
  box-shadow: 0 0 0 1px var(--line);
}
.nav-menu__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: rgba(17, 7, 164, .07);
  color: var(--blue);
}
.nav-menu__icon svg { width: 19px; height: 19px; }

/* Collapsed header (phones, tablets, small laptops): the dropdowns become
   indented lists inside the open menu, which scrolls on its own */
@media (max-width: 1060px) {
  .header.is-open .header__nav {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-item { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .nav-item__link { font-size: 17px; padding: 14px 0 6px; }
  .nav-item__chev { display: none; }
  .nav-menu,
  .nav-item:hover .nav-menu,
  .nav-item:focus-within .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: none;
    grid-template-columns: 1fr;
  }
  .nav-menu::before { display: none; }
  .nav-menu__item { padding: 8px 0; gap: 12px; }
  .nav-menu__item small { display: none; }
  .nav-menu__thumb { width: 44px; height: 30px; }
  .nav-menu__icon { width: 30px; height: 30px; }
}

/* ------------------------------------------------------------------
   Revisions: plain-text dropdown items, heavier header titles,
   no outline on the stacked walkthroughs, lighter wash on the cards behind
   ------------------------------------------------------------------ */
.header__nav > a,
.nav-item__link { font-weight: 600; }

.nav-menu,
.nav-menu--features { grid-template-columns: 1fr; min-width: 220px; }
.nav-menu__item {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 400;
  transition: none;
}

.wt-hit::before { display: none; }
.wt-slide:not(.is-front) iframe { opacity: .75; filter: saturate(.85); }
@media (hover: hover) {
  .wt-slide:not(.is-front):hover iframe { opacity: 1; filter: none; }
}

@media (max-width: 1060px) {
  .nav-menu__item { padding: 8px 0; font-size: 16px; }
}

/* App icons (same files as the app's ribbon) before the Features menu labels */
.nav-menu__item { display: flex; align-items: center; gap: 10px; }
.nav-menu__ico { width: 18px; height: 18px; flex: none; display: block; }

/* Header navigation in Figtree Medium: top-level links + dropdown items */
.header__nav > a,
.nav-item__link,
.nav-menu__item,
.nav-menu__item b {
  font-family: "Figtree", var(--font, "Hanken Grotesk"), system-ui, sans-serif;
  font-weight: 500;
}
.header__nav > a,
.nav-item__link { font-size: 17px; }

/* Hero: caption under the walkthrough stack (walkthroughs.js). White on the
   dark glow; each line cross-fades when the step or the walkthrough changes. */
.wt-caption {
  position: relative;
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 12px rgba(10, 12, 60, .55);   /* stays legible over the white network lines */
}
.wt-caption__title,
.wt-caption__text { display: grid; }
.wt-cap-line {
  grid-area: 1 / 1;
  animation: wtcap-in .45s cubic-bezier(.2, .7, .2, 1) both;
}
.wt-cap-line.is-out { animation: wtcap-out .3s ease both; }
.wt-caption__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.wt-caption__text {
  margin-top: 8px;
  min-height: 1.35em;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@keyframes wtcap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wtcap-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .wt-cap-line, .wt-cap-line.is-out { animation-duration: .01s; }
}

/* ------------------------------------------------------------------
   FAQ (between the closing CTA and the footer): heading on the left,
   a <details> accordion on the right, gradient hairlines between items
   ------------------------------------------------------------------ */
.faq { padding: clamp(80px, 9vw, 128px) 0; scroll-margin-top: var(--header-h); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__lead { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.faq__lead a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.faq__item { position: relative; }
.faq__item::after,
.faq__list::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, #C9C9DC 12%, #C9C9DC 88%, transparent);
}
.faq__item::after { position: absolute; left: 0; right: 0; bottom: 0; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
/* plus that turns into a minus */
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .25s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

/* smooth open/close where the browser supports animating details content */
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .3s ease, content-visibility .3s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.faq__a { padding: 0 40px 28px 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.faq__a p { margin: 0; }
.faq__a p + p,
.faq__a .faq__codes { margin-top: 18px; }
.faq__a a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.faq__codes { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
/* first column fits two flags (EU + national), so every row's text lines up */
.faq__codes li { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: start; gap: 14px; }
.faq__flags { display: flex; gap: 6px; }
.faq__codes b { display: block; color: var(--ink); font-weight: 600; }
.faq__codes span { display: block; margin-top: 2px; }
.faq__flag {
  flex: none;
  width: 30px;
  height: 20px;
  margin-top: 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(17, 17, 24, .08);
}

@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content, .faq__icon::before, .faq__icon::after { transition: none; }
}

/* ------------------------------------------------------------------
   Contact page (contact.html; form logic in contact.js)
   ------------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 96px;
}
.contact__title {
  margin: 16px 0 0;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.contact__lead {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.contact__details { display: grid; gap: 22px; margin-top: 44px; }
.contact__detail { display: flex; align-items: center; gap: 16px; }
.contact__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: rgba(17, 7, 164, .07);
  color: var(--blue);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__detail strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact__detail a { font-size: 17px; color: var(--ink-soft); }
.contact__detail a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.contact__card {
  /* light grey grainy gradient; grain + soft mottling from the shared
     ::before/::after rules (mottling toned down below) */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 0;
  background:
    radial-gradient(70% 70% at 90% 0%, #FAFAFC, transparent 70%),
    radial-gradient(65% 70% at 0% 100%, #DCDDE4, transparent 72%),
    linear-gradient(165deg, #F1F1F4 10%, #E4E5EA 100%);
}
.contact__card::before { opacity: .10; }
/* contact page: pure white page (header and footer gap follow --page) */
body.page-contact { --page: #FFFFFF; }
.contact-form,
.contact-done { position: relative; z-index: 2; }
.contact-form { display: grid; gap: 28px; }
.contact-form[hidden] { display: none; }
.contact-form__group { display: grid; gap: 4px; }
.contact-form__group label { font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #B4B4BE;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form__group textarea { resize: vertical; min-height: 120px; }
.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder { color: #8E8E98; }
.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}
/* keep browser autofill from painting a coloured box on the grey card */
.contact-form__group input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #ECECF0 inset;
}
.contact-form__submit { width: 100%; height: 50px; border: 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.contact-form__submit:disabled { opacity: .7; cursor: not-allowed; }
.contact-form__error {
  padding: 10px 14px;
  border: 1px solid #FECACA;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 14px;
}
.contact-form__error[hidden] { display: none; }

.contact-done { padding: 24px 0; text-align: center; outline: none; }
.contact-done[hidden] { display: none; }
.contact-done__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(17, 7, 164, .08);
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
}
.contact-done h2 { margin: 18px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.contact-done p { margin: 0 auto 24px; max-width: 34ch; color: var(--ink-soft); line-height: 1.55; }
.contact-done__again {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.contact-done__again:hover { text-decoration-color: currentColor; }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; width: 100%; padding-top: 48px; padding-bottom: 72px; }
  .contact__details { margin-top: 32px; }
}

/* ------------------------------------------------------------------
   Hero → platform divider: a hairline at the bottom of the hero with a
   grainy brand-blue glow rising from it, fading out upward behind the
   lower part of the walkthrough.
   ------------------------------------------------------------------ */
.hero__network { z-index: 0; }
.hero__content { z-index: 2; }

/* the glow (gradient + grain), strongest at the line */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(520px, 70%);
  z-index: 1;
  pointer-events: none;
  /* Built like the 2D card: an opaque deep indigo base with lighter indigo and
     3D-card slate-teal clouds, plus the same fine light/dark film grain.
     Fully coloured at the bottom; the mask fades it out upward. */
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .58 0 0 0 -.29'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>") repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -.58 0 0 0 .29'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>") repeat,
    radial-gradient(38% 70% at 82% 70%, rgba(59, 63, 154, .95), transparent 72%),    /* 2D card highlight */
    radial-gradient(34% 75% at 55% 100%, rgba(72, 98, 93, .75), transparent 70%),    /* 3D card teal */
    radial-gradient(40% 80% at 14% 100%, rgba(31, 35, 112, .9), transparent 72%),    /* 2D card low tone */
    radial-gradient(30% 60% at 34% 60%, rgba(42, 59, 57, .55), transparent 70%),     /* 3D card low tone */
    linear-gradient(160deg, #12143A 10%, #0D0E29 100%);                              /* 2D card base */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 38%, rgba(0, 0, 0, .6) 62%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 38%, rgba(0, 0, 0, .6) 62%, transparent 100%);
}
/* the line, fading out toward both ends */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, transparent 0%, rgba(59, 63, 154, .55) 25%, rgba(45, 62, 110, .6) 50%, rgba(72, 98, 93, .55) 75%, transparent 100%);
}
.platform { padding-top: 96px; }

/* White moving network inside the dark glow zone (same box and fade as
   .hero::before, drawn above it and below the walkthrough cards) */
.hero__glownet {
  --net-line: rgba(255, 255, 255, .55);
  --net-node: rgba(255, 255, 255, .95);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(520px, 70%);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 38%, rgba(0, 0, 0, .6) 62%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 38%, rgba(0, 0, 0, .6) 62%, transparent 100%);
}
.hero__glownet svg { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------------
   Showcase: vertical feature tabs + animation stage (showcase.js)
   ------------------------------------------------------------------ */
.showcase { padding: 0 0 128px; }
.showcase__title { max-width: 22ch; text-wrap: balance; }
.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: 56px;
}

/* Tab list: subtle hairlines between items */
.showcase__item { border-top: 1px solid var(--line); }
.showcase__item:last-child { border-bottom: 1px solid var(--line); }
.showcase__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0 14px 18px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
/* active marker: a short brand bar that grows in on the left */
.showcase__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform .35s cubic-bezier(.22, .7, .2, 1);
}
/* feature icon before each tab title: thin black line art, no fill */
.showcase__icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #000;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.showcase__tab:hover { color: var(--ink); }
.showcase__item.is-active .showcase__tab { color: var(--ink); font-weight: 600; }
.showcase__item.is-active .showcase__tab::before { transform: scaleY(1); }
.showcase__tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }

/* Expanding description: grid-rows 0fr -> 1fr animates to the content height */
.showcase__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22, .7, .2, 1);
}
.showcase__more > div {
  overflow: hidden;
  padding-left: 18px;
  opacity: 0;
  transition: opacity .3s ease;
}
.showcase__item.is-active .showcase__more { grid-template-rows: 1fr; }
.showcase__item.is-active .showcase__more > div { opacity: 1; transition-delay: .1s; }
.showcase__more p { margin: -6px 0 14px; max-width: 42ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.showcase__link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.showcase__link:hover,
.showcase__link:focus-visible { text-decoration-color: currentColor; }

/* Stage: panels stacked in one cell and cross-faded */
.showcase__stage {
  position: relative;
  display: grid;
  aspect-ratio: 1440 / 900;
  border-radius: 14px;
  overflow: hidden;
  background: #F1F0EC;
}
.showcase__panel {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .38s ease;
}
.showcase__panel.is-active { opacity: 1; }
.showcase__panel > * { width: 100%; height: 100%; }
.showcase__panel img,
.showcase__panel video,
.showcase__panel iframe { display: block; border: 0; object-fit: cover; }
/* placeholder until the animations arrive */
.showcase__ph {
  display: grid;
  place-items: center;
  color: #A3A1AA;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}

@media (max-width: 820px) {
  .showcase { padding-bottom: 88px; }
  .showcase__grid { grid-template-columns: 1fr; margin-top: 36px; }
  .showcase__stage { order: -1; }   /* animation first, tabs below it on phones */
}
@media (prefers-reduced-motion: reduce) {
  .showcase__more, .showcase__more > div, .showcase__panel, .showcase__tab::before { transition: none; }
}

/* Showcase stage follows the first animation's proportions (1720 x 816) */
.showcase__stage { aspect-ratio: 1720 / 816; background: #f5f6f8; }
.showcase__panel img { object-fit: contain; }

/* Showcase revisions: no "Learn more" link, so the description closes the
   tab; the animation stage is 15 % larger (≈703 → 808 px at 1440 wide),
   taken from the tab column. */
.showcase__more p { margin-bottom: 24px; }
.showcase__grid { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.5fr); }
@media (max-width: 820px) {
  .showcase__grid { grid-template-columns: 1fr; }
}
.showcase__stage { aspect-ratio: 1380 / 816; }   /* projects-overview.svg is now 1380 x 816 */

/* Stage +10 % more (≈808 → 889 px at 1440 wide). The tab column keeps its
   width, so the grid grows into the right-hand margin instead (≈7.3 % of the
   content width, i.e. +10 % of the stage column). Single column on phones. */
.showcase__grid { margin-right: -7.3%; }
@media (max-width: 820px) {
  .showcase__grid { margin-right: 0; }
}
/* give the added width to the stage only: tabs keep ~0.5 share, stage 1.65 */
.showcase__grid { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.65fr); margin-right: -6.9%; }
@media (max-width: 820px) {
  .showcase__grid { grid-template-columns: 1fr; margin-right: 0; }
}
.showcase__grid { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.65fr); }   /* tabs back to ~296 px, stage ~889 px at 1440 */
@media (max-width: 820px) { .showcase__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Showcase stage: dark grainy gradient frame (the 2D card's indigo mixed
   with the 3D card's slate teal) with the animation set inside it.
   ------------------------------------------------------------------ */
.showcase__stage {
  aspect-ratio: auto;
  padding: clamp(16px, 3vw, 40px);
  border-radius: 16px;
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 85% 0%, #3B3F9A, transparent 70%),
    radial-gradient(60% 70% at 0% 100%, #2A3B39, transparent 72%),
    radial-gradient(50% 50% at 35% 40%, #1F2370, transparent 75%),
    linear-gradient(160deg, #12143A 10%, #0D0E29 100%);
}
/* mottled clouds + fine film grain, as on the module cards */
.showcase__stage::before,
.showcase__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.showcase__stage::before {
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'><filter id='m' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0035 .006' numOctaves='5' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.8 0 0 0 -1.2'/></filter><rect width='600' height='600' filter='url(%23m)'/></svg>") center / cover no-repeat;
  opacity: .6;
}
.showcase__stage::after {
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  3.4 0 0 0 -1.7'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>") repeat,
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -3.4 0 0 0 1.7'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>") repeat;
  opacity: .17;
  z-index: 0;
}
/* the animation itself: a rounded window floating on the gradient */
.showcase__panel {
  position: relative;
  z-index: 1;
  aspect-ratio: 1380 / 816;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f6f8;
  box-shadow: 0 18px 50px rgba(5, 6, 30, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
/* The stage's frame has a deeper bottom edge that holds the pause button
   (anim-toggle.js, which mounts it with mode 'below'; see .anim-toggle). */
.showcase__stage { --pad: clamp(16px, 3vw, 40px); padding-bottom: calc(var(--pad) + 34px); }
.showcase__stage > .anim-toggle { top: auto; right: var(--pad); bottom: calc(var(--pad) / 2); }
.showcase__stage.is-still > .anim-toggle { visibility: hidden; }   /* an image panel: nothing to pause */
@media (max-width: 820px) {
  /* Phones: the animation sits above the tabs; it stays in view while they are
     tapped, so a tab never changes an animation that is scrolled away. */
  .showcase__stage { position: sticky; top: var(--header-h); z-index: 3; }
}

/* ------------------------------------------------------------------
   Pause / play button on every animation (anim-toggle.js): one round
   34 px button per animated region. Placement by mode:
     --inline   in a row of controls (hero dots, carousel dots)
     --below    under the region's bottom-right corner (.sysdemo demos)
     --caption  at the right of a figure caption (documentation)
     --corner   inside the region's bottom-right corner (network bands,
                the homepage showcase frame)
   --dark on dark backgrounds.
   ------------------------------------------------------------------ */
.anim-toggle {
  --at-bg: #fff;
  --at-ink: var(--ink);
  --at-line: #DDDCE3;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--at-line);
  border-radius: 50%;
  background: var(--at-bg);
  color: var(--at-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.anim-toggle svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.anim-toggle__play { display: none; }
.anim-toggle.is-paused .anim-toggle__pause { display: none; }
.anim-toggle.is-paused .anim-toggle__play { display: inline; }
.anim-toggle:hover { color: var(--blue); border-color: rgba(17, 7, 164, .35); }
.anim-toggle:active { transform: scale(.94); }
.anim-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 50%; }
.anim-toggle--dark {
  --at-bg: rgba(255, 255, 255, .1);
  --at-ink: #fff;
  --at-line: rgba(255, 255, 255, .5);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.anim-toggle--dark:hover { color: #fff; background: rgba(255, 255, 255, .2); border-color: #fff; }
.anim-toggle--dark:focus-visible { outline-color: #fff; }
.anim-toggle--below { position: absolute; right: 0; top: calc(100% + 12px); z-index: 3; }
.anim-toggle--corner { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.anim-toggle--caption { position: absolute; right: 0; bottom: 0; }
/* documentation figures: the caption leaves room for the button on its right */
.docs-figure--anim { position: relative; }
.docs-figure--anim figcaption { min-height: 34px; padding: 7px 48px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .anim-toggle { transition: none; }
}

/* ------------------------------------------------------------------
   Verifications: the index (verifications.html) and its articles
   (verification-*.html). Formulas are written as LaTeX in the markup,
   \( inline \) and \[ display \], and turned into MathML by Temml
   (assets/temml, the engine the app itself uses); see article.js.
   ------------------------------------------------------------------ */
.verif {
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 72px;
}
.verif__title {
  margin: 16px 0 0;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.verif__lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink-soft);
}
.verif__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
}
/* Plain cells: no border, no lift. A gradient hairline (transparent at
   both ends) separates neighbours. */
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  background: none;
}
.vcard + .vcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #C9C9DC 18%, #C9C9DC 82%, transparent);
}
.vcard__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  border-radius: 10px;
  background: #F6F6FA;
}
.vcard__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.vcard__title { margin: 10px 0 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.vcard__text { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.vcard__more {
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color .15s ease;
}
.vcard__more::after { content: "\2192"; display: inline-block; margin-left: 6px; }
.vcard:hover .vcard__more { color: var(--blue); }

@media (max-width: 980px) {
  .verif__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .vcard__art { aspect-ratio: 16 / 7; }
  /* stacked: separators run horizontally */
  .vcard + .vcard::before {
    width: auto;
    height: 1px;
    right: 0;
    bottom: auto;
    background: linear-gradient(to right, transparent, #C9C9DC 18%, #C9C9DC 82%, transparent);
  }
}
@media (max-width: 820px) {
  .verif { width: 100%; }
}

/* Article */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) 24px;
}
.article__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.article__back::before { content: "\2190"; margin-right: 6px; }
.article__back:hover { color: var(--blue); }
.article h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.article__meta { margin: 14px 0 0; font-size: 15px; color: #6E6E78; }
.article__lead {
  margin: 28px 0 0;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink);
}
.article h2 {
  margin: 56px 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.article h3 { margin: 32px 0 8px; font-size: 19px; font-weight: 600; }
.article p,
.article li { font-size: 17px; line-height: 1.7; color: #3F3F4A; }
.article p { margin: 0 0 14px; }
.article ul,
.article ol { margin: 8px 0 18px 22px; padding: 0; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--ink); font-weight: 600; }
.article p a,
.article li a { color: var(--blue); }
.article p a:hover,
.article li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Formulas. Inline math sits a touch larger than the text so subscripts stay
   readable; a display formula gets its own tinted row with the clause or
   equation number on the right. Long formulas scroll inside the row. */
.article math { font-size: 1.06em; }
.nobr { white-space: nowrap; }   /* a formula tied to its punctuation, see article.js */
.eq {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 18px 0 20px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #F6F6FA;
}
.eq__math { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.eq__math math { font-size: 1.14em; }
.eq__math math.tml-display { margin: 0; }
.eq__ref { flex: none; font-size: 13px; font-weight: 500; color: #6E6E78; white-space: nowrap; }
/* Until Temml has run, the raw LaTeX is what's on the page: keep it tidy. */
.eq__math:not(:has(math)) { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--ink-soft); white-space: pre-wrap; }

/* Tables: the list of checks, and the comparison against the reference */
.article__table { margin: 20px 0 24px; overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.article th,
.article td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #3F3F4A; }
.article th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78; border-bottom-color: #D5D5DE; white-space: nowrap; }
.article td:first-child { color: var(--ink); font-weight: 500; }
.article td.num,
.article th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article th:last-child,
.article td:last-child { padding-right: 0; }
.article caption { caption-side: bottom; padding-top: 10px; font-size: 14px; line-height: 1.5; color: #6E6E78; text-align: left; }

/* Side note: an assumption or a limit worth knowing */
.note {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(17, 7, 164, .045);
}
.article .note p { margin: 0; font-size: 16px; line-height: 1.65; }
.article .note p + p { margin-top: 8px; }

/* Figure: an inline SVG diagram with its caption */
.article figure { margin: 26px 0; }
.article__fig { overflow-x: auto; }                     /* on a phone the diagram keeps a readable size and scrolls */
.article figure svg { display: block; width: 100%; min-width: 540px; height: auto; }
.article figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #6E6E78; }

/* Foot of the article: the other articles in the series */
.article__more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article__next {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .2s ease;
}
.article__next:hover { border-color: var(--blue); }
.article__next small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78; }
.article__next b { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .eq { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px; }
  .eq__math math { font-size: 1em; }
  .eq__ref { align-self: flex-end; }
  .article__more { grid-template-columns: 1fr; }
  .article h2 { margin-top: 44px; font-size: 23px; }
}

/* ------------------------------------------------------------------
   Language switcher (built by i18n.js): flag + code next to Sign up,
   a row of the three languages inside the phone menu
   ------------------------------------------------------------------ */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-family: "Figtree", var(--font, "Hanken Grotesk"), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease;
}
.lang__btn:hover { color: var(--blue); }
.lang__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.lang__flags { display: inline-flex; gap: 3px; flex: none; }
.lang__flag {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .10);
}
.lang__chev { width: 14px; height: 14px; color: var(--ink-soft); transition: transform .2s ease; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 110;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(17, 17, 24, .04), 0 18px 48px rgba(17, 17, 24, .14);
}
.lang__menu[hidden] { display: none; }
.lang__opt,
.lang-row__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Figtree", var(--font, "Hanken Grotesk"), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.lang__opt { padding: 10px 12px; border-radius: 10px; }
.lang__opt:hover,
.lang__opt:focus-visible { background: #F4F3EF; }
.lang__opt[aria-current="true"] .lang__code { font-weight: 700; }
.lang__name { margin-left: auto; padding-left: 18px; color: var(--ink-soft); font-size: 12.5px; font-weight: 400; }

.lang-row { display: none; }

/* Translated pages: the one-line hero headline may wrap rather than clip if a
   translation runs longer than the English, and long German compounds in the
   module card titles hyphenate */
html:not([lang="en"]) .hero__title { white-space: normal; }
.pcard__title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1060px) {
  .lang-row { display: flex; gap: 8px; padding-top: 16px; }
  .lang-row__opt {
    height: 38px;
    padding: 0 14px;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .lang-row__opt[aria-current="true"] { border-color: var(--ink); }
}

/* ------------------------------------------------------------------
   Feature pages (feature-*.html): the landing hero's network behind a
   two-column block, copy left and an animation carousel right (feature.js).
   The glow at the foot of the hero is lower than on the landing page so the
   copy column stays on the light network.
   ------------------------------------------------------------------ */
/* The glow fills the padding under both columns and runs straight into the
   dark call-to-action band that follows, so no copy ever sits on it. */
.hero--feature { margin-top: 72px; padding-bottom: 190px; }
.hero--feature::before,
.hero--feature .hero__glownet { height: 190px; }
/* light grey instead of the landing page's dark indigo/teal glow */
.hero--feature::before { background: linear-gradient(to top, #ECECEF, rgba(236, 236, 239, 0)); -webkit-mask-image: none; mask-image: none; }
.hero--feature .hero__glownet { --net-line: #D2D2DA; --net-node: #C2C2CC; }
.hero--feature::after { background: linear-gradient(to right, transparent 0%, #DDDDE3 25%, #DDDDE3 75%, transparent 100%); }
.feat__title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.feat__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: 36px;
}
.feat__lead {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--ink);
}
/* copy panels follow the carousel: stacked in one cell (height = the tallest)
   and cross-faded */
.feat__panels { display: grid; }
.feat__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.feat__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s; }
.feat__copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink-soft);
}
.feat__points { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feat__points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.feat__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.feat__actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.feat__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.feat__link:hover { text-decoration-color: currentColor; }

/* Carousel: a stacked deck. The active slide is in front; the next one waits
   behind it, shrunk and offset so its right edge peeks out (click it to bring
   it forward). Slides trade places with a slide. */
.fcar { position: relative; z-index: 2; }
.fcar__stage {
  position: relative;
  display: grid;
  aspect-ratio: 1380 / 900;
}
.fcar__slide {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  border: 1px solid #DDDCE3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .10);
  transform-origin: 100% 50%;
  transform: translateX(6%) scale(.88);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), box-shadow .6s ease, filter .6s ease;
  filter: brightness(.97);
}
.fcar__slide.is-active {
  z-index: 2;
  transform: none;
  filter: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 48px rgba(15, 23, 42, .14);
}
/* the slide behind takes the click (its iframe would swallow it) */
.fcar__slide:not(.is-active)::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.fcar__slide iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; color-scheme: light; }
/* dots, then the pause button (anim-toggle.js); the bar keeps the button's height */
.fcar__bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 34px; margin-top: 12px; }
.fcar__caption { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.fcar__dots { display: flex; }
.fcar__dots[hidden] { display: none; }
/* each dot is a 24 px tall target with the pill drawn inside; the current one is a long pill */
.fcar__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: width .25s ease;
}
.fcar__dot::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 8px;
  border-radius: 8px;
  background: #C9C8D2;
  transition: background .25s ease;
}
.fcar__dot:hover::before { background: #A9A8B6; }
.fcar__dot[aria-current="true"] { width: 40px; }
.fcar__dot[aria-current="true"]::before { background: var(--blue); }
.fcar__dot:focus-visible { outline-offset: 0; border-radius: 12px; }

@media (max-width: 980px) {
  .feat__grid { grid-template-columns: 1fr; }
  .fcar { order: -1; }
  .hero--feature { padding-bottom: 150px; }
  .hero--feature::before,
  .hero--feature .hero__glownet { height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .fcar__slide, .fcar__dot, .fcar__dot::before, .feat__panel { transition: none; }
}
@media (max-width: 980px) {
  .fcar__stage { margin-right: 10%; }              /* room for the peeks on narrow screens */
}

/* Preconfigured-systems section: the hero's layout mirrored (animation left,
   copy right) and a little smaller; it continues the hero's grey glow. */
.sysdemo { position: relative; padding: 24px 0 120px; background: #ECECEF; }
.sysdemo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sysdemo__frame {
  aspect-ratio: 1380 / 900;
  border: 1px solid #DDDCE3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 48px rgba(15, 23, 42, .14);
}
.sysdemo__frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; color-scheme: light; }
/* the pause button (anim-toggle.js) hangs under the frame's bottom-right corner */
.sysdemo__anim { position: relative; }
@media (max-width: 980px) {
  .sysdemo__anim { margin-bottom: 18px; }   /* room for the button above the copy */
}
.sysdemo__title {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sysdemo__copy p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; text-wrap: pretty; color: var(--ink-soft); }
@media (max-width: 980px) {
  .sysdemo { padding-bottom: 110px; }
  .sysdemo__inner { grid-template-columns: 1fr; }
}

/* Second showcase row directly under the first: copy left, animation right, same grey band. */
.sysdemo--rev { padding-top: 0; }
.sysdemo--rev.sysdemo--first { padding-top: 24px; }
.sysdemo--rev .sysdemo__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 980px) {
  .sysdemo--rev .sysdemo__inner { grid-template-columns: 1fr; }
  .sysdemo--rev .sysdemo__anim { order: -1; }
}

/* Design-codes section (2D and 3D feature pages): copy left, table right. */
.codes { position: relative; padding: 110px 0 120px; background: var(--page); }
.codes__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.codes__title {
  margin: 0 0 22px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.codes__copy p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; text-wrap: pretty; color: var(--ink-soft); }
.codes__copy .codes__sub { margin: 26px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.codes__nat { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.codes__nat li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.codes__flag { flex: none; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(17, 17, 24, .1); }
.codes__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.codes__table th, .codes__table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.codes__table thead th { border-top: 0; padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: #F6F6F8; }
.codes__table tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.codes__table td { color: var(--ink-soft); }
.codes__table .codes__none { color: #B5B5BF; }
.codes__reg { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
@media (max-width: 980px) {
  .codes { padding: 80px 0 90px; }
  .codes__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .codes__table thead { display: none; }
  .codes__table, .codes__table tbody, .codes__table tr, .codes__table th, .codes__table td { display: block; }
  .codes__table tbody th { width: auto; padding: 14px 16px 4px; border-top: 1px solid var(--line); background: #F6F6F8; }
  .codes__table tbody tr:first-child th { border-top: 0; }
  .codes__table td { padding: 8px 16px; border-top: 0; }
  .codes__table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
  .codes__table td:last-child { padding-bottom: 14px; }
}

/* ------------------------------------------------------------------
   Features page (features.html): plan comparison table. Each <tbody>
   is a collapsible group; checks are brand-blue discs with a white tick.
   ------------------------------------------------------------------ */
.fcmp {
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 96px;
}
.fcmp__anim {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
  margin-top: clamp(36px, 4.5vw, 56px);
}
.fcmp__anim .fcar__stage { aspect-ratio: 1100 / 700; margin-right: 6%; }
@media (max-width: 980px) {
  .fcmp__anim { grid-template-columns: 1fr; }
  .fcmp__anim .fcar { order: -1; }
}
.fcmp .verif__lead a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.fcmp .verif__lead a:hover { text-decoration: underline; }
.fcmp__wrap {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--bg);
}
.fcmp__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}
.fcmp__col-feat { width: auto; }
.fcmp__table col:not(.fcmp__col-feat) { width: 13%; }
.fcmp__table thead th {
  position: sticky;
  top: var(--header-h);
  z-index: 1;
  padding: 18px 12px;
  background: #EAF2FD;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.fcmp__table thead th:first-child { text-align: left; padding-left: 24px; }
.fcmp__head th { padding: 0; background: #EEEEEF; }
.fcmp__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.fcmp__tri {
  flex: none;
  width: 0; height: 0;
  margin-right: calc(6.5% - 7px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid var(--ink);
  transition: transform .2s;
}
.fcmp__group.is-collapsed .fcmp__tri { transform: rotate(-90deg); }
.fcmp__group.is-collapsed tr:not(.fcmp__head) { display: none; }
.fcmp__group tr:not(.fcmp__head) > * { border-bottom: 1px solid var(--line); }
.fcmp__group tr:not(.fcmp__head) th {
  padding: 18px 24px;
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}
.fcmp__group td {
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  border-left: 1px dashed #D4D4DA;
}
/* "Coming soon" info tip next to a feature name (reuses the pricing tooltip) */
.fcmp__tipwrap { position: relative; display: inline-block; margin-left: 8px; vertical-align: -2px; }
.fcmp__info {
  display: inline-grid;
  place-items: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(17, 7, 164, .1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.fcmp__tipwrap .plan__tooltip { left: -16px; width: max-content; max-width: 220px; font-weight: 400; }
.fcmp__tipwrap .plan__tooltip::after { left: 18px; }
.fcmp__note { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.fcmp__yes {
  display: inline-block;
  width: 24px; height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.fcmp__no {
  display: inline-block;
  width: 24px; height: 2px;
  vertical-align: middle;
  background: repeating-linear-gradient(90deg, #B4B4BC 0 9px, transparent 9px 15px);
}
@media (max-width: 820px) {
  .fcmp { width: auto; padding-left: 16px; padding-right: 16px; }
  .fcmp__wrap { overflow-x: auto; }
  .fcmp__table { min-width: 340px; font-size: 14px; }
  .fcmp__table col:not(.fcmp__col-feat) { width: 46px; }
  .fcmp__table thead th { position: static; padding: 12px 4px; font-size: 11px; letter-spacing: .04em; }
  /* Plan names run bottom-to-top so all four columns fit a phone screen */
  .fcmp__table thead th + th { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; vertical-align: middle; }
  .fcmp__table thead th:first-child { vertical-align: bottom; }
  .fcmp__table thead th:first-child, .fcmp__group tr:not(.fcmp__head) th { padding-left: 14px; padding-right: 10px; }
  .fcmp__toggle { padding: 16px 14px; }
  .fcmp__tri { margin-right: 22px; }
  .fcmp__group td { padding: 10px 4px; }
  .fcmp__yes { width: 20px; height: 20px; }
}

/* ------------------------------------------------------------------
   About page (about.html): intro, text blocks (heading left, copy
   right), three numbered focus cards.
   ------------------------------------------------------------------ */
.about {
  width: 85%;
  max-width: 1251px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 96px;
}
.about .verif__lead + .verif__lead { margin-top: 14px; }
/* intro band: the landing page's drifting network behind it, full width
   (.hero__network brings the mask that dissolves it at the top and bottom) */
.about-hero { position: relative; overflow: hidden; }
.about-hero .hero__network { z-index: 0; }
.about--intro { position: relative; z-index: 1; padding-bottom: clamp(72px, 9vw, 120px); }
.about--rest { padding-top: 0; }
.about--rest > .about__block:first-child { margin-top: 0; }
.about__block {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about__h { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.about__body p { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
/* Focus cards: one joined band (no gap, no borders), each card a grainy gradient in
   the product-card palette; texture and grain come from the shared .pcard ::before/::after */
.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-radius: 16px;
  overflow: hidden;
}
.about__card {
  --base: #12143A; --hi: #3B3F9A; --lo: #1F2370;          /* Nodus indigo */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 3.4vw, 48px) clamp(24px, 2.6vw, 38px) clamp(36px, 3.8vw, 54px);
  color: #fff;
  background:
    radial-gradient(85% 70% at 88% 8%, var(--hi), transparent 72%),
    radial-gradient(75% 65% at 0% 100%, var(--lo), transparent 70%),
    linear-gradient(160deg, var(--base) 10%, color-mix(in srgb, var(--base) 70%, #000) 100%);
}
.about__card:nth-child(2) { --base: #17201F; --hi: #48625D; --lo: #2A3B39; }   /* slate teal */
.about__card:nth-child(3) { --base: #1C1B18; --hi: #6A5F49; --lo: #3A3428; }   /* bronze */
.about__card > * { position: relative; z-index: 1; }       /* above the grain */
.about__num { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.about__ct { margin: 18px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.about__card p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
@media (max-width: 820px) {
  .about { width: auto; padding-left: 16px; padding-right: 16px; }
  .about__block { grid-template-columns: 1fr; }
  .about__cards { grid-template-columns: 1fr; }
}

/* About: the founders, small round portraits with the brand gradient ring */
.team { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 22px 0 0; padding: 0; list-style: none; }
.team__member { display: flex; align-items: center; gap: 14px; }
.team__photo {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0091FF);
}
.team__photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.team__name { display: block; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.team__role { display: block; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.about__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
}
.about__social svg { width: 18px; height: 18px; flex: none; }
.about__social:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------
   Site-wide accessibility and polish (audit 2026-11-17)
   ------------------------------------------------------------------ */
/* Skip link: first tab stop on every page, visible only when focused */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: -5px; }

/* Text for screen readers and text extractors only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Footer links all have destinations now */
.footer__link[href] { cursor: pointer; }

/* Escape closes a hover/focus dropdown until the pointer or focus leaves it */
@media (min-width: 1061px) {
  .nav-item.is-dismissed .nav-menu { opacity: 0; visibility: hidden; }
  .nav-item.is-dismissed .nav-item__chev { transform: none; }
}

/* Reading measure for long running text */
.legal-content p,
.legal-content li,
.faq__a p { max-width: 70ch; }

/* "Coming soon" label next to a feature name */
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 100px;
  background: rgba(17, 7, 164, .08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.6;
  vertical-align: 1px;
  white-space: nowrap;
}

/* Billing line under a plan price; empty ones keep the cards' buttons level */
.plan__price:has(+ .plan__note) { margin-bottom: 6px; }
.plan__note {
  min-height: 2.9em;
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .plan__note:empty { display: none; }
  .plan__price:has(+ .plan__note:empty) { margin-bottom: 28px; }
}

/* Tooltips: stay open while hovered (a bridge spans the gap above the
   trigger) and close on Escape (site.js sets .is-dismissed) */
.plan__tooltip::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.plan__tip:hover + .plan__tooltip,
.plan__tip:focus-visible + .plan__tooltip,
.plan__tip:focus + .plan__tooltip,
.plan__tooltip:hover { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.plan__tooltip.is-dismissed { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* Features table on phones: fits 320px without sideways scrolling, so the
   plan header row can stay pinned under the site header while scrolling */
@media (max-width: 820px) {
  .fcmp__wrap { overflow-x: visible; }
  .fcmp__table { min-width: 0; }
  .fcmp__table thead th { position: sticky; top: var(--header-h); z-index: 2; }
}
@media (max-width: 400px) {
  .fcmp__table { font-size: 13px; }
  .fcmp__table col:not(.fcmp__col-feat) { width: 40px; }
  .fcmp__table thead th:first-child,
  .fcmp__group tr:not(.fcmp__head) th { padding-left: 10px; padding-right: 6px; }
  .fcmp__group td { padding: 10px 2px; }
  .fcmp__toggle { padding: 14px 10px; font-size: 18px; }
  .fcmp__tri { margin-right: 14px; }
  .soon { margin-left: 0; }
}
/* the third carousel slide's transform must not widen the page */
.fcmp__anim { overflow-x: clip; }

/* 404 page */
.notfound { min-height: calc(72vh - var(--header-h)); padding-top: clamp(56px, 8vw, 104px); }
.notfound__code {
  margin: 0 0 12px;
  font-size: clamp(72px, 11vw, 132px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--blue);
}
.notfound .feat__actions { flex-wrap: wrap; row-gap: 12px; }

/* ------------------------------------------------------------------
   Business "Request a quote" (index.html #quoteRequest, quote-request.js):
   a plain white dialog using the contact form's fields
   ------------------------------------------------------------------ */
button.plan__btn { padding: 0; font-family: inherit; cursor: pointer; }
.qreq {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(17, 17, 24, .22);
  overflow: auto;
}
.qreq::backdrop { background: rgba(17, 17, 24, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qreq[open] { animation: qreq-in .2s ease; }
@keyframes qreq-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .qreq[open] { animation: none; } }
.qreq__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.qreq__close:hover { background: #F1F1F4; color: var(--ink); }
.qreq__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qreq__title { margin: 0; padding-right: 32px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.qreq__lead { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }
.qreq .contact-form { gap: 24px; }
.qreq .contact-form__group input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; }
.qreq .contact-form__group input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.qreq .contact-form__group input::-webkit-outer-spin-button,
.qreq .contact-form__group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qreq__done { padding: 12px 0 4px; }
