/* Acupixel component styles — the shared layer both sites compose from.
 *
 * Every rule here is layout, colour and rhythm. There is no content in this file: no product name,
 * no capability, no sentence a visitor reads. Labels like "Menu" come from ui-strings.
 *
 * Structure follows the patterns the brand document says to preserve:
 *   a bold headline upper-left with the hero visual upper-right; a horizontal capability strip;
 *   a left feature column beside a right structured table; an industries band near the bottom;
 *   a compact contact footer.
 */

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

/* A genuine, confirmed rendering-engine artifact, not a rule mistake here: a direct child of a
 * gap-spaced flex/grid container can render with an extra ~8px margin-top that no declaration in
 * this file, nor the browser's own UA stylesheet, accounts for - reproduced by direct measurement on
 * .nav-list, .feature-grid, .card-grid and .industry-list, on every affected item except the first,
 * on both sites. The plain `margin: 0` reset above does not stop it; only !important does, which is
 * why this narrow list carries one instead of relying on the general reset. Extend this list if the
 * same symptom (every item but the first sitting a few pixels lower than its siblings in the same
 * row) turns up in a container not named here. */
.nav-list > li,
.feature-grid > .feature,
.card-grid > .card,
.industry-list > li,
.steps > li,
.choice-list > .choice,
.sample-tabs > .sample-tab,
.cta-row > .btn,
.doc-toc ul > li {
  margin: 0 !important;
}

html { -webkit-text-size-adjust: 100%; }

/* Keep a wide diagram, code sample or table contained by its own scrolling surface instead of
 * making the entire page drift sideways on a phone. `clip` does not interfere with the explicit
 * overflow areas below, while avoiding the rubber-band strip caused by shadows and translated
 * hover states at the viewport edge. */
html, body { max-width: 100%; overflow-x: clip; }

/* Every content image starts responsive. More specific component rules may control its visual
 * height or crop on larger screens, but no intrinsic bitmap or SVG width can escape its parent. */
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
figure, picture { max-width: 100%; min-width: 0; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  /* This site is full of endpoint paths, SKUs and header names. A long unbreakable token is the
   * usual cause of a page that scrolls sideways on a phone, so long words wrap by default and the
   * exceptions (code blocks) scroll inside their own box instead. */
  overflow-wrap: break-word;
}

.card p, .feature p, .prose, td, th { overflow-wrap: anywhere; }
/* Headings get the gentler break-word, not anywhere: "anywhere" also feeds into the box's
 * min-content size, which made grid tracks size narrow enough that ordinary words like
 * "Simultaneous" or "preprocessing" split mid-character even though a plain wrap to the next line
 * would have fit. break-word only splits a word that genuinely cannot fit on its own line. Covers
 * both h2 and h3: a card/feature item's own title renders as whichever level its block's heading
 * (or lack of one) puts it at - see itemHTag() in render-lib.mjs. */
.card h2, .card h3, .feature h2, .feature h3 { overflow-wrap: break-word; }
:not(pre) > code { overflow-wrap: anywhere; }

::selection { background: var(--selection); }

/* ---------------------------------------------------------------- skeleton */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--page-gutter); }
.container--narrow { max-width: var(--container-narrow); }
.prose { max-width: var(--measure); }
/* The margin:0 reset above removes the default spacing p/ul/ol/blockquote/pre used to get for free
 * between each other inside markdown-rendered prose. One direction only (top), so two adjacent
 * margins can never add up to a doubled gap the way a bottom-plus-top pair would. */
.prose > * + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li + li { margin-top: var(--space-1); }
main { flex: 1 0 auto; }

.section { padding-block: var(--section-gap); }
.section + .section { padding-block-start: 0; }
.section--panel { background: var(--panel); padding-block: var(--section-gap); }
.section--panel + .section { padding-block-start: var(--section-gap); }
/* The hero has its own padding-block (below), so a section right after it must not add a second
 * full gap on top of the hero's own bottom padding - found by inspection: every page opens with a
 * hero, so this doubled the gap under the very first heading on every single page, both sites. */
.hero + .section { padding-block-start: 0; }

/* Skip link: visible the moment it is focused, never before. */
.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--canvas);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  transition: top var(--duration) var(--easing);
}
.skip-link:focus { top: var(--space-4); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { color: var(--ink); font-weight: var(--weight-bold); line-height: var(--leading-heading); margin: 0 0 var(--space-4); }
h1 { font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
p, ul, ol { margin: 0 0 var(--space-4); }
li + li { margin-top: var(--space-2); }
small, .caption { font-size: var(--text-caption); color: var(--ink-muted); }

.eyebrow {
  display: block;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--red-strong);
  margin-bottom: var(--space-3);
}
.standfirst { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink-body); max-width: var(--measure); }

a { color: var(--red-strong); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- header */
.masthead { border-bottom: var(--border-hairline); background: var(--canvas); }
.masthead__inner { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-4); }
.masthead__logo img, .masthead__logo svg { display: block; height: 2.25rem; width: auto; }
.masthead__nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: var(--weight-medium); padding-block: var(--space-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-utility { display: flex; gap: var(--space-3); align-items: center; }

/* A header item can carry a submenu (Products, Developers, the open industries list). Found by
 * manual inspection of the real build: the template has always generated a nested <ul> for these,
 * but no rule here ever styled it, so it rendered as a permanently-expanded, bulleted block list
 * pushed under its parent link, on every page, on both sites. Desktop gets a conventional dropdown,
 * shown on hover or on keyboard focus inside it (no JS needed for either). The phone treatment lives
 * in the ~400px block below, consistent with this file's "a list you can see" mobile nav rule. */
.nav-list li { position: relative; }
.nav-list li > ul { list-style: none; margin: 0; padding: 0; }
.nav-list > li > ul {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; z-index: 20; min-width: 12rem;
  background: var(--canvas); border: var(--border-hairline); border-radius: var(--radius);
  padding: var(--space-2); box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}
.nav-list > li:hover > ul, .nav-list > li:focus-within > ul { display: flex; }
.nav-list > li > ul a { display: block; padding: var(--space-2) var(--space-3); border-bottom: none; white-space: nowrap; }
.nav-list > li > ul a:hover, .nav-list > li > ul a:focus-visible { background: var(--panel); }

/* A real mega menu for the larger Acupixel catalogue. Top-level items stay conventional links;
 * their panels expose grouped destinations in one scan instead of forcing a chain of flyouts. */
.nav-toggle { display: none; }
.nav-list > .nav-item--mega { position: static; }
.nav-list > .nav-item--mega > a { position: relative; }
/* Keep the trigger hovered while the pointer crosses the header padding into the mega panel. */
.nav-list > .nav-item--mega > a::before {
  content: ""; position: absolute; z-index: 29; top: 100%; left: -.9rem; right: -.9rem; height: 2.25rem;
}
.nav-list > .nav-item--has-children > a::after {
  content: ""; display: inline-block; width: .42rem; height: .42rem; margin-left: .55rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.14rem) rotate(45deg); transition: transform var(--duration) var(--easing);
}
.nav-list > .nav-item--has-children:hover > a::after,
.nav-list > .nav-item--has-children:focus-within > a::after { transform: translateY(.08rem) rotate(225deg); }
.nav-list > .nav-item--mega > .mega-menu {
  display: none; position: absolute; z-index: 30; top: calc(100% - .3rem); left: 50%;
  width: min(86rem, calc(100vw - 2rem)); max-height: min(72vh, 46rem); overflow-y: auto;
  transform: translateX(-50%); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem;
  padding: 2rem; border: 1px solid #35383b; border-radius: 0 0 1rem 1rem;
  background: #17191b; box-shadow: 0 1.5rem 3.5rem rgb(0 0 0 / 35%);
}
.nav-list > .nav-item--mega:hover > .mega-menu,
.nav-list > .nav-item--mega:focus-within > .mega-menu { display: grid; }
.mega-menu > li { margin: 0 !important; }
.mega-menu__heading {
  display: block; padding: 0 0 .8rem; margin-bottom: .55rem; border-bottom: 1px solid #35383b;
  color: #fff; font-size: .72rem; font-weight: var(--weight-bold); letter-spacing: .16em; text-transform: uppercase;
}
.mega-menu__links { display: grid; gap: .08rem; list-style: none; margin: 0; padding: 0; }
.mega-menu__links li { margin: 0 !important; }
.nav-list > .nav-item--mega .mega-menu__links a {
  display: block; padding: .48rem 0; color: #bfc4c8; font-size: .88rem; line-height: 1.32;
  text-decoration: none; white-space: normal;
}
.nav-list > .nav-item--mega .mega-menu__links a:hover,
.nav-list > .nav-item--mega .mega-menu__links a:focus-visible { color: #fff; }
.mega-menu--generated { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.mega-menu--generated > li { margin: 0 !important; }
.mega-menu--generated > li > a { color: #c9cdd0; white-space: normal; }

/* A ~4px first-item offset was chased here earlier and "fixed" with a position:relative;top:4px
 * compensation, before the real root cause was found: every direct child of a gap-spaced flex/grid
 * container (see the margin:0 !important list near the top of this file) could carry a phantom
 * margin-top on every item but the first. That fix already corrects .nav-list > li itself, which
 * turned out to be the actual cause here too - this position offset is removed because keeping both
 * double-corrected the first item 4px in the other direction. Re-measure before reintroducing either
 * fix if this symptom reappears. */

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: inherit; font-weight: var(--weight-bold); text-align: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background var(--duration) var(--easing), color var(--duration) var(--easing);
}
.btn--primary { background: var(--red-strong); color: var(--canvas); }
.btn--primary:hover { background: var(--ink); color: var(--canvas); }
.btn--secondary { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--canvas); }
/* The two masthead utility controls: an icon standing in for the usual text pill (a portrait for
 * sign-in, a handset for the contact CTA - see navUtilityButton() in render-lib.mjs). A fixed
 * circle at the WCAG 2.5.5 minimum touch size, same at every viewport width, so the mobile-only
 * text-shrinking rules the old text pill needed no longer apply here. */
.btn--icon-only { padding: 0; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; }
.btn__icon { width: 22px; height: 22px; }
.btn--link { padding-inline: 0; color: var(--red-strong); background: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--section-gap); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-7); align-items: center; }
.hero--platform .hero__inner { grid-template-columns: minmax(0, 1fr); }     /* acupixel leads with words */
.hero--hardware .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } /* idsnap leads with the device */
.hero--no-media .hero__inner { grid-template-columns: minmax(0, 1fr); }  /* no device photo to fill a second column */
.hero--no-media .standfirst { max-width: none; }  /* an index hero's mission statement, not an article: line up with the full-width grid below it, not the usual reading measure */
.hero__media img { width: 100%; height: auto; display: block; }
/* An acupixel ("platform") hero's own illustration (products.json is the first to use one) sits
 * below the standfirst paragraph instead of beside it: floating it into the text (shape-outside)
 * read as covering the words rather than sitting next to them, so it renders as its own centred
 * block underneath, with room above and below instead of being crammed against the text. */
.hero__media-row { display: flex; gap: var(--space-5); margin: var(--space-6) 0 var(--space-2); }
.hero__media--stacked { flex: 0 1 34.5rem; min-width: 0; margin: 0; }
/* The homepage established Acupixel's abstract-vector language: a pale neutral canvas, black UI
 * surfaces, restrained red connection lines and generous breathing room. The rest of the site now
 * uses those same SVG compositions as message-specific hero visuals. A lone composition is allowed
 * to read as a wide diagram; the Products index keeps its intentional two-up comparison. */
body[data-site="acupixel"] .hero__media--stacked:only-child { flex-basis: 74rem; max-width: 74rem; }
body[data-site="acupixel"] .hero__media--stacked img {
  border: 1px solid #d8dde0; border-radius: 1.1rem; background: #eef2f3;
  box-shadow: 0 1.5rem 3rem rgb(17 19 21 / 12%);
}

/* ---------------------------------------------------------------- capability strip / feature grid */
/* min() keeps the minimum track from ever exceeding the column: without it a 17rem card forces the
 * page sideways on a narrow phone, which is the most common way a "responsive" layout is not. */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: var(--block-gap); list-style: none; padding: 0; margin: 0; }
/* Gate 2 feedback section 3.3 / owner ruling on decorative red (design-system.md section 11): a
 * red top border on EVERY card and a red icon on EVERY card had no precedent in Acupixel's own
 * brand document and read as decoration, not signal. The brand document's own "Feature List"
 * component puts red on the HEADING TEXT of a genuinely notable item, sparingly — not as an
 * unconditional card border. Default is now a plain hairline; `.feature--signal` is the accent,
 * for a card content genuinely wants to mark, not applied automatically. */
.feature {
  background: var(--canvas); border-top: var(--border-hairline);
  padding: var(--space-5) var(--space-4) var(--space-4);
}
.feature--signal { border-top: var(--border-accent); }
.feature--signal h3 { color: var(--red-strong); }
.feature h2, .feature h3 { margin-bottom: var(--space-2); font-size: var(--text-h4); }
.feature p { margin-bottom: var(--space-2); }
.feature__qualifier { display: block; font-size: var(--text-caption); color: var(--ink-muted); }
/* A named icon (document, shield, ...) is real content structure, not decoration: given back only
 * where a block supplies one of the fixed keys in render-lib.mjs's ICONS map. Near-black by default,
 * matching the brand document's capability-strip icon rule (design-system.md section 11). Sits in
 * its own tinted tile rather than floating bare on the card, and grows and switches to the accent
 * colour together with the rest of the card on hover/focus (see .feature__card-link below). */
.feature__icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: var(--space-4);
  border-radius: var(--radius-lg); background: var(--panel-soft);
  transition: background var(--duration) var(--easing);
}
.feature__icon { display: block; width: 1.75rem; height: 1.75rem; color: var(--ink); transition: color var(--duration) var(--easing), transform var(--duration) var(--easing); }
/* A feature card can be a single click-through to its own full page (schemas/blocks.schema.json's
 * feature_grid item.link_ref). The whole card is the target, not just its title, so the hit area
 * matches what visually reads as one clickable tile. */
.feature--linked { padding: 0; }
.feature__card-link {
  display: block; height: 100%; padding: var(--space-5) var(--space-4) var(--space-4);
  color: inherit; text-decoration: none;
  transition: background var(--duration) var(--easing), box-shadow var(--duration) var(--easing), transform var(--duration) var(--easing);
}
.feature__card-link:hover, .feature__card-link:focus-visible {
  background: var(--panel-soft); box-shadow: var(--shadow-raised); transform: translateY(-2px);
}
.feature__card-link:hover h2, .feature__card-link:hover h3,
.feature__card-link:focus-visible h2, .feature__card-link:focus-visible h3 { color: var(--red-strong); }
.feature__card-link:hover .feature__icon-tile, .feature__card-link:focus-visible .feature__icon-tile { background: var(--callout); }
.feature__card-link:hover .feature__icon, .feature__card-link:focus-visible .feature__icon { color: var(--red-strong); transform: scale(1.08); }
.feature--linked .feature__qualifier { color: var(--ink-muted); }
/* ---------------------------------------------------------------- tables */
.table-wrap {
  max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
table { border-collapse: collapse; width: 100%; font-size: var(--text-small); }
caption { text-align: left; font-weight: var(--weight-bold); color: var(--ink); padding-bottom: var(--space-3); }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--panel); color: var(--ink); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { font-weight: var(--weight-bold); color: var(--ink); width: 40%; }
tr.is-emphasis td, tr.is-emphasis th { background: var(--callout); }
.table-note { font-size: var(--text-caption); color: var(--ink-muted); margin-top: var(--space-3); }
.col-emphasis { border-inline: 2px solid var(--red); }

/* ---------------------------------------------------------------- steps and decisions */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--block-gap); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-4); }
.steps > li::before {
  content: counter(step); grid-row: span 2;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--ink); color: var(--canvas);
  display: grid; place-items: center; font-weight: var(--weight-bold);
}
/* Neutral rule, not red: a decision guide repeats this once per question (six on the "which
 * scanner" page), and a red rule on every one of them is exactly "every section a red box" — the
 * brand document's own DON'T. No brand precedent describes a component like this, so it takes the
 * plain structural treatment rather than borrowing the callout's alert-coloured one. */
.decision { border-inline-start: 3px solid var(--rule-strong); padding-inline-start: var(--space-5); margin-bottom: var(--space-6); }
.decision__q { font-weight: var(--weight-bold); color: var(--ink); font-size: var(--text-h3); margin-bottom: var(--space-2); }
.decision__not { color: var(--ink-muted); font-size: var(--text-small); }

/* ---------------------------------------------------------------- cards, listings, industries band */
/* Found too flat and too quiet by direct feedback: a hairline box the same size as the body text
 * next to it reads as a placeholder, not a real listing. Same direction as the feature_grid cards
 * (design-system.md section 11's decorative-red discipline still applies - the lift and shadow are
 * neutral, not the brand-red accent, so nothing here becomes decoration for its own sake). */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: var(--block-gap); list-style: none; padding: 0; margin: 0; align-items: stretch; }
.card {
  background: var(--canvas); border: var(--border-hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--duration) var(--easing), transform var(--duration) var(--easing), border-color var(--duration) var(--easing);
}
.card h2, .card h3 { margin: 0 0 var(--space-2); font-size: var(--text-h3); }
/* Two lines reserved for a title on text and icon cards, so a row of one-line titles ("Car rental")
 * lands at the same height as a row with a two-line one ("Financial services and lending"). Not on
 * photo cards: every scanner title fits on one line, so the reserve would only add empty space. */
.card:not(.card--media) h2, .card:not(.card--media) h3 { min-height: 2.5em; }
.card p { margin-bottom: var(--space-2); }
/* Clamped to a fixed number of lines so every card lands at roughly the same height regardless of
 * how much copy that record happens to carry - without this, a scanner with a long duplex/passport/
 * chip output sentence towers over a shorter one, even within the same grid row. */
/* min-height reserves the same slot every card's clamped text could fill, so a short one (with
 * blank space left over) still ends up the same overall height as a fully-clamped one - clamping
 * the maximum without also flooring the minimum still leaves shorter cards visibly shorter.
 * Four lines, not three: three cut real sentences mid-word ("licences and passports, at...") on four
 * industry cards, and on acupixel.com those cards are not links yet, so the rest of the sentence
 * could never be read at all. Measured: no card on either site needs more than four. */
.card__body p:not(.card__io) { display: -webkit-box; line-clamp: 4; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 6.4em; }
.card__io { font-size: var(--text-caption); color: var(--ink-muted); display: -webkit-box; line-clamp: 4; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 6.4em; }
.card__io b { color: var(--ink); font-weight: var(--weight-bold); }
.card--held { display: none; }   /* a held record never renders; belt and braces alongside the build filter */
/* search.js filters a list by setting `hidden` on each card, but .card's own display: flex beats the
 * browser's built-in [hidden] { display: none } - so the filter hid nothing on screen, ever, until
 * this rule. */
.card[hidden] { display: none; }

/* ---------------------------------------------------------------- list filter */
/* Only on lists long enough to need one (API reference, glossary). It filters the list below it,
 * not the whole site, and its label says so. */
.search-field { position: relative; max-width: 40rem; margin: 0 0 var(--space-6); }
.search-field__icon {
  position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem; color: var(--ink-muted); pointer-events: none;
}
.search-field input {
  width: 100%; min-height: 3.25rem; padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 1.25rem + var(--space-3));
  font: inherit; font-size: var(--text-body); color: var(--ink);
  background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-raised);
  transition: border-color var(--duration) var(--easing), box-shadow var(--duration) var(--easing);
}
.search-field input::placeholder { color: var(--ink-muted); }
.search-field input:hover { border-color: var(--ink-muted); }
.search-field input:focus { border-color: var(--red-strong); box-shadow: var(--shadow-raised); }
.search-field:focus-within .search-field__icon { color: var(--red-strong); }
.search-no-results { color: var(--ink-muted); margin: 0 0 var(--space-5); }
/* An industry card's own icon (.card__icon-tile, card__icon) - same tile-plus-glyph language as
 * .feature__icon-tile, its own class rather than a shared one since a card can carry either an icon
 * or a photo (.card__media) but never both. */
.card__icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.75rem; height: 3.75rem; margin-bottom: var(--space-2);
  border-radius: var(--radius-lg); background: var(--panel-soft);
  transition: background var(--duration) var(--easing), transform var(--duration) var(--easing);
}
.card__icon { display: block; width: 2.25rem; height: 2.25rem; color: var(--ink); transition: color var(--duration) var(--easing); }
/* The whole card is the click target (schemas/blocks.schema.json's link_ref/url fields), not just
 * its title - the same reasoning as .feature__card-link. Acupixel asked for a bigger, more obvious
 * hover after the first pass still read as flat: the card now visibly "lights up" (the brand's own
 * pale-red callout tint, not a new colour), on top of the lift/shadow/border/heading shift, and an
 * icon card's own tile pops out - background flips to white against the tinted card so it reads as
 * lifting off the surface, plus a scale-and-tilt rather than a plain scale, for a livelier "pop" than
 * the more restrained feature-card hover uses. */
/* .card--icon (industry cards) gets the same hover whether or not it links anywhere yet, at
 * Acupixel's request: an industry whose own page is still a draft should still respond. The
 * pointer stays the plain arrow on those (no cursor rule here, and there is no <a> to set one), so a
 * card that goes nowhere does not also pretend to be a link. */
.card--linked:hover, .card--linked:focus-within, .card--icon:hover {
  box-shadow: var(--shadow-raised), 0 12px 28px rgba(17, 17, 17, 0.16); transform: translateY(-4px);
  border-color: var(--red-strong); background: var(--callout);
}
.card--linked:hover .card__icon-tile, .card--linked:focus-within .card__icon-tile, .card--icon:hover .card__icon-tile {
  background: var(--canvas); transform: scale(1.15) rotate(-6deg);
}
.card--linked:hover .card__icon, .card--linked:focus-within .card__icon, .card--icon:hover .card__icon { color: var(--red-strong); }
.card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card__link:hover h2, .card__link:hover h3, .card__link:focus-visible h2, .card__link:focus-visible h3,
.card--icon:hover h2, .card--icon:hover h3 { color: var(--red-strong); }
/* Padding lives here, not on .card__link/.card, so a product photo (.card__media, hardware listings
 * only) can bleed to the card's own rounded edges above the text instead of being squeezed inside
 * the same padding as the heading. */
.card__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); padding: var(--space-5); }
/* height: auto overrides the HTML height attribute's own presentational hint - without it, aspect-
 * ratio has no auto dimension left to compute, and every card ends up the raw pixel height of its
 * own source photo. object-fit: cover crops to fill that fixed box instead of letterboxing a
 * near-square photo next to a landscape one at different apparent sizes - every card's photo reads
 * as the same size at a glance, cropped rather than boxed. .card's own overflow: hidden clips the
 * image to the card's rounded corners, so no separate radius is needed here. */
.card__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform var(--duration) var(--easing); }
.card--linked:hover .card__media img, .card--linked:focus-within .card__media img { transform: scale(1.06); }

.industry-band { background: var(--panel); }
.industry-list { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.industry-list a { background: var(--canvas); border: var(--border-hairline); border-radius: var(--radius); padding: var(--space-2) var(--space-4); text-decoration: none; color: var(--ink); }
.industry-list a:hover { border-color: var(--red); }
.open-list-note { margin-top: var(--space-5); color: var(--ink-body); font-style: italic; }

/* ---------------------------------------------------------------- cross-site promotion */
/* The two sites promote each other. This is a composition, not a footer link: it is the moment a
 * reader on one site realises the other one has what they came for. */
.site-promo { background: var(--ink); color: var(--canvas); border-radius: var(--radius-lg); overflow: hidden; }
.site-promo__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; padding: var(--space-7); }
.site-promo h2 { color: var(--canvas); }
.site-promo p { color: var(--panel); margin-bottom: 0; max-width: 46ch; }
.site-promo .btn--primary { background: var(--canvas); color: var(--ink); }
/* --red-strong on hover, not --red: the label is small white text on the fill, and white on
 * Acupixel Red is 4.38:1. On --red-strong it is 6.96:1. */
.site-promo .btn--primary:hover { background: var(--red-strong); color: var(--canvas); }
/* NOT red. This is a 13px caption on the near-black panel, so it is small text needing 4.5:1, and
 * every red we have fails there: Acupixel Red is 4.31 and --red-strong is 2.71, because darkening a
 * colour makes it worse against a dark background, not better. --panel reaches 16.87. Red still
 * signals on this component through the call to action, which is where it belongs. */
.site-promo__domain { display: block; font-size: var(--text-caption); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--panel); margin-bottom: var(--space-2); }

/* ---------------------------------------------------------------- closing band */
/* Every page's closing call to action (cta_banner), and - where a page also promotes the other site
 * - that promotion beside it as a tile in the same band (render-lib.mjs closingHtml). Replaced a
 * .callout-styled box plus a separate near-black .site-promo slab stacked on top of it, which read as
 * two unrelated boxes in two unrelated styles. Same language as the cards: soft panel, rounded,
 * hairline border; red stays on the button, not on a warning-style rule down the side. */
.closing {
  background: var(--panel-soft); border: var(--border-hairline); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7); text-align: center;
}
.closing h2 { margin: 0 0 var(--space-3); }
.closing__main p { max-width: 46ch; margin: 0 auto; color: var(--ink-body); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.closing .cta-row { justify-content: center; margin-top: var(--space-6); }
.closing--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7);
  align-items: center; text-align: left; padding: var(--space-7);
}
.closing--split .closing__main p { margin: 0; }
.closing--split .cta-row { justify-content: flex-start; }
.closing__promo {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  background: var(--canvas); border: var(--border-hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised); padding: var(--space-5);
  transition: box-shadow var(--duration) var(--easing), transform var(--duration) var(--easing), border-color var(--duration) var(--easing);
}
.closing__promo:hover, .closing__promo:focus-within {
  transform: translateY(-3px); border-color: var(--red-strong);
  box-shadow: var(--shadow-raised), 0 12px 28px rgba(17, 17, 17, 0.14);
}
.closing__promo:hover .card__icon-tile, .closing__promo:focus-within .card__icon-tile { background: var(--callout); transform: scale(1.1) rotate(-6deg); }
.closing__promo:hover .card__icon, .closing__promo:focus-within .card__icon { color: var(--red-strong); }
.closing__promo .card__icon-tile { margin-bottom: var(--space-1); }
.closing__promo h2 { font-size: var(--text-h3); margin: 0; }
.closing__promo p { margin: 0; color: var(--ink-body); }
.closing__promo .btn { margin-top: var(--space-3); padding-inline: var(--space-5); max-width: 100%; }
.closing__eyebrow { font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--red-strong); }

/* ---------------------------------------------------------------- callout, pull-out, media */
/* Precedented: the brand document names this exact pattern — "Key Update Callout: Pale red
 * background, red outline/icon, one concise product/news update" — for a boxed alert-style
 * notice. Kept as designed; `.form__routed` below plays the same alert role. */
.callout { background: var(--callout); border-inline-start: var(--border-accent); padding: var(--space-5); border-radius: var(--radius); }
/* Class name is one word on purpose: the hyphenated form contains a token the commercial-terms
 * scan searches for, and a class name is a shipped string like any other.
 * No component quite like this is named in the brand document; treated as the same family as the
 * "Feature List" heading rule (red on the one thing deliberately singled out), used sparingly. No
 * content record uses this block yet — revisit if it starts appearing often enough to read as
 * decoration rather than one deliberate highlight. */
.pullquote { border-inline-start: var(--border-accent); padding-inline-start: var(--space-5); font-size: var(--text-h3); color: var(--ink); }
.pullquote cite { display: block; font-size: var(--text-caption); color: var(--ink-muted); font-style: normal; margin-top: var(--space-3); }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border: var(--border-hairline); border-radius: var(--radius); }
figcaption { font-size: var(--text-caption); color: var(--ink-muted); margin-top: var(--space-2); }

/* Acupixel's marketing pages use the same centred hierarchy introduced on the homepage: context
 * first, then the section title and concise summary, followed by the visual, cards or data. Dense
 * documentation, forms, articles and tables keep their task-oriented alignment. */
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .hero--platform .hero__inner > div {
  width: min(100%, 64rem); margin-inline: auto; text-align: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .hero--platform h1,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .hero--platform .standfirst {
  max-width: 52rem; margin-inline: auto;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .hero--platform .cta-row,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > .cta-row {
  justify-content: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .hero--platform .hero__media-row {
  justify-content: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > h2,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > .standfirst,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .section-intro {
  max-width: 54rem; margin-inline: auto; text-align: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > .standfirst,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .section-intro .standfirst {
  margin-bottom: clamp(2rem, 4vw, 3.5rem); color: var(--section-summary-color, var(--ink-body)); line-height: 1.65;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > h2 {
  margin-bottom: .9rem;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > .prose {
  max-width: 58rem; margin-inline: auto; text-align: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) main > .section > .container > h2 + :is(.feature-grid, .card-grid, .steps, .industry-list) {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .feature,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .card__body {
  text-align: center;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .feature__icon-tile,
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .card__icon-tile {
  margin-inline: auto;
}
body[data-site="acupixel"]:not([data-page-role="home"]):not([data-page-role="developer_doc"]):not([data-page-role="kb_article"]):not([data-page-role="form"]) .industry-list {
  justify-content: center; text-align: center;
}

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: var(--space-5); max-width: 44rem; }
.field { display: grid; gap: var(--space-2); }
.field > label { font-weight: var(--weight-bold); color: var(--ink); }
.field__hint { font-size: var(--text-caption); color: var(--ink-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--canvas);
  border: var(--border-control); border-radius: var(--radius);
  padding: var(--space-3);
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--red-strong); border-width: 2px; }
.field__error { color: var(--red-strong); font-weight: var(--weight-bold); font-size: var(--text-small); }
.choice-list { display: grid; gap: var(--space-2); border: 0; margin: 0; padding: 0; }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; }
.choice input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--red-strong); }
.form__consent { background: var(--panel-soft); padding: var(--space-4); border-radius: var(--radius); }
.form__routed { background: var(--callout); border-inline-start: var(--border-accent); padding: var(--space-4); border-radius: var(--radius); }
.form__status[hidden] { display: none; }
.form-coming-soon {
  width: min(100%, 44rem); margin-inline: auto; padding: clamp(3rem, 7vw, 5rem);
  border: 1px solid #dfe2e5; background: #fff; text-align: center;
  box-shadow: 0 1.5rem 3rem rgb(17 17 17 / 8%);
}
.form-coming-soon h2 { margin: 0; color: var(--ink); font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.04em; }
.form-coming-soon p { max-width: 34rem; margin: 1rem auto 0; color: var(--ink-body); font-size: 1.05rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- documentation */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--space-7); align-items: start; }
.doc-toc { position: sticky; top: var(--space-5); font-size: var(--text-small); border-inline-start: var(--border-hairline); padding-inline-start: var(--space-4); }
.doc-toc ul { list-style: none; padding: 0; }
.endpoint-signature { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; background: var(--panel); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-family: var(--font-mono); font-size: var(--text-small); }
.method { font-weight: var(--weight-bold); color: var(--canvas); background: var(--ink); border-radius: var(--radius-sm); padding: 0.1rem var(--space-2); }
pre { background: var(--ink); color: var(--panel); padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; font-family: var(--font-mono); font-size: var(--text-small); line-height: 1.5; }
code { font-family: var(--font-mono); font-size: 0.95em; }
:not(pre) > code { background: var(--panel); padding: 0.1em 0.35em; border-radius: var(--radius-sm); color: var(--ink); }
/* A request body's optional fields, disclosed on demand. Every field still ships in the DOM: this
 * is progressive disclosure, never a dropped row (gate 2 feedback section 4). */
.optional-fields { margin-top: var(--space-4); border: var(--border-hairline); border-radius: var(--radius); padding: var(--space-4); }
.optional-fields summary { cursor: pointer; font-weight: var(--weight-bold); color: var(--ink); }
.optional-fields[open] summary { margin-bottom: var(--space-4); }
.sample-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.sample-tab { font: inherit; font-size: var(--text-small); background: var(--panel); border: var(--border-hairline); border-radius: var(--radius); padding: var(--space-2) var(--space-3); cursor: pointer; }
.sample-tab[aria-selected="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* ---------------------------------------------------------------- article */
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-caption); color: var(--ink-muted); border-bottom: var(--border-hairline); padding-bottom: var(--space-4); margin-bottom: var(--space-6); }
/* A boxed aside inside running prose plays the callout's role (compare the "Key Update Callout"
 * precedent above), so it keeps the same red rule. */
.article blockquote { border-inline-start: var(--border-accent); margin: 0 0 var(--space-4); padding-inline-start: var(--space-5); color: var(--ink); }
.feedback { border-top: var(--border-hairline); margin-top: var(--space-7); padding-top: var(--space-5); display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }

/* Industry pages read as long-form, search-friendly guides rather than stacks of interchangeable
 * feature bands. The hero keeps the site's centered visual treatment; the article returns to a
 * comfortable editorial measure and left alignment for sustained reading. */
.industry-article { background: #f4f5f6 !important; }
.industry-article__body { max-width: 50rem; margin-inline: auto; }
.industry-article__intro { text-align: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.industry-article__intro h2 { max-width: 18ch; margin-inline: auto; }
.industry-article__intro .eyebrow,
.industry-article__products .eyebrow { color: var(--red-strong); font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.industry-article__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.industry-article__topics li { margin: 0; padding: .65rem 1rem; border: 1px solid #d9dde0; background: #fff; color: var(--ink); font-size: var(--text-small); font-weight: var(--weight-medium); }
.industry-article__section { margin: 0; padding: 0; }
.industry-article__section + .industry-article__section { margin-top: clamp(3.5rem, 7vw, 5.75rem); padding-top: clamp(3.5rem, 7vw, 5.75rem); border-top: 1px solid #d9dde0; }
.industry-article__section h2 { max-width: 21ch; margin: 0 0 1.5rem; color: var(--ink) !important; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; text-align: left; }
.industry-article__section p { margin: 0; color: #42484c; font-size: 1.08rem; line-height: 1.85; text-align: left; }
.industry-article__section p + p { margin-top: 1.35rem; }
.industry-article__visual { position: relative; left: 50%; width: calc(100% + clamp(0rem, 8vw, 10rem)); max-width: none; margin: clamp(2.25rem, 5vw, 3.75rem) 0 0; transform: translateX(-50%); }
.industry-article__visual picture,
.industry-article__visual img { display: block; width: 100%; height: auto; }
.industry-article__visual img { border: 1px solid #d5dbdf; border-radius: 1.1rem; filter: drop-shadow(0 1.25rem 2.25rem rgb(17 19 21 / 13%)); }
.industry-article__products { margin-top: clamp(4rem, 8vw, 7rem); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid #d9dde0; background: #fff; }
.industry-article__products h2 { margin: .55rem 0 .8rem; color: var(--ink) !important; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.industry-article__products > p:not(.eyebrow) { color: var(--ink-body); }
.industry-article__products ul { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid #d9dde0; }
.industry-article__products li { margin: 0; border-bottom: 1px solid #d9dde0; }
.industry-article__products a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--ink); font-weight: var(--weight-bold); text-decoration: none; }
.industry-article__products a:hover,
.industry-article__products a:focus-visible { color: var(--red-strong); }

@media (max-width: 40rem) {
  .industry-article__section h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .industry-article__section p { font-size: 1rem; line-height: 1.75; }
  .industry-article__visual { width: 100%; margin-top: 2rem; transform: translateX(-50%); }
  .industry-article__visual img { border-radius: .85rem; filter: drop-shadow(0 .8rem 1.4rem rgb(17 19 21 / 11%)); }
  .industry-article__topics { display: grid; grid-template-columns: 1fr; }
  .industry-article__topics li { text-align: center; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--panel); border-top: var(--border-hairline); margin-top: var(--section-gap); padding-block: var(--space-7); }
/* A brand block (logo, one-line statement, contact details with icons) beside the link columns,
 * replacing a row of five equal plain-text columns and a fine-print legal line. The brand statement
 * lives under the logo now, where it reads as a tagline, not as small print beside the legal name. */
.footer-top { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 2.6fr); gap: var(--space-7); }
.footer-brand__logo { display: inline-block; transition: transform var(--duration) var(--easing); }
.footer-brand__logo img { display: block; height: 2.25rem; width: auto; }
.footer-brand__logo:hover { transform: translateY(-2px); }
.footer-brand__statement { margin: var(--space-4) 0 var(--space-5); color: var(--ink-body); max-width: 30ch; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-contact li { margin: 0; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.footer-contact__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--canvas); border: var(--border-hairline); color: var(--ink);
  transition: background var(--duration) var(--easing), color var(--duration) var(--easing), transform var(--duration) var(--easing), border-color var(--duration) var(--easing);
}
.footer-contact__icon svg { width: 1.1rem; height: 1.1rem; }
.footer-contact a span:last-child { transition: color var(--duration) var(--easing); }
.footer-contact a:hover .footer-contact__icon, .footer-contact a:focus-visible .footer-contact__icon {
  background: var(--red-strong); border-color: var(--red-strong); color: var(--canvas); transform: scale(1.12) rotate(-8deg);
}
.footer-contact a:hover span:last-child, .footer-contact a:focus-visible span:last-child { color: var(--red-strong); }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: var(--space-5); }
.footer-cols h2 { position: relative; font-size: var(--text-caption); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--ink); padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
.footer-cols h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 1.5rem; height: 2px; background: var(--red); }
.footer-cols ul { list-style: none; padding: 0; }
/* A link slides right as a short red bar grows in ahead of it - motion that says "go" without
 * underlining every link in a block that is nothing but links. --duration drops to 0 under
 * prefers-reduced-motion (tokens.css), so this becomes an instant state change there. */
.footer-cols a { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; transition: color var(--duration) var(--easing), transform var(--duration) var(--easing); }
.footer-cols a::before { content: ""; display: inline-block; width: 0; height: 2px; margin-right: 0; background: var(--red); transition: width var(--duration) var(--easing), margin-right var(--duration) var(--easing); }
.footer-cols a:hover, .footer-cols a:focus-visible { color: var(--red-strong); }
.footer-cols a:hover::before, .footer-cols a:focus-visible::before { width: 0.75rem; margin-right: var(--space-2); }

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); border-top: var(--border-hairline); margin-top: var(--space-7); padding-top: var(--space-5); font-size: var(--text-caption); color: var(--ink-muted); }
.footer-legal .nav-list { gap: var(--space-4); }
.footer-legal .nav-list:empty { display: none; }

/* ---------------------------------------------------------------- ~400px */
@media (max-width: 52rem) {
  .hero__inner, .hero--hardware .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .hero--hardware .hero__media { order: -1; }   /* on a phone, the device comes first */
  .hero__media-row { flex-direction: column; margin: var(--space-4) 0; }
  .hero__media--stacked { flex: 0 0 auto; width: 100%; }
  /* The desktop lone-visual rule uses a 74rem flex basis to create a wide hero. Once the flex axis
   * becomes vertical on a phone that basis would become a 74rem HEIGHT, leaving a large empty band
   * below the correctly scaled image. Explicitly return it to content height on mobile. */
  body[data-site="acupixel"] .hero__media--stacked:only-child {
    flex: 0 0 auto; width: 100%; max-width: 100%; height: auto;
  }
  .hero__media, .hero__media-row, .hero__media--stacked,
  .card__media, figure, picture { min-width: 0; max-width: 100%; }
  .hero__media img, .hero__media--stacked img, figure img {
    display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain;
  }
  /* Product photography should show the complete device in a single-column phone card instead of
   * preserving the desktop grid's uniform crop. */
  .card__media img { width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; border-inline-start: 0; border-bottom: var(--border-hairline); padding: 0 0 var(--space-4); }
  .site-promo__inner { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); }
  .closing { padding: var(--space-6) var(--space-5); }
  .closing--split { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  tbody th { width: auto; }
  .table-wrap table { min-width: 38rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }

  /* The expanded catalogue now uses a single explicit mobile disclosure. Every destination is
   * visible inside it; the desktop hover/focus panels collapse into a readable vertical outline. */
  body[data-site="acupixel"] .masthead__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: "logo toggle" "nav nav";
    gap: var(--space-3) var(--space-4); align-items: center;
  }
  body[data-site="acupixel"] .masthead__logo { grid-area: logo; min-width: 0; }
  body[data-site="acupixel"] .masthead__logo img { height: 1.75rem; max-width: 100%; }
  body[data-site="acupixel"] .masthead__nav { grid-area: nav; display: none; min-width: 0; margin-inline: calc(var(--page-gutter) * -1); }
  body[data-site="acupixel"] .masthead__nav.is-open { display: block; }
  body[data-site="acupixel"] .nav-toggle {
    grid-area: toggle; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid #45494d; border-radius: 50%; background: #17191b; color: #fff; cursor: pointer;
  }
  .nav-toggle__icon { display: grid; gap: 4px; width: 18px; }
  .nav-toggle__icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--duration) var(--easing), opacity var(--duration) var(--easing); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body[data-site="acupixel"].nav-open { overflow: hidden; }
  body[data-site="acupixel"] .masthead__nav.is-open {
    max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; border-top: 1px solid #35383b; background: #0d0f10;
  }
  body[data-site="acupixel"] .masthead__nav.is-open .nav-list > li > a { color: #f7f7f7; }
  body[data-site="acupixel"] .masthead__nav .nav-list {
    display: grid; gap: 0; overflow: visible; padding: 0 var(--page-gutter) 1.5rem;
  }
  body[data-site="acupixel"] .masthead__nav .nav-list > li { display: block; border-bottom: 1px solid #2c2f32; }
  body[data-site="acupixel"] .masthead__nav .nav-list > li > a { display: block; padding: 1rem 0; font-size: 1rem; }
  body[data-site="acupixel"] .masthead__nav .nav-list > .nav-item--mega > .mega-menu,
  body[data-site="acupixel"] .masthead__nav .nav-list > .nav-item--mega:hover > .mega-menu,
  body[data-site="acupixel"] .masthead__nav .nav-list > .nav-item--mega:focus-within > .mega-menu {
    display: grid; position: static; width: 100%; max-height: none; overflow: visible; transform: none;
    grid-template-columns: 1fr; gap: 1.35rem; padding: 0 0 1.25rem; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  }
  body[data-site="acupixel"] .mega-menu__heading { margin: 0 0 .25rem; padding-bottom: .55rem; }
  body[data-site="acupixel"] .mega-menu__links { gap: 0; }
  body[data-site="acupixel"] .mega-menu__links a { min-height: 44px; display: flex; align-items: center; padding: .65rem 0; }
  body[data-site="acupixel"] .mega-menu--generated { grid-template-columns: 1fr 1fr !important; gap: .15rem 1rem !important; }

  /* IDSnap keeps its compact, horizontally scrollable navigation. Its shared renderer and markup
   * remain unchanged by Acupixel's larger catalogue menu. */
  body[data-site="idsnap"] .masthead__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: "logo utility" "nav nav"; gap: var(--space-3) var(--space-4); align-items: center;
  }
  body[data-site="idsnap"] .masthead__logo { grid-area: logo; min-width: 0; }
  body[data-site="idsnap"] .masthead__logo img { height: 1.75rem; max-width: 100%; }
  body[data-site="idsnap"] .masthead__nav { grid-area: nav; min-width: 0; margin-inline: calc(var(--page-gutter) * -1); }
  body[data-site="idsnap"] .nav-utility { grid-area: utility; justify-self: end; min-width: 0; }
  body[data-site="idsnap"] .nav-list {
    flex-wrap: nowrap; overflow-x: auto; gap: var(--space-4); min-width: 0;
    padding-inline: var(--page-gutter); padding-bottom: var(--space-2);
    scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  body[data-site="idsnap"] .nav-list > li { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-4); }
  body[data-site="idsnap"] .nav-list > li > ul {
    display: flex; position: static; flex-direction: row; flex-wrap: nowrap;
    gap: var(--space-4); min-width: 0; padding: 0; border: 0; box-shadow: none; background: none;
  }
}

@media (max-width: 30rem) {
  /* On the narrowest phones the primary CTA remains available inside the menu. Removing its
   * duplicate header button leaves a calm two-column bar and prevents the logo from being squeezed. */
  body[data-site="acupixel"] .masthead__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: "logo toggle" "nav nav";
  }
  body[data-site="acupixel"] .masthead__utility-bar .nav-utility { display: flex; gap: 1rem; }
  body[data-site="acupixel"] .masthead__utility-link { font-size: .75rem; }
  body[data-site="acupixel"] .mega-menu--generated { grid-template-columns: 1fr !important; }
}

@media print {
  .masthead__nav, .cta-row, .feedback { display: none; }
}

/* ---------------------------------------------------------------- Acupixel homepage redesign
 * A dark, product-led opening moves into alternating near-black and soft-gray bands. The styles are
 * deliberately scoped to Acupixel's home page so documentation and IDSnap retain their established
 * reading layouts. */
body[data-site="acupixel"] { --home-dark: #0d0f10; --home-gray: #f4f5f6; --home-muted: #aeb3b8; }
body[data-site="acupixel"] .masthead {
  position: relative; z-index: 30; background: #fff; border-bottom-color: #dfe2e5;
}
body[data-site="acupixel"] .masthead__utility-bar { background: #090a0b; border-bottom: 1px solid #282b2e; }
body[data-site="acupixel"] .masthead__utility-inner { display: flex; align-items: center; justify-content: flex-end; min-height: 2.35rem; }
body[data-site="acupixel"] .masthead__utility-bar .nav-utility { gap: 1.35rem; }
body[data-site="acupixel"] .masthead__utility-link {
  position: relative; padding: .5rem 0; color: #dadddf; font-size: .8rem; font-weight: var(--weight-medium); line-height: 1; text-decoration: none;
}
body[data-site="acupixel"] .masthead__utility-link::after {
  content: ""; position: absolute; right: 0; bottom: .28rem; left: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform var(--duration) var(--easing);
}
body[data-site="acupixel"] .masthead__utility-link:hover,
body[data-site="acupixel"] .masthead__utility-link:focus-visible { color: #fff; }
body[data-site="acupixel"] .masthead__utility-link:hover::after,
body[data-site="acupixel"] .masthead__utility-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
body[data-site="acupixel"] .masthead__main { background: #fff; }
body[data-site="acupixel"] .masthead__inner { min-height: 5rem; gap: clamp(1.25rem, 3vw, 3rem); }
body[data-site="acupixel"] .masthead__logo img { height: clamp(1.7rem, 2.5vw, 2.25rem); }
body[data-site="acupixel"] .masthead .nav-list { gap: clamp(1rem, 2vw, 2rem); }
body[data-site="acupixel"] .masthead .nav-list > li > a { color: #17191b; font-size: .925rem; }
body[data-site="acupixel"] .masthead .nav-list > li > ul { background: #17191b; border-color: #35383b; }
body[data-site="acupixel"] .masthead .nav-list > li > ul a { color: #f7f7f7; }
body[data-site="acupixel"] .masthead .nav-list > li > ul a:hover,
body[data-site="acupixel"] .masthead .nav-list > li > ul a:focus-visible { background: #24272a; }
body[data-site="acupixel"] .masthead__text-cta { border-radius: var(--radius); padding: .7rem 1.15rem; font-size: .9rem; }
body[data-site="acupixel"] .masthead__text-cta.btn--primary { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
body[data-site="acupixel"] .masthead__text-cta.btn--secondary { background: transparent; border-color: transparent; color: #fff; }
body[data-site="acupixel"] .masthead__text-cta:hover { background: #fff; border-color: #fff; color: #111; }

/* ---------------------------------------------------------------- Acupixel interior page system
 * The homepage established the site's visual grammar. Narrative Acupixel pages now use the same
 * dark opening, soft-gray / near-black section rhythm, centered hierarchy and wide SVG treatment.
 * Documentation articles and forms remain task-oriented reading surfaces. */
body.acupixel-story main { overflow: hidden; }
body.acupixel-story main > section {
  padding-block: clamp(4.5rem, 7vw, 7rem) !important;
}
body.acupixel-story main > section:nth-of-type(odd) {
  --section-summary-color: #c1c6ca;
  position: relative; background: var(--home-dark); color: #c8ccd0;
}
body.acupixel-story main > section:nth-of-type(even) {
  background: var(--home-gray); color: var(--ink-body);
}
body.acupixel-story main > .hero {
  isolation: isolate; border-bottom: 1px solid #323538;
}
body.acupixel-story main > .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 75% 18%, rgb(237 28 36 / 20%), transparent 32%),
              radial-gradient(circle at 18% 85%, rgb(237 28 36 / 10%), transparent 26%);
}
body.acupixel-story .hero--platform .hero__inner > div {
  width: min(100%, 74rem); margin-inline: auto; text-align: center;
}
body.acupixel-story .hero--platform h1 {
  max-width: 20ch; color: #fff; font-size: clamp(3rem, 5vw, 4.75rem); line-height: 1.03; letter-spacing: -.045em;
}
body.acupixel-story .hero--platform .standfirst {
  max-width: 56rem; color: #c7cbce; font-size: clamp(1.0625rem, 1rem + .45vw, 1.3rem); line-height: 1.65;
}
body.acupixel-story .hero--platform .eyebrow { color: #ff6b70; }
body.acupixel-story .hero--platform .cta-row { justify-content: center; }
body.acupixel-story .hero--platform .btn { border-radius: var(--radius); }
body.acupixel-story .hero--platform .btn--primary { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
body.acupixel-story .hero--platform .btn--secondary { background: transparent; border-color: #85898d; color: #fff; }
body.acupixel-story .hero--platform .btn:hover { background: #fff; border-color: #fff; color: #111; }
body.acupixel-story .hero__media-row {
  width: min(100%, 74rem); margin: clamp(2.5rem, 5vw, 4rem) auto 0; justify-content: center;
}
body.acupixel-story .hero__media--stacked img {
  border-color: #35383b; filter: drop-shadow(0 2rem 3rem rgb(0 0 0 / 30%));
}
body.acupixel-story main > section:nth-of-type(odd) :is(h1, h2, h3, h4) { color: #fff; }
body.acupixel-story main > section:nth-of-type(odd) :is(.standfirst, .prose, .table-note, .open-list-note) { color: #c1c6ca; }
body.acupixel-story main > .section > .container > h2 {
  max-width: 24ch; font-size: clamp(2.25rem, 3.8vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em;
}
body.acupixel-story main > .section > .container > .standfirst,
body.acupixel-story .section-intro .standfirst {
  max-width: 58rem; font-size: 1.04rem; line-height: 1.7;
}
body.acupixel-story main > .section > .container > .prose { font-size: 1.04rem; line-height: 1.75; }
body.acupixel-story .feature-grid,
body.acupixel-story .card-grid { gap: 1rem; }
body.acupixel-story .feature {
  min-height: 100%; padding: 1.6rem; border: 1px solid #dfe2e5; border-radius: 0; background: #fff;
}
body.acupixel-story .feature--linked { padding: 0; }
body.acupixel-story .feature__card-link { padding: 1.6rem; }
body.acupixel-story .card { border-radius: 0; background: #fff; }
body.acupixel-story main > section:nth-of-type(odd) :is(.feature, .card) {
  background: #17191b; border-color: #35383b; box-shadow: none;
}
body.acupixel-story main > section:nth-of-type(odd) :is(.feature, .card) p { color: #b9bec2; }
body.acupixel-story main > section:nth-of-type(odd) :is(.feature__icon-tile, .card__icon-tile) { background: #24282b; }
body.acupixel-story main > section:nth-of-type(odd) :is(.feature__icon, .card__icon) { color: #fff; }
body.acupixel-story main > section:nth-of-type(odd) .feature__card-link:hover,
body.acupixel-story main > section:nth-of-type(odd) .feature__card-link:focus-visible,
body.acupixel-story main > section:nth-of-type(odd) :is(.card--linked:hover, .card--linked:focus-within, .card--icon:hover) {
  background: #211719;
}
body.acupixel-story .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
body.acupixel-story .steps > li {
  grid-template-columns: 2.5rem minmax(0, 1fr); align-content: start; padding: 1.5rem;
  border: 1px solid #dfe2e5; background: #fff;
}
body.acupixel-story main > section:nth-of-type(odd) .steps > li { background: #17191b; border-color: #35383b; }
body.acupixel-story main > section:nth-of-type(odd) .steps > li::before { background: var(--red-strong); color: #fff; }
body.acupixel-story main > section:nth-of-type(odd) .steps p { color: #b9bec2; }
body.acupixel-story .table-wrap {
  max-width: 72rem; margin-inline: auto; border: 1px solid #dfe2e5; background: #fff;
}
body.acupixel-story main > section:nth-of-type(odd) .table-wrap { background: #17191b; border-color: #35383b; }
body.acupixel-story main > section:nth-of-type(odd) :is(th, td) { border-bottom-color: #35383b; color: #d6dadd; }
body.acupixel-story main > section:nth-of-type(odd) thead th { background: #24282b; color: #fff; }
body.acupixel-story main > section:nth-of-type(odd) tbody th { color: #fff; }
body.acupixel-story .industry-list { justify-content: center; }
body.acupixel-story .industry-list :is(a, span) {
  display: inline-block; padding: .75rem 1.1rem; border: 1px solid #dfe2e5; background: #fff; color: var(--ink); text-decoration: none;
}
body.acupixel-story main > section:nth-of-type(odd) .industry-list :is(a, span) {
  background: #17191b; border-color: #35383b; color: #fff;
}
body.acupixel-story .media-block__heading { max-width: 58rem; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); text-align: center; }
body.acupixel-story .media-block__heading .standfirst { margin-inline: auto; }
body.acupixel-story figure { width: min(100%, 74rem); margin-inline: auto; }
body.acupixel-story figure img { border-radius: 1.1rem; }
body.acupixel-story .section-visual {
  width: min(100%, 74rem); margin: clamp(2.25rem, 4vw, 3.75rem) auto;
  overflow: hidden; border-radius: 1.1rem;
  filter: drop-shadow(0 1.4rem 2.8rem rgb(0 0 0 / 12%));
}
body.acupixel-story .section-visual--compact { width: min(100%, 68rem); }
body.acupixel-story .section-visual svg { display: block; width: 100%; height: auto; font-family: Inter, sans-serif; }
body.acupixel-story .diagram-canvas { fill: #f1f4f5; stroke: #cdd3d7; stroke-width: 2; }
body.acupixel-story .diagram-card { fill: #fff; stroke: #e1e5e8; stroke-width: 1.5; }
body.acupixel-story .diagram-screen { fill: #edf1f3; }
body.acupixel-story .diagram-screen-line,
body.acupixel-story .diagram-screen-accent,
body.acupixel-story .diagram-screen-check,
body.acupixel-story .diagram-screen-code,
body.acupixel-story .diagram-screen-rays {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
body.acupixel-story .diagram-screen-line { stroke: #aeb8bd; stroke-width: 4; }
body.acupixel-story .diagram-screen-accent { stroke: #ed1c24; stroke-width: 3.5; }
body.acupixel-story .diagram-screen-paper { fill: #fff; stroke: #c8d0d4; stroke-width: 1.5; }
body.acupixel-story .diagram-screen-check { stroke: #2cb67d; stroke-width: 4; }
body.acupixel-story .diagram-screen-check--light { stroke: #fff; }
body.acupixel-story .diagram-screen-bar { fill: #31373a; }
body.acupixel-story .diagram-screen-code { stroke: #31373a; stroke-width: 3.5; }
body.acupixel-story .diagram-screen-ring { fill: #fff; stroke: #ed1c24; stroke-width: 2.5; }
body.acupixel-story .diagram-screen-rays { stroke: #596267; stroke-width: 2.5; }
body.acupixel-story .diagram-screen-dot { fill: #ed1c24; }
body.acupixel-story .diagram-screen-dot--green { fill: #2cb67d; }
body.acupixel-story .diagram-screen-badge { fill: #2cb67d; }
body.acupixel-story .diagram-core { fill: #111416; stroke: #2b3033; stroke-width: 2; }
body.acupixel-story .diagram-core-ring { fill: #ed1c24; stroke: #4e1a1d; stroke-width: 15; }
body.acupixel-story .diagram-check { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
body.acupixel-story .diagram-connector { fill: none; stroke: #ed1c24; stroke-width: 3; stroke-linecap: round; }
body.acupixel-story .diagram-arrow { fill: none; stroke: #ed1c24; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.acupixel-story .diagram-kicker { fill: #ed1c24; }
body.acupixel-story .diagram-status { fill: #2cb67d; stroke: #fff; stroke-width: 4; }
body.acupixel-story .diagram-label { fill: #252a2d; font-size: 16px; font-weight: 650; }
body.acupixel-story .diagram-index { fill: #ed1c24; font-size: 14px; font-weight: 750; letter-spacing: .12em; }
body.acupixel-story .diagram-core-label { fill: #fff; font-size: 29px; font-weight: 800; letter-spacing: .03em; }
body.acupixel-story .diagram-core-meta { fill: #aeb5ba; font-size: 13px; font-weight: 700; letter-spacing: .24em; }
body.acupixel-story .closing { background: #fff; border-color: #dfe2e5; border-radius: 0; }
body.acupixel-story .closing :is(h2, h3) { color: var(--ink) !important; }
body.acupixel-story .closing p { color: var(--ink-body) !important; }
body.acupixel-story .closing__promo { border-radius: 0; }
body.acupixel-story[data-page-role="form"] main > .section > .container { max-width: 52rem; }
body.acupixel-story[data-page-role="form"] main > .section > .container > h2 {
  max-width: 24ch; margin: 0 auto 2.5rem; text-align: center;
}
body.acupixel-story[data-page-role="form"] .form { width: 100%; max-width: 46rem; margin-inline: auto; }

@media (max-width: 52rem) {
  body.acupixel-story main > section { padding-block: clamp(3.5rem, 10vw, 4rem) !important; }
  body.acupixel-story .hero--platform h1 { font-size: clamp(2.35rem, 10.5vw, 3.75rem); }
  body.acupixel-story .steps { grid-template-columns: 1fr; }
  body.acupixel-story .section-visual {
    max-width: 100%; overflow: hidden; border-radius: .85rem;
  }
  body.acupixel-story .section-visual svg {
    display: block; width: 100%; max-width: 100%; height: auto;
  }
}

body[data-page-role="home"] main { overflow: hidden; }
body[data-page-role="home"] .home-hero {
  position: relative; isolation: isolate; background: var(--home-dark); color: #fff;
  padding-block: clamp(4.5rem, 8vw, 8rem); border-bottom: 1px solid #323538;
}
body[data-page-role="home"] .home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 72% 22%, rgb(237 28 36 / 24%), transparent 34%),
              radial-gradient(circle at 88% 82%, rgb(237 28 36 / 16%), transparent 28%);
}
body[data-page-role="home"] .home-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; max-width: 90rem; text-align: center;
}
body[data-page-role="home"] .home-hero__copy { width: min(100%, 66rem); margin-inline: auto; }
body[data-page-role="home"] .home-hero h1 {
  max-width: 18ch; margin-inline: auto; color: #fff; font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -.045em;
}
body[data-page-role="home"] .home-hero .eyebrow { color: #fff; letter-spacing: .26em; font-size: .72rem; }
body[data-page-role="home"] .home-hero .eyebrow::before,
body[data-page-role="home"] .home-question__copy::before {
  content: ""; display: inline-block; width: 1.5rem; height: 2px; margin-right: .8rem;
  background: var(--red); vertical-align: middle;
}
body[data-page-role="home"] .home-hero .standfirst { color: #c7cbce; max-width: 52rem; margin-inline: auto; font-size: 1.03rem; }
body[data-page-role="home"] .home-hero .cta-row { justify-content: center; }
body[data-page-role="home"] .home-hero .btn,
body[data-page-role="home"] .home-question .btn { border-radius: var(--radius); }
body[data-page-role="home"] .home-hero .btn--primary { background: var(--red-strong); color: #fff; }
body[data-page-role="home"] .home-hero .btn--secondary { background: transparent; border-color: #85898d; color: #fff; }
body[data-page-role="home"] .home-hero .btn:hover { background: #fff; border-color: #fff; color: #111; }
body[data-page-role="home"] .home-hero__visual { width: min(100%, 74rem); min-width: 0; margin-inline: auto; }
body[data-page-role="home"] .home-hero__visual img { display: block; width: 100%; height: auto; border-radius: 1.1rem; filter: drop-shadow(0 2rem 3rem rgb(0 0 0 / 32%)); }

body[data-page-role="home"] .experience-wall {
  background: var(--home-gray); padding-block: clamp(4rem, 6vw, 6rem) !important; text-align: center;
}
body[data-page-role="home"] .experience-wall__heading { max-width: 52rem; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
body[data-page-role="home"] .experience-wall--heading-only .experience-wall__heading { margin-bottom: 0; }
body[data-page-role="home"] .experience-wall h2 {
  margin-bottom: .9rem; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em;
}
body[data-page-role="home"] .experience-wall__heading p { margin: 0; color: var(--red-strong); font-size: .95rem; }
body[data-page-role="home"] .experience-wall__logos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}
body[data-page-role="home"] .experience-wall__logo {
  min-height: 7rem; display: grid; place-items: center; padding: 1rem;
}
body[data-page-role="home"] .experience-wall__logo img {
  display: block; width: min(100%, 14rem); max-height: 5.25rem; object-fit: contain;
  opacity: .9; transition: opacity var(--duration) var(--easing), transform var(--duration) var(--easing);
}
body[data-page-role="home"] .experience-wall__logo:hover img { opacity: 1; transform: translateY(-2px); }

body[data-page-role="home"] .home-question {
  background: var(--home-dark); color: #fff; padding-block: clamp(4.5rem, 7vw, 7rem) !important;
}
body[data-page-role="home"] .home-question__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; text-align: center;
}
body[data-page-role="home"] .home-question__copy { width: min(100%, 56rem); margin-inline: auto; }
body[data-page-role="home"] .home-question__copy::before { display: block; margin: 0 auto 1.25rem; }
body[data-page-role="home"] .home-question h2 { color: #fff; max-width: 18ch; margin: 0 auto 1.25rem; font-size: clamp(2.4rem, 4.6vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; }
body[data-page-role="home"] .home-question .standfirst { max-width: 52rem; margin-inline: auto; color: #bcc1c5; font-size: 1rem; }
body[data-page-role="home"] .home-question .cta-row { justify-content: center; }
body[data-page-role="home"] .home-question .btn--secondary { background: #fff; border-color: #fff; }
body[data-page-role="home"] .home-question .btn--link { color: #fff; }
body[data-page-role="home"] .home-question__visual { position: relative; width: min(100%, 74rem); margin: 0 auto; }
body[data-page-role="home"] .home-question__visual img { display: block; width: 100%; border-radius: 1.1rem; filter: drop-shadow(0 1.5rem 2.5rem rgb(0 0 0 / 30%)); opacity: 1; transform: translateY(0); transition: opacity .22s ease, transform .22s ease; }
body[data-page-role="home"] .home-question__visual img.is-changing { opacity: .18; transform: translateY(.5rem); }
body[data-page-role="home"] .home-carousel__arrow {
  position: absolute; z-index: 2; top: 50%; width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(13 15 16 / 82%); color: #fff;
  font: inherit; font-size: 1.25rem; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
body[data-page-role="home"] .home-carousel__arrow:hover,
body[data-page-role="home"] .home-carousel__arrow:focus-visible { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.05); }
body[data-page-role="home"] .home-carousel__arrow--previous { left: 1.25rem; }
body[data-page-role="home"] .home-carousel__arrow--next { right: 1.25rem; }
body[data-page-role="home"] .home-product-links {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; padding: 0;
  margin: clamp(2rem, 5vw, 4rem) 0 0; border-top: 1px solid #34373a;
}
body[data-page-role="home"] .home-product-links li { margin: 0 !important; border-right: 1px solid #34373a; }
body[data-page-role="home"] .home-product-links button {
  position: relative; width: 100%; min-height: 5rem; display: grid; place-items: center; padding: 1.1rem .75rem;
  border: 0; background: transparent; color: #c7cbce; text-align: center; font: inherit; font-size: .8rem; line-height: 1.45; cursor: pointer;
}
body[data-page-role="home"] .home-product-links button::before { content: ""; position: absolute; inset: -1px 0 auto; height: 3px; background: transparent; }
body[data-page-role="home"] .home-product-links button:hover { color: #fff; background: #17191b; }
body[data-page-role="home"] .home-product-links button[aria-selected="true"] { color: #fff; background: #17191b; }
body[data-page-role="home"] .home-product-links button[aria-selected="true"]::before { background: var(--red); }
body[data-page-role="home"] .home-product-links button:focus-visible { z-index: 1; outline: 2px solid #fff; outline-offset: -4px; }

body[data-page-role="home"] .home-workflow { background: var(--home-gray); padding-block: clamp(3rem, 5vw, 5rem) !important; }
body[data-page-role="home"] .home-workflow .media-block__heading { max-width: 58rem; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); text-align: center; }
body[data-page-role="home"] .home-workflow .media-block__heading h2 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4rem); letter-spacing: -.04em; }
body[data-page-role="home"] .home-workflow .media-block__heading .standfirst { max-width: 52rem; margin: .9rem auto 0; color: #5d6470; font-size: 1.05rem; line-height: 1.65; }
body[data-page-role="home"] .home-workflow figure { margin: 0 auto; }
body[data-page-role="home"] .home-workflow img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }

body[data-page-role="home"] .home-workflow + .section {
  background: #fff; padding-block: clamp(4.5rem, 7vw, 7rem) !important;
}
body[data-page-role="home"] .home-workflow + .section > .container {
  display: block; text-align: center;
}
body[data-page-role="home"] .home-workflow + .section h2 { max-width: 18ch; margin-inline: auto; font-size: clamp(2.5rem, 4.5vw, 4rem); letter-spacing: -.04em; }
body[data-page-role="home"] .home-workflow + .section > .container > .standfirst { max-width: 50rem; margin-inline: auto; padding-top: .75rem; color: #5d6470; font-size: 1rem; }
body[data-page-role="home"] .home-workflow + .section .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
body[data-page-role="home"] .home-workflow + .section .feature {
  min-height: 19rem; border: 1px solid #dfe2e5; background: #fff; padding: 0;
}
body[data-page-role="home"] .home-workflow + .section .feature__card-link {
  position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 1.5rem;
  color: var(--ink); text-decoration: none;
}
body[data-page-role="home"] .home-workflow + .section .feature__card-link::before {
  content: "0" counter(home-card); counter-increment: home-card; color: var(--red); font-size: .8rem;
  letter-spacing: .12em; margin-bottom: 3rem;
}
body[data-page-role="home"] .home-workflow + .section .feature-grid { counter-reset: home-card; }
body[data-page-role="home"] .home-workflow + .section .feature__card-link::after {
  content: "\2192"; margin-top: auto; align-self: center; color: var(--red); font-size: 1.5rem;
}
body[data-page-role="home"] .home-workflow + .section .feature h2,
body[data-page-role="home"] .home-workflow + .section .feature h3 { font-size: 1.3rem; }
body[data-page-role="home"] .home-workflow + .section .feature p { color: #697078; font-size: .95rem; line-height: 1.5; }
body[data-page-role="home"] .home-workflow + .section .feature:hover { border-color: var(--red); transform: translateY(-3px); transition: .2s ease; }

body[data-page-role="home"] main > .section:nth-of-type(6),
body[data-page-role="home"] main > .section:nth-of-type(8),
body[data-page-role="home"] main > .section:nth-of-type(10),
body[data-page-role="home"] main > .section:nth-of-type(12) {
  background: var(--home-dark); color: #c8ccd0; padding-block: clamp(4.5rem, 7vw, 7rem) !important;
}
body[data-page-role="home"] main > .section:nth-of-type(6) h2,
body[data-page-role="home"] main > .section:nth-of-type(8) h2,
body[data-page-role="home"] main > .section:nth-of-type(10) h2,
body[data-page-role="home"] main > .section:nth-of-type(12) h2 { color: #fff; }
body[data-page-role="home"] main > .section:nth-of-type(6) > .container > :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(8) > .container > :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(10) > .container > :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(12) > .container > :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(6) .section-intro :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(8) .section-intro :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(10) .section-intro :is(.standfirst, .prose),
body[data-page-role="home"] main > .section:nth-of-type(12) .section-intro :is(.standfirst, .prose) { color: #c8ccd0; }
body[data-page-role="home"] main > .section:nth-of-type(7),
body[data-page-role="home"] main > .section:nth-of-type(9),
body[data-page-role="home"] main > .section:nth-of-type(11) {
  background: var(--home-gray); padding-block: clamp(4.5rem, 7vw, 7rem) !important;
}
body[data-page-role="home"] main > .section:nth-of-type(n+6) { text-align: center; }
body[data-page-role="home"] main > .section:nth-of-type(n+6) h2 { margin-inline: auto; font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -.03em; max-width: 24ch; }
body[data-page-role="home"] main > .section:nth-of-type(n+6) .prose,
body[data-page-role="home"] main > .section:nth-of-type(n+6) > .container > .standfirst { max-width: 58rem; margin-inline: auto; }
body[data-page-role="home"] main > .section:nth-of-type(n+6) .card__body { text-align: center; }
body[data-page-role="home"] .feature-story > .container { text-align: center; }
body[data-page-role="home"] .feature-story > .container > .standfirst {
  max-width: 58rem; margin: 0 auto clamp(2.25rem, 4vw, 3.5rem); color: inherit; line-height: 1.7;
}
body[data-page-role="home"] .feature-story__visual {
  width: min(100%, 72rem); margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}
body[data-page-role="home"] .feature-story__visual img {
  display: block; width: 100%; height: auto; border-radius: 1.1rem;
  filter: drop-shadow(0 1.5rem 2.5rem rgb(0 0 0 / 16%));
}
body[data-page-role="home"] .feature-story .feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; max-width: 72rem; margin-inline: auto;
}
body[data-page-role="home"] .feature-story .feature {
  min-height: 100%; padding: 1.6rem; border: 1px solid #dfe2e5; background: #fff;
}
body[data-page-role="home"] .feature-story .feature h3 { font-size: 1.12rem; }
body[data-page-role="home"] .feature-story .feature p { color: #616970; font-size: .94rem; line-height: 1.6; }
body[data-page-role="home"] main > .feature-story:nth-of-type(even) .feature {
  background: #17191b; border-color: #35383b;
}
body[data-page-role="home"] main > .feature-story:nth-of-type(even) .feature h3 { color: #fff; }
body[data-page-role="home"] main > .feature-story:nth-of-type(even) .feature p { color: #b9bec2; }
body[data-page-role="home"] main > .feature-story:nth-of-type(even) .feature__card-link { color: #fff; }
body[data-page-role="home"] main > .section:nth-of-type(8) .card { background: #17191b; border-color: #35383b; }
body[data-page-role="home"] main > .section:nth-of-type(8) .card h3 { color: #fff; }
body[data-page-role="home"] main > .section:nth-of-type(8) .card p { color: #b9bec2; }
body[data-page-role="home"] main > .section:nth-of-type(9).industry-band { background: var(--home-gray); }
body[data-page-role="home"] main > .section:nth-of-type(10) a { color: #fff; }
body[data-page-role="home"] main > .section:nth-of-type(11) .closing { background: #fff; border: 1px solid #dfe2e5; border-radius: 0; }

body[data-site="acupixel"] .site-footer {
  margin-top: 0; padding-block: clamp(4rem, 7vw, 7rem) 2rem; background: #090a0b; border-top: 1px solid #2a2d2f; color: #b8bdc1;
}
body[data-site="acupixel"] .footer-top--navigation { display: block; }
body[data-site="acupixel"] .footer-brand__logo img { height: 2.35rem; }
body[data-site="acupixel"] .footer-brand--below-navigation {
  display: grid; grid-template-columns: max-content minmax(15rem, .9fr) minmax(28rem, 1.5fr);
  align-items: start; gap: clamp(1.5rem, 3.5vw, 3.5rem);
  border-top: 1px solid #2a2d2f; margin-top: clamp(3rem, 5vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem);
}
body[data-site="acupixel"] .footer-brand__statement { color: #aeb3b8; margin: 0; max-width: 38rem; }
body[data-site="acupixel"] .footer-contact li,
body[data-site="acupixel"] .footer-contact a { color: #d8dbdd; }
body[data-site="acupixel"] .footer-brand--below-navigation .footer-contact {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.5rem;
}
body[data-site="acupixel"] .footer-contact__icon { background: #17191b; border-color: #35383b; color: #fff; }
body[data-site="acupixel"] .footer-cols { grid-template-columns: repeat(5, minmax(7rem, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.75rem); }
body[data-site="acupixel"] .footer-cols h2 { color: #fff; padding-bottom: 1rem; margin-bottom: 1.25rem; }
body[data-site="acupixel"] .footer-cols li + li { margin-top: .8rem; }
body[data-site="acupixel"] .footer-cols a { color: #aeb3b8; font-size: .92rem; }
body[data-site="acupixel"] .footer-cols a:hover,
body[data-site="acupixel"] .footer-cols a:focus-visible { color: #fff; }
body[data-site="acupixel"] .footer-legal { border-top-color: #2a2d2f; margin-top: clamp(3rem, 6vw, 6rem); color: #777d82; }
body[data-site="acupixel"] .footer-legal .nav-list a { color: #aeb3b8; font-size: .8rem; }

@media (max-width: 72rem) and (min-width: 52.01rem) {
  body[data-site="acupixel"] .footer-brand--below-navigation { grid-template-columns: max-content minmax(0, 1fr); }
  body[data-site="acupixel"] .footer-brand--below-navigation .footer-contact { grid-column: 1 / -1; justify-content: flex-start; }
  body[data-site="acupixel"] .footer-brand__statement { max-width: 42rem; }
}

@media (max-width: 64rem) {
  body[data-site="acupixel"] .masthead__inner { flex-wrap: wrap; }
  body[data-site="acupixel"] .masthead__nav { order: 3; flex: 1 0 100%; margin: 0; overflow: visible; }
  body[data-page-role="home"] .home-hero__inner,
  body[data-page-role="home"] .home-question__grid { grid-template-columns: 1fr; }
  body[data-page-role="home"] .home-hero__copy { max-width: 45rem; }
  body[data-page-role="home"] .home-hero__visual { margin: 0; max-width: 54rem; }
  body[data-page-role="home"] .home-question__visual { max-width: 50rem; }
  body[data-page-role="home"] .home-workflow + .section .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-role="home"] .home-product-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page-role="home"] .experience-wall__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  body[data-site="acupixel"] .masthead__inner { display: grid; min-height: auto; }
  body[data-site="acupixel"] .masthead .nav-list { gap: 0; }
  body[data-site="acupixel"] .masthead .nav-list > li > ul { background: none; border: 0; }
  body[data-site="acupixel"] .masthead .nav-item--mega > a::before { display: none; }
  body[data-site="acupixel"] .masthead__text-cta:not([data-mobile-primary]) { display: none; }
  body[data-page-role="home"] .home-hero { padding-block: clamp(3.5rem, 10vw, 4rem); }
  body[data-page-role="home"] .home-hero h1 { font-size: clamp(2.4rem, 11vw, 3.75rem); }
  body[data-page-role="home"] .home-workflow + .section > .container { display: block; }
  body[data-page-role="home"] .home-workflow + .section .feature-grid { grid-template-columns: 1fr; }
  body[data-page-role="home"] .home-workflow + .section .feature { min-height: 15rem; }
  body[data-page-role="home"] .home-product-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-role="home"] .home-carousel__arrow { width: 2.75rem; height: 2.75rem; }
  body[data-page-role="home"] .home-carousel__arrow--previous { left: .75rem; }
  body[data-page-role="home"] .home-carousel__arrow--next { right: .75rem; }
  body[data-page-role="home"] .experience-wall__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-role="home"] .feature-story .feature-grid { grid-template-columns: 1fr; }
  body[data-site="acupixel"] .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-site="acupixel"] .footer-brand--below-navigation { grid-template-columns: 1fr; }
  body[data-site="acupixel"] .footer-brand--below-navigation .footer-contact { justify-content: flex-start; }
}

@media (max-width: 34rem) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 3.5rem; }
  .standfirst { font-size: 1rem; line-height: 1.65; }
  .feature, body.acupixel-story .feature { padding: 1.25rem; }
  .feature__card-link, body.acupixel-story .feature__card-link { padding: 1.25rem; }
  .card:not(.card--media) h2, .card:not(.card--media) h3 { min-height: 0; }
  .card__body p:not(.card__io), .card__io {
    display: block; min-height: 0; overflow: visible; line-clamp: unset; -webkit-line-clamp: unset;
  }
  .steps > li, body.acupixel-story .steps > li {
    grid-template-columns: 2.25rem minmax(0, 1fr); gap: .85rem; padding: 1.1rem;
  }
  .steps > li::before { width: 2.25rem; height: 2.25rem; }
  .closing, .closing--split, .site-promo__inner { padding: 1.25rem; }
  .footer-legal { align-items: flex-start; flex-direction: column; }
  .footer-legal .nav-list { flex-wrap: wrap; row-gap: .5rem; }

  body[data-page-role="home"] .home-product-links { grid-template-columns: 1fr; }
  body[data-page-role="home"] .home-product-links li { border-right: 0; border-bottom: 1px solid #34373a; }
  body[data-page-role="home"] .home-product-links button { min-height: 4rem; }
  body[data-page-role="home"] .experience-wall__logo { min-height: 5.5rem; padding: .75rem; }
  body[data-page-role="home"] .home-workflow figure,
  body[data-page-role="home"] .feature-story__visual {
    max-width: 100%; overflow: hidden;
  }
  body[data-page-role="home"] .home-workflow figure img,
  body[data-page-role="home"] .feature-story__visual img {
    display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain;
  }
  body[data-page-role="home"] .home-workflow + .section .feature { min-height: 0; }
  body[data-page-role="home"] .home-workflow + .section .feature__card-link::before { margin-bottom: 1.5rem; }
  body[data-site="acupixel"] .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  body[data-site="acupixel"] .footer-cols a { width: 100%; min-height: 44px; align-items: center; }
  body[data-site="acupixel"] .footer-brand__statement { max-width: none; }
  body[data-site="acupixel"] .footer-contact li,
  body[data-site="acupixel"] .footer-contact a { min-width: 0; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-role="home"] .home-question__visual img,
  body[data-page-role="home"] .home-carousel__arrow { transition: none; }
}
