/* ==========================================================================
   Gugu Globally — stylesheet
   Monochrome palette, editorial type, no accent colour.
   ========================================================================== */

:root {
  --obsidian: #0a0a0a;
  --graphite: #161616;
  --ash: #2e2e2e;
  --smoke: #9a9a9a;
  --paper: #f5f5f3;
  --pure: #ffffff;
  /* Derived for contrast on Paper (Smoke is too light on light backgrounds) */
  --ink-2: #565656;
  --rule-light: #d9d9d6;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 72px);
  --max: 1760px;
  --nav-h: 76px;

  /* Motion tokens: one curve, three durations (read by motion.js too) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fade: 600ms;   /* fade-in, line by line, scroll reveals */
  --dur-short: 250ms;  /* dropdown, table rows, small state changes */
  --dur-page: 650ms;   /* page transitions */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);

  --fs-hero: clamp(3.1rem, 8.6vw, 10.5rem);
  --fs-h2: clamp(2.5rem, 6.2vw, 7.25rem);
  --fs-h3: clamp(1.9rem, 4.2vw, 4.6rem);
  --fs-lead: clamp(1.125rem, 1.35vw, 1.5rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --section-y: clamp(96px, 14vw, 240px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--obsidian);
}

body {
  margin: 0;
  background: transparent; /* html paints Obsidian; body stays clear so #network shows */
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--pure); color: var(--obsidian); }

/* Focus — always visible for keyboard users */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pure);
  outline-offset: 4px;
  border-radius: 2px;
}
.on-paper :focus-visible { outline-color: var(--obsidian); }

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--pure);
  color: var(--obsidian);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type primitives ---------- */

.display {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 104;
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
  color: var(--smoke);
}
/* No decorative line any more. This empty, zero-width item only keeps the label's
   baseline where the line used to put it (the vertical centre), so nothing around
   the label moves. It draws nothing; the negative margin cancels the 12px gap. */
.eyebrow::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: -12px;
}
.on-paper .eyebrow { color: var(--ink-2); }

.index {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

/* Small pill labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--smoke);
  white-space: nowrap;
  vertical-align: middle;
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.on-paper .tag { color: var(--ink-2); }

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

.btn {
  --bg: var(--pure);
  --fg: var(--obsidian);
  --bd: var(--pure);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px 0 28px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.965); }

/* Rolling label: the text slides up and an identical copy follows it in */
.btn-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.25;
}
.btn-label > span {
  display: block;
  transition: transform 0.45s var(--ease-out);
}
.btn-label > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.btn:hover .btn-label > span,
.btn:focus-visible .btn-label > span { transform: translateY(-100%); }

.btn-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { transform: translateX(4px); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--paper);
  --bd: rgba(245, 245, 243, 0.28);
}
.btn--ghost:hover { --bd: var(--pure); }

.btn--ink {
  --bg: var(--obsidian);
  --fg: var(--paper);
  --bd: var(--obsidian);
}
.btn--ink:hover { --bg: #000; }

.btn--small { min-height: 44px; padding: 0 18px 0 20px; font-size: 0.9375rem; }

.link-line {
  position: relative;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.2s ease;
}
.link-line:hover,
.link-line:focus-visible { background-size: 100% 1px; }

/* ==========================================================================
   Logo — the new flat GG (assets/logo-v2-mark.png: black on transparent,
   cut from assets/logo-v2.png) centred in a white rounded square.
   No shadow, no glow.
   ========================================================================== */

.logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--pure);
  line-height: 0;
  text-decoration: none;
}
.logo-mark {
  display: block;
  width: 28px;
  height: auto;
  transition: opacity 0.25s ease;
}
.logo:hover .logo-mark { opacity: 0.72; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.35s ease, border-color 0.35s ease, height 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: var(--obsidian);
  border-bottom-color: var(--ash);
}
/* Three columns: links left, GG centred, actions right */
.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-left { justify-self: start; }
.nav-inner > .logo { justify-self: center; }
.nav-actions { justify-self: end; }
/* Small uppercase with wide tracking: used only in the navbar */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-actions .btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a,
.nav-links button.nav-text {
  color: rgba(245, 245, 243, 0.78);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links button.nav-text { font-weight: inherit; letter-spacing: inherit; text-transform: inherit; } /* buttons do not inherit these by default */
.nav-links a:hover,
.nav-links button.nav-text:hover { color: var(--pure); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-sep { width: 1px; height: 18px; background: var(--ash); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--obsidian);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.menu-links li { border-top: 1px solid var(--ash); overflow: hidden; }
.menu-links li:last-child { border-bottom: 1px solid var(--ash); }
.menu-links a,
.menu-links button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 16px 0 14px;
  background: none;
  border: 0;
  text-align: left;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-out);
}
.menu-links a .index,
.menu-links button .index { font-size: 0.75rem; letter-spacing: 0; }
.menu.is-open .menu-links a,
.menu.is-open .menu-links button { transform: translateY(0); }
.menu.is-open .menu-links li:nth-child(2) > * { transition-delay: 0.04s; }
.menu.is-open .menu-links li:nth-child(3) > * { transition-delay: 0.08s; }
.menu.is-open .menu-links li:nth-child(4) > * { transition-delay: 0.12s; }
.menu.is-open .menu-links li:nth-child(5) > * { transition-delay: 0.16s; }
.menu-foot { display: grid; gap: 18px; }
.menu-foot .btn { width: 100%; }
.menu-foot p { color: var(--smoke); font-size: var(--fs-small); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--obsidian);
  isolation: isolate;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform, opacity; /* scroll push-in + pointer drift stay on the compositor */
}
.hero-map svg { width: 100%; height: 100%; }
.hero-map .country { fill: var(--graphite); stroke: #3d3d3d; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.hero-map .country--uk { fill: #2a2a2a; stroke: #8a8a8a; stroke-width: 1; }
.hero-map .graticule { fill: none; stroke: var(--ash); stroke-width: 0.5; opacity: 0.45; }
.hero-map .sphere-edge { fill: none; stroke: var(--ash); stroke-width: 0.5; }
.hero-map .city { fill: var(--smoke); }
.hero-map .city--uk { fill: #c9c9c9; }
.hero-map .route { fill: none; stroke: var(--pure); stroke-width: 1.4; stroke-linecap: round; }
.hero-map .route-glow { fill: none; stroke: var(--pure); stroke-width: 4; stroke-linecap: round; opacity: 0.32; }
.hero-map .pulse { fill: none; stroke: var(--pure); stroke-width: 1; opacity: 0; }
.hero-map .node-end { fill: var(--pure); }
/* Living network, level 1 */
.hero-map .particle { fill: var(--pure); will-change: transform, opacity; }
.hero-map .route-sweep { pointer-events: none; }
.hero-map .route-sweep rect { will-change: transform; }

.hero-map-fade {
  /* Functional scrim: dims the centre so the headline reads clearly; routes stay alive at the edges */
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 66% 60% at 50% 50%, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.8) 48%, rgba(10, 10, 10, 0.34) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0) 24%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 18%);
}

/* Scroll cue: a very quiet mouse icon at the bottom centre of the hero, shown after 5 seconds */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  color: var(--obsidian);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
.hero-scroll-cue.is-visible { opacity: 0.4; pointer-events: auto; }
.hero-scroll-cue:hover { opacity: 0.75; }
.hero-scroll-mouse {
  position: relative;
  display: block;
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
}
.hero-scroll-dot {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: hero-scroll-wheel 2.2s ease-in-out infinite;
}
@keyframes hero-scroll-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue, .hero-scroll-dot { transition: none; animation: none; }
}

/* Footer bottom row: company details on the left, Trustpilot micro star on the right */
.footer-legal-text { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.footer-legal-text--end { margin-left: auto; text-align: right; max-width: none; flex-shrink: 0; white-space: nowrap; }

/* Back to top: a quiet round button, bottom right, shown once the visitor reaches the bottom */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--obsidian);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease, background-color 0.3s ease;
}
.back-to-top.is-visible { opacity: 0.55; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { opacity: 0.95; background: rgba(255, 255, 255, 0.75); }
.back-to-top svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* Hero background: monochrome silk bands drawn on a canvas (script at the end of index.html) */
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  color: var(--obsidian);
  opacity: 0.55;
  /* calmer behind the copy: strongest at the edges, lighter in the middle */
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 25%, #000 80%);
          mask-image: radial-gradient(ellipse at 50% 50%, transparent 25%, #000 80%);
}
.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(40px, 7vh, 88px);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; }

.hero-kicker {
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 243, 0.8);
  margin-bottom: clamp(20px, 3vh, 34px);
}

.hero-title {
  /* scales with the viewport; the longest line ("matched directly.") stays well inside it at every width */
  font-size: clamp(2.25rem, 0.75rem + 5vw, 6.75rem);
  margin-bottom: clamp(22px, 3.2vh, 38px);
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-line > span { display: block; }
/* same weight, wide tracking on the second line; trailing tracking compensated so it centres */
.hero-line--wide > span { letter-spacing: 0.07em; margin-right: -0.07em; }
/* Home hero title only: Inter Tight (loaded in index.html with the other Google fonts).
   Size, colour and alignment as before. One family, one weight and one letter-spacing
   on both lines: the wide tracking above does not apply to this title. */
.hero-title {
  font-family: "Inter Tight", var(--f-display);
  font-variation-settings: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-title .hero-line > span { letter-spacing: inherit; margin-right: 0; }
/* The line still masks the intro rise vertically, but never clips a glyph sideways,
   and the extra block padding keeps ascenders and descenders (g, y) inside the mask. */
.hero-title .hero-line { overflow-x: visible; overflow-y: clip; padding-block: 0.04em 0.22em; margin-block: -0.04em -0.22em; }

.hero-sub {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: rgba(245, 245, 243, 0.82);
  margin-bottom: clamp(28px, 4vh, 44px);
}

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Two columns: copy on the left (left-aligned), landscape demo frame on the right.
   The copy column takes the width of its own text, so the frame can never overlap it;
   the frame fills what is left, up to 960px. */
.hero-main {
  display: grid;
  grid-template-columns: max-content minmax(0, 960px);
  justify-content: space-between;
  align-items: center;
  justify-items: start;
  column-gap: clamp(32px, 5vw, 96px);
  text-align: left;
}
.hero-copy { align-items: flex-start; }
.hero-ctas { justify-content: flex-start; }
/* Same family, weight and tracking; sized to the left column instead of the full width */
.hero-main .hero-title { font-size: clamp(2.25rem, 0.5rem + 3.6vw, 5.25rem); }

.hero-demo { justify-self: stretch; width: 100%; }
.demo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--rule-light);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.demo-frame-label {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--obsidian);
}
.demo-frame-note { font-size: var(--fs-small); color: var(--ink-2); }
.demo-frame--live { padding: 0; gap: 0; align-items: stretch; justify-content: flex-start; text-align: left; }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--rule-light); }
.demo-roles { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-role { font: inherit; font-size: var(--fs-small); padding: 8px 14px; border: 1px solid var(--obsidian); background: transparent; color: var(--obsidian); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.demo-role[aria-pressed="true"] { background: var(--obsidian); color: var(--paper); }
.demo-fullscreen { margin-left: auto; font: inherit; font-size: var(--fs-small); padding: 8px 14px; border: 1px solid var(--obsidian); background: transparent; color: var(--obsidian); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.demo-fullscreen { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; }
.demo-fullscreen svg { display: block; }
.demo-fullscreen .icon-collapse { display: none; }
.demo-fullscreen.is-fullscreen .icon-expand { display: none; }
.demo-fullscreen.is-fullscreen .icon-collapse { display: block; }
.demo-fullscreen:hover { background: var(--obsidian); color: var(--paper); }
.demo-frame:fullscreen, .demo-frame:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border: 0; box-shadow: none; }
.demo-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.demo-iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transition: opacity .35s ease; background: var(--paper); }

@media (max-width: 1024px) {
  /* Text first, then the frame at the full width of the container, still 16 / 10 */
  .hero-main { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hero-main .hero-title { font-size: clamp(2.25rem, 0.75rem + 5vw, 6.75rem); } /* original size */
}
@media (max-width: 768px) {
  .demo-frame { max-width: 90vw; }
}

.hero-facts {
  position: relative;
  border-top: 1px solid var(--ash);
}
.hero-facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 24px 24px 0;
}
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--ash); }
.fact strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.fact span { color: var(--smoke); font-size: var(--fs-small); line-height: 1.3; }
.facts-note { display: flex; align-items: center; padding-left: 24px; border-left: 1px solid var(--ash); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  color: var(--smoke);
  text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 30px; background: var(--ash); overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 12px;
  background: var(--pure);
  animation: cue 2.2s var(--ease-move) 3 2.6s both;
}
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(32px); } }

/* Intro: hide the animated navigation until its load sequence starts (JS sets .js) */
.js:not(.intro-ready) [data-intro] { visibility: hidden; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section { position: relative; padding-block: var(--section-y); }
/* Paper sections host a clipped network window under their content */
#carriers, .request { isolation: isolate; }
.on-paper { background: var(--paper); color: var(--obsidian); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 120px);
}
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head:last-child { margin-bottom: 0; } /* when the heading is all the section holds, the section padding is the gap */
.section-head h1,
.section-head h2 { grid-column: 1 / span 8; font-size: var(--fs-h2); }
.section-head > p:not(.eyebrow) {
  grid-column: 9 / -1;
  max-width: 26rem;
  justify-self: end;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--smoke);
}
.on-paper .section-head > p:not(.eyebrow) { color: var(--ink-2); }
/* The italic line (pricing pages): one version */
.section-head > p.note-italic { margin-top: 18px; color: var(--smoke); font-size: var(--fs-body); }
.note-italic .tag { font-style: normal; margin-right: 6px; }

/* ==========================================================================
   01 — Why carriers (feature rows)
   ========================================================================== */

.features { border-top: 1px solid var(--obsidian); counter-reset: feat; }
.feature { border-bottom: 1px solid var(--rule-light); position: relative; }
.feature:last-child { border-bottom-color: var(--obsidian); }

.feature-btn {
  position: relative;
  display: grid;
  grid-template-columns: 7% minmax(0, 1fr) 36% 48px;
  align-items: center;
  column-gap: 24px;
  width: 100%;
  min-height: clamp(104px, 9.5vw, 168px);
  padding: 0 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--obsidian);
  isolation: isolate;
  transition: color 0.45s var(--ease-out);
}
/* Black band that sweeps in on hover / when open */
.feature-btn::before {
  content: "";
  position: absolute;
  inset: -1px calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--obsidian);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.feature-num { font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); transition: color 0.45s ease; }
.feature-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: var(--fs-h3);
  letter-spacing: -0.05em;
  line-height: 0.95;
  padding-block: 28px;
  transition: transform 0.55s var(--ease-out);
}
.feature-detail {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.55s var(--ease-out), color 0.45s ease;
  padding-block: 24px;
}
.feature-detail > span, .feature-detail .d-text { display: block; }
.feature-detail .tag { margin-top: 0; }
.feature-icon {
  justify-self: end;
  width: 40px; height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.55s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.feature-icon svg { width: 14px; height: 14px; }

@media (hover: hover) and (min-width: 900px) {
  .feature-btn:hover,
  .feature-btn[aria-expanded="true"] { color: var(--paper); }
  .feature-btn:hover::before,
  .feature-btn[aria-expanded="true"]::before { transform: scaleY(1); }
  .feature-btn:hover .feature-num,
  .feature-btn[aria-expanded="true"] .feature-num { color: var(--smoke); }
  .feature-btn:hover .feature-title,
  .feature-btn[aria-expanded="true"] .feature-title { transform: translateX(clamp(12px, 1.4vw, 28px)); }
  .feature-btn:hover .feature-detail,
  .feature-btn[aria-expanded="true"] .feature-detail { opacity: 1; transform: none; color: rgba(245, 245, 243, 0.78); transition-delay: 0.08s; }
  .feature-btn:hover .feature-detail .tag,
  .feature-btn[aria-expanded="true"] .feature-detail .tag { color: var(--smoke); }
  .feature-btn:hover .feature-icon,
  .feature-btn[aria-expanded="true"] .feature-icon { transform: rotate(45deg); background: var(--pure); color: var(--obsidian); border-color: var(--pure); }
}
.feature-btn:focus-visible { outline-offset: -2px; }

/* ==========================================================================
   02 — Credibility
   ========================================================================== */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.cred-aside { grid-column: 1 / span 4; }
.cred-aside-inner { position: sticky; top: calc(var(--nav-h) + 48px); }
.cred-aside h2 {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  margin: 28px 0 24px;
  max-width: 11ch;
}
.cred-aside p { color: var(--smoke); max-width: 22rem; }
.cred-body { grid-column: 6 / -1; }

.cred-lines { counter-reset: line; }
.cred-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--ash);
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.6rem, 2.8vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.cred-line:last-child { border-bottom: 1px solid var(--ash); }
.cred-line .index { font-size: var(--fs-micro); letter-spacing: 0; transform: translateY(-0.6em); }

.blueprint {
  margin-top: clamp(64px, 7vw, 112px);
  border: 1px solid var(--ash);
  position: relative;
  background-image:
    linear-gradient(var(--ash) 1px, transparent 1px),
    linear-gradient(90deg, var(--ash) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.blueprint::before {
  /* softens the grid so it reads as a blueprint, not a pattern */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
}
.blueprint svg { position: relative; width: 100%; height: auto; }
.blueprint .bp-stroke { fill: none; stroke: var(--smoke); stroke-width: 1; }
.blueprint .bp-live { fill: none; stroke: var(--pure); stroke-width: 1.5; }
.blueprint .bp-box { fill: var(--obsidian); stroke: var(--smoke); stroke-width: 1; }
.blueprint .bp-box--core { fill: var(--pure); stroke: var(--pure); }
.blueprint .bp-label { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; fill: var(--paper); }
.blueprint .bp-label--core { fill: var(--obsidian); }
.blueprint .bp-label--two { font-size: 17px; } /* two lines inside the 150-wide box */
.blueprint .bp-note { font-family: var(--f-mono); font-size: 12px; fill: var(--smoke); }
.blueprint figcaption {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--ash);
  background: var(--obsidian);
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  color: var(--smoke);
}

/* ==========================================================================
   03 — How it works (diagonal panel)
   ========================================================================== */

.how {
  position: relative;
  background: transparent;
  padding-top: 0;
}
.how-panel {
  --cut: 9vw;
  position: relative;
  background: var(--paper);
  color: var(--obsidian);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  /* fixed at the full cut so the layout never shifts while the diagonal flattens
     (the flatten is purely visual: clip-path + seam transform) */
  padding-top: calc(9vw + clamp(72px, 9vw, 160px));
  padding-bottom: var(--section-y);
  will-change: clip-path;
}
.how-seam {
  /* thin white rule that traces the diagonal edge */
  position: absolute;
  left: 0; right: 0; top: 0;
  height: calc(var(--cut) + 2px);
  pointer-events: none;
}
.how-seam line { stroke: var(--pure); stroke-width: 1; vector-effect: non-scaling-stroke; }

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 4vw, 80px);
}
.track {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--obsidian);
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.track-head h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.track-head .index { color: var(--ink-2); }

.steps { position: relative; padding-left: clamp(48px, 5vw, 80px); }
.track-line {
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--rule-light);
}
.track-fill {
  position: absolute;
  inset: 0;
  background: var(--obsidian);
  transform-origin: 50% 0;
  transform: scaleY(1);
}
.step {
  position: relative;
  padding-bottom: clamp(56px, 7vw, 120px);
}
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute;
  left: calc(clamp(48px, 5vw, 80px) * -1);
  top: 4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--obsidian);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}
.step.is-active .step-dot { background: var(--obsidian); color: var(--paper); transform: scale(1.08); }
.step h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 14px;
  transition: opacity 0.4s ease;
}
.step p { color: var(--ink-2); max-width: 30rem; transition: opacity 0.4s ease; }
.motion-ok .step:not(.is-active) h4,
.motion-ok .step:not(.is-active) p { opacity: 0.32; }
.step .tag { margin-top: 14px; }

/* ==========================================================================
   04 — Minimal statement
   ========================================================================== */

.statement {
  padding-block: clamp(160px, 22vw, 380px);
  background: transparent; /* the network shows through */
}
.statement .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.statement .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: 1.2em; }
.statement-text {
  grid-column: 4 / -1;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-size: clamp(2.3rem, 5.6vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}
.statement-text .w { display: inline; transition: color 0.3s ease; }
.motion-ok .statement-text .w { color: #3a3a3a; }
.motion-ok .statement-text .w.lit { color: var(--paper); }

/* ==========================================================================
   05 — Membership
   ========================================================================== */

.membership { background: var(--graphite); isolation: isolate; } /* own network window */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #3c3c3c;
  border-bottom: 1px solid #3c3c3c;
}
.tier {
  position: relative;
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 44px) clamp(40px, 4vw, 64px);
  transition: background-color 0.4s ease;
}
.tier + .tier { border-left: 1px solid #3c3c3c; }
.tier::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--pure);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out);
}
.tier:hover,
.tier:focus-within { background: var(--obsidian); }
.tier:hover::before,
.tier:focus-within::before { transform: scaleX(1); }
.tier-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(56px, 7vw, 120px); }
.tier h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 18px;
}
.tier-for { color: var(--smoke); margin-bottom: clamp(32px, 3vw, 48px); min-height: 3.1em; }
.tier-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #333;
  font-size: var(--fs-body);
  line-height: 1.4;
}
.tier-list li::before {
  content: "";
  width: 9px;
  height: 1px;
  margin-top: 0.7em;
  background: var(--paper);
}
.tier-list li.plus { color: var(--smoke); }
.tier-list li.plus::before { width: 1px; height: 9px; margin: 0.35em 0 0 4px; background: var(--smoke); }
.membership-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 4vw, 64px);
}
.membership-cta p { color: var(--smoke); max-width: 34rem; }

/* ==========================================================================
   06 — Request transport (form)
   ========================================================================== */

.request .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.request-intro { grid-column: 1 / span 5; }
.request-intro-inner { position: sticky; top: calc(var(--nav-h) + 48px); }
.request-intro h2 { font-size: var(--fs-h2); margin: 28px 0 28px; }
.request-intro-inner > p:not(.eyebrow):not(.contact-line) { color: var(--ink-2); max-width: 26rem; font-size: var(--fs-lead); line-height: 1.45; }
.contact-line { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact-line a { color: var(--obsidian); }

.request-form-wrap { grid-column: 7 / -1; view-transition-name: request-card; }

.form-group { border: 0; margin: 0 0 clamp(36px, 3.5vw, 56px); padding: 0; min-width: 0; }
.form-group legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 6px;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.form-group legend .index { color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.form-row--3 { grid-template-columns: 1.3fr 1fr 1fr; }

.field { position: relative; padding-top: 22px; margin-bottom: 8px; }
.field-control > label {
  position: absolute;
  left: 0;
  top: 17px;
  font-size: 1rem;
  color: var(--ink-2);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}
.field-control > label .opt { font-size: 0.8em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bdbdb9;
  border-radius: 0;
  font-size: 1.0625rem;
  color: var(--obsidian);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.field input[type="date"] { min-height: 52px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* Animated underline */
.field .bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--obsidian);
  transform: scaleX(0);
  transform-origin: var(--bar-origin, 0%) 50%; /* grows from where you clicked */
  transition: transform 0.45s var(--ease-out);
}
.field-control { position: relative; isolation: isolate; }
/* Focus: a faint slab rises behind the field (transform only) */
.field-control::before {
  content: "";
  position: absolute;
  inset: 6px -12px 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.035);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}
.field:focus-within .field-control::before { transform: scaleY(1); }
.field:focus-within .bar { transform: scaleX(1); }

/* Float the label when focused or filled */
.field:focus-within .field-control > label,
.field.is-filled .field-control > label,
.field--static .field-control > label {
  transform: translateY(-30px) scale(0.8);
  color: var(--obsidian);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding-top: 6px;
  font-size: 0.8125rem;
  color: var(--obsidian);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}
.field-error::before {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.3' fill='%230a0a0a'/%3E%3Cpath d='M7 3.6v4.2M7 9.6v.8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.is-invalid .field-error { opacity: 1; transform: none; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--obsidian); border-bottom-width: 2px; padding-bottom: 11px; }
.field.is-invalid { animation: nudge 0.32s var(--ease-move); }
@keyframes nudge { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 100% { transform: none; } }
.field.is-valid .check { opacity: 1; transform: scale(1); }
.check {
  position: absolute;
  right: 0;
  top: 18px;
  width: 16px; height: 16px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}
.field--select .check { right: 26px; }

/* Segmented vehicle choice */
.choice-title { display: block; font-size: 0.8rem; color: var(--obsidian); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.choice { position: relative; }
.choice input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #bdbdb9;
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}
.choice input:hover + span { border-color: var(--obsidian); }
.choice input:checked + span { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); }
.choice input:active + span { transform: scale(0.96); }
.choice input:focus-visible + span { outline: 2px solid var(--obsidian); outline-offset: 3px; }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; margin: 8px 0 32px; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box {
  width: 22px; height: 22px;
  border: 1px solid var(--obsidian);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}
.consent .box svg { width: 12px; height: 12px; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.3s var(--ease-out); }
.consent input:checked + .box { background: var(--obsidian); }
.consent input:checked + .box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .box { outline: 2px solid var(--obsidian); outline-offset: 3px; }
.consent.is-invalid .box { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }
.consent-wrap .field-error { margin: -24px 0 24px 38px; }
.consent-wrap.is-invalid .field-error { opacity: 1; transform: none; }

.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--obsidian); }
.form-foot p { font-size: var(--fs-small); color: var(--ink-2); max-width: 22rem; }
.form-summary { font-size: var(--fs-small); font-weight: 500; min-height: 1.4em; }

.btn-submit { min-width: 260px; }
.btn-submit .spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(245, 245, 243, 0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-label,
.btn-submit.is-loading .btn-arrow { opacity: 0; }
.btn-submit.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--paper);
  color: var(--obsidian);
  padding-top: clamp(80px, 10vw, 160px);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  padding-bottom: clamp(64px, 8vw, 140px);
}
.footer-close {
  grid-column: 1 / span 6;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 18ch;
}
.footer-links { grid-column: 8 / span 3; display: grid; gap: 10px; align-content: start; }
.footer-links a,
.footer-links button { justify-self: start; background-color: transparent; border: 0; padding: 2px 0; color: var(--obsidian); text-decoration: none; font-size: var(--fs-small); }
.footer-links a:hover,
.footer-links button:hover { color: var(--obsidian); }
.footer-links .footer-heading { color: var(--ink-2); font-size: var(--fs-small); }
.footer-contact { grid-column: 11 / -1; display: grid; gap: 10px; align-content: start; font-size: var(--fs-small); color: var(--ink-2); }
.footer-contact a { color: var(--obsidian); }
.footer-contact a { justify-self: start; width: fit-content; }

.footer-brand {
  border-top: 1px solid var(--rule-light);
  padding: clamp(40px, 5vw, 72px) 0;
  line-height: 0;
}
/* Full logo, assets/logo-v2.png as-is (black artwork on a transparent ground, two-line
   tagline "Connecting shippers & carriers in real time") on a white rounded card. */
.footer-logo-card {
  display: block;
  width: 460px;
  max-width: 100%;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--pure);
  color: var(--obsidian);
  /* white card on the white footer: a hairline and a soft shadow keep its edge */
  border: 1px solid var(--rule-light);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
}
.footer-lockup { display: block; width: 100%; height: auto; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule-light);
  font-size: var(--fs-micro);
  font-family: var(--f-mono);
  color: var(--ink-2);
}
.footer :focus-visible { outline-color: var(--obsidian); }
/* A white section right above the white footer: a hairline marks where the footer starts */
main:has(> .on-paper:last-child) + .footer { border-top: 1px solid var(--rule-light); }

/* ==========================================================================
   Toast
   ========================================================================== */

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-inner > .logo { order: -1; }
  .nav-left { display: none; }
  .nav-actions .nav-login, .nav-actions .nav-sep, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
}
/* Same bar at any width when the links do not fit on one line (set by components.js) */
.nav-compact .nav-inner { display: flex; justify-content: space-between; }
.nav-compact .nav-inner > .logo { order: -1; }
.nav-compact .nav-left { display: none; }
.nav-compact .nav-actions .nav-login, .nav-compact .nav-actions .nav-sep, .nav-compact .nav-actions .btn { display: none; }
.nav-compact .menu-toggle { display: block; }

@media (max-width: 899px) {
  :root { --nav-h: 64px; }

  .hero-map-fade {
    background:
      radial-gradient(ellipse 110% 52% at 50% 50%, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.82) 55%, rgba(10, 10, 10, 0.4) 100%),
      linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0) 26%);
  }
  .hero-main { padding-block: 32px; } /* labels would sit under the centred title */ /* block layout honours justify-self in current Chrome */

  /* facts stay one thin strip: three compact columns */
  .hero-facts .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: var(--gutter); }
  .fact { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 10px 16px 0; }
  .fact + .fact { padding-left: 12px; border-left: 1px solid var(--ash); }
  .fact span { font-size: 0.75rem; }
  .facts-note { display: none; }

  .section-head { display: block; }
  .section-head > p:not(.eyebrow) { margin-top: 24px; justify-self: start; }

  .feature-btn {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
    column-gap: 12px;
    min-height: 88px;
  }
  .feature-title { padding-block: 22px; }
  .feature-detail {
    grid-column: 2 / -1;
    grid-row: 2;
    display: grid;
    grid-template-rows: 0fr;
    padding-block: 0;
    opacity: 1;
    transform: none;
    transition: grid-template-rows 0.45s var(--ease-out), padding 0.45s var(--ease-out);
  }
  .feature-detail > span { overflow: hidden; min-height: 0; }
  .feature-btn[aria-expanded="true"] .feature-detail { grid-template-rows: 1fr; padding-bottom: 24px; }
  .feature-btn[aria-expanded="true"] .feature-icon { transform: rotate(45deg); background: var(--obsidian); color: var(--paper); }
  .feature-icon { grid-row: 1; grid-column: 3; }

  .cred-grid { display: block; }
  .cred-aside-inner { position: static; margin-bottom: 48px; }
  .cred-line { grid-template-columns: 36px 1fr; }

  /* Diagonal panels become full-width stacked blocks */
  .how-panel { clip-path: none !important; padding-top: var(--section-y); }
  .how-seam { display: none; }
  .tracks { grid-template-columns: 1fr; row-gap: 0; }
  .track { padding: 36px 0 72px; }
  .track + .track { background: var(--obsidian); color: var(--paper); margin-inline: calc(var(--gutter) * -1); padding: 48px var(--gutter) 72px; border-top: 0; }
  .track + .track .track-head .index,
  .track + .track .step p { color: var(--smoke); }
  .track + .track .track-line { background: var(--ash); }
  .track + .track .track-fill { background: var(--pure); }
  .track + .track .step-dot { background: var(--obsidian); border-color: var(--paper); }
  .track + .track .step.is-active .step-dot { background: var(--pure); color: var(--obsidian); }
  .track + .track .tag { color: var(--smoke); }
  .track + .track :focus-visible { outline-color: var(--pure); }

  .statement .wrap { display: block; }
  .statement .eyebrow { margin-bottom: 32px; padding-top: 0; }

  .tiers { grid-template-columns: 1fr; border-bottom: 0; }
  .tier { padding-inline: 0; border-bottom: 1px solid #3c3c3c; }
  .tier + .tier { border-left: 0; }
  .tier:hover, .tier:focus-within { background: transparent; }
  .tier-top { margin-bottom: 40px; }
  .tier-for { min-height: 0; }

  .request .wrap { display: block; }
  .request-intro-inner { position: static; margin-bottom: 56px; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }

  .footer-top { display: block; }
  .footer-close { margin-bottom: 48px; }
  .footer-links { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .logo { width: 36px; height: 36px; }
  .logo-mark { width: 25px; }
  .footer-logo-card { width: 340px; padding: 20px 22px; }
}

@media (max-width: 600px) {
  :root { --fs-hero: 16vw; }
  .cred-aside h2 { max-width: none; }
}

@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; align-self: stretch; }
}

/* ==========================================================================
   The Living Network — map continuation behind the page
   #network: fixed, under everything, visible through dark sections.
   .net-window: a clip window inside each paper section; its fixed .net-view
   draws the same map in dark ink, above the paper and below the text.
   ========================================================================== */

.network {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  will-change: opacity; /* dimmed around the blueprint: composite, never repaint */
}
.net-window {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: inset(0);
  pointer-events: none;
}
.net-view { position: fixed; inset: 0; overflow: hidden; }
.network { overflow: hidden; }
.net-svg { position: absolute; display: block; max-width: none; will-change: transform; }

/* Fade toward the left text column on wide screens; overall quiet on small ones.
   The mask sits on the fixed hosts so it stays put while the map pans. */
.network, .net-view {
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 62%);
}
@media (max-width: 899px) {
  .network, .net-view { -webkit-mask-image: none; mask-image: none; }
  .net-svg { opacity: 0.55; }
}

.net-svg--dark .net-grat { fill: none; stroke: #171717; stroke-width: 0.6; }
.net-svg--dark .net-country { fill: none; stroke: #1e1e1e; stroke-width: 0.8; }
.net-svg--dark .net-country--uk { stroke: #2c2c2c; }
.net-svg--dark .net-route { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.net-svg--dark .net-journey { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; }
.net-svg--dark .net-city { fill: #3d3d3d; }

.net-svg--paper .net-grat { fill: none; stroke: rgba(10, 10, 10, 0.035); stroke-width: 0.6; }
.net-svg--paper .net-country { fill: none; stroke: rgba(10, 10, 10, 0.06); stroke-width: 0.8; }
.net-svg--paper .net-country--uk { stroke: rgba(10, 10, 10, 0.1); }
.net-svg--paper .net-route { fill: none; stroke: rgba(10, 10, 10, 0.045); stroke-width: 1; }
.net-svg--paper .net-journey { fill: none; stroke: rgba(10, 10, 10, 0.18); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; }
.net-svg--paper .net-city { fill: rgba(10, 10, 10, 0.25); }

/* ---------- Living Network, level 2: the scroll journey ---------- */

/* Shipment marker (one per view; moved by journey.js) */
.net-marker { opacity: 0; will-change: transform, opacity; }
.journey-on .net-marker { opacity: 1; }
.net-marker circle { transform-box: fill-box; transform-origin: center; }
.net-marker-halo { animation: marker-halo 2.8s ease-in-out infinite; }
/* windows of off-screen sections do not keep a halo animating */
.net-window:not(.is-onscreen) .net-marker-halo { animation-play-state: paused; }
@keyframes marker-halo { 0%, 100% { transform: scale(0.7); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 0.25; } }
.net-svg--dark .net-marker-halo { fill: rgba(255, 255, 255, 0.12); }
.net-svg--dark .net-marker-ring { fill: none; stroke: var(--pure); stroke-width: 1; }
.net-svg--dark .net-marker-dot { fill: var(--pure); }
.net-svg--paper .net-marker-halo { fill: rgba(10, 10, 10, 0.08); }
.net-svg--paper .net-marker-ring { fill: none; stroke: var(--obsidian); stroke-width: 1; }
.net-svg--paper .net-marker-dot { fill: var(--obsidian); }

/* Journey stops: visited cities firm up, the current one gets a ring */
.net-stop circle { transform-box: fill-box; transform-origin: center; }
.net-stop .net-city { opacity: 0.55; transition: opacity 0.5s ease; }
.net-stop.is-reached .net-city { opacity: 1; }
.net-stop-ring { fill: none; stroke-width: 1; opacity: 0; transform: scale(0.4); transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }
.net-svg--dark .net-stop-ring { stroke: rgba(255, 255, 255, 0.55); }
.net-svg--paper .net-stop-ring { stroke: rgba(10, 10, 10, 0.5); }
.net-stop.is-here .net-stop-ring { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .net-marker { display: none; }
}

/* ---------- Living Network, level 3: on interaction ---------- */

/* Feature row → matching route lights up on the map */
.net-hl { opacity: 0; transition: opacity 0.45s ease; }
/* only inside the Why carriers window, so an open row does not light the rest of the page */
#carriers .net-hl.is-lit { opacity: 1; }
.net-hl-line { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.net-svg--dark .net-hl-line { stroke: rgba(255, 255, 255, 0.75); }
.net-svg--dark .net-hl-end { fill: var(--pure); }
.net-svg--paper .net-hl-line { stroke: rgba(10, 10, 10, 0.62); }
.net-svg--paper .net-hl-end { fill: var(--obsidian); }

/* Membership tiers: depth under the cursor (class set by interact.js) */
.tier-depth .tiers { perspective: 1600px; }
.tier-depth .tier { overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.tier-depth .tier::before { top: 0; }
.tier-depth .tier > *:not(.tier-glow) { position: relative; z-index: 1; }
.tier-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Request form: route preview (rough distance estimate, not a quote) */
.route-preview { margin: 4px 0 20px; padding: 16px 0 4px; border-top: 1px solid var(--rule-light); }
.rp-track { position: relative; height: 14px; margin: 0 5px; }
.rp-base, .rp-fill { position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; }
.rp-base { background: repeating-linear-gradient(90deg, #bdbdb9 0 3px, transparent 3px 7px); }
.rp-fill { background: var(--obsidian); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease-out); }
.route-preview.has-route .rp-fill { transform: scaleX(1); }
.rp-node {
  position: absolute;
  top: 2px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border: 1px solid var(--obsidian);
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.45;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.rp-a { left: 0; }
.rp-b { left: 100%; }
.rp-node::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--obsidian); opacity: 0; transition: opacity 0.3s ease; }
.route-preview.has-a .rp-a,
.route-preview.has-b .rp-b { opacity: 1; transform: scale(1); }
.route-preview.has-a .rp-a::after,
.route-preview.has-b .rp-b::after { opacity: 1; }
.rp-run { position: absolute; left: 0; top: 0; width: 100%; height: 14px; pointer-events: none; }
.rp-truck { position: absolute; left: -5px; top: 2.5px; width: 9px; height: 9px; border-radius: 2px; background: var(--obsidian); opacity: 0; transition: opacity 0.3s ease; }
.route-preview.has-route .rp-truck { opacity: 1; }
.rp-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); }
.rp-labels .rp-to { text-align: right; }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); min-height: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .net-hl, .rp-fill, .rp-node, .field-control::before { transition-duration: 0.15s !important; }
}

/* ---------- Living Network transitions (masks, clipping, scale) ---------- */

/* Mask wrapper injected by main.js around revealed text; room for descenders */
.rv-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rv-inner { display: block; }

/* Rows and stat cells clip their content only while it rises in */
.feature.is-masking { overflow: hidden; }

/* Blueprint: uncovered by a scanning curtain (motion only) */
.motion-ok .blueprint { overflow: hidden; }
.bp-curtain { display: none; position: absolute; inset: 0; z-index: 3; background: var(--obsidian); pointer-events: none; will-change: transform; }
.motion-ok .bp-curtain { display: block; }
.bp-scan { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--pure); box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.35); }

/* How it works: the track rule draws across before the workflow line grows */
.track::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--obsidian);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out);
}
.motion-ok .track { border-top-color: transparent; }
.motion-ok .track:not(.is-drawn)::after { transform: scaleX(0); }
@media (max-width: 899px) { .track + .track::after { display: none; } }

/* Footer lockup rises out of its band */
.motion-ok .footer-brand { overflow: hidden; }

/* ---------- Lenis smooth scroll (desktop, motion allowed; see main.js) ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; } /* Lenis does the easing, not CSS */
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ==========================================================================
   Shared UI (all pages): navbar dropdown, page transitions, fade-in,
   scroll reveal, plan cards, comparison panel + table.
   Durations/curve: --dur-fade, --dur-short, --dur-page, --ease-out.
   ========================================================================== */

/* ---------- Navbar: Membership dropdown ---------- */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: rgba(245, 245, 243, 0.78);
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.2s ease;
}
.nav-dd-toggle:hover,
.nav-dd-toggle[aria-expanded="true"] { color: var(--pure); }
/* Active page: same white as hover, with a hairline underneath */
.nav-dd-toggle.is-current { color: var(--pure); box-shadow: inset 0 -1px 0 currentColor; }
.nav-dd-chevron { width: 10px; height: 6px; transition: transform var(--dur-short) var(--ease-out); }
.nav-dd-toggle[aria-expanded="true"] .nav-dd-chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  left: -16px;
  top: calc(100% + 14px);
  min-width: 270px;
  padding: 8px;
  background: var(--obsidian);
  border: 1px solid var(--ash);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}
.nav-dd.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-links .dropdown-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  color: rgba(245, 245, 243, 0.78);
}
.nav-links .dropdown-link:hover,
.nav-links .dropdown-link:focus-visible { background: var(--graphite); color: var(--pure); }
.nav-links .dropdown-link:focus-visible { outline-offset: -2px; }
.nav-links .dropdown-link[aria-current="page"] { color: var(--pure); }
.menu-links a[aria-current="page"] { color: var(--smoke); }

/* ---------- Page transitions (fade + slight slide) ---------- */
@media (prefers-reduced-motion: no-preference) {
  main, .footer { transition: opacity var(--dur-page) var(--ease-out), transform var(--dur-page) var(--ease-out); }
  .page-enter main, .page-enter .footer { opacity: 0; transform: translateY(16px); }
  /* leaving fades only: a transform here would detach the fixed map views inside main */
  .page-leaving main, .page-leaving .footer { opacity: 0; }
}

/* ---------- Fade-in, line by line, on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-fade] { transition: opacity var(--dur-fade) var(--ease-out), transform var(--dur-fade) var(--ease-out); }
  .ui-motion:not(.fade-ready) [data-fade] { opacity: 0; transform: translateY(14px); }
  main.is-switching { opacity: 0; transition-duration: var(--dur-short); }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-scroll-reveal] { transition: opacity var(--dur-fade) var(--ease-out), transform var(--dur-fade) var(--ease-out); }
  .motion-js [data-scroll-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
}

/* ---------- Table rows: short fade, one row after another ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rows] tr, [data-rows] > li { transition: opacity var(--dur-short) var(--ease-out); }
  .motion-js [data-rows]:not(.rows-in) tr,
  .motion-js [data-rows]:not(.rows-in) > li { opacity: 0; }
}

/* ---------- Pricing page ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.plans { grid-column: 1 / span 5; }
.compare { grid-column: 7 / -1; }

/* Plan card */
.plans-list { display: grid; gap: 16px; }
.plan {
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid #c9c9c5;
  border-radius: var(--radius-md);
  color: var(--obsidian);
}
.plan--featured { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
.plan--featured :focus-visible { outline-color: var(--pure); }
.plan-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.plan-name {
  margin-right: auto;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.plan-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pure);
  color: var(--obsidian);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan--featured .tag { color: var(--smoke); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: clamp(24px, 2.6vw, 36px); }
.plan-amount {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.4rem, 4.2vw, 4.75rem);
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-was { font-size: 1.125rem; color: var(--ink-2); text-decoration-thickness: 1px; }
.plan-period { color: var(--ink-2); font-size: var(--fs-small); }
.plan--featured .plan-was,
.plan--featured .plan-period { color: var(--smoke); }
.plan-cta { width: 100%; }
.plans-notes p { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }
/* Dedicated Team Dispatch (Cargo Owners): plan card + its list */
.plan-lead { margin: calc(-1 * clamp(12px, 1.4vw, 20px)) 0 18px; font-weight: 500; }
.plan-list { list-style: none; padding: 0; margin: 0 0 clamp(24px, 2.6vw, 36px); border-top: 1px solid var(--rule-light); font-size: var(--fs-small); }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-light); }
.plan-list .cmp-icon { margin: 0; flex: none; }

/* Comparison panel */
.compare { position: sticky; top: calc(var(--nav-h) + 24px); border-top: 1px solid var(--obsidian); }
.compare-title { margin: 0; }
.compare-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  color: inherit;
}
.compare-toggle:focus-visible { outline-offset: 2px; }
.compare-icon { position: relative; width: 14px; height: 14px; flex: none; }
.compare-icon::before,
.compare-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; margin-top: -0.7px; background: currentColor; }
.compare-icon::after { transform: rotate(90deg); transition: transform var(--dur-short) var(--ease-out); }
.compare-toggle[aria-expanded="true"] .compare-icon::after { transform: rotate(0deg); }
.compare-note { margin: 0 0 14px; font-size: var(--fs-small); color: var(--ink-2); }

.compare-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.compare-table th,
.compare-table td { padding: 13px 0; border-bottom: 1px solid var(--rule-light); text-align: left; vertical-align: middle; }
.compare-table thead th {
  padding-top: 4px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom-color: var(--obsidian);
}
.compare-table thead th:not(:first-child),
.compare-table td { width: 24%; text-align: center; }
.compare-table tbody th { font-weight: 400; padding-right: 16px; }
.compare-table .cmp-group-head th { padding-top: 26px; font-weight: 600; }
.compare-table .cmp-group-head td { padding-top: 26px; font-weight: 500; }
.cmp-icon { width: 16px; height: 16px; margin: 0 auto; }
/* Simple includes list (free plan): same rules and type as the comparison table */
.includes { font-size: var(--fs-small); border-top: 1px solid var(--obsidian); }
.includes li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule-light); }
.includes .cmp-icon { margin: 0; }
.includes .tag { color: var(--ink-2); }
.plans-notes .tag { margin-left: 6px; }
.cmp-no { color: #a5a5a1; }
.compare-table .tag { color: var(--ink-2); }

@media (max-width: 899px) {
  .pricing-grid { display: block; }
  .compare { position: static; margin-top: 56px; }
  .compare-table thead th:not(:first-child),
  .compare-table td { width: 27%; }
}

/* ---------- Shared bits used by the inner pages ---------- */

/* Outline button on Paper (the on-dark outline is .btn--ghost) */
.btn--ghost-ink {
  --bg: transparent;
  --fg: var(--obsidian);
  --bd: rgba(10, 10, 10, 0.28);
}
.btn--ghost-ink:hover { --bd: var(--obsidian); }

/* The italic line: one version, on Paper or in a section head */
.note-italic { font-style: italic; color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5; max-width: 36rem; }

/* Step and panel titles inside Paper sections */
.step-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 2px solid var(--obsidian); outline-offset: 6px; }

.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(32px, 3.5vw, 48px); }
.step-hint { font-size: var(--fs-small); font-weight: 500; min-height: 1.4em; }

/* ---------- Get Started ---------- */
.stepper { margin-bottom: clamp(48px, 6vw, 88px); }
.stepper-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-light); }
.stepper-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
/* A link-button that is not available yet */
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.step-flag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 0 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
/* the active segment of the top rule */
.step-flag::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--obsidian);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-fade) var(--ease-out);
}
.step-flag[aria-current="step"]::before,
.step-flag.is-done::before { transform: scaleX(1); }
.step-flag[aria-current="step"],
.step-flag.is-done { color: var(--obsidian); }
.step-flag[aria-disabled="true"] { cursor: not-allowed; color: #a5a5a1; }
.step-flag:hover:not([aria-disabled="true"]) { color: var(--obsidian); }
.step-flag:focus-visible { outline-offset: 6px; }
.step-flag-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.step-flag[aria-current="step"] .step-flag-num { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
.step-flag-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Role cards: a native radio group styled as cards */
.role-grid { border: 0; margin: 0; padding: 0; min-width: 0; }
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid #c9c9c5;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.role-card:hover { border-color: var(--obsidian); }
.role-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-card:has(.role-input:checked) { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
.role-card:has(.role-input:focus-visible) { outline: 2px solid var(--obsidian); outline-offset: 4px; }
.role-card .index { margin-bottom: clamp(16px, 2vw, 28px); }
.role-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.role-blurb { color: var(--ink-2); font-size: var(--fs-small); }
.role-price { margin-top: auto; padding-top: 12px; font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--ink-2); }
.role-card:has(.role-input:checked) .role-blurb,
.role-card:has(.role-input:checked) .role-price,
.role-card:has(.role-input:checked) .index { color: var(--smoke); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.contact-aside { grid-column: 1 / span 4; }
.contact-aside-inner { position: sticky; top: calc(var(--nav-h) + 48px); display: grid; gap: 14px; }
.contact-aside .eyebrow { color: var(--ink-2); }
.contact-email { font-size: var(--fs-lead); margin-bottom: 18px; }
.contact-email a { color: var(--obsidian); }
.contact-place { margin-bottom: 18px; }
.contact-form-wrap { grid-column: 6 / -1; }

/* ---------- Application ---------- */
/* One centred column at every width */
.apply-form, .apply-roles { max-width: 760px; margin-inline: auto; }
.apply-roles .role-cards { grid-template-columns: 1fr; }
a.role-card { color: inherit; text-decoration: none; }
a.role-card:hover { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
a.role-card:hover .role-blurb, a.role-card:hover .index { color: var(--smoke); }
.apply-required { margin-bottom: 28px; font-size: var(--fs-small); color: var(--ink-2); }
.apply-group { border: 0; margin: 0 0 clamp(40px, 4vw, 56px); padding: 0; min-width: 0; }
.apply-legend {
  width: 100%;
  padding: 0 0 6px;
  margin-bottom: 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.apply-legend .req { color: var(--ink-2); }

/* Card choice (applying as, plan): buttons with aria-pressed */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid #c9c9c5;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--obsidian);
  text-align: left;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.choice-card:hover { border-color: var(--obsidian); }
.choice-card[aria-pressed="true"] { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
.choice-card:focus-visible { outline: 2px solid var(--obsidian); outline-offset: 4px; }
.choice-card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.choice-card-meta { font-size: var(--fs-small); color: var(--ink-2); }
.choice-card[aria-pressed="true"] .choice-card-meta { color: var(--smoke); }
.choice-field .field-error { opacity: 0; transform: translateY(-4px); }
.choice-field.is-invalid .field-error { opacity: 1; transform: none; }
.choice-field.is-invalid .choice-card:not([aria-pressed="true"]) { border-color: var(--obsidian); }
.apply-pay { margin-top: 14px; font-size: var(--fs-small); }

/* Phone: country code + number */
.phone-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 20px; }

.apply-checks { margin-bottom: 8px; }
.apply-checks .consent { margin-bottom: 20px; }
.consent .opt, .field-control > label .opt { font-size: 0.8em; color: var(--ink-2); }
.apply-foot .btn-submit { min-width: 260px; }

/* replaying a fade inside one part of a page (a new step, a new role) */
@media (prefers-reduced-motion: no-preference) {
  .ui-motion .is-fading [data-fade] { opacity: 0; transform: translateY(14px); transition: none; }
}

@media (max-width: 899px) {
  .role-cards { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; }
  .apply-foot .btn-submit { width: 100%; }
  .stepper-list { gap: 8px; }
  .step-flag { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-grid { display: block; }
  .contact-aside-inner { position: static; margin-bottom: 48px; }
}

/* ==========================================================================
   Reduced motion — tiered, not a kill switch
   Tier 1 (tilt, scroll-linked, route draw) is handled in JS.
   Tier 2: movement becomes short fades. Tier 3: colour + focus kept.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-label > span,
.btn-arrow,
.feature-title,
.feature-detail,
.feature-icon,
.menu-links a,
.menu-links button,
.field label,
.field .bar { transition-duration: 0.15s !important; }
  .btn:hover .btn-label > span,
  .btn:focus-visible .btn-label > span { transform: none; }
  .btn:hover .btn-arrow { transform: none; }
  .btn:active { transform: none; }
  .feature-btn:hover .feature-title,
  .feature-btn[aria-expanded="true"] .feature-title { transform: none !important; }
  .feature-detail { transform: none !important; }
  .menu-links a, .menu-links button { transform: none; }
  .field.is-invalid { animation: none; }
  .scroll-cue i::after { animation: none; }
  .btn-submit .spinner { animation-duration: 1.4s; }
}

/* Small-text safeguards inside large-text containers */
.request-intro .contact-line { font-size: var(--fs-small); }
.tag { flex: none; width: auto; }

/* ==========================================================================
   Footer — Legal column (shared footer, every page)
   ========================================================================== */
.footer-close { grid-column: 1 / span 5; }
.footer-links { grid-column: 7 / span 2; }
.footer-legal { grid-column: 9 / span 2; display: grid; gap: 10px; align-content: start; font-size: var(--fs-small); color: var(--ink-2); }
.footer-legal a { justify-self: start; color: var(--obsidian); }
@media (max-width: 899px) {
  .footer-legal { margin-bottom: 40px; }
}

/* ==========================================================================
   Legal pages (terms, privacy, dpa, cookies, security)
   Generated from legal/*.txt by scripts/build-legal.mjs.
   Dark page, two columns: sticky summary left, document right.
   ========================================================================== */
.legal { --legal-sticky: calc(var(--nav-h) + 32px); }

.legal-head { padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 72px)); }
.legal-back { margin-bottom: clamp(32px, 4vw, 56px); font-size: var(--fs-small); }
.legal-back a { color: var(--smoke); }
.legal-back a:hover, .legal-back a:focus-visible { color: var(--pure); }
.legal-head .eyebrow { margin-bottom: 20px; }
.legal-title { font-size: clamp(2.4rem, 6vw, 6rem); max-width: 16ch; }
.legal-updated { margin-top: 22px; font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--smoke); }

/* Document tabs: white underline on the current one */
.legal-tabs { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--ash); }
.legal-tabs-list {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.legal-tabs-list::-webkit-scrollbar { display: none; }
.legal-tabs-list li { flex: none; }
.legal-tab {
  display: block;
  padding: 18px 0 16px;
  color: var(--smoke);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.legal-tab:hover { color: var(--pure); }
.legal-tab[aria-current="page"] { color: var(--pure); box-shadow: inset 0 -2px 0 var(--pure); }
.legal-tab:focus-visible { outline-offset: -2px; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: var(--section-y);
}

/* Summary */
.legal-toc { grid-column: 1 / span 3; position: sticky; top: var(--legal-sticky); }
.legal-toc-toggle { display: none; }
.legal-toc-panel {
  max-height: calc(100vh - var(--legal-sticky) - 32px);
  max-height: calc(100dvh - var(--legal-sticky) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ash) transparent;
  padding-right: 8px;
}
.legal-toc-title { margin-bottom: 16px; font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--smoke); }
.toc-list, .toc-sub { display: grid; }
.toc-link {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 18px;
  border-left: 1px solid var(--ash);
  color: var(--smoke);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.toc-link::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--pure);
  transform: scaleY(0);
  transition: transform var(--dur-short) var(--ease-out);
}
.toc-link:hover { color: var(--paper); }
.toc-link.is-active { color: var(--pure); }
.toc-link.is-active::before { transform: scaleY(1); }
.toc-link:focus-visible { outline-offset: -2px; }
.toc-sub .toc-link { padding-left: 34px; font-size: 0.8125rem; }
.toc-num { flex: none; min-width: 2.2em; font-family: var(--f-mono); font-size: var(--fs-micro); line-height: 1.75; font-variant-numeric: tabular-nums; }

/* Document */
.legal-doc {
  grid-column: 5 / span 7;
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(245, 245, 243, 0.86);
  overflow-wrap: break-word;
}
.legal-doc > * + * { margin-top: 1.05em; }
.legal-doc a { color: var(--pure); background-size: 100% 1px; }
.legal-front { padding-bottom: 40px; border-bottom: 1px solid var(--ash); }
.legal-front > * + * { margin-top: 0.9em; }
.legal-meta { font-size: var(--fs-small); color: var(--smoke); }
.legal-front > .legal-meta + .legal-meta { margin-top: 4px; }
.legal-front + .legal-h2 { margin-top: clamp(40px, 4vw, 56px); padding-top: 0; border-top: 0; }
.legal-h2 {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--ash);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--pure);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-doc > .legal-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-h3 {
  margin-top: 2.4em;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--pure);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-doc > .legal-h2 + *, .legal-doc > .legal-h3 + * { margin-top: 0.9em; }
.legal-h2 .legal-num, .legal-h3 .legal-num { margin-right: 0.35em; color: var(--smoke); font-weight: 500; }
.legal-h2 .legal-num { font-size: 0.7em; vertical-align: 0.14em; letter-spacing: 0; }
.legal-num { font-family: var(--f-mono); font-size: 0.82em; color: var(--smoke); font-variant-numeric: tabular-nums; }
.legal-clause .legal-num { margin-right: 0.4em; }
.legal-clause--item { padding-left: 2.2em; }
.legal-list { display: grid; gap: 0.5em; }
.legal-list li { position: relative; padding-left: 1.5em; }
.legal-list:not(.legal-list--letters) li::before { content: ""; position: absolute; left: 0.2em; top: 0.85em; width: 0.6em; height: 1px; background: var(--smoke); }
.legal-list--letters li { padding-left: 2.2em; }
.legal-list--letters .legal-num { position: absolute; left: 0; top: 0.1em; }
.legal-doc > .legal-end { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--ash); font-family: var(--f-mono); font-size: var(--fs-micro); color: var(--smoke); }
.legal-doc > .legal-end + .legal-end { margin-top: 6px; padding-top: 0; border-top: 0; }

.legal-table-wrap { overflow-x: auto; border-top: 1px solid var(--paper); }
.legal-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.legal-table th, .legal-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ash); }
.legal-table thead th { font-family: var(--f-mono); font-size: var(--fs-micro); font-weight: 500; color: var(--smoke); }
.legal-table tbody th { font-weight: 500; color: var(--pure); }
.legal-table-wrap:focus-visible { outline-offset: 2px; }
.legal-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border: 1px solid var(--ash); border-radius: var(--radius-md); }
.legal-figures li { padding: 18px 20px; font-size: var(--fs-small); line-height: 1.4; color: var(--pure); }
.legal-figures li + li { border-left: 1px solid var(--ash); }
.legal-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 24px; font-size: var(--fs-small); }
.legal-cols p { padding: 20px; border: 1px solid var(--ash); border-radius: var(--radius-md); }

@media (max-width: 1199px) {
  .legal-toc { grid-column: 1 / span 4; }
  .legal-doc { grid-column: 5 / -1; }
}

/* Mobile: the summary becomes a sticky "Sections" button that opens a list */
@media (max-width: 899px) {
  .legal { --legal-sticky: var(--nav-h); }
  .legal-grid { display: block; padding-top: 0; }
  .legal-toc {
    z-index: 20;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    background: var(--obsidian);
    border-bottom: 1px solid var(--ash);
  }
  .js .legal-toc-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--pure);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
  }
  .legal-toc-toggle:focus-visible { outline-offset: -2px; }
  .legal-toc-current { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--smoke); font-weight: 400; font-size: var(--fs-small); }
  .legal-toc-chevron { width: 12px; height: 8px; flex: none; transition: transform var(--dur-short) var(--ease-out); }
  .legal-toc-toggle[aria-expanded="true"] .legal-toc-chevron { transform: rotate(180deg); }
  .legal-toc-panel { max-height: none; padding: 8px 0 20px; }
  .js .legal-toc-panel {
    position: absolute;
    left: 0; right: 0; top: 100%;
    max-height: min(65vh, 560px);
    padding: 12px var(--gutter) 20px;
    background: var(--obsidian);
    border-bottom: 1px solid var(--ash);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
  }
  .js .legal-toc.is-open .legal-toc-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .legal-toc-title { display: none; }
  .toc-link { padding-block: 10px; }
  .legal-doc { max-width: none; margin-top: 40px; font-size: 1rem; }
  .legal-h2, .legal-h3 { scroll-margin-top: calc(var(--nav-h) + 76px); }
  .legal-tab { padding: 16px 0 14px; }
  .legal-tabs .wrap { padding-inline: 0; }
  .legal-tabs-list { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .toc-link, .toc-link::before, .legal-tab, .legal-toc-chevron, .js .legal-toc-panel { transition: none; }
}

/* ==========================================================================
   Cookie banner (assets/js/consent.js) — every page, first visit only
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  bottom: 24px;
  z-index: 150;
  width: min(560px, calc(100vw - var(--gutter) * 2));
  padding: 24px;
  background: var(--graphite);
  border: 1px solid var(--ash);
  border-radius: var(--radius-lg);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cookie-text { font-size: var(--fs-small); line-height: 1.6; color: rgba(245, 245, 243, 0.86); }
.cookie-text a { color: var(--pure); background-size: 100% 1px; }
.cookie-actions { display: flex; gap: 12px; margin-top: 20px; }
.cookie-actions .btn { min-width: 120px; }
.cookie-banner :focus-visible { outline-color: var(--pure); }
.cookie-actions { flex-wrap: wrap; }
.cookie-banner [hidden] { display: none !important; }
.cookie-banner.is-managing { max-height: calc(100vh - 48px); overflow-y: auto; }
/* Manage preferences: the cookie categories */
.cookie-prefs { margin-top: 20px; border-top: 1px solid var(--ash); }
.cookie-prefs-title { margin: 16px 0 4px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 245, 243, 0.6); }
.cookie-cat { padding: 14px 0; border-bottom: 1px solid var(--ash); }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-cat-name { font-size: 0.9375rem; font-weight: 600; color: var(--pure); }
.cookie-cat-fixed { font-size: 0.8125rem; color: rgba(245, 245, 243, 0.6); white-space: nowrap; }
.cookie-cat-text { margin-top: 6px; font-size: 0.875rem; line-height: 1.55; color: rgba(245, 245, 243, 0.72); }
.cookie-switch { position: relative; display: inline-flex; flex: none; width: 44px; height: 26px; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cookie-switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--ash); border: 1px solid #4a4a4a; transition: background 0.2s, border-color 0.2s; }
.cookie-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform 0.2s var(--ease-out, ease); }
.cookie-switch input:checked + .cookie-switch-track { background: var(--pure); border-color: var(--pure); }
.cookie-switch input:checked + .cookie-switch-track::after { transform: translateX(18px); background: var(--obsidian); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 2px solid var(--pure); outline-offset: 3px; }
/* Footer: "Cookie settings" looks like the other legal links */
button.footer-cookie-settings { justify-self: start; text-align: left; background-color: transparent; border: 0; padding: 0; font: inherit; color: var(--obsidian); cursor: pointer; text-decoration: none; }
/* Same underline as the other footer links (.link-line): drawn on hover and focus */
button.footer-cookie-settings.link-line { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; }
button.footer-cookie-settings.link-line:hover, button.footer-cookie-settings.link-line:focus-visible { background-size: 100% 1px; }
/* While the banner is up, the footer gets extra room at the bottom so nothing stays hidden behind it */
.has-cookie-banner .footer { padding-bottom: var(--cookie-room, 0px); }

@media (max-width: 600px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .cookie-text { font-size: 0.9375rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

/* ==========================================================================
   FAQ page (faq.html, assets/js/faq-page.js, faq-data.js, faq-config.js)
   Search on Obsidian, categories + questions on Paper. Monochrome.
   Expand: height (grid rows) + fade, --dur-short; no motion when reduced.
   ========================================================================== */

/* Search bar */
.faq-head .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.faq-search { position: relative; display: flex; align-items: center; max-width: 56rem; border-bottom: 1px solid rgba(245, 245, 243, 0.35); }
.faq-search:focus-within { border-bottom-color: var(--paper); box-shadow: 0 1px 0 var(--paper); }
.faq-search-icon { width: 22px; height: 22px; flex: none; color: var(--smoke); }
.faq-search input {
  flex: 1;
  min-width: 0;
  padding: 18px 16px;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--paper);
  -webkit-appearance: none;
  appearance: none;
}
.faq-search input::placeholder { color: var(--smoke); opacity: 1; }
.faq-search input:focus-visible { outline: none; }
.faq-search input::-webkit-search-cancel-button { display: none; }
.faq-clear { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; background: none; border: 0; color: var(--smoke); }
.faq-clear svg { width: 14px; height: 14px; }
.faq-clear:hover { color: var(--paper); }

/* Layout */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq-cats { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-body { grid-column: 5 / -1; }

/* Categories */
.faq-cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--obsidian); }
.faq-cat {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  text-align: left;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.faq-cat:hover { color: var(--obsidian); }
.faq-cat[aria-pressed="true"] { color: var(--obsidian); font-weight: 600; }
.faq-cat[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--obsidian); vertical-align: middle; }

.faq-count {
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Groups and questions */
.faq-group + .faq-group { margin-top: clamp(48px, 5vw, 80px); }
.faq-group-title {
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.faq-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--obsidian); }
.faq-item { border-bottom: 1px solid var(--rule-light); }
.faq-q { margin: 0; font: inherit; }
.faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 500;
  color: var(--obsidian);
}
.faq-btn:focus-visible { outline-offset: 2px; }
.faq-q-text mark { background: rgba(10, 10, 10, 0.12); color: inherit; border-radius: 2px; padding: 0 1px; }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before,
.faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; margin-top: -0.7px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-inner p { max-width: 44rem; padding-bottom: 14px; color: var(--ink-2); }
.faq-a-inner p:last-child { padding-bottom: 24px; }
.faq-a-inner a { color: var(--obsidian); }

/* Short expand animation, only when motion is allowed (.ui-motion is never set under reduced motion or ?reduce=1) */
.ui-motion .faq-a {
  transition: grid-template-rows var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}
.ui-motion .faq-item.is-open .faq-a {
  transition: grid-template-rows var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out), visibility 0s;
}
.ui-motion .faq-icon::after { transition: transform var(--dur-short) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-item.is-open .faq-a, .faq-icon::after { transition: none !important; }
}

.faq-empty { padding: 24px 0; border-top: 1px solid var(--obsidian); color: var(--ink-2); }
.faq-empty-title { margin-bottom: 6px; font-weight: 600; color: var(--obsidian); }

@media (max-width: 899px) {
  .faq-grid { display: block; }
  .faq-cats { position: static; margin-bottom: 40px; }
  .faq-cat-list { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .faq-cat { width: auto; padding: 8px 14px; border: 1px solid #c9c9c5; border-radius: 999px; }
  .faq-cat[aria-pressed="true"] { background: var(--obsidian); border-color: var(--obsidian); color: var(--paper); }
  .faq-cat[aria-pressed="true"]::before { display: none; }
}

/* ==========================================================================
   Home page: alternating backgrounds
   01 Hero white · 02 Carriers black · 03 About white · 04 How black ·
   05 Statement white · 06 Membership black (graphite) · Footer white.
   Colour only: type, sizes and motion are the ones defined above.
   Markup: #about and .statement carry .on-paper (paper network window),
   #carriers and #how-panel use the dark network window.
   ========================================================================== */

/* ---------- 01 Hero: white, map in dark ink ---------- */
.hero { background: var(--paper); color: var(--obsidian); }
.hero :focus-visible { outline-color: var(--obsidian); }
.hero .hero-map .country { fill: #ebebe8; stroke: #cfcfcb; }
.hero .hero-map .country--uk { fill: #e0e0dc; stroke: #8a8a8a; }
.hero .hero-map .graticule { stroke: #d9d9d6; }
.hero .hero-map .city { fill: #8a8a8a; }
.hero .hero-map .city--uk { fill: var(--ink-2); }
.hero .hero-map .route,
.hero .hero-map .route-glow,
.hero .hero-map .pulse { stroke: var(--obsidian); }
.hero .hero-map .route-glow { opacity: 0.14; }
.hero .hero-map .node-end,
.hero .hero-map .particle { fill: var(--obsidian); }
.hero .hero-map stop { stop-color: var(--obsidian); } /* light sweep: CSS overrides the gradient's stop-color attribute */
.hero-map-fade {
  background:
    radial-gradient(ellipse 66% 60% at 50% 50%, rgba(245, 245, 243, 0.94) 0%, rgba(245, 245, 243, 0.8) 48%, rgba(245, 245, 243, 0.34) 100%),
    linear-gradient(0deg, rgba(245, 245, 243, 0.92) 0%, rgba(245, 245, 243, 0) 24%),
    linear-gradient(180deg, rgba(245, 245, 243, 0.7) 0%, rgba(245, 245, 243, 0) 18%);
}
@media (max-width: 899px) {
  .hero-map-fade {
    background:
      radial-gradient(ellipse 110% 52% at 50% 50%, rgba(245, 245, 243, 0.95) 0%, rgba(245, 245, 243, 0.82) 55%, rgba(245, 245, 243, 0.4) 100%),
      linear-gradient(0deg, rgba(245, 245, 243, 0.92) 0%, rgba(245, 245, 243, 0) 26%);
  }
}
.hero-kicker { color: rgba(10, 10, 10, 0.78); }
.hero-sub { color: rgba(10, 10, 10, 0.8); }
.hero .btn--ghost { --fg: var(--obsidian); --bd: rgba(10, 10, 10, 0.28); }
.hero .btn--ghost:hover { --bd: var(--obsidian); }
.hero-facts { border-top-color: var(--rule-light); }
.hero .fact + .fact, .hero .facts-note { border-left-color: var(--rule-light); }
.hero .fact span, .hero .scroll-cue { color: var(--ink-2); }
.hero .scroll-cue i { background: var(--rule-light); }
.hero .scroll-cue i::after { background: var(--obsidian); }

/* Navbar over the white hero: dark text until it turns solid (black) on scroll.
   The open mobile menu is black, so the bar keeps its light colours then. */
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-links a:not(.dropdown-link),
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-dd-toggle { color: rgba(10, 10, 10, 0.78); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-links a:not(.dropdown-link):hover,
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-dd-toggle:hover,
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-dd-toggle[aria-expanded="true"] { color: var(--obsidian); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-sep { background: var(--rule-light); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-actions .btn { --bg: var(--obsidian); --fg: var(--paper); --bd: var(--obsidian); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .menu-toggle span { background: var(--obsidian); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .logo { box-shadow: 0 0 0 1px var(--rule-light); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) > .wrap :focus-visible { outline-color: var(--obsidian); }
body[data-page="home"] .nav .dropdown-menu :focus-visible { outline-color: var(--pure); } /* the dropdown stays a black panel */

/* ---------- 02 For carriers: black ---------- */
#carriers { background: var(--obsidian); color: var(--paper); }
#carriers .features { border-top-color: var(--paper); }
#carriers .feature { border-bottom-color: var(--ash); }
#carriers .feature:last-child { border-bottom-color: var(--paper); }
#carriers .feature-btn { color: var(--paper); }
#carriers .feature-btn::before { background: var(--pure); }
#carriers .feature-num { color: var(--smoke); }
#carriers .feature-detail { color: rgba(245, 245, 243, 0.74); }
@media (hover: hover) and (min-width: 900px) {
  #carriers .feature-btn:hover,
  #carriers .feature-btn[aria-expanded="true"] { color: var(--obsidian); }
  #carriers .feature-btn:hover .feature-num,
  #carriers .feature-btn[aria-expanded="true"] .feature-num,
  #carriers .feature-btn:hover .feature-detail,
  #carriers .feature-btn[aria-expanded="true"] .feature-detail,
  #carriers .feature-btn:hover .feature-detail .tag,
  #carriers .feature-btn[aria-expanded="true"] .feature-detail .tag { color: var(--ink-2); }
  #carriers .feature-btn:hover .feature-icon,
  #carriers .feature-btn[aria-expanded="true"] .feature-icon { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); }
}
@media (max-width: 899px) {
  #carriers .feature-btn[aria-expanded="true"] .feature-icon { background: var(--pure); color: var(--obsidian); }
}

/* ---------- 03 About the platform: white ---------- */
#about { isolation: isolate; } /* hosts its own (paper) network window */
#about .cred-aside p { color: var(--ink-2); }
#about .cred-line { border-top-color: var(--rule-light); }
#about .cred-line:last-child { border-bottom-color: var(--rule-light); }
#about .cred-line .index { color: var(--ink-2); }
#about .blueprint {
  border-color: var(--rule-light);
  background-image:
    linear-gradient(var(--rule-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-light) 1px, transparent 1px);
}
#about .blueprint::before { background: rgba(245, 245, 243, 0.72); }
#about .blueprint .bp-stroke { stroke: var(--ink-2); }
#about .blueprint .bp-live { stroke: var(--obsidian); }
#about .blueprint .bp-box { fill: var(--paper); stroke: var(--ink-2); }
#about .blueprint .bp-box--core { fill: var(--obsidian); stroke: var(--obsidian); }
#about .blueprint .bp-label { fill: var(--obsidian); }
#about .blueprint .bp-label--core { fill: var(--paper); }
#about .blueprint .bp-note { fill: var(--ink-2); }
#about .blueprint circle { fill: var(--obsidian); }
#about .blueprint figcaption { border-top-color: var(--rule-light); background: var(--paper); color: var(--ink-2); }
#about .bp-curtain { background: var(--paper); }
#about .bp-scan { background: var(--obsidian); box-shadow: 0 0 14px 2px rgba(10, 10, 10, 0.18); }

/* ---------- 04 How it works: black panel (the cut above it shows the white section) ---------- */
body[data-page="home"] .how { background: var(--paper); }
.how-panel { background: var(--obsidian); color: var(--paper); }
.how-panel .track { border-top-color: var(--paper); }
.how-panel .track::after { background: var(--paper); }
.how-panel .track-head .index { color: var(--smoke); }
.how-panel .track-line { background: var(--ash); }
.how-panel .track-fill { background: var(--pure); }
.how-panel .step-dot { background: var(--obsidian); border-color: var(--paper); }
.how-panel .step.is-active .step-dot { background: var(--pure); color: var(--obsidian); }
.how-panel .step p { color: rgba(245, 245, 243, 0.74); }
.how-panel .tag { color: var(--smoke); }
@media (max-width: 899px) {
  /* the second track is the inverted block: now white on the black panel */
  .how-panel .track + .track { background: var(--paper); color: var(--obsidian); }
  .how-panel .track + .track .track-head .index,
  .how-panel .track + .track .step p { color: var(--ink-2); }
  .how-panel .track + .track .track-line { background: var(--rule-light); }
  .how-panel .track + .track .track-fill { background: var(--obsidian); }
  .how-panel .track + .track .step-dot { background: var(--paper); border-color: var(--obsidian); }
  .how-panel .track + .track .step.is-active .step-dot { background: var(--obsidian); color: var(--paper); }
  .how-panel .track + .track .tag { color: var(--ink-2); }
  .how-panel .track + .track :focus-visible { outline-color: var(--obsidian); }
}

/* ---------- 05 Who it serves: white ---------- */
.statement.on-paper { position: relative; isolation: isolate; background: var(--paper); }
.motion-ok .statement.on-paper .statement-text .w { color: #c4c4c0; }
.motion-ok .statement.on-paper .statement-text .w.lit { color: var(--obsidian); }

/* ---------- 06 Membership: unchanged, dark (graphite) ---------- */

/* ==========================================================================
   Home: How accounts are verified — three milestones on one zigzag path
   Desktop: steps 01 and 03 above the path, 02 below; diamond markers sit on
   the path's corners. ≤768px: steps stacked, the path runs down a narrow rail
   and the markers alternate left and right of it. The path itself is drawn in
   main.js from the markers' real positions. Monochrome; the Didit blue appears
   only inside its logo. Default (no JS, reduced motion, ?reduce=1): full path,
   every marker on and all text shown. main.js arms it when motion is allowed.
   ========================================================================== */
.verify { padding-block: clamp(72px, 8vw, 136px); border-top: 1px solid var(--rule-light); }
.verify-title { font-size: var(--fs-h3); max-width: 16ch; margin-bottom: clamp(40px, 5vw, 80px); }

.verify-flow {
  --mk: 20px;                          /* marker box; the diamond inside is 14px */
  --band: clamp(72px, 7vw, 104px);     /* vertical rise of the zigzag */
  --to-mark: clamp(36px, 3.4vw, 48px); /* text to marker */
  position: relative;
}
.verify-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.verify-line { fill: none; stroke: var(--obsidian); stroke-width: 1; stroke-linejoin: miter; stroke-linecap: butt; }

.verify-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto var(--band) auto;
  column-gap: clamp(24px, 3vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.verify-step { position: relative; display: flex; flex-direction: column; }
.verify-step:nth-child(1) { grid-column: 1; grid-row: 1; justify-content: flex-end; padding-bottom: var(--to-mark); }
.verify-step:nth-child(2) { grid-column: 2; grid-row: 3; padding-top: var(--to-mark); }
.verify-step:nth-child(3) { grid-column: 3; grid-row: 1; justify-content: flex-end; padding-bottom: var(--to-mark); }

/* Diamond markers: centred on the band's top edge (01, 03) or bottom edge (02) */
.verify-mark { position: absolute; left: 0; z-index: 2; width: var(--mk); height: var(--mk); }
.verify-step:nth-child(odd) .verify-mark { bottom: calc(var(--mk) / -2); }
.verify-step:nth-child(2) .verify-mark { top: calc(var(--mk) / -2); }
.verify-dia,
.verify-ping {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}
.verify-dia { border: 1px solid var(--obsidian); background: var(--obsidian); transition: background-color 0.35s ease, border-color 0.35s ease; }
.verify-ping { border: 1px solid var(--obsidian); opacity: 0; }

/* Travelling marker: leads the drawn part of the path (main.js moves it) */
.verify-traveller { position: absolute; left: 0; top: 0; z-index: 1; width: 0; height: 0; pointer-events: none; will-change: transform; }
.verify-traveller i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--obsidian); transform: rotate(45deg); opacity: 0; }

.verify-body { max-width: 23rem; }
.verify-label {
  font-family: var(--f-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.verify-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.verify-text { color: var(--ink-2); line-height: 1.5; }
.verify-text a { color: var(--obsidian); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }

/* Didit logo, in step 01 where the face check happens. Clear space on every side
   = the height of the "D" in the logo (0.618 of its height). The space reaches
   into empty margins only, so the logo itself lines up with the text. */
.verify-logo {
  --logo-h: 48px;
  --clear: calc(var(--logo-h) * 0.618);
  display: block;
  align-self: flex-start;
  width: max-content;
  padding: var(--clear);
  margin: 0 calc(var(--clear) * -1) calc(var(--clear) * -1);
}
.verify-logo img { display: block; width: auto; height: var(--logo-h); max-width: none; }

.verify-note {
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

/* Armed (motion allowed, before the path reaches a step): hollow diamond */
.verify-flow.is-armed .verify-step:not(.is-on) .verify-dia { background: var(--paper); border-color: #b5b5b1; }

@media (max-width: 768px) {
  .verify-flow { --mk: 20px; --rail: 52px; }
  .verify-steps { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0; }
  .verify-step:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    padding: 0 0 48px calc(var(--rail) + 20px);
  }
  .verify-step:last-child { padding-bottom: 0; }
  /* markers alternate left and right of the rail; the path zigzags between them */
  .verify-step:nth-child(n) .verify-mark { top: 0; bottom: auto; left: 0; }
  .verify-step:nth-child(2) .verify-mark { left: calc(var(--rail) - var(--mk)); }
  .verify-logo { --logo-h: 36px; }
}

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

/* ---------- Navbar: language switcher (components.js) ----------
   Round flags: circle-flags by HatScripts, MIT (assets/flags/LICENSE.md). */
.nav-lang { position: relative; }
.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: rgba(245, 245, 243, 0.78);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-lang-toggle:hover,
.nav-lang-toggle[aria-expanded="true"] { color: var(--pure); }
.lang-flag { display: block; flex: none; width: 20px; height: 20px; border-radius: 50%; }
/* Desktop (768px+): all 33 languages in three columns of 11, no scrolling.
   Translucent dark glass; text colours below are chosen for AA even when the
   panel sits over the white hero (worst case: 72% black over white = #4f4f4f). */
.lang-panel {
  position: absolute;
  right: -12px;
  top: calc(100% + 14px);
  width: 640px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  padding: 6px;
  background: rgba(10, 10, 10, 0.94); /* fallback without backdrop-filter */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lang-panel {
    background: rgba(10, 10, 10, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
  }
}
.lang-panel:focus { outline: none; }
.nav-lang.is-open .lang-panel { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .lang-panel {
    transform: translateY(-6px);
    transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
  }
  .nav-lang.is-open .lang-panel { transform: none; transition-delay: 0s; }
}
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(11, auto);
  grid-auto-flow: column;            /* fills down each column: 11, 11, 11 */
  gap: 2px 4px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: rgba(245, 245, 243, 0.9);
  font-family: var(--f-body);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}
.lang-option .lang-code { flex: none; width: 2em; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: rgba(245, 245, 243, 0.74); }
.lang-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-option:not([aria-disabled="true"]):hover,
.lang-option:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--pure); }
.lang-option:focus-visible { outline-offset: -2px; }
.lang-option[aria-current="true"] { color: var(--pure); background: rgba(255, 255, 255, 0.14); }
.lang-option[aria-current="true"] .lang-code { color: var(--paper); }
/* Not translated yet: dimmed, still focusable (Tab reaches every option), not selectable */
.lang-option[aria-disabled="true"] { cursor: not-allowed; color: rgba(245, 245, 243, 0.74); }
.lang-option[aria-disabled="true"] .lang-flag { opacity: 0.55; }
.lang-option[aria-disabled="true"]:focus-visible { color: var(--paper); }
.lang-soon {
  flex: none;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}
/* Home page over the white hero: dark toggle until the bar turns black; the panel stays dark glass */
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-lang-toggle { color: rgba(10, 10, 10, 0.78); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-lang-toggle:hover,
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) .nav-lang-toggle[aria-expanded="true"] { color: var(--obsidian); }
body[data-page="home"]:not(.menu-open) .nav:not(.is-solid) > .wrap .nav-lang .lang-panel :focus-visible { outline-color: var(--pure); }
/* Under 768px: the panel spans the screen under the bar, two columns, and
   scrolls inside itself only. The badge drops under the name so names keep their width. */
@media (max-width: 767px) {
  .lang-panel {
    position: fixed;
    top: calc(var(--nav-h) + 8px); /* a small gap under the bar */
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-height: calc(100vh - var(--nav-h) - 24px);
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow: hidden auto;
    overscroll-behavior: contain;
  }
  .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  .lang-option {
    display: grid;
    grid-template-columns: 20px auto minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 2px;
    height: auto;
    min-height: 40px;
    padding: 6px 8px;
  }
  .lang-option .lang-code { width: auto; }
  .lang-soon { grid-column: 3; justify-self: start; }
}

/* Phone with country code (contact form): country first on the row, number after it. */
.phone-row { display: flex; align-items: flex-end; gap: 12px; }
.phone-row .cc { flex: 0 0 170px; width: 170px; max-width: 46%; }
.cc { position: relative; }
.cc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bdbdb9;
  border-radius: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--obsidian);
  text-align: left;
  cursor: pointer;
}
.cc-btn:focus-visible { outline: none; border-bottom-color: var(--obsidian); }
.cc-flag { width: 20px; height: 15px; flex: 0 0 auto; object-fit: cover; border-radius: 1px; box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.08); }
.cc-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-chev { width: 12px; height: 8px; flex: 0 0 auto; transition: transform 0.2s ease; }
.cc-btn[aria-expanded="true"] .cc-chev { transform: rotate(180deg); }
.cc-list {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  width: max(100%, 280px);
  max-height: 290px;
  overflow-y: auto;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  background: var(--pure);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.14);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Closed: fades and slides out, then becomes unreachable */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.cc-list.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .cc-list, .cc-list.is-open { transform: none; transition: none; }
}
.cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.9375rem;
  color: var(--obsidian);
  cursor: pointer;
}
.cc-list li.is-active,
.cc-list li:hover { background: var(--paper); }
.cc-list li[aria-selected="true"] .cc-name { font-weight: 500; }
.cc-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-dial { flex: 0 0 auto; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.phone-number { flex: 1 1 auto; min-width: 0; }

/* Driver verification (KYD) block under the How it works tracks */
.kyd { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--rule-light); display: grid; gap: 28px; }
.kyd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kyd-head h3 { margin: 0; }
.kyd-intro { max-width: 60ch; margin: 0; color: var(--ink-2); }
.kyd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.kyd-steps li { border-top: 1px solid var(--rule-light); padding-top: 14px; }
.kyd-steps h4, .kyd-outcomes h4 { margin: 0 0 8px; font-size: 1rem; }
.kyd-steps p, .kyd-outcomes p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.kyd-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.kyd-fee, .kyd-vs { margin: 0; max-width: 60ch; color: var(--obsidian); }
.kyd-vs { color: var(--ink-2); font-size: var(--fs-small); }

/* ==========================================================================
   Long translations
   Several languages run much longer than English (fi, hu, ka, hy, kk, ky, tg,
   uz…) or have single words wider than a narrow box. These rules act only when
   a line no longer fits, so English keeps its layout. Checked per language and
   width by tests/i18n-layout.mjs.
   ========================================================================== */

/* A word longer than its box wraps inside it instead of sticking out.
   break-word does not change how wide anything is, only where an overflowing word breaks. */
html { overflow-wrap: break-word; }

/* Buttons: a label that does not fit goes onto a second line, centred, instead of being cut off */
.btn { white-space: normal; text-align: center; max-width: 100%; padding-top: 8px; padding-bottom: 8px; }
.btn-label { min-width: 0; }
.btn-label > span::after { right: 0; } /* the hover copy wraps at the same width as the label */

/* Rows of items: items may shrink below their longest word, and rows wrap */
.plan-top > *, .kyd-head > *, .footer-base > *, .cookie-actions > *, .demo-roles > * { min-width: 0; }
.cookie-actions { flex-wrap: wrap; }

/* Home hero: nothing in the copy column is wider than the column, so a long first word wraps
   (the column sizes items to their longest word otherwise). On desktop the column itself is
   capped with fit-content(52rem): English needs less, so it keeps its width; a long title wraps
   inside 52rem and the demo frame keeps the rest. (A max-width on the copy would not do it:
   the column would still be sized to the title's full width.) */
.hero-copy > * { max-width: 100%; }
@media (min-width: 1025px) {
  .hero-main { grid-template-columns: fit-content(52rem) minmax(0, 960px); }
}

/* How it works: a long heading word may not widen its column (1fr cannot shrink below
   its longest word; minmax(0, 1fr) can). Same columns as before: two, one below 900px. */
.tracks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.track-head > * { min-width: 0; }
@media (max-width: 899px) {
  .tracks { grid-template-columns: minmax(0, 1fr); }
}

/* Footer: the company line wraps instead of running off narrow screens */
.footer-legal-text--end { white-space: normal; flex-shrink: 1; min-width: 0; }

@media (max-width: 600px) {
  .footer-legal-text--end { margin-left: 0; text-align: left; }

  /* Comparison table: each feature, then one line per plan, labelled with the
     plan name (data-label, written by pricing.js). The column heads stay for
     screen readers. */
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: auto; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
  .compare-table th,
  .compare-table td { border-bottom: 0; }
  .compare-table tbody th { padding: 0 0 6px; }
  .compare-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .compare-table td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    max-width: 55%;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: left;
  }
  .compare-table td .cmp-icon { margin: 0; flex: none; }
  .compare-table .cmp-group-head { padding-top: 26px; }
  .compare-table .cmp-group-head th,
  .compare-table .cmp-group-head td { padding-top: 4px; }

  /* Legal tables: columns narrow to the screen and long words wrap, instead of a sideways scroll */
  .legal-table { min-width: 0; }
  .legal-table th,
  .legal-table td { overflow-wrap: anywhere; padding-right: 10px; }
}

/* ==========================================================================
   Partners Network (partners.html)
   Built from the site's existing pieces (section heads, buttons, form fields,
   .kyd-steps and .kyd-outcomes lists). Only the category list and its panel
   are laid out here; partners.js drives the list.
   ========================================================================== */
.partners-ctas { grid-column: 1 / -1; margin-top: clamp(28px, 3vw, 44px); }
[data-page="partners"] .section-head > p:not(.eyebrow) + p:not(.eyebrow) { margin-top: 18px; }
[data-page="partners"] .kyd-steps h3,
[data-page="partners"] .kyd-outcomes h3 { margin: 0 0 8px; font-size: 1rem; }
[data-page="partners"] .kyd-steps .index { display: block; margin-bottom: 10px; }
[data-page="partners"] .on-paper + .on-paper { border-top: 1px solid var(--rule-light); }

/* Category list: one column; the chosen row's description opens under it */
.pcat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper); }
.pcat-item { border-bottom: 1px solid var(--ash); break-inside: avoid; }
.pcat-head { margin: 0; font: inherit; }
.pcat-btn {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 10px;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: var(--fs-body);
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.pcat-btn:hover,
.pcat-btn[aria-expanded="true"] { background: var(--graphite); }
.pcat-btn[aria-expanded="true"] .pcat-name { font-weight: 600; }
.pcat-btn .index { color: var(--smoke); }
.pcat-btn:focus-visible { outline: 2px solid var(--pure); outline-offset: -2px; }
.pcat-btn[aria-expanded="true"] .compare-icon::after { transform: rotate(0deg); } /* plus -> minus */
.pcat-desc { padding: 4px 10px 20px calc(2.6em + 22px); color: var(--smoke); font-size: var(--fs-small); line-height: 1.55; }
.pcat-desc p { margin: 0; max-width: 36rem; }
.pcat-panel-title { margin: 14px 0 18px; font-family: var(--f-display); font-weight: 600; font-variation-settings: "wdth" 104; font-size: clamp(1.75rem, 2.6vw, 2.75rem); letter-spacing: -0.04em; line-height: 1; }
.pcat-panel-text { margin: 0; max-width: 30rem; color: var(--smoke); font-size: var(--fs-lead); line-height: 1.5; }

/* Desktop: two columns of rows, the chosen description in a panel on the right */
@media (min-width: 900px) {
  .pcat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 80px); align-items: start; }
  .pcat-list { columns: 2; column-gap: 24px; }
  .pcat-btn { grid-template-columns: 2.6em minmax(0, 1fr); }
  .pcat-btn .compare-icon { display: none; }
  .pcat-panel { position: sticky; top: calc(var(--nav-h) + 32px); border-top: 1px solid var(--paper); padding-top: 22px; }
}

/* ==========================================================================
   Home: commercial sections (problems, how it works steps, cargo owners,
   carriers lead, GG Pay, Partners Network)
   ========================================================================== */
.hero-support { margin-top: clamp(18px, 2.6vh, 28px); max-width: 34rem; font-size: var(--fs-small); color: var(--ink-2); }

.section-lead { max-width: 46rem; font-size: var(--fs-lead); line-height: 1.5; margin: calc(-1 * clamp(24px, 4vw, 64px)) 0 clamp(40px, 5vw, 72px); color: var(--smoke); }
.on-paper .section-lead { color: var(--ink-2); }
.section-support { margin-top: clamp(32px, 4vw, 56px); max-width: 40rem; color: var(--smoke); }
.on-paper .section-support { color: var(--ink-2); }

/* Problems: three cards on dark */
.problem-cards .tier-top { margin-bottom: clamp(28px, 3.5vw, 56px); }
.problem-cards .tier h3 { font-size: clamp(1.4rem, 1.9vw, 2.05rem); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.problem-cards .tier p { color: var(--smoke); }

/* How it works: four steps */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.flow-steps li { border-top: 1px solid var(--obsidian); padding-top: 18px; }
.flow-steps .index { display: block; margin-bottom: clamp(24px, 3vw, 48px); color: var(--ink-2); }
.flow-steps h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; }
.flow-steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow-steps { grid-template-columns: minmax(0, 1fr); } }

/* Role-specific SEO landing page FAQs */
.role-faq { max-width: 52rem; border-top: 1px solid var(--rule-light); }
.role-faq details { border-bottom: 1px solid var(--rule-light); padding: 18px 0; }
.role-faq summary { cursor: pointer; font-family: var(--f-display); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
.role-faq details p { max-width: 44rem; margin: 14px 0 0; color: var(--ink-2); }

/* Cargo owners: benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 28px; }
.benefits li { border-top: 1px solid #3c3c3c; padding-top: 18px; }
.on-paper .benefits li { border-top-color: var(--obsidian); }
.benefits h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.5vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 10px; }
.benefits p { margin: 0; color: var(--smoke); }
.on-paper .benefits p { color: var(--ink-2); }

/* GG Pay */
.ggpay-brand { display: block; font-family: var(--f-mono); font-size: 0.22em; letter-spacing: 0.24em; font-weight: 500; margin-bottom: 0.6em; }
.ggpay-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 80px); border-top: 1px solid #3c3c3c; padding-top: clamp(28px, 3vw, 48px); }
.ggpay-card h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.3vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.95; margin: 0; }
.ggpay-copy p { margin: 0 0 16px; color: var(--smoke); max-width: 40rem; }
.ggpay-copy .ggpay-promo { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.12; color: var(--paper); }
.ggpay-copy .ggpay-lead { font-size: var(--fs-lead); color: var(--paper); }
@media (max-width: 900px) {
  .ggpay-card { grid-template-columns: minmax(0, 1fr); }
  .problem-cards { grid-template-columns: minmax(0, 1fr); }
  .problem-cards .tier + .tier { border-left: 0; border-top: 1px solid #3c3c3c; }
}
/* Long compound words (German, Finnish, Hungarian…) hyphenate in big headings instead of breaking anywhere */
.section-head h2, .feature-title, .benefits h3, .problem-cards .tier h3, .flow-steps h3, .ggpay-card h3, .hero-title { hyphens: auto; -webkit-hyphens: auto; }

/* ==========================================================================
   Private customers: transport request (request-transport.html) + home section
   ========================================================================== */
.rt-steps { margin-top: clamp(40px, 5vw, 72px); }
.field[data-static-label] .field-control > label { transform: translateY(-30px) scale(0.8); color: var(--obsidian); }
.field-hint { margin: -6px 0 22px; font-size: var(--fs-small); color: var(--ink-2); }
.radio-field { margin-bottom: 18px; }
.radio-field .choice-group { margin-top: 6px; }
.radio-field.is-invalid .field-error { opacity: 1; transform: none; }
.radio-field.is-invalid .choice span { border-color: var(--obsidian); }
#rt-size-wrap, #rt-items-wrap { margin-top: 18px; }
.handling { margin: 4px 0 28px; }
.handling .choice-group { margin-top: 12px; }
.photos { margin-bottom: 8px; }
.photos .field-hint { margin: 6px 0 14px; }
.photos-add { position: relative; cursor: pointer; }
.photos-add input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photos-add:focus-within { outline: 2px solid var(--obsidian); outline-offset: 3px; }
.photos-add.is-disabled { opacity: 0.4; pointer-events: none; }
.photo-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.photo-list li { position: relative; aspect-ratio: 1; border: 1px solid #bdbdb9; overflow: hidden; background: #fff; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--obsidian); color: var(--paper); cursor: pointer; }
.photo-remove svg { width: 12px; height: 12px; }
.photos-error { opacity: 0; }
.photos-error.is-shown { opacity: 1; transform: none; }
.rt-privacy { margin: 0 0 18px; font-size: var(--fs-small); color: var(--ink-2); max-width: 46rem; }
.transport .consent-wrap { margin-top: 4px; }

/* Home: private customers section with the QR code (QR only where a phone can scan it) */
.b2c-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.b2c-copy .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.b2c-copy .section-head h2 { grid-column: 1 / -1; }
.b2c-copy .section-head > p:not(.eyebrow) { grid-column: 1 / -1; justify-self: start; max-width: 36rem; margin-top: 20px; }
.b2c-points { list-style: none; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; display: grid; gap: 10px; max-width: 36rem; }
.b2c-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.b2c-points li::before { content: ""; width: 9px; height: 1px; margin-top: 0.75em; background: var(--obsidian); }
.b2c-qr { justify-self: end; display: grid; justify-items: center; gap: 16px; padding: clamp(20px, 2vw, 32px); border: 1px solid var(--obsidian); background: #fff; text-align: center; max-width: 300px; }
.b2c-qr img { width: 220px; height: 220px; display: block; image-rendering: pixelated; }
.b2c-qr figcaption { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.b2c-qr strong { display: block; font-size: 1rem; color: var(--obsidian); margin-bottom: 4px; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .b2c-grid { grid-template-columns: minmax(0, 1fr); }
  .b2c-qr { display: none; }   /* on a phone the button opens the form directly */
}
@media (max-width: 600px) {
  /* the form is what matters on a phone: the three steps stay short */
  .rt-steps { gap: 14px; margin-top: 28px; }
  .rt-steps li { padding-top: 10px; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; }
  .rt-steps .index { margin: 0.35em 0 0; grid-row: span 2; }
  .rt-steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
  .rt-steps p { font-size: var(--fs-small); }
}
