/* Annata redesign: Industry template (roadmap step 3; Ideal Version 3.1, Industry template). Design tokens only.
   Shares module.css (sections, headings, case study cards) and pillar.css (industry switch, product screens,
   the car). Added 2 Dec 2026. */

.an-ind [id^="an-ind-"] { scroll-margin-top: calc(var(--header-h) + var(--sp-6)); }
.an-ind .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; }
:root .an-ind h3, :root .an-ind h4 { margin: 0; }
.an-ind ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Hero ---------- */
.an-ind__hero .an-pil__hero-grid { align-items: start; }   /* top-aligned, so a font swap in the text never moves the screen */
.an-ind__visual { display: grid; gap: var(--sp-4); margin: 0; min-width: 0; }
/* The six screens share one place; the open one shows (the tallest sets the height, so nothing jumps). */
.an-ind__screens { display: grid; }
.an-ind__screen { grid-area: 1 / 1; display: grid; transition: opacity var(--dur-2) var(--ease); }
.an-ind__screen:not(.is-on) { visibility: hidden; opacity: 0; }
.an-ind__screen .an-app { align-self: stretch; }
.an-ind__progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.an-ind__progress li { display: grid; gap: var(--sp-2); color: var(--text-muted); font-size: 0.875em; font-weight: var(--fw-semibold); text-align: center; }
.an-ind__progress li::before { content: ""; display: block; height: var(--sp-3); border-radius: var(--r-full); background: var(--surface-muted); }
.an-ind__progress li.is-done { color: var(--text); }
.an-ind__progress li.is-done::before { background: var(--a-grey-18); }
.an-ind__progress li.is-now { color: var(--text); font-weight: var(--fw-bold); }
.an-ind__progress li.is-now::before { background: var(--accent); }
.an-ind__app-body { display: grid; gap: var(--sp-4); }
.an-ind__vehicle { display: grid; grid-template-columns: calc(var(--sp-9) - var(--sp-2)) minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--hairline); }
.an-ind__vehicle b { display: block; }
.an-ind__vehicle-icon { display: block; }
.an-ind__cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.an-ind__cal span { display: grid; gap: var(--sp-1); }
.an-ind__cal small { text-align: center; }
.an-ind__cal span.is-on small { color: var(--text); font-weight: var(--fw-bold); }
.an-ind__cal i { display: block; height: var(--sp-3); border-radius: var(--r-full); background: var(--surface-muted); }
.an-ind__cal i.is-sel { background: var(--accent); }
/* The six steps: tabs under the screen (done steps ticked, the open one in the accent) */
.an-ind__rail { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
:root .an-ind__step {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text-muted);
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: var(--lh-small); cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
:root .an-ind__step:hover { border-color: var(--hairline-strong); color: var(--text); box-shadow: var(--shadow-1); }
:root .an-ind__step:focus { outline: none; }
:root .an-ind__step:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.an-ind__step-num { display: grid; place-items: center; width: var(--sp-5); height: var(--sp-5); border-radius: var(--r-full); background: var(--surface-muted); color: var(--text); font-size: calc(var(--fs-small) * 0.85); }
.an-ind__step.is-done .an-ind__step-num { background: var(--text); color: var(--a-white); font-size: 0; }
.an-ind__step.is-done .an-ind__step-num::before { content: "✓"; font-size: calc(var(--fs-small) * 0.85); }
:root .an-ind__step.is-now { border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.an-ind__step.is-now .an-ind__step-num { background: var(--accent); color: var(--accent-on); }

/* ---------- Trust figures ---------- */
.an-ind__trust { padding: var(--sp-6) 0; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.an-ind__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
.an-ind__figures li { display: grid; gap: var(--sp-1); align-content: start; padding-left: var(--sp-4); border-left: var(--accent-rule-h) solid var(--accent); }
.an-ind__figures strong { color: var(--text); font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-h2); font-variant-numeric: tabular-nums; }
.an-ind__figures span { color: var(--text-muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- Platform: stops on a road ---------- */
.an-ind__plat-head { display: grid; gap: var(--sp-4); }
.an-ind__plat-more { display: grid; gap: var(--sp-3); align-content: end; }
.an-ind__plat-more p { margin: 0; }
.an-ind__plat-more p:last-child { color: var(--text); font-weight: var(--fw-semibold); }
.an-road { display: grid; gap: var(--sp-4); }
.an-road__track { position: relative; height: calc(var(--sp-8) + var(--sp-2)); }
.an-road__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--sp-2); border-radius: var(--r-full); background: var(--a-dark-grey); }
.an-road__track::after { content: ""; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: calc(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-road__car { position: absolute; z-index: 1; bottom: var(--sp-1); left: calc((var(--car) + 0.5) / var(--n) * 100%); width: calc(var(--sp-9) + var(--sp-4)); transform: translateX(-50%); transition: left calc(var(--dur-3) * 2.5) var(--ease); }
.an-road__stops { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--sp-2); }
:root .an-road__stop {
  position: relative; display: grid; gap: var(--sp-1); align-content: start; justify-items: start;
  width: 100%; margin: 0; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16);
  background: var(--surface); color: var(--text); font-family: var(--font-sans); text-align: left; cursor: pointer;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
:root .an-road__stop:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-1); }
:root .an-road__stop:focus { outline: none; }
:root .an-road__stop:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
:root .an-road__stop.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.an-road__num { display: grid; place-items: center; width: var(--sp-6); height: var(--sp-6); border: 2px solid var(--accent); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-small); font-weight: var(--fw-bold); }
.an-road__stop.is-active .an-road__num { background: var(--accent); color: var(--accent-on); }
.an-road__label { display: none; color: var(--eyebrow); font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); line-height: var(--lh-small); text-transform: uppercase; }
.an-road__name { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-small); }
.an-road.is-ready .an-road__panel[hidden] { display: none; }
.an-road__panel { display: grid; gap: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--hairline); border-radius: var(--r-24); background: var(--surface); }
.an-road:not(.is-ready) .an-road__panel + .an-road__panel { margin-top: var(--sp-4); }
.an-road__panel:focus { outline: none; }
.an-road__panel:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.an-road__panel > * { min-width: 0; }
.an-road__intro { display: grid; gap: var(--sp-3); align-content: start; }
.an-road__intro p { margin: 0; }
:root .an-road__title { color: var(--text); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-h3); }
.an-road__text { color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.an-road__text a { color: var(--text-link); font-weight: var(--fw-semibold); }
.an-road__block { display: grid; gap: var(--sp-3); align-content: start; }
:root .an-road__h { color: var(--text); font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-h4); }

/* Capabilities: a ticked list */
.an-ticks { display: grid; gap: var(--sp-2) var(--sp-5); }
.an-ticks li { position: relative; padding-left: calc(var(--sp-5) + var(--sp-1)); line-height: var(--lh-body); }
.an-ticks li::before { content: ""; position: absolute; left: var(--sp-1); top: calc(var(--sp-1) + 1px); width: calc(var(--sp-2) + 1px); height: var(--sp-3); border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.an-ticks a { color: var(--text-link); font-weight: var(--fw-semibold); }

/* Business roles and segments: chips */
.an-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.an-chips li { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); background: var(--surface-muted); color: var(--text); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Components: cards */
.an-comps { display: grid; gap: var(--sp-3); }
.an-comp { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-4); border: 1px solid var(--hairline); border-top: var(--accent-rule-h) solid var(--accent); border-radius: var(--r-16); background: var(--surface); }
.an-comp p { margin: 0; }
.an-comp__name { font-weight: var(--fw-bold); }
.an-comp__text { color: var(--text-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.an-comp .an-link { justify-self: start; font-size: var(--fs-small); }

/* ---------- Why A365 and the segments ---------- */
.an-ind__segments { display: grid; gap: var(--sp-5); padding-top: var(--sp-6); border-top: 1px solid var(--hairline); }
.an-segs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.an-seg { display: grid; justify-items: center; align-content: start; gap: var(--sp-3); padding: var(--sp-5) var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-20); background: var(--surface); text-align: center; }
.an-seg__icon { display: grid; place-items: center; width: calc(var(--sp-9) + var(--sp-3)); height: calc(var(--sp-9) + var(--sp-3)); border-radius: var(--r-full); background: color-mix(in srgb, var(--accent) 12%, var(--a-white)); color: color-mix(in srgb, var(--accent) 65%, var(--a-black)); }
.an-seg__icon svg { width: calc(var(--sp-8) + var(--sp-2)); height: auto; }
.an-seg__label { color: var(--text); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-small); }
:root .an-ind__seg-h { color: var(--text); font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: var(--lh-h4); }

/* ---------- FAQ: one centred column, as on the Solutions hub ---------- */
/* 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 */

/* ---------- Customer stories: the first wide, the others in a row ---------- */
.an-ind__stories, .an-ind__stories-more { display: grid; gap: var(--sp-4); }
/* A featured case without key figures (Ejner Hessel) uses the full width for its story */
:root .an-ind__stories .an-story--feature:not(:has(.an-story__figures)) { grid-template-columns: minmax(0, 1fr); }
.an-ind__stories .an-story--feature:not(:has(.an-story__figures)) .an-story__copy { max-width: var(--measure); }

/* ---------- Layout by width ---------- */
@media (max-width: 599px) {
  /* Four stops (Trucks and buses): two by two on phones, without the road */
  .an-road--many .an-road__track { display: none; }
  .an-road--many .an-road__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) {
  .an-road__label { display: block; }
  :root .an-road__stop { padding: var(--sp-4); gap: var(--sp-2); }
  .an-road__name { font-size: var(--fs-h4); }
  .an-road__stops { gap: var(--sp-4); }
  .an-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-comps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-ind__stories-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-ind__stories-more > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .an-ind__figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-segs { grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
  .an-ind__plat-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-8); align-items: end; }
  .an-ind__plat-head .an-mod__head { max-width: none; }
  .an-road__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-8); padding: var(--sp-7); }
  .an-road__roles, .an-road__comps { grid-column: 1 / -1; }
  .an-road__intro:last-child { grid-column: 1 / -1; }
  .an-comps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .an-road__car, :root .an-road__stop, .an-ind__screen, :root .an-ind__step { transition: none; }
}

/* ---------- The industry's ERP, CRM and DMS pages (SEO fix list #35, 2 Dec 2026): three link cards ---------- */
.an-ind__systems .an-mod__h2 { margin-bottom: var(--sp-5); }
.an-ind__sys-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.an-ind__sys { margin: 0; }
:root .an-ind__sys-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-3); align-items: center; height: 100%; 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); color: var(--text); text-decoration: none; }
:root .an-ind__sys-link:hover { border-color: var(--hairline-strong); border-top-color: var(--accent); }
:root .an-ind__sys-link:hover .an-ind__sys-title { text-decoration: underline; text-underline-offset: 0.2em; }
.an-ind__sys-title { grid-column: 1; font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-small); }
.an-ind__sys-text { grid-column: 1; color: var(--text-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.an-ind__sys-link .an-chev { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 768px) {
  .an-ind__sys-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
