/* ==========================================================================
   Avantalytics marketing site
   Tokens first; every block style reads from them so the customize phase
   can restyle the site by editing this top section.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0d2436;          /* shelf navy: headings, dark sections */
  --ink-2: #16384f;
  --text: #22323f;
  --muted: #56697a;
  --paper: #ffffff;
  --tint: #edf2f5;
  --line: #d4dee5;
  --action: #0d7f80;       /* deep teal: link text (passes AA on white) */
  --action-dark: #0a6465;
  --button: #6d4bd8;       /* purple: button fill, matching the fact tiles */
  --button-hover: #5b3fbf;
  --button-ink: #ffffff;   /* white on purple: 5.8:1 */
  --accent: #6d4bd8;       /* purple: stat and price tags */
  --accent-ink: #ffffff;   /* text on the purple tags */
  --accent-light: #4fd1c5; /* teal that reads on the navy sections */
  --good: #1e8a5f;
  --danger: #b42318;

  /* Client logos. One place to tune how the logo wall and the marquee sit
     back: logos stay grayscale at all times, including on hover, so a wall of
     competing brand colors never pulls focus from the copy around it. */
  --logo-grayscale: 1;
  --logo-opacity: .65;
  /* A quote's logo is attribution, not decoration, so it sits a little
     stronger than a logo in the wall while still staying desaturated. */
  --logo-quote-opacity: .85;

  /* Type */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem);

  /* Layout */
  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 0.2em; }
a:hover { color: var(--action-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: var(--narrow); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: var(--step--1); font-weight: 600; color: var(--action); margin-bottom: .75rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.25rem;
  font: 600 1rem/1.2 var(--font-body);
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--button); color: var(--button-ink); border-color: var(--button-hover); }
.btn-primary:hover { background: var(--button-hover); color: var(--button-ink); border-color: var(--button-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.btn-icon:hover { border-color: var(--ink); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 2rem; height: 2rem; }
.flip { transform: scaleX(-1); }

/* Section backgrounds ---------------------------------------------------- */

.block { padding-block: calc(var(--section) * var(--section-scale, 1)); }
/* Per-block vertical breathing room, set from the admin. */
.block.spacing-tight   { --section-scale: .35; }
.block.spacing-compact { --section-scale: .6; }
.block.spacing-roomy   { --section-scale: 1.4; }
/* Optional image or GIF behind a section */
/* No overflow:hidden here. The background layer below is absolutely
   positioned to inset:0, so it is already bounded by this box and nothing
   needs clipping - while clipping would cut off anything meant to escape the
   section, such as a stat's tooltip. */
.block.has-bg { position: relative; }
.block.has-bg > .container { position: relative; z-index: 1; }
.block-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-repeat: no-repeat;
  opacity: var(--bg-target, .16);
}
/* Held back while a carousel spins, then faded in once it settles. The
   is-holding class is added by site.js, never by the server, so a visitor
   without JavaScript is never left looking at a blank background. */
.block.is-holding .block-bg { opacity: 0; }
.block.is-holding.is-revealed .block-bg { opacity: var(--bg-target, .16); transition: opacity 1.1s ease-in; }
@media (prefers-reduced-motion: reduce) {
  .block.is-holding.is-revealed .block-bg { transition: none; }
}
.bg-dark .block-bg { filter: saturate(.85); }
.bg-light { background: var(--paper); }
.bg-tint { background: var(--tint); }
.bg-dark { background: var(--ink); color: #d6e2ea; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .lede, .bg-dark .muted { color: #a9bccb; }
.bg-dark a:not(.btn) { color: #9cc9ff; }
.bg-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.bg-dark .btn-secondary:hover { border-color: #fff; }

/* Consecutive sections with the same background share the gap between them,
   half each, so content stays vertically centred inside its own section
   instead of hugging the top. */
.bg-light + .bg-light, .bg-tint + .bg-tint { padding-top: calc(var(--section) / 2); }
.bg-light:has(+ .bg-light), .bg-tint:has(+ .bg-tint) { padding-bottom: calc(var(--section) / 2); }

.section-head { margin-bottom: 2.5rem; max-width: 760px; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; }
.section-title { margin-bottom: .5rem; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 1rem; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0 auto 0 1rem; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: .6rem .8rem; border: 0; background: none; cursor: pointer;
  font: 500 1rem var(--font-body); color: var(--ink); text-decoration: none; border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--tint); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--action); }
.has-menu > .nav-link::after {
  content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; vertical-align: .2em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.mega {
  display: none; position: absolute; top: calc(100% + 8px); left: -1rem;
  width: min(640px, 90vw); padding: 1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(13,36,54,.35);
}
.nav-link[aria-expanded="true"] + .mega { display: block; }
/* Opening the menu must not flatten the grid: this rule has to out-specify
   the display:block above, or a grouped menu stacks into one column. */
.nav-link[aria-expanded="true"] + .mega.mega-grouped { display: grid; }
.mega.mega-grouped { width: min(760px, 92vw); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mega-list a { display: block; padding: .7rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.mega-list a:hover { background: var(--tint); }
.mega-list strong { display: block; color: var(--ink); font-weight: 600; }
.mega-list span { display: block; font-size: var(--step--1); color: var(--muted); line-height: 1.4; }

/* A menu built from named columns, rather than one list flowing into two.
   Each column keeps its own heading above its own links. */
/* No display here: .mega above is display:none until the menu is opened, and
   setting it on this rule as well would leave the menu permanently on screen.
   Only the opened rule below says how it lays out. */
.mega-grouped { grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
/* The overview link sits above the columns rather than beside them, so it
   reads as the way in to the whole section. */
.mega-grouped .mega-col-lead { grid-column: 1 / -1; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mega-grouped .mega-list { grid-template-columns: 1fr; }
.mega-heading {
  font: 600 var(--step--1)/1.2 var(--font-display); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: 0 0 .4rem; padding: 0 .8rem;
}
/* A column with more than a handful of entries scrolls rather than running
   off the bottom of the screen. */
.mega-grouped .mega-col > .mega-list { max-height: min(56vh, 420px); overflow-y: auto; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: .5rem; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; margin: 0; }
  .nav-link { width: 100%; text-align: left; }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 .5rem; }
  .mega-list { grid-template-columns: 1fr; }
  /* On a phone the columns stack, and nothing scrolls inside the menu: the
     page itself is the scroll. */
  .nav-link[aria-expanded="true"] + .mega.mega-grouped,
  .mega-grouped { grid-template-columns: 1fr; gap: .75rem; }
  .mega-grouped .mega-col > .mega-list { max-height: none; overflow: visible; }
  .nav-actions { justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
}

/* Hero ------------------------------------------------------------------- */

.block-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
/* Optional per-block type sizing. --title-scale and --lede-scale are set on
   the section by Blocks::render() when the admin asks for a size other than
   the default; multiplying keeps the clamp(), so the text still responds to
   the viewport at whatever size is chosen. */
.block-hero h1 { font-size: calc(var(--step-4) * var(--title-scale, 1)); }
.block-hero .lede { font-size: calc(var(--step-1) * var(--lede-scale, 1)); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-centered { text-align: center; }
.hero-centered .lede { margin-inline: auto; }
.hero-centered .btn-row { justify-content: center; }
.hero-copy h1 { max-width: 16ch; }
/* The ch caps keep lines readable by default. When the block asks for a wider
   copy column, --hero-text-max releases them and the column governs instead. */
.hero-centered .hero-copy { max-width: var(--hero-copy-width, none); margin-inline: auto; }
.hero-centered h1 { max-width: var(--hero-text-max, 22ch); margin-inline: auto; }
.hero-centered .lede { max-width: var(--hero-text-max, 62ch); }
.hero-media { margin: 0; }

/* Media slot: single image, or a fading carousel ------------------------- */

.media-stack { display: grid; }
.media-stack > .media-slide { grid-area: 1 / 1; }
.has-carousel .media-slide { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
/* While the wheel spins, swap instantly instead of cross-fading */
.has-carousel.is-spinning .media-slide { transition: opacity .04s linear; }
.has-carousel .media-slide.is-active { opacity: 1; pointer-events: auto; }
.media-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.media-steps { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
/* A row of smaller images that the whole set cycles through */
.media-window { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.media-slots { gap: 1rem; }
.media-slots .app-screen { max-width: none; }
.media-slots img { max-height: 420px; width: auto; margin-inline: auto; }
.media-card .media-slots img { border-radius: var(--radius-sm); }
.media-window .app-window-controls { margin-top: 1rem; }
.media-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--muted); background: transparent; transition: background-color .2s, border-color .2s, transform .2s;
}
.media-dot:hover { border-color: var(--accent); }
.media-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.bg-dark .media-dot { border-color: rgba(255,255,255,.55); }
.bg-dark .media-dot.is-active { background: var(--accent-light); border-color: var(--accent-light); }
/* Copy that changes with the image beside it */
.slide-copy { display: grid; }
.slide-copy-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.slide-copy-item.is-active { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .has-carousel .media-slide,
  .slide-copy-item { transition: none; }
}
/* Plain by default, so transparent images sit on the page with no white plate */
.hero-media img { width: 100%; min-height: 200px; object-fit: contain; }
.hero-media.media-card img,
.split-media.media-card img,
.media-card .media-slots img {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(13, 36, 54, .45);
}
.media-plain img { background: none; border: 0; box-shadow: none; }
/* No frame, but lifted off whatever is behind it. drop-shadow() rather than
   box-shadow() on purpose: it follows the image's alpha channel, so a
   transparent PNG casts a shadow around the artwork instead of around an
   invisible rectangle. Two passes give a close contact shadow plus a softer
   cast, which reads as depth rather than a dark outline. */
.hero-media.media-shadow img,
.split-media.media-shadow img,
.media-shadow .media-slots img {
  background: none; border: 0; box-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(13, 36, 54, .20)) drop-shadow(0 16px 26px rgba(13, 36, 54, .26));
}
.bg-dark .media-shadow img {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .40)) drop-shadow(0 16px 26px rgba(0, 0, 0, .45));
}

/* Cap the image width and keep it centred in its column */
.media-capped .media-stack, .media-capped .media-slide, .media-capped img { max-width: var(--media-max); }
.media-capped img { margin-inline: auto; }
.media-capped .media-stack { margin-inline: auto; }
.media-capped.media-window .app-slots { justify-items: center; }

/* Cap the image height. A tall picture otherwise sets the height of the whole
   block, so the width goes to auto and the picture shrinks to fit rather than
   being letterboxed inside a full-width box or cropped. The hero's own
   min-height is cleared, since it would hold a floor above a short cap. */
.media-capped-h img {
  max-height: var(--media-max-h); width: auto; max-width: 100%;
  min-height: 0; object-fit: contain; display: block; margin-inline: auto;
}
.media-capped-h .media-stack { justify-items: center; }
/* Stretch-to-fill asks the image to take the row's whole height, which is the
   opposite of a cap, so where both are set the cap wins. */
.media-align-fill .split-media.media-capped-h:not(.media-window) img,
.media-align-fill .hero-media.media-capped-h:not(.media-window) img { height: auto; object-fit: contain; }

.hero-centered + .hero-media, .hero-centered .hero-media { max-width: 960px; margin: 3rem auto 0; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* Logo marquee ----------------------------------------------------------- */

.block-logo-marquee { padding-block: 2.5rem; }
.marquee-heading { font-size: var(--step-0); font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 1.5rem; letter-spacing: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(2.5rem, 5vw, 4.5rem); list-style: none; margin: 0; padding: 0; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; display: grid; place-items: center; height: 56px; }
.marquee-track img { max-height: 44px; max-width: 150px; width: auto; filter: grayscale(var(--logo-grayscale)); opacity: var(--logo-opacity); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats as shelf tags ---------------------------------------------------- */

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }

/* More stats than fit across: the rest scroll instead of squeezing in. With
   four or fewer the markup has no wrapper class and none of this applies. */
/* The arrows flank the track rather than sitting under one corner of it.
   Three grid columns reserve their width, so a button never covers a card:
   "auto" takes each arrow's own width and the track gets what is left. */
.stats-wrap.is-carousel {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 1rem;
}
/* Centred on the cards, not on the cards plus the track's scroll padding. */
.stats-wrap.is-carousel .stats-arrow { margin-block-end: .5rem; }
.stats-track {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1.25rem) / var(--per-view));
  grid-template-columns: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* The arrows either side are the affordance now, so the scrollbar would
     only draw a stray rule under the cards. Same treatment as .quotes-track. */
  scrollbar-width: none;
  /* Setting overflow-x makes overflow-y compute to auto, so this box clips
     vertically too. A tooltip is positioned against the window instead of
     the stat while it is inside here (see site.js), which is what keeps it
     from being cut off by an edge it has no way of knowing about. */
  padding-bottom: .5rem;
}
.stats-track::-webkit-scrollbar { display: none; }
.stats-track:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.stats-track > .shelf-tag { scroll-snap-align: start; }
.stats-arrow[disabled] { opacity: .35; cursor: default; }

/* A tip lifted out of the scrolling box: placed by script against the window,
   so none of the offsets above apply to it. */
.stat-tip.is-detached { position: fixed; right: auto; bottom: auto; transform: none; margin: 0; }
.stat-tip.is-detached::after { left: var(--arrow-x, 50%); transform: translateX(-50%); }

@media (max-width: 1000px) { .stats-track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
@media (max-width: 760px)  {
  .stats-track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
  .stats-wrap.is-carousel { gap: .5rem; }
  .stats-wrap.is-carousel .stats-arrow { width: 36px; height: 36px; }
}
@media (max-width: 520px)  {
  .stats-track { grid-auto-columns: 80%; }
  /* Two targets and their gaps would take a third of a phone's width, and a
     phone swipes. The track takes the full width and the arrows step aside.
     Compound selectors so these beat .btn-icon, which has the same weight. */
  .stats-wrap.is-carousel { grid-template-columns: minmax(0, 1fr); }
  .stats-wrap.is-carousel .stats-arrow { display: none; }
}
/* This block puts its heading straight above the tiles, with no lede between,
   so the .5rem on .section-title (which is heading-to-lede spacing) leaves the
   two crowded. 2rem matches what the testimonials block does for the same
   heading-above-cards case. */
.block-stats-band .section-title { margin-bottom: 2rem; }
.shelf-tag {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.35rem 1.4rem;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
}
.shelf-tag-value { font: 600 clamp(1.75rem, 1.5rem + .7vw, 2.125rem)/1.05 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.shelf-tag-label { font-size: 1rem; font-weight: 500; line-height: 1.45; }

/* A stat carrying hover text. The trigger is a button so it can be tapped and
   tabbed to, but it is stripped back to look exactly like the tag around it:
   the marker is the only sign that there is more to see. */
.shelf-tag.has-tip { padding: 0; }
.shelf-tag-trigger {
  font: inherit; color: inherit; text-align: left; cursor: help;
  background: none; border: 0; border-radius: inherit;
  padding: 1.35rem 1.4rem; margin: 0; width: 100%;
  display: flex; flex-direction: column; gap: .5rem;
}
.shelf-tag-trigger:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }
/* Sits on the baseline after the label rather than floating beside the tag,
   so it survives the label wrapping onto two lines. */
.tip-dot {
  display: inline-grid; place-items: center; width: 1.05em; height: 1.05em;
  margin-left: .4em; vertical-align: baseline; border-radius: 50%;
  /* A solid dot rather than a wash: white-on-translucent-white over the
     purple was too faint to read as something you can interact with. */
  background: rgba(255, 255, 255, .92); color: var(--accent);
  font-size: .72em; font-weight: 700; font-style: italic; line-height: 1;
}
.shelf-tag-trigger:hover .tip-dot,
.shelf-tag.is-open .tip-dot { background: #fff; }

.stat-tip {
  position: absolute; left: 50%; bottom: calc(100% + .6rem); transform: translateX(-50%);
  z-index: 5; width: max-content; max-width: min(20rem, 70vw);
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: var(--step--1); font-weight: 400; line-height: 1.45;
  box-shadow: 0 10px 24px -10px rgba(13, 36, 54, .55);
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.stat-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}
/* Shown three ways, because a tooltip only a mouse can reach is no use on a
   phone or to anyone navigating by keyboard. */
.shelf-tag.has-tip:hover .stat-tip,
.shelf-tag-trigger:focus-visible ~ .stat-tip,
.shelf-tag.is-open .stat-tip { opacity: 1; visibility: visible; }
/* A block with a background clips what escapes it, and a stat high in the
   row has nothing above it anyway, so the tip flips underneath instead. */
.shelf-tag.tip-below .stat-tip { bottom: auto; top: calc(100% + .6rem); }
.shelf-tag.tip-below .stat-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
/* Near the edge of the row the tip would hang off the page, so those lean in. */
.shelf-tag.tip-start .stat-tip { left: 0; transform: none; }
.shelf-tag.tip-start .stat-tip::after { left: 1.6rem; }
.shelf-tag.tip-end .stat-tip { left: auto; right: 0; transform: none; }
.shelf-tag.tip-end .stat-tip::after { left: auto; right: 1.6rem; transform: none; }
@media (prefers-reduced-motion: reduce) { .stat-tip { transition: none; } }

/* Platform diagram ------------------------------------------------------- */

.platform { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.platform-core {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  padding: 1.75rem; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--ink); color: #c9d8e3;
}
.platform-core strong { font: 700 var(--step-2) var(--font-display); color: #fff; }
.platform-core .icon { color: var(--accent-light); }
.platform-core:hover { background: var(--ink-2); color: #fff; }
.platform-ring { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
/* The child is a span, not an a, for a module with no page yet. */
.platform-ring > li > a,
.platform-ring > li > span {
  display: flex; align-items: center; gap: .75rem; height: 100%;
  padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--module); border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.platform-ring a:hover { border-color: var(--module); }
.platform-ring .icon { color: var(--module); }
@media (min-width: 900px) {
  .platform { grid-template-columns: 300px 1fr; align-items: stretch; }
  .platform-core { justify-content: center; }
  .platform-ring { grid-template-columns: repeat(2, 1fr); }
  /* Connector line from the hub into the modules */
  .platform { position: relative; }
  .platform::before { content: ""; position: absolute; left: 300px; top: 50%; width: 1.25rem; height: 2px; background: var(--ink); }
}
.bg-dark .platform-core { background: var(--ink-2); }
.bg-dark .platform-ring > li > a,
.bg-dark .platform-ring > li > span { background: var(--ink-2); color: #fff; border-color: rgba(255,255,255,.12); border-left-color: var(--module); }

/* Module grid ------------------------------------------------------------ */

.module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem 2rem; }
.module-card { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--module); }
.module-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--module) 12%, transparent); color: var(--module); margin-bottom: .75rem; }
.module-card h3 { margin-bottom: .35rem; }
.module-card h3 a { color: var(--ink); text-decoration: none; }
.module-card h3 a::after { content: ""; position: absolute; inset: 0; }
.module-card:hover h3 a { color: var(--action); }
.module-card p { color: var(--muted); margin: 0; }

/* Feature split ---------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.media-left .split-media { order: -1; }
.split.no-media { grid-template-columns: minmax(0, 760px); }
.split-copy p { max-width: 58ch; }
.split-media { margin: 0; }
.split-media img { width: 100%; }
/* Where the spare height goes when the copy column is the taller of the two.
   The grid centres both columns by default; this moves only the image. */
.media-align-top .split-media, .media-align-top .hero-media { align-self: start; }
.media-align-bottom .split-media, .media-align-bottom .hero-media { align-self: end; }

/* Stretch to fill: the figure takes the full row height and the image covers
   it, cropping rather than letterboxing. The figure becomes a flex column so
   that carousel dots keep their own space below the picture instead of being
   pushed out of the box. Excluded for a row of several images, where the
   slots are sized individually and stretching has nothing to act on. */
.media-align-fill .split-media:not(.media-window),
.media-align-fill .hero-media:not(.media-window) {
  align-self: stretch; display: flex; flex-direction: column; min-height: 0;
}
.media-align-fill .split-media:not(.media-window) .media-stack,
.media-align-fill .hero-media:not(.media-window) .media-stack { flex: 1; min-height: 0; }
.media-align-fill .split-media:not(.media-window) .media-slide,
.media-align-fill .hero-media:not(.media-window) .media-slide { min-height: 0; }
.media-align-fill .split-media:not(.media-window) img,
.media-align-fill .hero-media:not(.media-window) img { height: 100%; object-fit: cover; }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.media-left .split-media { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; }
.check-list li, .check-grid li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon, .check-grid .icon { color: var(--good); margin-top: .2em; }
.bg-dark .check-list .icon, .bg-dark .check-grid .icon { color: var(--accent-light); }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 2rem; }

/* Steps ------------------------------------------------------------------ */

/* The column count per width comes from the template, so the row holds the
   whole sequence instead of breaking after the fourth step and leaving the
   last one stranded. --steps-scale trims the type as the columns narrow. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps-xl, 4), minmax(0, 1fr)); gap: var(--steps-gap, 2rem); counter-reset: step; }
.steps[data-cols="5"] { --steps-scale: .92; --steps-gap: 1.5rem; }
.steps[data-cols="6"] { --steps-scale: .84; --steps-gap: 1.25rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); }
.bg-dark .steps li { border-color: var(--accent-light); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--step-3) * var(--steps-scale, 1)); line-height: 1; color: var(--action); margin-bottom: .75rem; }
.bg-dark .steps li::before { color: var(--accent-light); }
.steps h3 { font-size: calc(var(--step-1) * var(--steps-scale, 1)); }
.steps p { color: var(--muted); margin: 0; font-size: calc(var(--step-0) * var(--steps-scale, 1)); }
.steps li:last-child { grid-column: span var(--steps-span-xl, 1); }
/* Narrower widths hold fewer columns, and once the columns are wide again the
   type goes back to full size. */
@media (max-width: 1248px) {
  .steps { grid-template-columns: repeat(var(--steps-lg, 4), minmax(0, 1fr)); }
  .steps li:last-child { grid-column: span var(--steps-span-lg, 1); }
}
@media (max-width: 1040px) {
  .steps { --steps-scale: 1; --steps-gap: 2rem; grid-template-columns: repeat(var(--steps-md, 3), minmax(0, 1fr)); }
  .steps li:last-child { grid-column: span var(--steps-span-md, 1); }
}
@media (max-width: 700px) {
  .steps { grid-template-columns: repeat(var(--steps-sm, 2), minmax(0, 1fr)); }
  .steps li:last-child { grid-column: span var(--steps-span-sm, 1); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: span 1; }
}

/* Comparison table ------------------------------------------------------- */

.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 var(--step-0) var(--font-display); color: var(--ink); }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); }
.compare .us { background: color-mix(in srgb, var(--action) 6%, transparent); }
.compare thead .us { color: var(--action); }
.compare .yes { display: flex; justify-content: center; }
.compare .yes .icon { color: var(--good); width: 1.4em; height: 1.4em; flex: none; }
.compare .no { color: var(--muted); }
.compare .cross { display: flex; justify-content: center; }
.compare .cross .icon { color: var(--danger); width: 1.4em; height: 1.4em; flex: none; }
/* A mark alongside the detail, for a cell that says more than yes or no. The
   text may wrap in a narrow column, so the mark stays on the first line with
   the wrapped lines aligned under the text rather than under the mark. */
.compare .mark-text { align-items: baseline; justify-content: center; gap: .4em; text-align: left; }
.compare .mark-text .icon { align-self: flex-start; position: relative; top: .15em; }

/* Testimonials ----------------------------------------------------------- */

.block-testimonials .section-title { margin-bottom: 2rem; }
.quotes-track { list-style: none; margin: 0; padding: 0; }
.quote blockquote { margin: 0 0 1.25rem; }
.quote blockquote p { font: 500 var(--step-1)/1.45 var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.005em; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote footer { display: flex; align-items: center; gap: .85rem; font-size: var(--step--1); color: var(--muted); }
.quote footer strong { display: block; color: var(--ink); font-size: var(--step-0); }
.quote-photo { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; }
/* Logo sits to the left of the quote, with a hairline divider */
.quote.has-logo { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
.quote-brand { display: grid; place-items: center; height: 100%; padding-right: clamp(1.5rem, 3vw, 2.75rem); border-right: 1px solid var(--line); }
.bg-dark .quote-brand { border-right-color: rgba(255,255,255,.22); }
.quote-logo { max-width: 100%; max-height: 90px; width: auto; filter: grayscale(var(--logo-grayscale)); opacity: var(--logo-quote-opacity); }
.quote-body { min-width: 0; }

/* In the card grid the logo sits above the quote instead */
.quotes-grid .quote.has-logo { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.quotes-grid .quote-brand { justify-items: start; height: auto; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
.quotes-grid .quote-logo { max-height: 46px; max-width: 150px; }
.bg-dark .quotes-grid .quote-brand { border-bottom-color: rgba(255,255,255,.22); }

@media (max-width: 620px) {
  .quote.has-logo { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .quote-brand { justify-items: start; height: auto; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .quote-logo { max-height: 52px; }
}
.bg-dark .quote blockquote p, .bg-dark .quote footer strong { color: #fff; }

.quotes-grid .quotes-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.quotes-grid .quote { padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; }
.quotes-grid .quote blockquote p { font-size: var(--step-0); }

.quotes-single .quote blockquote p { font-size: var(--step-2); max-width: 36ch; }

.quotes-carousel .quotes-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 2rem; }
.quotes-carousel .quotes-track::-webkit-scrollbar { display: none; }
.quotes-carousel .quote { scroll-snap-align: start; max-width: 900px; }
.quotes-carousel .quote blockquote p { font-size: var(--step-2); }
.carousel-controls { display: flex; gap: .5rem; margin-top: 2rem; }

/* Logo wall and retailer directory -------------------------------------- */

/* A fixed column count, set per block, so complete rows stay complete. */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--logo-cols, 6), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { display: grid; place-items: center; min-height: 110px; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.logo-wall img { max-height: 54px; max-width: 100%; width: auto; filter: grayscale(var(--logo-grayscale)); opacity: var(--logo-opacity); }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.directory-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.directory-tools input[type="search"] { min-width: 260px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: .45rem .9rem; border-radius: 999px; font: 500 var(--step--1) var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.retailer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.retailer-grid li { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.retailer-grid img { height: 44px; width: auto; max-width: 140px; object-fit: contain; object-position: left; margin-bottom: .6rem; }
.retailer-grid strong { color: var(--ink); }
.retailer-grid span { font-size: var(--step--1); color: var(--muted); }
.retailer-grid li[hidden] { display: none; }

/* Pricing ---------------------------------------------------------------- */

.pricing-layout { display: grid; gap: 1.25rem; }
/* One service on the page: card and bundle panel share the width evenly */
.pricing-layout.is-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.pricing-layout.is-split .price-grid { grid-template-columns: minmax(0, 1fr); }
.pricing-layout.is-split .bundle-panel { margin-top: 0; }
@media (max-width: 900px) { .pricing-layout.is-split { grid-template-columns: 1fr; } }

/* Three across at most, so cards never get cramped */
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price-card { display: flex; flex-direction: column; padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-card.is-highlighted { border: 2px solid var(--ink); }
.price-card h3 { margin-bottom: .35rem; }
/* Two lines by default, so every card's price tag starts at the same height */
.price-summary-wrap { display: flex; align-items: flex-start; gap: .25rem; min-height: 3.1em; }
.price-summary {
  flex: 1; margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-summary.is-open { -webkit-line-clamp: unset; overflow: visible; }
.summary-toggle {
  flex: none; width: 24px; height: 24px; margin-top: -2px; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 50%;
}
.summary-toggle[hidden] { display: none; }
.summary-toggle:hover { color: var(--ink); border-color: var(--ink); }
.summary-toggle .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.summary-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Full width of its card, whatever the unit text says underneath */
.price-tag { display: flex; align-self: stretch; width: 100%; margin: .75rem 0; padding: 1rem 1.35rem; }
.price-tag .shelf-tag-value { font-size: 2.125rem; font-variant-numeric: proportional-nums; letter-spacing: -0.01em; }
/* Wording rather than a figure: smaller, so a phrase sits on the tile at a
   readable size instead of wrapping at display scale. */
.price-tag .shelf-tag-value.is-custom { font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
.price-secondary { font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.price-note { font-size: var(--step--1); color: var(--muted); }
.price-card .check-list { font-size: .95rem; flex: 1; align-content: start; }
.price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0 0; }
.bg-dark .price-card { color: var(--text); }

.bundle-panel { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--ink); color: #d6e2ea; }
.bundle-panel h3 { color: #fff; }
.bundle-panel > p { max-width: 60ch; }

.bundle-table { margin: 1rem 0 auto; }
.bundle-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 32px; gap: .5rem 1.25rem;
  align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.bundle-head { padding-top: 0; font-size: var(--step--1); color: #91a7b8; border-bottom-color: rgba(255,255,255,.28); }
.bundle-head span:not(:first-child) { text-align: right; }
.bundle-service { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; color: #fff; }
.bundle-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.bundle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.bundle-service a { color: #fff; text-decoration: none; }
.bundle-service a:hover { text-decoration: underline; }
.bundle-current-flag { font-size: var(--step--1); font-weight: 400; color: var(--accent-light); }
.bundle-unit { font-size: var(--step--1); color: #91a7b8; }
.bundle-cap { font-size: var(--step--1); color: var(--accent-light); }
.bundle-list-price, .bundle-net-price { text-align: right; white-space: nowrap; font-variant-numeric: proportional-nums; }
.bundle-list-price { color: #a9bccb; text-decoration: line-through; text-decoration-color: rgba(169,188,203,.6); }
.bundle-net-price { font-weight: 600; color: #fff; }
.bundle-remove {
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: #91a7b8;
}
.bundle-remove:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.bundle-remove .icon { width: 1.1rem; height: 1.1rem; }
.bundle-remove-spacer { width: 32px; }
.bundle-row.is-removed .bundle-service,
.bundle-row.is-removed .bundle-net-price { opacity: .45; }
.bundle-row.is-removed .bundle-net-price { text-transform: none; font-weight: 400; font-size: var(--step--1); }
.bundle-row.is-removed .bundle-name,
.bundle-row.is-removed .bundle-service a { text-decoration: line-through; }
.bundle-row.is-removed .bundle-remove { color: var(--accent-light); }
.bundle-row.is-current { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding-inline: .75rem; margin-inline: -.75rem; }
.bundle-row.is-current .bundle-current-flag { margin-left: .4rem; }
.bundle-totals { border-bottom: 0; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid rgba(255,255,255,.28); font-weight: 600; color: #fff; }
.bundle-totals .bundle-net-price { font: 600 var(--step-2) var(--font-display); color: var(--accent-light); }
.bundle-saving { margin: 1rem 0 0; color: #fff; }
.bundle-saving strong { color: var(--accent-light); }
.bundle-footnote { margin: .75rem 0 0; font-size: var(--step--1); color: #91a7b8; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; gap: .25rem; }
.stepper button {
  width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: var(--radius-sm); font: 600 1rem/1 var(--font-body);
}
.stepper button:hover { border-color: var(--accent-light); color: var(--accent-light); }
.stepper input {
  width: 48px; flex: 0 0 48px; min-height: 26px;
  -moz-appearance: textfield; appearance: textfield; padding: .15rem .35rem; text-align: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm);
  background: transparent; color: #fff; font: 600 .95rem var(--font-body);
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-label { font-size: var(--step--1); color: #91a7b8; margin-left: .1rem; }
.bundle-anchor-flag { font-size: var(--step--1); color: #91a7b8; }
.bundle-row.is-anchor .bundle-net-price { color: #fff; }

@media (max-width: 560px) {
  .bundle-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bundle-head span:nth-child(2) { display: none; }
  .bundle-list-price { display: none; }
}

.term-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline;
  margin-top: 1.25rem; padding: 1.1rem 1.75rem;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
}
.term-bar p { margin: 0; display: flex; align-items: baseline; gap: .75rem; }
.term-bar .term-saving { margin-left: auto; }
.term-bar .term-saving strong { font-weight: 700; }
.term-bar strong { font: 700 var(--step-1) var(--font-display); white-space: nowrap; }

.includes { margin-top: 3rem; }

/* ROI calculator --------------------------------------------------------- */

.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.calc-inputs { display: grid; gap: 1rem; margin-top: 1.5rem; }
.calc-inputs label { display: grid; gap: .35rem; font-weight: 600; color: var(--ink); }
.calc-results { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: start; }
.calc-results div { background: var(--paper); padding: 1.25rem; }
.calc-results dt { font-size: var(--step--1); color: var(--muted); }
.calc-results dd { margin: .25rem 0 0; font: 700 var(--step-2) var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-results .calc-roi { grid-column: 1 / -1; background: var(--accent); }
.calc-results .calc-roi dt, .calc-results .calc-roi dd { color: var(--accent-ink); }
.calc-footnote { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); margin: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font: 600 var(--step-0) var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.5rem; line-height: 1; color: var(--action); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* Cards, posts ----------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.5rem; }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.post-card h3 { font-size: var(--step-1); margin: .25rem 0 .5rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a { color: var(--action); }
.post-card p { color: var(--muted); margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: var(--muted); margin-bottom: .25rem; }
.post-meta span { color: var(--action); font-weight: 600; }

/* Case studies as full-width rows.
   The card grid they used to share puts each study in a ~300px column, which
   leaves a single study stranded in a narrow strip with its title wrapping.
   A list spans the content instead, one study per line, square image left. */
.story-list { list-style: none; margin: 0; padding: 0; }
.story-row {
  position: relative;
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  align-items: center; gap: 1.75rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.story-row:last-child { border-bottom: 1px solid var(--line); }
.story-thumb {
  width: 160px; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--tint);
}
/* Stands in for a missing image so the text still starts on the same line. */
.story-thumb.is-blank {
  display: grid; place-items: center;
  font-size: var(--step-3); font-weight: 700; line-height: 1;
  color: var(--accent); background: var(--tint);
}
.story-body { min-width: 0; }
.story-client {
  font-size: var(--step--1); font-weight: 600; color: var(--action);
  margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .04em;
}
.story-title { font-size: var(--step-1); margin: 0 0 .4rem; }
.story-title a { color: var(--ink); text-decoration: none; }
/* Stretched over the whole row, so the image and blurb are clickable too. */
.story-title a::after { content: ""; position: absolute; inset: 0; }
.story-row:hover .story-title a { color: var(--action); }
.story-blurb { color: var(--muted); margin: 0; max-width: 68ch; }
.story-more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem;
  font-size: var(--step--1); font-weight: 600; color: var(--action);
}
.story-more .icon { width: 1em; height: 1em; transition: transform .2s ease; }
.story-row:hover .story-more .icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .story-more .icon { transition: none; } }
@media (max-width: 560px) {
  /* A smaller square still beats stacking: the eye keeps one left edge. */
  .story-row { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .story-thumb { width: 96px; }
  .story-thumb.is-blank { font-size: var(--step-1); }
  .story-more { display: none; }
}
.page-title { margin-bottom: .5rem; }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.empty-state { text-align: center; padding: 3rem 1rem; }

.post-header h1 { font-size: var(--step-4); }
.byline { display: flex; align-items: center; gap: .75rem; font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; }
.byline img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
.byline strong { color: var(--ink); }
.post-hero { margin-top: -2rem; }
.post-hero img { border-radius: var(--radius-lg); width: 100%; }

.prose { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }

/* Text alignment, set per block in the builder. Kept generic so other blocks
   can offer the same choice without a second set of rules. */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 2rem 0; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 4px solid var(--accent); font-size: var(--step-1); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }

/* CTA band --------------------------------------------------------------- */

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: .35rem; max-width: 24ch; }
.cta p { margin: 0; max-width: 56ch; }
.cta .btn-row { margin: 0; }
.bg-light .cta, .bg-tint .cta { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }

/* Forms ------------------------------------------------------------------ */

.form-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; scroll-margin-top: 96px; }
.form-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; font-weight: 600; color: var(--ink); font-size: .95rem; border: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%; min-height: 46px; padding: .6rem .8rem;
  font: 400 1rem var(--font-body); color: var(--text);
  background: #fff; border: 1px solid #b7c6d1; border-radius: var(--radius-sm);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--action) 35%, transparent); border-color: var(--action); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.option { display: flex; gap: .5rem; align-items: center; font-weight: 400; color: var(--text); }
.option input { width: 18px; height: 18px; accent-color: var(--action); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.notice h3 { margin-bottom: .25rem; font-size: var(--step-1); }
.notice p { margin: 0; }
.notice-success { background: #e7f5ee; border: 1px solid #a8d8bf; }
.notice-error { background: #fdecea; border: 1px solid #f2b8b2; color: #7a1c14; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row, .option-grid { grid-template-columns: 1fr; } }

/* Messages --------------------------------------------------------------- */

.preview-bar { background: var(--accent); color: var(--accent-ink); text-align: center; padding: .5rem; font-weight: 600; font-size: var(--step--1); }
.page-message { text-align: center; }
.page-message .btn-row { justify-content: center; }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #a9bccb; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #d6e2ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2.5rem; }
.footer-brand { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; margin: 1rem 0; }
.app-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-col h2 { font: 600 1rem var(--font-body); color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.footer-col ul, .footer-legal ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--step--1); }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 1.5rem; }

/* Motion preferences ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; }
  *, *::before, *::after { transition: none !important; }
}

/* App showcase ---------------------------------------------------------- */

.app-gallery .section-head { margin-bottom: 2rem; }

/* Screens already include the phone bezel, so they only need lift */
.app-screen { margin: 0; }
.app-screen img { width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(13, 36, 54, .22)); }

/* Feature list beside one large phone */
.app-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.app-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.app-feature {
  display: block; width: 100%; padding: .9rem 1.1rem; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid transparent; border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: inherit; color: var(--text);
  transition: background-color .15s, border-color .15s;
}
.app-feature strong { display: block; font: 600 var(--step-0) var(--font-display); color: var(--ink); }
.app-feature span { display: block; margin-top: .15rem; font-size: var(--step--1); color: var(--muted); }
.app-feature:hover { background: var(--tint); }
.app-feature.is-active { background: var(--paper); border-color: var(--line); border-left-color: var(--accent); box-shadow: 0 6px 18px -12px rgba(13,36,54,.4); }
.app-feature.is-active strong { color: var(--accent); }
.bg-dark .app-feature { color: #c9d8e3; border-left-color: rgba(255,255,255,.2); }
.bg-dark .app-feature strong { color: #fff; }
.bg-dark .app-feature:hover { background: rgba(255,255,255,.06); }
.bg-dark .app-feature.is-active { background: var(--ink-2); border-color: rgba(255,255,255,.14); border-left-color: var(--accent-light); }
.bg-dark .app-feature.is-active strong { color: var(--accent-light); }

.app-screen-stack { display: grid; justify-items: center; }
.app-screen-stack .app-screen { grid-area: 1 / 1; max-width: 320px; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.app-screen-stack .app-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* Four at a time, cycling */
.app-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--slots, 4), minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.app-slots > li { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.app-slots .app-screen { max-width: 220px; }
.app-slots img { transition: opacity .3s ease; }
.is-spinning .app-slots img { transition: opacity .05s linear; }
.app-window-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.app-window-count { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.bg-dark .app-window-count { color: #a9bccb; }
@media (max-width: 900px) { .app-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .app-slots { grid-template-columns: minmax(0, 1fr); } .app-slots .app-screen { max-width: 200px; } }

/* Row of phones, and the swipeable strip */
.app-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; }
.layout-row .app-strip { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.layout-scroller .app-strip {
  grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
}
.layout-scroller .app-strip > li { scroll-snap-align: center; }
.app-strip > li { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.app-caption strong { display: block; font: 600 var(--step-0) var(--font-display); color: var(--ink); }
.app-caption span { display: block; margin-top: .15rem; font-size: var(--step--1); color: var(--muted); }
.bg-dark .app-caption strong { color: #fff; }

.app-cta { margin-top: 2.5rem; }
.app-gallery.layout-row .app-cta, .app-gallery.layout-scroller .app-cta { text-align: center; }

@media (max-width: 860px) {
  .app-spotlight { grid-template-columns: minmax(0, 1fr); }
  .app-screen-stack { order: -1; }
  .app-screen-stack .app-screen { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-screen-stack .app-screen { transition: none; }
}

/* Lightbox -------------------------------------------------------------- */
.app-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.app-zoom img { width: 100%; }

body.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem); background: rgba(10, 20, 28, .88);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; display: grid; gap: 1rem; justify-items: center; max-height: 90vh; }
.lightbox-figure img { max-height: 78vh; max-width: min(90vw, 520px); width: auto; border-radius: 10px; }
.lightbox-figure figcaption { display: grid; gap: .2rem; text-align: center; color: #e6eef4; max-width: 46ch; }
.lightbox-figure strong { font: 600 var(--step-1) var(--font-display); color: #fff; }
.lightbox-figure span { font-size: var(--step--1); color: #a9bccb; }
.lightbox-count { font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-nav {
  flex: none; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
}
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
@media (max-width: 640px) {
  .lightbox-nav { position: absolute; bottom: 1.5rem; }
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

/* Cookie consent --------------------------------------------------------- */

/* Anchored to the bottom rather than covering the page: this is a question,
   not a toll gate, and the site stays readable while it is open. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(13, 36, 54, .12);
  transform: translateY(100%); transition: transform .3s ease;
}
.consent.is-open { transform: translateY(0); }
.consent[hidden] { display: none; }
.consent-inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  padding: 1.1rem 0; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.consent-copy { flex: 1 1 24rem; min-width: 0; }
.consent-copy h2 { font-size: var(--step-0); margin: 0 0 .25rem; }
.consent-copy p { margin: 0; font-size: .95rem; color: var(--muted); max-width: 70ch; }
.consent-copy a { color: var(--action); }
.consent-actions { display: flex; gap: .6rem; flex: none; }
/* Both answers carry the same weight, so neither is the easy one. */
.btn-consent {
  min-width: 9rem; justify-content: center;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.btn-consent:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-consent:disabled { opacity: .6; cursor: default; }
@media (max-width: 620px) {
  .consent-inner { padding: 1rem 0; gap: .9rem; }
  .consent-actions { width: 100%; }
  .btn-consent { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* Case study ------------------------------------------------------------- */

/* The figures lead, because they are the reason to read the rest. */
.case-stats { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; }
.case-stats li { padding: 1.1rem 1.25rem; background: var(--tint); border-radius: var(--radius); }
.bg-dark .case-stats li { background: rgba(255, 255, 255, .08); }
.case-stats strong { display: block; font: 700 var(--step-3)/1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; }
.bg-dark .case-stats strong { color: var(--accent-light); }
.case-stats span { display: block; margin-top: .4rem; font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.bg-dark .case-stats span { color: #c6d4de; }

/* The story runs in one column: challenge, what was done, results. Side by
   side they would read as three unrelated notes rather than a sequence. */
.case-parts { display: grid; gap: 2rem; max-width: 46rem; }
.case-part h3 { font-size: var(--step-1); margin: 0 0 .5rem; }
.case-part .prose { font-size: var(--step-0); line-height: 1.65; }
.case-part .prose > *:first-child { margin-top: 0; }
.case-part .prose > *:last-child { margin-bottom: 0; }

/* Integrations ----------------------------------------------------------- */

.integrations { position: relative; }
/* A scrolling track of real cards. Native scrolling means a touch swipe and
   the keyboard both work without any script, and the arrows below only make
   that easier rather than being the sole way through. */
.integration-track {
  list-style: none; margin: 0; padding: .25rem 0 1rem; display: grid; gap: 1rem;
  grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1rem) / var(--per-view));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.integration-track:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
.integration { scroll-snap-align: start; }
.integration-card {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1.25rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.integration-card:hover { border-color: var(--action); box-shadow: 0 12px 26px -16px rgba(13, 36, 54, .45); transform: translateY(-2px); }
a.integration-card:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.bg-dark .integration-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #dce6ee; }
.bg-dark a.integration-card:hover { border-color: var(--accent-light); }

.integration-logo { display: grid; place-items: center; height: 46px; }
/* Logos keep their own colour here, unlike the customer wall: a visitor is
   looking for a platform they recognise, and grey makes that harder. */
.integration-logo img { max-height: 46px; max-width: 140px; width: auto; }
.integration-initial {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--tint); color: var(--muted); font: 700 1.25rem var(--font-display);
}
.bg-dark .integration-initial { background: rgba(255, 255, 255, .1); color: #c6d4de; }
.integration-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.bg-dark .integration-name { color: #fff; }
.integration-tagline { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.bg-dark .integration-tagline { color: #b9c9d5; }

.integration-controls { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem; }
.integration-controls button[disabled] { opacity: .35; cursor: default; }

/* Below the full width, more cards than this cannot be read, whatever the
   block asks for. */
@media (max-width: 1000px) { .integration-track { grid-auto-columns: calc((100% - 2rem) / 3); } }
@media (max-width: 760px)  { .integration-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 520px)  { .integration-track { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { .integration-card { transition: none; } }
