/* Local Maxima website. Brand tokens from LocalMaxima_data/assets/brand.json: navy #0B1F3A and light #F5F7FA swap
   between background and text, highlight #FF007F. The look is fixed and never follows the viewer's system theme:
   the page is light, and a section (or the header) with the class theme-dark is navy. */

:root {
  --ink: #0B1F3A;
  --paper: #F5F7FA;
  --rule: #D3DAE3;
  --muted: #56657A;
  --signal: #FF007F;
  --signal-text: #C60065;
  --surface: #E9EDF2;
  --surface-hover: #DDE3EA;
  --select-bg: #FFE0EF;
  --card: #FFFFFF;
  --btn-ink: #FFFFFF;
  --btn-bg: #C60065;
  --btn-bg-hover: #A80056;
  --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

.theme-dark {
  --ink: #F5F7FA;
  --paper: #0B1F3A;
  --rule: #263A57;
  --muted: #A3B0C2;
  --signal-text: #FF4DA3;
  --surface: #132A4A;
  --surface-hover: #1B3557;
  --select-bg: #3D1745;
  --card: #10264A;
  --btn-ink: #FFFFFF;
  --btn-bg: #D1006A;
  --btn-bg-hover: #E8007A;
  background: var(--paper);
  color: var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }

a { color: inherit; text-decoration: none; }
main a:not(.btn):not(.card-link) {
  color: var(--signal-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main a:not(.btn):not(.card-link):hover { text-decoration-thickness: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } body { font-size: 17px; } }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* Header: links have no boxes; a magenta line grows under them on hover, the open page is set in magenta. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: block; padding: 10px 0; position: relative; }
.brand img { width: 276px; height: auto; transition: transform .2s ease; }
@media (max-width: 600px) { .brand img { width: 237px; } }
.brand:hover img { transform: translateY(-2px); }
.site-nav { display: flex; align-items: center; gap: 28px; font-weight: 400; font-size: 16px; flex-wrap: wrap; }
.site-nav > a:not(.btn) { position: relative; padding: 6px 0; }
.site-nav > a:not(.btn)::after,
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav > a:not(.btn):hover::after, .footer-nav a:hover::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"] { color: var(--signal-text); }
.site-nav .lang { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; }

/* "Our solutions": opens on hover, on focus and (with the script) on click; room for more suites later */
.nav-group { position: relative; }
.nav-trigger {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; position: relative;
}
.nav-trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-trigger.is-current { color: var(--signal-text); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -18px; z-index: 20; min-width: 320px;
  display: none; padding: 8px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--rule); box-shadow: 0 18px 50px -24px rgba(11, 31, 58, .5);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group[data-open] .nav-menu { display: block; }
.nav-group:hover .nav-trigger::after, .nav-group[data-open] .nav-trigger::after { transform: scaleX(1); }
.nav-group:hover .caret, .nav-group[data-open] .caret { transform: translateY(1px) rotate(225deg); }
.nav-menu a { display: grid; gap: 2px; padding: 12px 14px 12px 30px; border-radius: 6px; position: relative; }
.nav-menu a::before { content: ""; position: absolute; left: 12px; top: 20px; width: 8px; height: 8px; background: var(--rule); transition: background .15s ease; }
.nav-menu a:hover { background: var(--surface); }
.nav-menu a:hover::before, .nav-menu a[aria-current="page"]::before { background: var(--signal); }
.nav-menu .item-name { font-weight: 500; }
.nav-menu a[aria-current="page"] .item-name { color: var(--signal-text); }
.nav-menu .item-note { font-size: 14px; color: var(--muted); font-weight: 300; }

/* Phones and narrow windows (up to 860px, where the full row no longer fits): only the logo and a menu button (the
   language link beside it); the rest of the header opens as a panel under it. No "Book a demo" in the header there:
   every page has its own demo buttons. Without the script there is no button, and the links stand in a row under
   the logo. */
.header-tools { display: none; }
.menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease, background .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
  .header-inner { gap: 4px 16px; padding-bottom: 10px; }
  .site-nav { gap: 6px 18px; width: 100%; font-size: 15px; }
  .site-nav .btn-small { display: none; }
  .nav-menu { left: 0; min-width: 0; width: calc(100vw - 32px); max-width: 360px; }

  html.js .header-inner { flex-wrap: nowrap; padding-bottom: 0; }
  html.js .header-tools { display: flex; align-items: center; gap: 14px; }
  html.js .header-tools .lang { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; padding: 10px 4px; }
  html.js .site-nav .lang-in { display: none; }
  html.js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0; width: auto;
    padding: 12px var(--gutter) 24px; font-size: 18px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
  }
  html.js .site-header[data-open] .site-nav { display: flex; }
  html.js .site-nav > a:not(.btn) { padding: 14px 0; border-top: 1px solid var(--rule); align-self: stretch; }
  html.js .site-nav > a:not(.btn)::after { display: none; }
  /* inside the panel "Our solutions" looks like the other links, its suites always open and indented under it */
  html.js .nav-group { padding-bottom: 10px; }
  html.js .nav-trigger { pointer-events: none; padding: 14px 0; color: inherit; }
  html.js .nav-trigger.is-current { color: inherit; }
  html.js .nav-trigger .caret { display: none; }
  html.js .nav-trigger::after { display: none; }
  html.js .nav-menu {
    display: block; position: static; width: auto; max-width: none; padding: 0; margin: -6px 0 0 20px;
    background: none; border: 0; box-shadow: none;
  }
  html.js .nav-menu::before { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 17px; line-height: 1;
  padding: 16px 24px; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-ink);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-hover); }
.btn-small { padding: 10px 16px; font-size: 15px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--signal); flex: none; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Heatmap behind the heroes and the closing call to action (drawn by assets/js/site.js), with the content on glass
   cards above it, as on the home page of Local Maxima Business */
.has-heat { position: relative; isolation: isolate; }
canvas.heat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }
.hero-card {
  position: relative; padding: 36px 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rule) 70%, transparent);
}
.product-hero .hero-card { max-width: 860px; }
@media (max-width: 600px) { .hero-card { padding: 24px 20px; } }

/* The company motto: the first thing on the home page, with the square of the logo's "i" */
.motto-display {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.motto-display::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--signal); }

/* Hero: fills the screen below the header (--header-h, measured by site.js), the card in the middle */
.hero {
  padding: 56px 0 72px; overflow: hidden;
  min-height: calc(100vh - var(--header-h, 73px)); min-height: calc(100svh - var(--header-h, 73px));
  display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 780px); }
.hero h1 { max-width: 18ch; }
/* a heading with its line breaks set by hand (<br class="wide-only">): on phones it wraps where it fits */
.hero h1.h1-lines { max-width: none; }
@media (max-width: 860px) { br.wide-only { display: none; } }
@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* A small arrow at the bottom of the hero: there is more below */
.hero-down {
  position: absolute; left: 50%; bottom: 24px; width: 14px; height: 14px; margin-left: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg;
}
html.motion .hero-down { animation: hero-down 2.2s ease-in-out infinite; }
/* only translate: opacity stays free for the intro and for site.js, which fades it as you scroll */
@keyframes hero-down { 0%, 100% { translate: 0 0; } 50% { translate: 5px 5px; } }

/* On wide screens, with motion on, the hero holds still for half a screen of scrolling while its card rises and
   fades over the moving bars; then the next section slides up over it like a sheet. The holder is two heroes plus
   the hold tall (--hero-h, measured by site.js): the hero sticks for one hero plus the hold, and the next section,
   pulled up by one hero, covers it in that last stretch. A hero taller than the screen first scrolls to its bottom
   and holds there, so nothing in it is ever skipped. */
@media (min-width: 861px) {
  html.motion .hero-hold { height: calc(2 * var(--hero-h, 100vh) + 50vh); }
  html.motion .hero-hold > .hero {
    position: sticky; top: min(var(--header-h, 73px), calc(100vh - var(--hero-h, 100vh)));
  }
  html.motion .hero-hold + * {
    margin-top: calc(-1 * var(--hero-h, 100vh)); box-shadow: 0 -24px 60px -12px rgba(0, 0, 0, .45);
  }
  /* everything after the hero paints above it, on an opaque background (a section's own background wins), so the
     hero never shows through a section shorter than itself */
  html.motion .hero-hold ~ * { position: relative; z-index: 1; }
  :where(html.motion .hero-hold ~ *) { background-color: var(--paper); }
}

/* The home page opens with a short picture on every load (site.js, timeline in INTRO): the floor is flat, the
   tile in the middle rises and turns magenta, its top pops off and flies to the dot of the "i" in the logo (an
   .intro-mark, moved by site.js), the other bars rise, the header comes in as the square lands (.head-in), then the
   card. site.js sets .intro on <html> before anything is drawn, never under reduced motion or at an anchor; the page
   cannot scroll while it plays (.intro-lock). */
html { scrollbar-gutter: stable; }
html.intro-lock { overflow: hidden; }
html.motion .hero[data-intro] > .wrap, html.motion .hero[data-intro] > .hero-down,
html.motion body:has(.hero[data-intro]) .header-inner {
  transition: opacity .9s ease, translate 1s cubic-bezier(.2, .7, .2, 1);
}
html.intro .hero[data-intro] > .wrap { opacity: 0; translate: 0 32px; }
html.intro .hero[data-intro] > .hero-down { opacity: 0; }
html.intro:not(.head-in) body:has(.hero[data-intro]) .header-inner { opacity: 0; }
.intro-mark { position: fixed; z-index: 10; background: #FF007F; pointer-events: none; }

.product-hero .product-logo { width: min(440px, 100%); margin-bottom: 36px; }
.product-hero h1 { max-width: 22ch; font-size: clamp(1.9rem, 3.8vw, 3rem); }

/* Three short points under the hero */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.point { border-top: 2px solid var(--ink); padding-top: 20px; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Two product cards */
.suites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.suite {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 36px; position: relative; transition: border-color .2s ease, translate .2s ease;
}
.suite:hover { border-color: var(--signal); translate: 0 -2px; }
.suite .suite-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 28px; }
.suite .for { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-text); margin-bottom: 8px; }
.suite h3 { font-size: 1.5rem; margin-bottom: 12px; }
.suite > p { color: var(--muted); }
.suite ul { list-style: none; padding: 0; margin: 8px 0 28px; }
.suite li { padding: 10px 0 10px 22px; border-top: 1px solid var(--rule); position: relative; }
.suite li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--signal); }
.card-link { margin-top: auto; font-weight: 500; color: var(--signal-text); display: inline-flex; gap: 8px; align-items: center; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card-link .arrow { transition: transform .15s ease; }
.suite:hover .card-link .arrow { transform: translateX(4px); }
@media (max-width: 860px) { .suites { grid-template-columns: 1fr; } .suite { padding: 28px 22px; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.principle .num { font-size: 15px; font-weight: 500; color: var(--signal-text); padding-top: 4px; font-variant-numeric: tabular-nums; }
.principle h3 { margin-bottom: 6px; }
.principle p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 32px; } }

/* Motion while scrolling (assets/js/site.js adds .motion only when the viewer has not asked for reduced motion;
   without it everything is simply shown). Reveal uses `translate`, parallax uses `transform`, so they add up. */
html.motion .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
}
html.motion .reveal.is-in { opacity: 1; translate: 0 0; }
html.motion .panel, html.motion .hero-card { will-change: transform; }

/* The quote of the home page lights up word by word as it moves up the screen (.scrub, words split by site.js) */
.section-head p.scrub { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 400; line-height: 1.5; }

/* The three points: the line draws from the left with the magenta square riding its tip, then the text comes in;
   one after the other (--i, set by site.js). */
.point { position: relative; }
.point::after {
  content: ""; position: absolute; top: -6px; right: 0; width: 10px; height: 10px; background: var(--signal);
}
html.motion .point { border-top-color: transparent; }
html.motion .point::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(.65, 0, .35, 1) calc(var(--i, 0) * 180ms);
}
html.motion .point::after {
  right: calc(100% - 10px); opacity: 0;
  transition: right 1s cubic-bezier(.65, 0, .35, 1) calc(var(--i, 0) * 180ms), opacity .2s ease calc(var(--i, 0) * 180ms);
}
html.motion .point > * {
  opacity: 0; translate: 0 16px;
  transition: opacity .7s ease calc(var(--i, 0) * 180ms + .55s), translate .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 180ms + .55s);
}
html.motion .point.is-in::before { transform: scaleX(1); }
html.motion .point.is-in::after { right: 0; opacity: 1; }
html.motion .point.is-in > * { opacity: 1; translate: 0 0; }
html.motion .point > p { transition-delay: calc(var(--i, 0) * 180ms + .7s); }

/* The suite cards come in from the sides together (site.js, scroll-linked), then their lists come in */
html.motion .suites { perspective: 1400px; }
/* the cards may move past the edge of the screen while they come in: never a sideways scroll (clip keeps sticky) */
html.motion main { overflow-x: clip; }
html.motion .suite { will-change: transform, opacity; }
html.motion .suite li { opacity: 0; translate: 18px 0; transition: opacity .5s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
html.motion .suite li::before { scale: 0; transition: scale .45s cubic-bezier(.3, 1.6, .5, 1); }
html.motion .suite .card-link { opacity: 0; transition: opacity .6s ease .55s; }
html.motion .suite.is-in li { opacity: 1; translate: 0 0; }
html.motion .suite.is-in li::before { scale: 1; }
html.motion .suite.is-in .card-link { opacity: 1; }
html.motion .suite li:nth-child(2), html.motion .suite li:nth-child(2)::before { transition-delay: .12s; }
html.motion .suite li:nth-child(3), html.motion .suite li:nth-child(3)::before { transition-delay: .24s; }
html.motion .suite li:nth-child(4), html.motion .suite li:nth-child(4)::before { transition-delay: .36s; }

/* Why work with us: the heading on the left, the promises on the right. Behind them, across the whole section, a
   faint grid of squares and a magenta square that keeps you company (site.js setUpCompanion): it follows the
   pointer one cell behind, or the scroll on a phone. The grid fades out toward the edges, so it has no frame. */
.has-companion { position: relative; isolation: isolate; overflow: hidden; }
canvas.companion { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.why .section-head { margin-bottom: 0; }
/* while the magenta square is away following the pointer, the eyebrow's own square (its home) is empty */
.has-companion .eyebrow::before { transition: opacity .15s ease; }
.has-companion.is-away .section-head .eyebrow::before { opacity: 0; }
.promises { border-top: 1px solid var(--rule); }
.promises details { border-bottom: 1px solid var(--rule); }
.promises summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.3;
}
.promises summary::-webkit-details-marker { display: none; }
.promises summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.promises summary:hover::after { border-color: var(--signal); color: var(--signal-text); }
.promises details[open] summary::after { content: "−"; background: var(--signal); border-color: var(--signal); color: #fff; }
.promises details p { color: var(--muted); margin: -6px 0 24px; padding-right: 56px; max-width: 60ch; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
  .promises details p { padding-right: 0; }
}

/* Steps: each line is as wide as its text. A square travels along it and paints the gray line in its own color
   behind it (navy; magenta at the last step), going a little further at every step (--goal) and reaching the end at
   the last. --t (0 to 1) is how far it has gone: site.js moves it with the scroll; without the script every square
   is at its goal. The square and its trail are one element (::after): a 2px line from the start of the line (under the number,
   which sits above it) with the square at its right end. */
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px;
}
.steps li {
  --goal: 0.25; --dot: var(--ink);
  position: relative; padding: 38px 0 0; counter-increment: step;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat 0 0 / 100% 2px;
}
.steps li:nth-child(2) { --goal: 0.5; }
.steps li:nth-child(3) { --goal: 0.75; }
.steps li:nth-child(4) { --goal: 1; --dot: var(--signal); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -12px; left: 0; z-index: 1;
  background: var(--paper); color: var(--signal-text); font-weight: 500; font-size: 15px; padding-right: 10px;
}
.section-alt .steps li::before { background: var(--surface); }
.steps li::after {
  content: ""; position: absolute; top: -4px; left: 0; height: 10px;
  width: calc(36px + var(--t, 1) * var(--goal) * (100% - 46px) + 10px);
  background:
    linear-gradient(var(--dot), var(--dot)) no-repeat right 0 / 10px 10px,
    linear-gradient(var(--dot), var(--dot)) no-repeat 0 4px / 100% 2px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
html.motion .steps li::before, html.motion .steps li::after { opacity: 0; transition: opacity .4s ease .2s; }
html.motion .steps li > * {
  opacity: 0; translate: 0 14px; transition: opacity .5s ease .35s, translate .6s cubic-bezier(.2, .7, .2, 1) .35s;
}
html.motion .steps li.is-in::before, html.motion .steps li.is-in::after { opacity: 1; }
html.motion .steps li.is-in > * { opacity: 1; translate: 0 0; }
/* On wide screens, with motion on, the steps section holds still in the middle of the screen while the page scrolls
   and the four steps appear one by one; once the last one is shown, the page moves on. The section keeps its usual
   padding and is as tall as its content (--pin-h, measured by site.js) plus the scroll it holds still for (140vh);
   the content is sticky inside it, so nothing is left empty above or below it. */
@media (min-width: 861px) {
  html.motion .steps-pin { height: calc(var(--pin-h, 60vh) + 140vh + 192px); }
  html.motion .steps-pin > .wrap {
    position: sticky; top: max(96px, calc(36px + 50vh - var(--pin-h, 60vh) / 2));
  }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps li { padding: 30px 0 0; }
}

/* Report and app grids */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.tile { background: var(--card); padding: 28px; }
.tile .q { color: var(--signal-text); font-weight: 400; margin-bottom: 10px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 16px; margin: 0; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tile .motto { font-style: italic; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.tile .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tile .tabs li { font-size: 14px; font-weight: 400; padding: 4px 10px; border-radius: 4px; background: var(--surface); }
@media (max-width: 860px) { .tiles, .tiles-2 { grid-template-columns: 1fr; } .tile { padding: 24px 20px; } }

/* "Worth a look today" sample panel */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; box-shadow: 0 18px 50px -30px rgba(11, 31, 58, .45); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 6px; }
.panel-head h3 { margin: 0; font-size: 1.1rem; }
.panel-head span { font-size: 13px; color: var(--muted); }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.alerts li:last-child { border-bottom: 0; }
.alerts li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--signal); }
.alerts b { font-weight: 500; font-variant-numeric: tabular-nums; }
.panel-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: stretch; gap: 16px; }
.flow-box { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; }
.flow-box.is-product { border-color: var(--signal); background: var(--select-bg); }
.flow-box h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-box p { color: var(--muted); font-size: 15px; margin: 0; }
.flow-box ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.flow-box li { padding: 3px 0; }
.flow-arrow { align-self: center; color: var(--signal-text); font-size: 24px; }
/* with motion, the boxes and arrows appear one after the other with the scroll, and go again scrolling up (site.js) */
html.motion .flow > * { opacity: 0; translate: 0 24px; transition: opacity .5s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
html.motion .flow > .flow-arrow { translate: -14px 0; }
html.motion .flow > .is-in { opacity: 1; translate: 0 0; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Checks list */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li b { color: var(--ink); display: block; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border: 2px solid var(--signal); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 400; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--signal-text);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }

/* Closing call to action */
.cta { background: #0B1F3A; color: #F5F7FA; padding: 96px 0; position: relative; overflow: hidden; }
.cta h2 { max-width: 20ch; }
.cta p { color: #A3B0C2; max-width: 600px; font-size: 1.1rem; }
.cta .btn-quiet { background: #132A4A; color: #F5F7FA; }
.cta .btn-quiet:hover { background: #1B3557; }
.cta-inner { position: relative; z-index: 1; }
.cta-pixels { position: absolute; right: -20px; bottom: -20px; width: 300px; opacity: .9; }
.cta-pixels rect { fill: #132A4A; }
.cta-pixels rect.on { fill: #FF007F; }
/* with the script the squares start scattered and fall into the staircase (site.js setUpCtaPixels) */
.cta-pixels.is-live { overflow: visible; }
.cta-pixels.is-live rect { transform-box: fill-box; transform-origin: center; }
@media (max-width: 760px) { .cta { padding: 64px 0; } .cta-pixels { width: 180px; opacity: .5; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: 16px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 290px; margin-bottom: 16px; }
.footer-brand .motto-line { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.footer-brand .motto-line::before { content: ""; width: 8px; height: 8px; background: var(--signal); }
.footer-brand p, .footer-label { color: var(--muted); }
.footer-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-nav a { position: relative; padding-bottom: 2px; }
.footer-nav a[aria-current="page"] { color: var(--signal-text); }
.footer-contact a { color: var(--signal-text); }
.footer-follow { margin-top: 24px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.social a { display: block; color: var(--signal); transition: color .2s, transform .2s; }
.social a:hover, .social a:focus-visible { color: var(--signal-text); transform: translateY(-2px); }
.social svg { display: block; width: 28px; height: 28px; }
.social svg .icon-bg { fill: currentColor; }
.social svg .icon-mark { fill: var(--paper); }
.social svg .icon-line { fill: none; stroke: var(--paper); stroke-width: 1.9; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
