/* Blue Books marketing site: the Ledger structure in the Blue family (DESIGN.md direction).
   Archivo + IBM Plex Mono, hairlines, radius 0, no shadows. Ocean is a rule/marker colour, never small
   text; small blue text uses --accent-text. The hero and the closing band are always Midnight. */

/* Fonts are served from this host (CSP: font-src 'self'); the files and the unicode ranges are the
   application's (public/fonts, src/app/globals.css). Archivo is a variable font. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Archivo-VF-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Archivo-VF-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --midnight: #0c2340;
  --ocean: #4a8ec2;
  --ocean-text: #2f6fa6;
  --sky: #86b8ec;
  --warm: #f8f6f2;
  --paper: #ffffff;
  --ink: #0c2340;
  --body: #2a3340;
  --muted: #5b6b7d;
  --rule: #d9dde3;
  --rule-strong: #b8c0cb;
  --bg: var(--warm);
  --surface: var(--paper);
  --accent: var(--ocean);
  --accent-text: var(--ocean-text);
  --seg-1: #0c2340;
  --seg-2: #2f6fa6;
  --seg-3: #86b8ec;
  --seg-4: #b8c0cb;
  --band: #0c2340;
  --panel: #0c2340;
  --spot: rgba(74, 142, 194, 0.1);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --on-dark-rule: rgba(255, 255, 255, 0.16);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a2e;
    --surface: #10243d;
    --ink: #eef2f7;
    --body: #cfd8e3;
    --muted: #9fb0c2;
    --rule: #26384d;
    --rule-strong: #3a4f68;
    --accent: #86b8ec;
    --accent-text: #9cc6ef;
    --seg-1: #eef2f7;
    --seg-2: #86b8ec;
    --seg-3: #4a8ec2;
    --seg-4: #3a4f68;
    --band: #2f6fa6;
    --panel: #17395c;
    --spot: rgba(134, 184, 236, 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a2e;
  --surface: #10243d;
  --ink: #eef2f7;
  --body: #cfd8e3;
  --muted: #9fb0c2;
  --rule: #26384d;
  --rule-strong: #3a4f68;
  --accent: #86b8ec;
  --accent-text: #9cc6ef;
  --seg-1: #eef2f7;
  --seg-2: #86b8ec;
  --seg-3: #4a8ec2;
  --seg-4: #3a4f68;
  --band: #2f6fa6;
  --panel: #17395c;
  --spot: rgba(134, 184, 236, 0.1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.14em;
}
a:hover {
  text-decoration-color: var(--accent);
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
}
p {
  margin: 0;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.mark {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition:
    background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn .arr {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn .arr.down {
  transform: rotate(90deg);
}
.btn:hover .arr,
.text-link:hover .arr {
  transform: translateX(4px);
}
.btn:hover .arr.down,
.text-link:hover .arr.down {
  transform: rotate(90deg) translateX(4px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.25s ease;
}
.text-link:hover {
  color: var(--on-dark);
}
.text-link span {
  padding-bottom: 3px;
  background: linear-gradient(var(--sky), var(--sky)) left bottom / 0% 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.text-link:hover span {
  background-size: 100% 1px;
}
.text-link .arr {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.text-link .arr.down {
  transform: rotate(90deg);
}
.btn.light {
  background:
    linear-gradient(#dce9f6, #dce9f6) left / 0% 100% no-repeat,
    var(--on-dark);
  border-color: var(--on-dark);
  color: var(--midnight);
}
.btn.light:hover {
  background-size: 100% 100%;
  border-color: #dce9f6;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* ---------- header (light pages and on the dark hero) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lockup svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.lockup .word {
  white-space: nowrap;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--body);
}
.nav a:hover {
  color: var(--ink);
}
.nav .login {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule-strong);
  padding: 7px 12px;
  color: var(--ink);
}
.nav .login:hover {
  border-color: var(--accent);
}
.site-header.on-dark {
  border-bottom-color: var(--on-dark-rule);
  position: relative;
  z-index: 2;
}
.on-dark .lockup,
.on-dark .nav .login {
  color: var(--on-dark);
}
.on-dark .nav a {
  color: var(--on-dark-muted);
}
.on-dark .nav a:hover {
  color: var(--on-dark);
}
.on-dark .nav .login {
  border-color: rgba(255, 255, 255, 0.35);
}
.on-dark .nav .login:hover {
  border-color: var(--sky);
}
/* language switcher (DE · EN · FR · IT), stays visible on phones */
.langs {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav .langs a {
  padding: 6px 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.nav .langs a[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}
.on-dark .langs a {
  color: var(--on-dark-muted);
}
.on-dark .langs a[aria-current="true"],
.on-dark .langs a:hover {
  color: var(--on-dark);
}
.legal-note {
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.nav a {
  white-space: nowrap;
}
/* the four section links need about 860 px next to the logo, languages and login */
@media (max-width: 860px) {
  .nav > a:not(.login) {
    display: none;
  }
}
@media (max-width: 760px) {
  .nav {
    gap: 10px;
  }
  .nav .langs a {
    padding: 6px 3px;
  }
}
@media (max-width: 480px) {
  /* phones: logo + languages only; the app login stays in the footer */
  .nav .login {
    display: none;
  }
}

/* ---------- hero (always Midnight) ---------- */
.hero-band {
  position: relative;
  overflow: hidden;
  background: var(--midnight);
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-rule);
  /* the first screen is the hero: it ends exactly at the fold on every screen it fits on
     (svh: the height with the phone's toolbars shown, so nothing hides behind them) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
/* ASCII layer (ascii.js): the dynamicpeg.com technique, a <pre> redrawn every frame */
.ascii-bg,
.ascii-panel {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 10px;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  font-variant-ligatures: none;
}
.ascii-bg {
  position: absolute;
  inset: 0;
  color: rgba(134, 184, 236, 0.18);
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 66%);
  mask-image: linear-gradient(90deg, transparent 34%, #000 66%);
}
.ascii-bg b,
.ascii-panel b {
  font-weight: 400;
  color: rgba(170, 206, 242, 0.82);
}
/* in the hero the mark is atmosphere, not a second headline */
.ascii-bg b {
  color: rgba(170, 206, 242, 0.62);
}
.ascii-probe {
  position: absolute;
  visibility: hidden;
}
/* when the mark sits below the buttons (phones, portrait tablets; ascii.js decides and says where
   the buttons end), the grid fades in from there and the copy starts right under the header */
.hero-band.is-below .ascii-bg {
  -webkit-mask-image: linear-gradient(180deg, transparent var(--fade-from, 52%), #000 var(--fade-to, 72%));
  mask-image: linear-gradient(180deg, transparent var(--fade-from, 52%), #000 var(--fade-to, 72%));
}
.hero-band.is-below .hero {
  align-content: start;
}
/* portrait tablets: the same before ascii.js has measured, so the copy does not jump */
@media (orientation: portrait) and (min-width: 761px) and (max-width: 1100px) {
  .hero-band:not(.is-right) .hero {
    align-content: start;
  }
}
@media (max-width: 760px) {
  .ascii-bg {
    color: rgba(134, 184, 236, 0.14);
    -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 72%);
    mask-image: linear-gradient(180deg, transparent 52%, #000 72%);
  }
  .ascii-bg b {
    color: rgba(170, 206, 242, 0.7);
  }
}
.hero {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: grid;
  gap: 28px;
  justify-items: start;
  /* the copy sits in the middle of the space between the header and the client row, a little
     above the geometric centre */
  align-content: center;
  padding-block: clamp(40px, 6vh, 72px) clamp(56px, 10vh, 120px);
}
/* one quiet line above the headline: a short Ocean rule and the fit in mono */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--ocean);
}
.hero h1 {
  max-width: 11.5em;
  color: var(--on-dark);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}
/* German, French and Italian headlines are longer than the English one: a size smaller, so they
   stay left of the animation on desktop and within three lines on phones */
:lang(de) .hero h1,
:lang(fr) .hero h1,
:lang(it) .hero h1 {
  font-size: clamp(34px, 6vw, 72px);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 1.8vw, 21px);
  max-width: 34em;
}
.trust {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--on-dark-rule);
}
.trust-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.trust-logo {
  color: var(--on-dark);
  opacity: 0.86;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.trust-logo:hover {
  opacity: 1;
}
.finrate-mark {
  width: 0.92em;
  height: 0.92em;
  flex: none;
  fill: currentColor;
  margin-right: 0.32em;
}
.trust-logo.text {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}

/* ---------- sections ---------- */
section.block {
  padding-block: clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 44em;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head > p:not(.eyebrow) {
  font-size: 18px;
  color: var(--body);
}
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  color: var(--accent-text);
  background: var(--surface);
}
ul.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
ul.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* services: six roles on the left, one Blue Books panel on the right; lines converge into it (site.js) */
.swap {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) clamp(56px, 8vw, 120px) minmax(0, 1.08fr);
  align-items: stretch;
}
.swap-list {
  display: flex;
  flex-direction: column;
}
.swap-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.swap-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.swap-role + .swap-group {
  margin-top: 28px;
}
.swap-role {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 8px 16px 8px 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  color: var(--body);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}
.swap-group + .swap-role {
  border-top: 1px solid var(--rule);
}
.swap-role::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.swap-role .icon {
  color: var(--muted);
  transition: color 0.2s ease;
}
.swap-role .chev {
  width: 16px;
  height: 16px;
  color: var(--accent-text);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.swap-role:hover {
  background: var(--surface);
  color: var(--ink);
}
.swap-role:hover .chev {
  opacity: 0.55;
  transform: none;
}
.swap-role[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.swap-role[aria-pressed="true"]::before {
  transform: scaleY(1);
}
.swap-role[aria-pressed="true"] .icon {
  color: var(--accent-text);
}
.swap-role[aria-pressed="true"] .chev {
  opacity: 1;
  transform: none;
}
.swap-name {
  min-width: 0;
}
.swap-lines {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.swap-lines .ln {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1) var(--d, 0s),
    stroke 0.3s ease,
    stroke-width 0.3s ease;
}
.js .swap:not(.is-drawn) .swap-lines .ln {
  stroke-dashoffset: 1;
}
.swap-lines .ln.on {
  stroke: var(--accent);
  stroke-width: 2;
}
.swap-lines .flow {
  fill: none;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  opacity: 0;
  animation: swapflow 1.1s linear infinite;
  transition: opacity 0.4s ease;
}
.swap.is-drawn .swap-lines .flow {
  opacity: 1;
  transition-delay: 1.3s;
}
@keyframes swapflow {
  to {
    stroke-dashoffset: -14;
  }
}
.swap-lines .port {
  fill: var(--bg);
  stroke: var(--rule-strong);
  stroke-width: 1;
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}
.swap-lines .port.on {
  fill: var(--accent);
  stroke: var(--accent);
}
.swap-lines .sink {
  fill: var(--accent);
}
.swap-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--panel);
  color: var(--on-dark-muted);
  overflow: hidden;
}
.swap-panel > * {
  position: relative;
}
.swap-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--on-dark-rule);
  color: var(--on-dark);
  font-size: 16px;
}
.swap-head .mark {
  width: 30px;
  height: 30px;
}
.swap-head strong {
  font-weight: 600;
}
.swap-stage {
  display: grid;
  gap: 28px;
}
.swap-tasks {
  display: grid;
  gap: 18px;
  align-content: start;
}
.swap-tasks h3 {
  color: var(--on-dark);
  font-size: clamp(22px, 2.4vw, 28px);
}
.swap-tasks h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 14px;
  background: var(--ocean);
}
.swap-tasks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.swap-tasks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--on-dark);
  font-size: 16.5px;
}
.swap-tasks li .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--sky);
}
/* with JS the six task lists share one cell and cross-fade; without JS they are simply listed */
.js .swap-tasks {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0s linear 0.22s;
}
.js .swap-tasks.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease 0.05s,
    visibility 0s;
}
.js .swap-tasks h3,
.js .swap-tasks li {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .swap-tasks.is-on h3,
.js .swap-tasks.is-on li {
  opacity: 1;
  transform: none;
}
.js .swap-tasks.is-on li:nth-child(1) {
  transition-delay: 0.06s;
}
.js .swap-tasks.is-on li:nth-child(2) {
  transition-delay: 0.11s;
}
.js .swap-tasks.is-on li:nth-child(3) {
  transition-delay: 0.16s;
}
.js .swap-tasks.is-on li:nth-child(4) {
  transition-delay: 0.21s;
}
.swap-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--on-dark-rule);
  font-size: 14px;
  color: var(--on-dark-muted);
}
.swap-foot .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--sky);
}
/* a soft light that follows the cursor (fine pointers only, site.js) */
[data-spot]::before,
[data-spot-grid] > li::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(134, 184, 236, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-spot-grid] > li::before {
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
}
[data-spot].is-lit::before,
[data-spot-grid] > li.is-lit::before {
  opacity: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* cost: its own section; the bar builds segment by segment, legend and bar highlight each other */
.cost {
  display: grid;
  gap: 20px;
}
.cost-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(4px, 1.5vw, 16px);
}
.cost-top .section-head {
  margin-bottom: 0;
}
.cost-total {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.cost-total-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cost-figure {
  font-family: var(--mono);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-count] {
  display: inline-block;
  min-width: 7ch;
  text-align: right;
}
.stack {
  display: flex;
  height: 44px;
  width: 100%;
  border: 1px solid var(--rule);
}
.seg {
  display: block;
  height: 100%;
  transition: opacity 0.25s ease;
}
/* widths proportional to the legend: 145 / 120 / 110 / 56 of 431 */
.stack .s-cfo {
  width: 33.64%;
}
.stack .s-fm {
  width: 27.84%;
}
.stack .s-ro {
  width: 25.52%;
}
.stack .s-soc {
  width: 13%;
}
.s-cfo {
  background: var(--seg-1);
}
.s-fm {
  background: var(--seg-2);
}
.s-ro {
  background: var(--seg-3);
}
.s-soc {
  background: repeating-linear-gradient(135deg, var(--seg-4) 0 3px, transparent 3px 7px);
}
.js .stack[data-reveal] {
  opacity: 1;
  transform: none;
}
.js .stack .seg {
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    transform 0.8s cubic-bezier(0.6, 0, 0.2, 1),
    opacity 0.25s ease;
}
.js .stack .s-fm {
  transition-delay: 0.14s, 0s;
}
.js .stack .s-ro {
  transition-delay: 0.28s, 0s;
}
.js .stack .s-soc {
  transition-delay: 0.42s, 0s;
}
.js .stack.is-in .seg {
  transform: none;
}
.legend {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
}
.legend > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  transition: opacity 0.25s ease;
}
.legend dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.legend dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.legend .sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--rule);
}
.legend > div.is-hot dt {
  color: var(--ink);
}
.cost.has-hot .seg:not(.is-hot) {
  opacity: 0.25;
}
.cost.has-hot .legend > div:not(.is-hot) {
  opacity: 0.45;
}
.versus {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.versus .mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
  margin-top: 2px;
}
.versus-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 10px;
}
.inline-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.inline-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.inline-ticks .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}
.footnote {
  font-size: 13px;
  color: var(--muted);
  max-width: 60em;
}

/* fit */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.two-col .section-head {
  margin-bottom: 0;
}
.fit {
  display: grid;
  gap: 36px;
}
.scale {
  display: grid;
  gap: 10px;
}
.scale-track {
  position: relative;
  height: 56px;
  border-bottom: 1px solid var(--rule-strong);
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 10%);
}
/* log scale CHF 0.3 Mio. … 200 Mio.: 1 Mio. = 18.5 %, 5 = 43.3 %, 10 = 53.9 %, 100 = 89.3 % */
.scale-band {
  position: absolute;
  left: 18.5%;
  width: 70.8%;
  top: 10px;
  bottom: 0;
  background: var(--band);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}
.scale-ticks {
  position: relative;
  height: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.scale-ticks .t {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.t-1 {
  left: 18.5%;
}
.t-5 {
  left: 43.3%;
}
.t-10 {
  left: 53.9%;
}
.t-100 {
  left: 89.3%;
}
.scale-caption {
  font-size: 13px;
  color: var(--muted);
}
.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.criteria li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 16px;
}
.criteria .icon {
  color: var(--accent-text);
}

/* how it works + phone */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule);
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.steps h3 {
  margin-bottom: 4px;
}
.steps p {
  font-size: 15.5px;
}
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  background: #0a1b31;
  border: 1px solid #23405f;
}
.ph-screen {
  background: #ffffff;
  color: #0c2340;
  padding: 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  min-height: 520px;
}
.ph-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.ph-co {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.ph-co i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #0c2340;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
}
.ph-bb {
  color: #2f6fa6;
  font-size: 11px;
}
.ph-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.ph-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: #4a8ec2;
}
.ph-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4c4f55;
}
.ph-item {
  border-top: 1px solid #d9dde3;
  padding-top: 12px;
  display: grid;
  gap: 6px;
}
.ph-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.ph-amt {
  font-family: var(--mono);
  font-weight: 500;
}
.ph-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b6b7d;
}
.ph-action {
  display: grid;
  margin: 4px 0 8px;
}
.ph-action > * {
  grid-area: 1 / 1;
}
.ph-btn {
  display: grid;
  place-items: center;
  min-height: 42px;
  background: #0c2340;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  animation: ph-press 7s ease-in-out infinite;
}
.ph-btn.quiet {
  background: transparent;
  color: #0c2340;
  border: 1px solid #b8c0cb;
  animation: none;
}
.ph-stamp {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #0c2340;
  color: #0c2340;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: ph-stamp 7s ease-in-out infinite;
}
@keyframes ph-press {
  0%,
  30% {
    opacity: 1;
    transform: scale(1);
  }
  34% {
    opacity: 1;
    transform: scale(0.97);
    background: #1b3a5e;
  }
  40%,
  92% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}
@keyframes ph-stamp {
  0%,
  38% {
    opacity: 0;
  }
  44%,
  90% {
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}
.ph-tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d9dde3;
  font-size: 11px;
  color: #5b6b7d;
  text-align: center;
}
.ph-tabs span {
  padding: 12px 0 14px;
}
.ph-tabs .on {
  color: #0c2340;
  font-weight: 600;
  border-top: 2px solid #4a8ec2;
  margin-top: -1px;
}

/* clients */
.clients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: var(--surface);
}
.client .text-link {
  justify-self: start;
  padding: 0;
  color: var(--accent-text);
}
.client .text-link:hover {
  color: var(--ink);
}
.client .text-link span {
  background-image: linear-gradient(var(--accent), var(--accent));
}
.client {
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.client + .client {
  border-left: 1px solid var(--rule);
}
.client-head {
  display: grid;
  gap: 8px;
  color: var(--ink);
}
.client-name {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 30px;
  color: var(--ink);
}
.client-place {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-note {
  color: var(--ink);
  font-size: 16px;
}

/* data */
.data-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.data-grid li {
  position: relative;
  padding: 26px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 8px;
  align-content: start;
}
.data-grid .icon {
  width: 26px;
  height: 26px;
  color: var(--accent-text);
  margin-bottom: 6px;
  transition:
    color 0.25s ease,
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.data-grid li > * {
  position: relative;
}
.data-grid li.is-lit .icon {
  color: var(--accent);
  transform: translateY(-2px);
}
.data-grid p {
  font-size: 15px;
}

/* closing band (always Midnight) */
.cta-band {
  background: var(--midnight);
  color: var(--on-dark-muted);
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 112px);
}
.cta-band .eyebrow {
  color: var(--on-dark-muted);
}
.cta-band h2 {
  color: var(--on-dark);
  margin-block: 14px;
}
.cta-band p {
  font-size: 18px;
  max-width: 32em;
}
.cta-band .cta {
  margin-top: 26px;
}
.cta-band .mail {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--on-dark);
  user-select: all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
  background: transparent;
  border: 1px solid var(--on-dark-rule);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.copy-btn .icon {
  width: 15px;
  height: 15px;
}
.copy-btn:hover,
.copy-btn.is-done {
  color: var(--on-dark);
  border-color: var(--sky);
}
.copy-btn.is-done {
  background: rgba(134, 184, 236, 0.12);
}
.ascii-panel {
  position: relative;
  width: 100%;
  height: 340px;
  color: rgba(134, 184, 236, 0.24);
}
.ascii-panel b {
  color: rgba(190, 220, 248, 0.95);
}

/* footer */
.site-footer {
  padding-block: 32px 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer a {
  text-decoration: none;
  color: var(--body);
}
.site-footer a:hover {
  color: var(--ink);
}
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- fixed header: transparent over the hero, a blurred Midnight bar once the page scrolls ---------- */
.site-header.is-fixed {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-header.is-stuck {
  background: rgba(12, 35, 64, 0.8);
  border-bottom-color: var(--on-dark-rule);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-stuck {
    background: rgba(12, 35, 64, 0.96);
  }
}
.hero-band {
  padding-top: 73px;
}
.on-dark .nav a[aria-current="location"] {
  color: var(--on-dark);
}
/* the active section's link is underlined by one bar that slides between the links */
.nav-ind {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--ind-w, 0px);
  height: 2px;
  background: var(--sky);
  transform: translateX(var(--ind-x, 0px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.25s ease;
}
.nav-ind.is-on {
  opacity: 1;
}
main section[id],
.cta-band {
  scroll-margin-top: 84px;
}
@media (max-width: 760px) {
  .nav-ind {
    display: none;
  }
}

/* ---------- reveal on scroll (site.js adds .js and .is-in; without JS everything is simply shown) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}
.js [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease calc(var(--i, 0) * 80ms),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 80ms);
}
.js [data-reveal="stagger"].is-in > * {
  opacity: 1;
  transform: none;
}
/* the fit band draws from its left edge */
.js .scale .scale-band {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.25s;
}
.js .scale.is-in .scale-band {
  clip-path: inset(0 0 0 0);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .clients {
    grid-template-columns: 1fr;
  }
  .client + .client {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .swap {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .swap-lines {
    display: none;
  }
  .cost-total {
    justify-items: start;
  }
  .two-col,
  .how,
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ascii-panel {
    width: 100%;
    height: 260px;
  }
}
@media (max-width: 760px) {
  /* phones: the copy starts under the header and the animated mark takes the rest of the screen
     between the buttons and the client row (ascii.js places it there) */
  .hero {
    align-content: start;
    gap: 20px;
    padding-block: 28px 96px;
  }
}
@media (max-width: 560px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
  .client {
    padding: 22px;
  }
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  /* the client row in two short lines: the label, then both names */
  .trust {
    gap: 8px 22px;
    padding-block: 16px 20px;
  }
  .trust-label {
    flex-basis: 100%;
  }
  .trust-logo.text {
    font-size: 17px;
  }
  .stack {
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* gentler, not frozen: fades and colour changes stay, travel and growth go */
  html {
    scroll-behavior: auto;
  }
  .ph-btn,
  .ph-stamp,
  .swap-lines .flow {
    animation: none;
  }
  .js [data-reveal],
  .js [data-reveal="stagger"] > *,
  .js .swap-tasks h3,
  .js .swap-tasks li {
    transform: none;
  }
  .js .stack .seg {
    transform: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .js .stack.is-in .seg {
    opacity: 1;
  }
  .cost.has-hot .seg:not(.is-hot) {
    opacity: 0.25;
  }
  .js .scale .scale-band {
    clip-path: none;
  }
  .btn:hover .arr,
  .text-link:hover .arr {
    transform: none;
  }
  .btn:hover .arr.down,
  .text-link:hover .arr.down {
    transform: rotate(90deg);
  }
  .ph-btn:not(.quiet) {
    opacity: 0;
  }
  .ph-stamp {
    opacity: 1;
  }
}

/* ---------- legal pages ---------- */
.prose {
  max-width: 42em;
  display: grid;
  gap: 16px;
  padding-block: clamp(40px, 6vw, 80px);
}
.prose h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 20px;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}
.prose th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
}
.prose address {
  font-style: normal;
}
ul.plain {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero-band :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--sky);
}

/* ---------- content pages (pricing, contact, services): site/src/page.body.html ---------- */
.site-header .nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.page {
  padding-block: clamp(20px, 3vw, 32px) clamp(56px, 8vw, 96px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.page-head {
  display: grid;
  gap: 16px;
  max-width: 46em;
  padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}
.prose.page-body {
  max-width: 46em;
  padding-block: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--rule);
}
.page-body h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 28px;
}
.page-body > h2:first-child {
  margin-top: 0;
}
.page-body h3 {
  margin-top: 12px;
}
.page-body ul,
.page-body ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.page-body li::marker {
  color: var(--muted);
}
.page-body a {
  color: var(--ink);
}
.page-body .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.page-body td.num {
  font-family: var(--mono);
  white-space: nowrap;
}
.page-body th:last-child,
.page-body td:last-child {
  padding-right: 0;
}
.page-body .footnote {
  margin-top: 0;
}
/* the price grid: plans across, revenue bands down, figures in mono */
.price-grid th[scope="row"] {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  white-space: nowrap;
}
.price-grid td.num {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.price-grid td[colspan] {
  text-align: right;
  color: var(--muted);
}
.faq {
  border-top: 1px solid var(--rule);
}
.faq-item {
  display: grid;
  gap: 8px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.faq-item h3 {
  margin-top: 0;
}
.faq-a {
  display: grid;
  gap: 10px;
}
.note {
  display: grid;
  gap: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.page-body .guide-list {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.page-body .guide-list li {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.page-body .guide-list a {
  color: var(--ink);
  font-weight: 500;
}
.page-body .guide-list span {
  color: var(--muted);
}
.stand {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.btn.solid {
  background: var(--ink);
  color: var(--bg);
}
.btn.solid:hover {
  background: var(--accent-text);
  border-color: var(--accent-text);
}
.page-body .btn {
  text-decoration: none;
}
.page-body .btn.solid {
  color: var(--bg);
}
.contact-box {
  display: grid;
  gap: 12px;
}
.contact-mail {
  font-family: var(--mono);
  font-size: 14px;
}
.cta-inner.solo {
  grid-template-columns: minmax(0, 46em);
}
/* the enquiry form (contact page): two columns from tablet width, hairline fields, no radius */
.lead-form {
  --danger: #9a2a1e;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 8px;
}
.lead-form .field,
.lead-form .form-note,
.lead-form .form-status {
  display: grid;
  gap: 6px;
  margin: 0;
}
.lead-form .wide {
  grid-column: 1 / -1;
}
.lead-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.lead-form .opt {
  font-weight: 400;
  color: var(--muted);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}
.lead-form textarea {
  resize: vertical;
}
.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  border-color: var(--ink);
}
.lead-form [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 3px 0 0 var(--danger);
}
.lead-form .form-note {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.lead-form .form-status {
  min-height: 1.5em;
  font-size: 15px;
  color: var(--muted);
}
.lead-form .form-status.is-error {
  color: var(--danger);
}
.lead-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.lead-form button {
  cursor: pointer;
  font-family: inherit;
}
/* the field no person fills in: out of sight and out of the tab order, still in the form post */
.lead-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 620px) {
  .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* the cost calculator: inputs in two groups, three figures underneath, the difference in large mono */
.calc {
  display: grid;
  gap: 20px;
}
.calc fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.calc legend {
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.calc-row.three,
.calc-row:not(:has(.calc-role)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc-role {
  padding-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}
.calc label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.calc input,
.calc select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}
.calc select {
  font-family: var(--sans);
}
.calc-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.calc-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}
.calc-result > div {
  display: grid;
  gap: 6px;
  padding: 16px 16px 16px 0;
}
.calc-result dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-result dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.calc-diff dd {
  color: var(--accent-text);
}
@media (max-width: 620px) {
  .calc-row,
  .calc-row.three,
  .calc-row:not(:has(.calc-role)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-role {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .calc-result {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-result > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
}
/* footer link columns (services, company) and the list of service pages on the landing page */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(32px, 8vw, 96px);
  padding-block: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.footer-links nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-links nav:first-child {
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: clamp(24px, 4vw, 48px);
}
.footer-links .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.svc-links {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.svc-links ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.svc-links a {
  color: var(--ink);
  font-weight: 500;
}
.home-faq {
  max-width: 46em;
  margin-top: clamp(24px, 4vw, 40px);
}
.home-faq .faq-item p a {
  color: var(--ink);
  white-space: nowrap;
}
/* phones: the four columns of the price grid fit a 360 px screen without scrolling sideways */
@media (max-width: 520px) {
  .price-grid th,
  .price-grid td {
    padding-right: 6px;
  }
  .price-grid thead th {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .price-grid th[scope="row"] {
    font-size: 13.5px;
    white-space: normal;
  }
  .price-grid td.num {
    font-size: 15px;
  }
}
