/* Annata redesign: Industry content pillar template (templates/pillar.php), Ideal Version 3.1.
   Loaded after module.css (shared section layout, headings, case study cards, the Microsoft row) on pillar
   pages that use the new template. Design tokens only. Added 1 Dec 2026. */

.an-pil { --pil-sticky: calc(var(--wp-admin--admin-bar--height, calc(var(--sp-1) * 0)) + var(--header-h)); }
.an-pil [id^="an-pil-"] { scroll-margin-top: calc(var(--pil-sticky) + var(--sp-8)); }
.an-pil .an-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.an-pil__label { margin: 0; color: var(--text-muted); font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); line-height: var(--lh-small); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
:root .an-pil h3.an-pil__label { font-size: var(--fs-eyebrow); }
.an-pil__split { align-items: center; gap: var(--sp-7); }
.an-pil__split--top { align-items: start; }

/* ---------- Hero (IV3·1) ---------- */
.an-pil__hero-grid { align-items: start; gap: var(--sp-7); }   /* top-aligned, so the web font arriving never moves the screen (layout shift 0.10 on Dev, 3 Dec 2026) */
/* Cluster switch: the three systems of this industry as one segmented control, this page filled */
.an-pil__cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-2); }
.an-pil__switch { display: inline-flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-1); border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); }
:root .an-pil__switch-link {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--btn-h-md) - var(--sp-2));
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
}
:root .an-pil__switch-link:hover { background: var(--surface-muted); color: var(--text); }
:root .an-pil__switch-link[aria-current="page"] { background: var(--accent); color: var(--accent-on); }
:root .an-pil__switch-link:focus { outline: none; }
:root .an-pil__switch-link:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.an-pil__all { font-size: var(--fs-small); }
@media (max-width: 599px) {
  .an-pil__cluster { display: grid; }
  .an-pil__switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-16); }
  :root .an-pil__switch-link { justify-content: center; min-height: var(--btn-h-lg); padding: var(--sp-1) var(--sp-2); border-radius: var(--sp-3); line-height: var(--lh-small); text-align: center; white-space: normal; }
}

/* ---------- App windows: the product prototypes (hero, journey, platform) ---------- */
.an-app {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-20);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  box-shadow: var(--shadow-2);
}
.an-app__bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--a-black); color: var(--a-white); font-weight: var(--fw-bold); }
/* The Annata mark: the hinge shape, in red */
.an-app__logo { flex: none; width: var(--sp-4); height: var(--sp-4); background: var(--a-red); clip-path: polygon(65% 0, 100% 0, 100% 100%, 0 100%, 0 65%, 65% 65%); }
.an-app__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-app__pill { flex: none; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); background: var(--a-red); color: var(--a-black); font-size: 0.875em; font-weight: var(--fw-bold); }
/* Every product mock-up says its figures are made up (SEO fix list #18, 2 Dec 2026). In CSS, so the words
   aren't page text; the mock-ups also carry data-nosnippet, so search engines don't quote their figures. */
.an-app__bar::after { content: "Illustrative data"; flex: none; order: 3; font-size: 0.8em; font-weight: var(--fw-regular); color: var(--a-grey-18); white-space: nowrap; }
.an-app__body { padding: var(--sp-4); }
.an-app small { display: block; color: var(--text-muted); font-size: 0.875em; font-weight: var(--fw-regular); }
.an-app em { font-style: normal; }
/* Lists inside the screens never grow wider than their box (long names are cut with an ellipsis) */
.an-app ul, .an-app dl, .an-screen__cols > div { grid-template-columns: minmax(0, 1fr); }
/* Status labels */
.an-app em, .an-app__status { display: inline-block; padding: calc(var(--sp-1) / 2) var(--sp-2); border-radius: var(--r-full); background: var(--surface-muted); color: var(--text-muted); font-size: 0.875em; font-weight: var(--fw-semibold); white-space: nowrap; }
.an-app .is-ok { background: color-mix(in srgb, var(--a-olive) 14%, var(--a-white)); color: var(--a-olive); }
.an-app .is-hot { background: var(--action-subtle); color: var(--a-red-700); }
.an-app .is-blue { background: color-mix(in srgb, var(--a-marine) 12%, var(--a-white)); color: var(--a-marine); }

/* ---------- Hero screen with hotspots ---------- */
.an-hs { position: relative; container-type: inline-size; }
.an-hs__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); background: var(--surface); }
.an-hs__overview, .an-hs__kpis, .an-hs__panel { position: relative; min-width: 0; }
.an-hs__overview, .an-hs__kpis { grid-column: 1 / -1; }
.an-hs__overview { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-16); background: var(--surface-muted); }
.an-hs__overview-in { display: contents; }
.an-hs__overview-in .an-hs__h { order: 1; flex: 1 1 auto; margin: 0; font-size: var(--fs-body); }
.an-hs__oem { order: 3; }
.an-hs__select { order: 4; }
.an-hs__h { display: block; margin-bottom: var(--sp-2); font-weight: var(--fw-bold); }
.an-hs__oem { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--a-olive); font-size: 0.875em; font-weight: var(--fw-semibold); }
.an-hs__oem i { width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-full); background: var(--a-olive); }
.an-hs__select { padding: var(--sp-1) var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); font-size: 0.875em; }
.an-hs__kpis-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.an-hs__kpi { display: grid; gap: var(--sp-1); align-content: start; padding: var(--sp-3); border-radius: var(--r-16); background: var(--surface-muted); }
.an-hs__kpi b { font-size: var(--fs-h4); line-height: 1; }
.an-hs__kpi.is-hot b { color: var(--a-red-700); }
.an-hs__panel { padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); }
.an-hs__rows { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.an-hs__rows li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2); border: 1px solid var(--hairline); border-radius: var(--sp-2); }
.an-hs__rows li > span { min-width: 0; overflow: hidden; font-weight: var(--fw-semibold); text-overflow: ellipsis; white-space: nowrap; }
.an-hs__rows li.is-sel { border-color: var(--a-red); background: var(--action-subtle); }
.an-hs__deal { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.an-hs__deal div { display: flex; justify-content: space-between; gap: var(--sp-2); padding-bottom: var(--sp-1); border-bottom: 1px solid var(--hairline); }
.an-hs__deal dt { min-width: 0; overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.an-hs__deal dd { margin: 0; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-hs__btn { display: block; width: max-content; margin-left: auto; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full); background: var(--a-black); color: var(--a-white); font-weight: var(--fw-semibold); }
.an-hs__bays { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.an-hs__bays li { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); align-items: center; gap: var(--sp-2); }
.an-hs__bays li small { margin: 0; }
.an-hs__bays li > span { position: relative; height: var(--sp-5); border-radius: var(--sp-1); background: var(--surface-muted); }
.an-hs__bays i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); border-radius: var(--sp-1); background: var(--a-grey-18); }
.an-hs__bays i.is-dark { background: var(--a-black); }
.an-hs__bays i.is-hot { background: var(--a-red); }
.an-hs__bays i.is-blue { background: var(--a-marine); }
.an-hs__insight { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-2); margin: 0; }
.an-hs__chart { display: flex; align-items: flex-end; gap: var(--sp-1); height: var(--sp-8); margin: var(--sp-2) 0; }
.an-hs__chart i { flex: 1 1 0; height: calc(var(--h) * 1%); border-radius: var(--sp-1) var(--sp-1) 0 0; background: var(--a-grey-18); }
.an-hs__chart i.is-hot { background: var(--a-red); }

/* Hotspots: numbered buttons on the screen; each opens its feature's title and text */
:root .an-hs__dot {
  position: absolute;
  z-index: 2;
  top: calc(-1 * var(--sp-3));
  right: var(--sp-4);
  display: grid;
  place-items: center;
  width: var(--sp-6);
  height: var(--sp-6);
  margin: 0;
  padding: 0;
  border: var(--focus-width) solid var(--a-white);
  border-radius: var(--r-full);
  background: var(--a-black);
  color: var(--a-white);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  line-height: 1;
  box-shadow: 0 0 0 var(--sp-1) color-mix(in srgb, var(--a-red) 35%, transparent);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease);
}
:root .an-hs__dot:hover { background: var(--a-black); color: var(--a-white); transform: scale(1.08); box-shadow: 0 0 0 var(--sp-1) color-mix(in srgb, var(--a-red) 35%, transparent); }
:root .an-hs__dot[aria-expanded="true"] { background: var(--a-red-700); }
:root .an-hs__dot:focus { outline: none; }
:root .an-hs__dot:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
:root .an-hs__dot--oem { position: relative; top: auto; right: auto; order: 2; flex: none; }
:root .an-hs__dot--crm, :root .an-hs__dot--finance, :root .an-hs__dot--capture { top: auto; bottom: var(--sp-2); right: var(--sp-3); }
/* A soft ring pulses three times to show the numbers can be pressed (transform and opacity only) */
.an-hs__dot::after { content: ""; position: absolute; inset: calc(-1 * var(--sp-1)); border: var(--focus-width) solid var(--a-red); border-radius: var(--r-full); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .an-hs.is-ready .an-hs__dot[aria-expanded="false"]::after { animation: an-hs-pulse 1.8s var(--ease) 3; }
}
@keyframes an-hs-pulse {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
.an-hs__tip {
  position: absolute;
  z-index: 3;
  width: min(22em, 80%);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-16);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  box-shadow: var(--shadow-2);
}
.an-hs__tip[hidden] { display: none; }
.an-hs__tip p { margin: 0; }
.an-hs__tip-title { margin-bottom: var(--sp-2) !important; font-size: var(--fs-body); font-weight: var(--fw-bold); }
.an-hs__tip-title span { color: var(--a-red-700); }
/* Before the script places it, the open tip waits out of sight (no layout shift: it floats) */
.an-hs:not(.is-ready) .an-hs__tip { visibility: hidden; }
/* Narrow screens: the open feature reads under the screen instead of over it */
@media (max-width: 599px) {
  .an-hs__tip { width: calc(100% - var(--sp-5)); padding: var(--sp-3) var(--sp-4); }
}
/* A small screen inside the hero: less detail, same layout */
@container (max-width: 34em) {
  .an-hs__body { gap: var(--sp-3) var(--sp-2); }
  .an-app__body.an-hs__body { padding: var(--sp-3); }
  .an-hs__overview { padding: var(--sp-2) var(--sp-3); }
  .an-hs__oem, .an-hs__select { display: none; }
  .an-hs__kpis-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-hs__kpi { padding: var(--sp-2) var(--sp-3); }
  .an-hs__panel { padding: var(--sp-3) var(--sp-2) var(--sp-2); }
  .an-hs__rows li:nth-child(n+3), .an-hs__deal div:nth-child(n+3), .an-hs__insight + .an-hs__chart + .an-hs__insight, .an-hs__insight em { display: none; }
  .an-hs__rows li small, .an-hs__rows li em { display: none; }
  .an-hs__deal div { display: grid; gap: 0; }
  .an-hs__btn { width: 100%; padding: var(--sp-2); text-align: center; }
  .an-hs__bays li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  :root .an-hs__dot--crm, :root .an-hs__dot--finance, :root .an-hs__dot--capture { bottom: var(--sp-2); right: var(--sp-2); }
}

/* ---------- In-page bar (IV3·3): sticks under the header ---------- */
.an-pil__bar { position: sticky; top: var(--pil-sticky); z-index: 900; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.an-pil__bar-in { display: flex; align-items: center; gap: var(--sp-6); min-height: var(--sp-8); }
.an-pil__bar-name { flex: none; margin: 0; font-weight: var(--fw-bold); }
.an-pil__jumps { display: flex; flex: 1 1 auto; gap: var(--sp-5); min-width: 0; }
:root .an-pil__jumps a { position: relative; display: inline-flex; align-items: center; min-height: var(--btn-h-lg); color: var(--text-muted); font-family: var(--font-sans); font-size: var(--fs-small); font-weight: var(--fw-semibold); text-decoration: none; white-space: nowrap; }
:root .an-pil__jumps a:hover, :root .an-pil__jumps a.is-current { color: var(--text); }
.an-pil__jumps a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--sp-1); height: 3px; background: var(--accent); }
:root .an-pil__jumps a:focus { outline: none; }
:root .an-pil__jumps a:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: calc(-1 * var(--focus-width)); border-radius: var(--sp-1); }
@media (max-width: 767px) {
  .an-pil__bar-in { min-height: var(--btn-h-lg); padding-right: 0; }
  .an-pil__bar-name { display: none; }
  .an-pil__jumps { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-right: var(--side); }
  .an-pil__jumps::-webkit-scrollbar { display: none; }
}

/* ---------- What it is (IV3·4) and the modules it covers ---------- */
.an-pil__what-grid { align-items: start; gap: var(--sp-6); }
.an-pil__mods { display: grid; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--hairline); border-top: var(--accent-rule-h) solid var(--accent); border-radius: var(--r-20); background: var(--surface); box-shadow: var(--shadow-1); }
.an-pil__mods ul, .an-pil__modlist { display: grid; margin: 0; padding: 0; list-style: none; }
.an-pil__mods li + li, .an-pil__modlist li + li { border-top: 1px solid var(--hairline); }
:root .an-pil__mods a, :root .an-pil__modlist a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--btn-h-lg); color: var(--text); font-family: var(--font-sans); font-weight: var(--fw-semibold); text-decoration: none; }
:root .an-pil__mods a:hover, :root .an-pil__modlist a:hover { color: var(--text-link); }
.an-pil__mods a .an-chev, .an-pil__modlist a .an-chev { transition: transform var(--dur-1) var(--ease); }
.an-pil__mods a:hover .an-chev, .an-pil__modlist a:hover .an-chev { transform: translateX(var(--sp-1)) rotate(-45deg); }
:root .an-pil__mods a:focus, :root .an-pil__modlist a:focus { outline: none; }
:root .an-pil__mods a:focus-visible, :root .an-pil__modlist a:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.an-pil__what { padding-bottom: 0; }

/* ---------- Benefits: cards with the red rule ---------- */
.an-pil__cards { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.an-pil__card { display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-5); border: 1px solid var(--hairline); border-top: var(--accent-rule-h) solid var(--action); border-radius: var(--r-20); background: var(--surface); }
.an-pil__card p { color: var(--text-muted); }

/* ---------- How it works (IV3·5) ---------- */
.an-pil__how-text { display: grid; gap: var(--sp-4); align-content: start; }
.an-pil__savings { max-width: var(--measure); font-weight: var(--fw-semibold); }
/* The cloud diagram: departments around A365 in the cloud, data flowing to and from it */
.an-cloud { position: relative; margin: 0; aspect-ratio: 1 / 1; max-height: 40em; padding: var(--sp-3); border-radius: var(--r-24); background: var(--surface); box-shadow: var(--shadow-1); font-family: var(--font-sans); font-size: var(--fs-small); line-height: var(--lh-small); }
.an-cloud__lines { position: absolute; inset: var(--sp-3); width: calc(100% - 2 * var(--sp-3)); height: calc(100% - 2 * var(--sp-3)); overflow: visible; }
.an-cloud__line { stroke: var(--a-grey-18); stroke-width: 2; vector-effect: non-scaling-stroke; }
.an-cloud__flow { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 26; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .an-cloud__flow { animation: an-cloud-flow 1.8s linear infinite; animation-play-state: paused; }
  .an-cloud__sync, .an-cloud__live i { animation-play-state: paused !important; }
  .an-cloud.is-in .an-cloud__flow, .an-cloud.is-in .an-cloud__sync, .an-cloud.is-in .an-cloud__live i { animation-play-state: running !important; }
  .an-cloud__flow--tr, .an-cloud__flow--bl, .an-cloud__flow--bm { animation-delay: -0.6s; }
  .an-cloud__flow--ml, .an-cloud__flow--br, .an-cloud__flow--tm { animation-delay: -1.2s; }
  .an-cloud__sync { animation: an-cloud-sync 2.4s var(--ease) infinite; animation-delay: calc(var(--d) * 0.4s); }
  .an-cloud__live i { animation: an-cloud-sync 1.6s var(--ease) infinite; }
}
@keyframes an-cloud-flow { to { stroke-dashoffset: -26.1; } }
@keyframes an-cloud-sync { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.an-cloud__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); height: 100%; }
.an-cloud__node { display: grid; gap: 0; align-content: center; justify-items: start; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-1); }
.an-cloud__node b { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.an-cloud__node small { color: var(--text-muted); font-size: 0.875em; }
.an-cloud__label { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-cloud__sync { flex: none; width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-full); background: var(--a-olive); }
.an-cloud__node--tl { grid-area: 1 / 1; }
.an-cloud__node--tr { grid-area: 1 / 3; }
.an-cloud__node--ml { grid-area: 2 / 1; }
.an-cloud__node--mr { grid-area: 2 / 3; }
.an-cloud__node--bl { grid-area: 3 / 1; }
.an-cloud__node--br { grid-area: 3 / 3; }
.an-cloud__hub { grid-area: 2 / 2; display: grid; gap: var(--sp-1); align-content: center; justify-items: center; padding: var(--sp-3); border-radius: var(--r-20); background: var(--accent); color: var(--accent-on); text-align: center; box-shadow: var(--shadow-2); }
.an-cloud__icon { width: var(--sp-7); height: auto; fill: currentColor; }
.an-cloud__name { font-weight: var(--fw-bold); line-height: var(--lh-small); }
.an-cloud__hub small { color: inherit; opacity: 0.85; }
.an-cloud__live { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-1); padding: calc(var(--sp-1) / 2) var(--sp-2); border-radius: var(--r-full); background: var(--a-white); color: var(--a-black); font-size: 0.875em; font-weight: var(--fw-semibold); }
.an-cloud__live i { width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-full); background: var(--a-red); }
.an-cloud__chip { align-self: center; justify-self: center; display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.875em; font-weight: var(--fw-semibold); text-align: center; box-shadow: var(--shadow-1); }
.an-cloud__chip--tm { grid-area: 1 / 2; }
.an-cloud__chip--bm { grid-area: 3 / 2; }
.an-cloud__tick { flex: none; width: 0.5em; height: 0.85em; margin: 0 var(--sp-1) 0.15em; border: solid var(--a-olive); border-width: 0 0.15em 0.15em 0; transform: rotate(45deg); }
@media (max-width: 599px) {
  .an-cloud { aspect-ratio: 4 / 5; font-size: calc(var(--fs-small) * 0.9); }
  .an-cloud__node, .an-cloud__hub { padding: var(--sp-2); }
  .an-cloud__node b { font-size: var(--fs-body); }
  .an-cloud__icon { width: var(--sp-6); }
}

/* ---------- Features (IV3·6): the ten in order, as a car's journey through the dealership ---------- */
.an-journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
/* The road: one numbered stop per feature; the car drives to the open one */
.an-journey__road { position: relative; display: none; height: calc(var(--sp-9) - var(--sp-3)); }
.an-journey__road::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--sp-3); height: var(--sp-2); border-radius: var(--r-full); background: var(--a-dark-grey); }
.an-journey__road::after { content: ""; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: calc(var(--sp-3) + var(--sp-1) - 1px); height: 2px; background: repeating-linear-gradient(90deg, var(--a-white) 0 var(--sp-3), transparent var(--sp-3) var(--sp-5)); opacity: 0.6; }
.an-journey__dot { position: absolute; z-index: 1; bottom: calc(var(--sp-1) + var(--sp-1) / 2); left: calc((var(--i) + 0.5) / var(--n) * 100%); display: grid; place-items: center; width: var(--sp-6); height: var(--sp-6); border: 3px solid var(--accent); border-radius: var(--r-full); background: var(--a-white); color: var(--text); font-size: calc(var(--fs-small) * 0.85); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; transform: translateX(-50%); transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.an-journey__dot.is-active { background: var(--accent); color: var(--accent-on); }
.an-journey__car { position: absolute; z-index: 2; bottom: calc(var(--sp-6) + var(--sp-2)); left: calc((var(--car) + 0.5) / var(--n) * 100%); width: calc(var(--sp-9) - var(--sp-3)); transform: translateX(-50%); transition: left calc(var(--dur-3) * 2.5) var(--ease); }
.an-car { display: block; width: 100%; height: auto; overflow: visible; }
.an-car__body { fill: var(--accent); }
.an-car__glass { fill: color-mix(in srgb, var(--a-white) 82%, var(--accent)); }
.an-car__line { fill: none; stroke: color-mix(in srgb, var(--a-black) 25%, var(--accent)); stroke-width: 1.2; }
.an-car__light { fill: var(--a-yellow); }
.an-car__rear { fill: var(--a-red); }
.an-car__arch { fill: var(--surface); }
.an-car__tyre { fill: var(--a-black); }
.an-car__hub { fill: var(--a-grey-18); }
/* The list: numbered features, one open at a time; its text and screen open under it (beside it on desktop) */
.an-mod ol.an-jlist { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.an-jlist__item { border-top: 1px solid var(--hairline); }
.an-jlist__item:last-child { border-bottom: 1px solid var(--hairline); }
:root .an-jlist__heading { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
:root .an-jlist__toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: var(--btn-h-lg);
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5);
  border: 0;
  border-radius: var(--r-16);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}
:root .an-jlist__toggle:hover { background: transparent; color: var(--text); box-shadow: none; }
.an-jlist__item:not(.is-active) .an-jlist__toggle:hover .an-jlist__title { text-decoration: underline; text-underline-offset: 0.2em; }
:root .an-jlist__toggle:focus { outline: none; }
:root .an-jlist__toggle:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: calc(-1 * var(--focus-width)); }
/* The open feature: the accent bar beside it (spec 6.4) */
.an-jlist__toggle::before { content: ""; position: absolute; top: var(--sp-3); bottom: var(--sp-3); left: 0; width: var(--accent-bar-w); border-radius: var(--r-full); background: var(--accent); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.an-jlist__item.is-active .an-jlist__toggle::before { opacity: 1; }
.an-jlist__num { color: var(--text-muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.an-jlist__item.is-active .an-jlist__num { color: var(--eyebrow); }
.an-jlist__title { font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: var(--lh-small); }
.an-jlist .an-chev--toggle { width: 0.45em; height: 0.45em; margin-right: var(--sp-1); transform: translateY(-25%) rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.an-jlist__item.is-active .an-chev--toggle { transform: translateY(25%) rotate(-135deg); }
.an-jlist__panel { display: grid; gap: var(--sp-3); align-content: start; padding: 0 var(--sp-4) var(--sp-5) calc(var(--sp-5) + var(--sp-3) + 2ch); }
.an-journey__label { margin: 0; color: var(--eyebrow); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-jlist__text { max-width: var(--measure); margin: 0; color: var(--text-muted); }
.an-jlist__ptitle { display: none; margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-h3); }
.an-jlist__panel .an-app--mini { max-width: 24em; }
.an-app--mini { border-radius: var(--r-16); font-size: calc(var(--fs-small) * 0.95); box-shadow: var(--shadow-1); }
.an-app--mini .an-app__bar { padding: var(--sp-2) var(--sp-3); }
.an-app--mini .an-app__logo { width: var(--sp-3); height: var(--sp-3); }
.an-app--mini .an-app__body { display: grid; gap: var(--sp-2); padding: var(--sp-3); }
.an-app__status { justify-self: start; }
.an-app__fields { display: grid; gap: var(--sp-1); margin: 0; }
.an-app__fields div { display: flex; justify-content: space-between; gap: var(--sp-2); }
.an-app__fields dt { color: var(--text-muted); }
.an-app__fields dd { margin: 0; font-weight: var(--fw-semibold); white-space: nowrap; }
/* With the script: only the open feature shows its text */
.an-journey.is-ready .an-jlist__item:not(.is-active) .an-jlist__panel { display: none; }
@media (min-width: 768px) {
  .an-journey__road { display: block; }
}
/* Desktop: the open feature's stage, text and screen sit beside the list, level with its top */
@media (min-width: 1024px) {
  .an-mod .an-journey.is-ready ol.an-jlist { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-8); }
  .an-journey.is-ready .an-jlist__item { grid-column: 1; }
  .an-journey.is-ready .an-jlist__panel { position: absolute; top: 0; right: 0; width: calc((100% - var(--sp-8)) * 7 / 12); gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-24); background: var(--surface-muted); }
  .an-journey.is-ready .an-jlist__panel .an-app--mini { max-width: none; font-size: var(--fs-small); box-shadow: var(--shadow-2); }
  .an-journey.is-ready .an-jlist__text { font-size: var(--fs-lead); line-height: var(--lh-lead); }
  .an-journey.is-ready .an-jlist .an-chev--toggle { display: none; }
  .an-journey.is-ready .an-jlist__ptitle { display: block; margin-top: calc(-1 * var(--sp-2)); }
}

/* ---------- ERP, CRM and DMS on one platform (IV3·7) ---------- */
.an-plat, .an-pil__story-grid, .an-pil__cards, .an-pil__faq-main, .an-pil__faq-group { grid-template-columns: minmax(0, 1fr); }
.an-plat { display: grid; gap: var(--sp-4); }
.an-plat__list { display: grid; gap: var(--sp-3); align-content: start; }
.an-plat__list[hidden] { display: none; }
:root .an-plat__tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--sp-3);
  margin: 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-20);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
:root .an-plat__tab:hover { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
:root .an-plat__tab[aria-selected="true"] { border: var(--focus-width) solid var(--a-black); padding: calc(var(--sp-4) - 1px) calc(var(--sp-5) - 1px); box-shadow: var(--shadow-1); }
:root .an-plat__tab:focus { outline: none; }
:root .an-plat__tab:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.an-plat__n { grid-row: span 2; color: var(--text-muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.an-plat__tab[aria-selected="true"] .an-plat__n { color: var(--a-red-700); }
.an-plat__name { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.an-plat__here { color: var(--text-muted); font-size: var(--fs-small); font-weight: var(--fw-regular); }
.an-plat__tagline { color: var(--text-muted); font-size: var(--fs-small); }
.an-plat__panel { display: grid; gap: var(--sp-5); align-items: center; padding: var(--sp-5); border: 1px solid var(--hairline); border-radius: var(--r-24); background: var(--surface); }
.an-plat__panel[hidden] { display: none; }
.an-plat.is-acc { gap: var(--sp-3); }
.an-plat.is-acc .an-plat__list { display: contents; }
.an-plat.is-acc .an-plat__tab, .an-plat.is-acc .an-plat__panel { order: var(--o); }
.an-plat.is-acc .an-plat__tab { grid-template-columns: auto minmax(0, 1fr) auto; }
.an-plat.is-acc .an-plat__tab::after { content: ""; grid-row: 1 / span 2; grid-column: 3; align-self: center; width: 0.5em; height: 0.5em; margin: 0 var(--sp-1); border: solid var(--accent); border-width: 0 0.14em 0.14em 0; transform: translateY(-25%) rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.an-plat.is-acc .an-plat__tab[aria-expanded="true"]::after { transform: translateY(25%) rotate(-135deg); }
.an-plat.is-acc .an-plat__tab[aria-expanded="true"] { border: var(--focus-width) solid var(--a-black); padding: calc(var(--sp-4) - 1px) calc(var(--sp-5) - 1px); }
.an-plat.is-acc .an-plat__panel { margin-top: calc(-1 * var(--sp-1)); }
.an-plat__copy { display: grid; gap: var(--sp-3); align-content: start; }
.an-plat__copy > p:not(.an-mod__eyebrow) { color: var(--text-muted); }
:root .an-plat__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-h3); }
.an-plat__you { margin: var(--sp-1) 0 0; }
.an-plat__you span { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); background: var(--action-subtle); color: var(--text-link); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.an-plat__you span::before { content: ""; width: var(--sp-2); height: var(--sp-2); border-radius: var(--r-full); background: var(--a-red); }
/* Without the script every system shows in turn */
.an-plat:not(.is-ready) .an-plat__panel + .an-plat__panel { margin-top: var(--sp-2); }
.an-screen { box-shadow: var(--shadow-1); }
.an-screen__h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-3) !important; font-weight: var(--fw-bold); }
.an-screen__h small { display: inline; }
.an-screen__h2 { display: flex; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-2) !important; color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-screen__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-screen__kpis > span { display: grid; gap: var(--sp-1); align-content: start; justify-items: start; padding: var(--sp-3); border-radius: var(--r-16); background: var(--surface-muted); }
.an-screen__kpis b { font-size: var(--fs-h4); line-height: 1; }
.an-screen__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.an-screen__box { min-width: 0; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); }
.an-screen__chart { height: calc(var(--sp-8) + var(--sp-4)); margin: 0; }
.an-screen__list { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.an-screen__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.an-screen__list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-screen__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-screen__cols > div { display: grid; gap: var(--sp-2); align-content: start; min-width: 0; padding: var(--sp-2); border-radius: var(--r-16); background: var(--surface-muted); }
.an-screen__cols .an-screen__h2 { margin: 0 !important; }
.an-screen__cols .an-screen__h2 b { color: var(--text); }
.an-screen__card { display: grid; padding: var(--sp-2); border: 1px solid var(--hairline); border-radius: var(--sp-2); background: var(--surface); overflow-wrap: anywhere; }
.an-screen__card.is-hot { border-color: var(--a-red); background: var(--action-subtle); color: var(--text); }
.an-screen__customer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); }
.an-screen__customer > span:nth-child(2) { flex: 1 1 auto; }
.an-screen__avatar { display: grid; place-items: center; flex: none; width: var(--sp-7); height: var(--sp-7); border-radius: var(--r-full); background: var(--accent); color: var(--accent-on); font-weight: var(--fw-bold); }
.an-plat__screen { container-type: inline-size; min-width: 0; }
@container (max-width: 26em) {
  .an-screen__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-screen__kpis > span:nth-child(3) { display: none; }
  .an-screen__split { grid-template-columns: minmax(0, 1fr); }
  .an-screen__split > .an-screen__box:first-child { display: none; }
  .an-screen__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-screen__cols > div:nth-child(3) { display: none; }
}
.an-pil__base { margin-top: var(--sp-6); padding-left: 0; padding-right: 0; }

/* ---------- The Microsoft Dynamics 365 advantage (IV3·8) ---------- */
.an-pil__adv-text { display: grid; gap: var(--sp-4); align-content: start; }
.an-mod ul.an-pil__tools { display: grid; margin: 0; padding: var(--sp-2) var(--sp-6); border: 1px solid var(--hairline); border-radius: var(--r-24); background: var(--surface); box-shadow: var(--shadow-1); list-style: none; }
.an-pil__tools li { display: grid; grid-template-columns: var(--sp-6) minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 var(--sp-4); align-items: center; padding: var(--sp-4) 0; }
.an-pil__tools li + li { border-top: 1px solid var(--hairline); }
.an-pil__tool-icon { grid-row: span 2; width: var(--sp-6); height: var(--sp-6); object-fit: contain; }
.an-pil__tool-name { font-weight: var(--fw-bold); }
.an-pil__tool-text { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- Comparison (IV3·9): the A365 column stands out ---------- */
.an-cmp { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-small); }
.an-cmp th, .an-cmp td { padding: var(--sp-4) var(--sp-5); border: 0; text-align: left; vertical-align: top; }
.an-cmp thead th { background: var(--a-black); color: var(--a-white); font-size: var(--fs-small); font-weight: var(--fw-semibold); letter-spacing: normal; vertical-align: bottom; }
.an-cmp thead th:first-child { border-top-left-radius: var(--r-20); }
.an-cmp thead th.an-cmp__us { position: relative; padding-top: var(--sp-5); border-radius: var(--r-20) var(--r-20) 0 0; background: var(--a-red); font-size: var(--fs-button); font-weight: var(--fw-bold); line-height: var(--lh-h4); }
/* The header of the A365 column rises above the others; the black header row ends under it */
.an-cmp thead th.an-cmp__them { border-top-right-radius: 0; }
.an-cmp__mark { display: inline-block; width: 0.8em; height: 0.8em; margin-right: var(--sp-2); background: var(--a-white); clip-path: polygon(65% 0, 100% 0, 100% 100%, 0 100%, 0 65%, 65% 65%); vertical-align: -0.05em; }
.an-cmp tbody th, .an-cmp tbody td { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.an-cmp tbody th { width: 22%; font-weight: var(--fw-bold); }
.an-cmp tbody td { width: 39%; }
.an-cmp tbody td > span:last-child { display: block; }
.an-cmp__them { color: var(--text-muted); }
.an-cmp tbody .an-cmp__us { background: var(--action-subtle); color: var(--text); font-weight: var(--fw-semibold); box-shadow: inset 2px 0 0 var(--a-red), inset -2px 0 0 var(--a-red); }
.an-cmp tbody tr:last-child .an-cmp__us { border-bottom-right-radius: var(--r-20); border-bottom-left-radius: var(--r-20); box-shadow: inset 2px 0 0 var(--a-red), inset -2px 0 0 var(--a-red), inset 0 -2px 0 var(--a-red); }
.an-cmp tbody tr:last-child th { border-bottom-left-radius: var(--r-20); }
.an-cmp tbody tr:last-child th, .an-cmp tbody tr:last-child td { border-bottom: 0; }
.an-cmp tbody tr:last-child .an-cmp__them { border-bottom: 0; }
/* Icons: a tick for A365, a dash for the standalone system */
.an-cmp td { position: relative; padding-left: calc(var(--sp-5) + var(--sp-6)); }
.an-cmp__icon { position: absolute; top: var(--sp-4); left: var(--sp-5); display: grid; place-items: center; width: var(--sp-5); height: var(--sp-5); border-radius: var(--r-full); }
.an-cmp__icon--yes { background: var(--a-red); }
.an-cmp__icon--yes::before { content: ""; width: 0.3em; height: 0.6em; margin-top: -0.15em; border: solid var(--a-white); border-width: 0 0.14em 0.14em 0; transform: rotate(45deg); }
.an-cmp__icon--no { background: var(--surface-muted); border: 1px solid var(--hairline); }
.an-cmp__icon--no::before { content: ""; width: 0.55em; height: 0.12em; border-radius: var(--r-full); background: var(--text-muted); }
.an-cmp tbody tr { transition: background var(--dur-2) var(--ease); }
/* Phones and small tablets: each row becomes a card, the A365 answer highlighted */
@media (max-width: 767px) {
  .an-cmp, .an-cmp tbody, .an-cmp tr, .an-cmp th, .an-cmp td { display: block; width: auto !important; }
  .an-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .an-cmp tbody { display: grid; gap: var(--sp-3); }
  .an-cmp tbody tr { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--r-20); background: var(--surface); }
  .an-cmp tbody th { padding: var(--sp-4) var(--sp-4) var(--sp-2); border: 0; border-radius: 0 !important; font-size: var(--fs-h4); }
  .an-cmp tbody td { padding: var(--sp-2) var(--sp-4) var(--sp-3) calc(var(--sp-4) + var(--sp-6)); border: 0; border-radius: 0 !important; }
  .an-cmp tbody td::before { content: attr(data-label); display: block; margin-bottom: var(--sp-1); color: var(--text-muted); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
  .an-cmp tbody .an-cmp__us { padding-top: var(--sp-3); padding-bottom: var(--sp-4); box-shadow: inset 0 2px 0 var(--a-red) !important; }
  .an-cmp tbody .an-cmp__us::before { color: var(--a-red-700); }
  .an-cmp tbody td { padding-left: var(--sp-4); }
  .an-cmp tbody td > span:last-child { display: inline; }
  .an-cmp tbody td .an-cmp__icon { position: static; display: inline-grid; margin-right: var(--sp-2); vertical-align: -0.3em; }
}

/* ---------- Light band (IV3·10) ---------- */
.an-pil__band { padding: var(--sp-7) 0; background: var(--action-subtle); }
.an-pil__band-in { align-items: center; }
.an-pil__band .an-mod__actions { margin-top: 0; }

/* ---------- Customer stories (IV3·11): the featured story, then the quotes ---------- */
.an-pil__story-grid { display: grid; gap: var(--sp-4); }
.an-quote { display: grid; gap: var(--sp-4); align-content: space-between; margin: 0; padding: var(--sp-5); border: 1px solid var(--hairline); border-radius: var(--r-20); background: var(--surface); }
.an-quote__text { margin: 0; padding: 0; border: 0; font-size: var(--fs-body); font-style: normal; line-height: var(--lh-body); }
.an-quote__text::before { content: "\201C"; display: block; height: 0.6em; margin-bottom: var(--sp-2); color: var(--accent); font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1; }
.an-quote__text p { margin: 0; }
.an-quote__by { display: flex; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--hairline); font-size: var(--fs-small); }
.an-quote__logo { flex: none; display: flex; align-items: center; justify-content: center; width: var(--sp-10); height: var(--sp-7); padding-right: var(--sp-4); border-right: 1px solid var(--hairline); }
/* Every logo fits the same box, centred: wide wordmarks use its width, square marks its height */
.an-quote__logo img { display: block; width: auto; height: auto; max-width: calc(var(--sp-10) - var(--sp-4)); max-height: var(--sp-7); object-fit: contain; }
.an-quote__who { display: grid; gap: var(--sp-1); min-width: 0; }
.an-quote__who span { color: var(--text-muted); }

/* ---------- FAQ (IV3·13) with the demo card ---------- */
.an-pil__faq-grid { align-items: start; }
.an-pil__faq-main { display: grid; gap: var(--sp-6); }
.an-pil__faq-group { display: grid; gap: var(--sp-3); }
.an-pil__faq .an-faq { max-width: none; }
/* The FAQ in one centred column, as on the Industry and Solutions hub pages (2 Dec 2026) */
/* FAQ: the module pages' layout (heading on the left, questions on the right on wide screens, all closed),
   since 3 Dec 2026 (Raymond); until then one centred column */
.an-pil__demo.has-hinge {
  --hinge-colour: var(--action);
  --hinge-size: var(--sp-5);
  --hinge-inset: var(--sp-4);
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  border: var(--focus-width) solid var(--a-black);
  border-radius: var(--r-24);
  background: var(--surface);
}
:root .an-pil__demo-title { margin: 0; color: var(--text); font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-h3); letter-spacing: normal; text-transform: none; }

/* ---------- Layout by width ---------- */
@media (min-width: 600px) {
  .an-pil__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-pil__story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-pil__story-grid .an-story--feature { grid-column: 1 / -1; }
  .an-pil__story-grid > .an-quote:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .an-pil__band-in { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) {
  .an-pil__hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-8); }
  .an-pil__what-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--sp-8); }
  .an-pil__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-pil__cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-pil__split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-8); }
  .an-plat { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); align-items: start; }
  .an-plat:not(.is-ready) { grid-template-columns: minmax(0, 1fr); }
  .an-plat__panel { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); padding: var(--sp-6); }
  .an-pil__story-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .an-pil__story-grid .an-story--feature { grid-column: span 4; }
  .an-pil__story-grid > .an-quote { grid-column: span 3; }
  .an-pil__story-grid > .an-story--feature + .an-quote { grid-column: span 2; }
  .an-pil__story-grid > .an-quote:last-child:nth-child(even) { grid-column: span 3; }
}

/* Short laptop screens: less room above the hero (SEO fix list #56; the buttons also come straight after the
   heading). Since 3 Dec 2026 the rule is in module.css, for every hero. */

/* A link inside a card's text (Automotive CRM "Native DMS & OEM integration", SEO fix list #21): dark text with
   the brand red as its underline, so the text keeps its contrast */
:root .an-pil__card p a { color: var(--text); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--a-red); text-decoration-thickness: 0.1em; text-underline-offset: 0.2em; }
:root .an-pil__card p a:hover { text-decoration-color: currentColor; }
