/* MykaPro — design system, navbar, homepage and footer.
   Concept: the site is MykaPro's own wiring. One spine runs down every page; every section is a
   node on it. Motion verb: post and settle (see DESIGN.md). Per-page styles live in their own
   files and reuse the primitives here (.sec, .spined, .node, .ledger, .btn, .mono ...). */

/* ---------- Fonts (local files; owner rule: no CDNs) ---------- */

@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('assets/fonts/fragment-mono-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* Ledger palette (DESIGN.md, colour refinement): carbon ink on ledger paper, a ledger-green
     accent, pine night fields, and the logo's four colours as record types. */
  --c-bg: #F3F2EE;
  --c-surface: #FCFCFA;
  --c-ink: #142420;
  --c-muted: #56625D;
  --c-line: rgb(20 36 32 / 0.14);
  --c-line-strong: rgb(20 36 32 / 0.28);
  --c-accent: #0E7256;
  --c-live: #1F8A5B;
  --c-night: #10302A;
  --c-footer: #0B231F;

  /* Record types, from the logo squares. Fills and strokes only, never body text. */
  --c-sales: #2E66D6;
  --c-stock: #23864A;
  --c-accounts: #F2B21B;
  --c-alerts: #C9402F;

  --f-text: 'Switzer', system-ui, sans-serif;
  --f-mono: 'Fragment Mono', 'Switzer', monospace;

  /* One type scale (premium refinement): page title, section heading, sub-heading, lead, body, small, label. */
  --t-mega: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem);
  --t-xl: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  --t-l: clamp(1.3rem, 1.15rem + 0.55vw, 1.625rem);
  --t-m: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-body: clamp(1rem, 0.97rem + 0.15vw, 1.125rem);
  --t-s: 0.875rem;
  --t-xs: 0.75rem;

  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2.25rem);
  --aside: clamp(8rem, 12vw, 11rem);  /* the mono meta column left of the spine */
  --spine-gap: clamp(1.4rem, 3.5vw, 3.25rem); /* content's distance from the spine */
  --radius: 2px;

  --z-header: 50;
  --z-pulse: 40;
  --z-curtain: 90;
}

/* Chapter grounds: sage is the cool field (tour, mobile), sand the warm one (journey, support). */
[data-tone='tint'] { --c-bg: #E4E9E2; --c-surface: #F6F8F4; }
[data-tone='warm'] { --c-bg: #EDE7DC; --c-surface: #F8F5EF; }

/* The closing call to action sits on the brand's own ledger green, the one saturated field. */
[data-tone='ledger'] {
  --c-bg: #0C664D;
  --c-surface: #0E7256;
  --c-ink: #F3F2EE;
  --c-muted: #CDE0D7;
  --c-line: rgb(243 242 238 / 0.2);
  --c-line-strong: rgb(243 242 238 / 0.38);
  --c-accent: #FFD36B;
}

/* A night section redefines the roles; everything inside follows. */
[data-tone='night'] {
  --c-bg: #10302A;
  --c-surface: #173B34;
  --c-ink: #EEF1EC;
  --c-muted: #A9BBB3;
  --c-line: rgb(238 241 236 / 0.16);
  --c-line-strong: rgb(238 241 236 / 0.32);
  --c-accent: #7CD3AE;
  --c-live: #7CD3AE;
}

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

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  background: #F3F2EE;
  color: var(--c-ink);
  scroll-padding-top: 5.5rem; /* anchors land below the sticky header */
}
body {
  min-height: 100dvh;
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; font-size: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--c-accent); color: #fff; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
#main:focus { outline: none; }
.skip-link {
  position: fixed; left: var(--gutter); top: var(--gutter); z-index: calc(var(--z-curtain) + 1);
  padding: 0.6em 1em; background: var(--c-ink); color: #F3F2EE;
  transform: translateY(-300%); font-size: var(--t-s);
}
.skip-link:focus-visible { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Hidden-until-revealed, only when JS runs and motion is allowed. Hero intro elements
   ([data-intro]) stay visible before JS so the LCP paints early; engine.js hides them
   the moment it boots and plays the intro. */
.motion [data-split]:not([data-intro]), .motion [data-reveal]:not([data-intro]) { visibility: hidden; }
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Page-transition curtain. GSAP owns the panel's transform; no CSS transform here. */
#curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; visibility: hidden; overflow: hidden; }
html.transition-in #curtain { visibility: visible; } /* the next page arrives covered; engine.js lifts it */
.curtain-panel { position: absolute; inset: 0; background: var(--c-night); }
.curtain-panel::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: #7CD3AE; opacity: 0.9; box-shadow: 0 0 18px 2px rgb(124 211 174 / 0.55);
}
/* While the curtain covers the screen, a record travels its line: the transition is the system posting you to the next page. */
.curtain-panel::before {
  content: ''; position: absolute; top: 50%; left: 0; width: 42px; height: 3px; margin-top: -1.5px;
  background: #7CD3AE; border-radius: 2px; box-shadow: 0 0 14px 1px rgb(124 211 174 / 0.5);
  animation: curtain-pulse 0.9s linear infinite;
}
@keyframes curtain-pulse {
  from { translate: -60px 0; }
  to { translate: 100vw 0; }
}
@media (prefers-reduced-motion: reduce) { .curtain-panel::before { display: none; } }

/* The pulse that rides the spine (positioned by engine.js; decorative) */
#spine-pulse {
  position: fixed; left: -100px; top: 38vh; z-index: var(--z-pulse);
  width: 7px; height: 7px; border-radius: 50%; margin-left: -3px;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgb(14 114 86 / 0.14);
  pointer-events: none; opacity: 0;
}
html.motion.js #spine-pulse { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #spine-pulse { display: none; } }

/* ---------- Type voices ---------- */

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--c-muted);
}
/* Captions are sentences: set them in the mono face without capitals, so labels stay the only uppercase text. */
figcaption.mono { text-transform: none; letter-spacing: 0.01em; line-height: 1.5; }
.t-mega { font-size: var(--t-mega); line-height: 1.05; letter-spacing: -0.026em; font-weight: 500; margin-left: -0.04em; }
.t-xl { font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; margin-left: -0.03em; }
.t-l { font-size: var(--t-l); line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; }
.eyebrow { margin-bottom: 1.25rem; color: var(--c-accent); }
.lead { font-size: var(--t-m); line-height: 1.5; color: var(--c-muted); max-width: 34ch; margin-top: 1.5rem; }
.lead-s { font-size: var(--t-body); color: var(--c-muted); max-width: 52ch; margin-top: 1.25rem; }
.statement { font-size: var(--t-l); line-height: 1.3; letter-spacing: -0.01em; font-weight: 400; max-width: 26em; margin-top: 2rem; }

/* ---------- Buttons and links ---------- */

.btn {
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: var(--radius);
  background: var(--c-ink); color: #F3F2EE;
  font-weight: 500; font-size: var(--t-s); line-height: 1;
  transition: color 0.3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover .btn-arrow { translate: 4px 0; }
}
.btn:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: scale(0.98); }
.btn-arrow { width: 1em; height: 1em; flex: none; transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.btn-ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn-ghost::before { background: var(--c-ink); }
@media (hover: hover) { .btn-ghost:hover { color: var(--c-bg); } }
.btn-ghost:focus-visible { color: var(--c-bg); }

.btn-light { background: #F3F2EE; color: #142420; }
.btn-light::before { background: #7CD3AE; }
@media (hover: hover) { .btn-light:hover { color: #142420; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* A hero that uses the whole desktop frame: copy left, one purposeful figure right. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-grid > figure { margin: 0; }
@media (max-width: 1099px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; color: var(--c-accent);
  background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding-bottom: 2px;
}
@media (hover: hover) { .arrow-link:hover { background-size: 100% 1px; } .arrow-link:hover .btn-arrow { translate: 4px 0; } }
.arrow-link:focus-visible { background-size: 100% 1px; }

/* Inline links in running text keep an underline at rest */
.link { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--c-line-strong); transition: text-decoration-color 0.25s; }
@media (hover: hover) { .link:hover { text-decoration-color: var(--c-accent); } }

/* ---------- Layout: page, sections, the spine ---------- */

.page { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.sec { background: var(--c-bg); color: var(--c-ink); padding-block: clamp(2.75rem, 4.5vw, 4.25rem); }
.sec.hero { padding-block: clamp(2.25rem, 4vw, 3.5rem) clamp(2.75rem, 4.5vw, 3.75rem); }
.sec + .sec { padding-top: clamp(2.5rem, 4vw, 3.75rem); }

/* The spine: a grid of [meta aside | content]; the line sits between them. */
.spined { position: relative; display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); }
.spined::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + var(--aside));
  width: 1px; background: var(--c-line-strong);
}
.sec-meta {
  display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end;
  padding-right: var(--spine-gap); padding-top: 0.5rem;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--c-muted); text-align: right;
}
.sec-body { min-width: 0; padding-left: var(--spine-gap); }

/* A node heading: the dot sits on the spine. When the record (the travelling pulse) passes it,
   engine.js sets .is-posted: the dot fills with the accent and emits one quiet ring. */
.node { position: relative; }
.node::before {
  content: ''; position: absolute; top: 0.55em; left: calc(-1 * var(--spine-gap));
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-bg); border: 2px solid var(--c-ink);
  transform: translate(-4px, 0);
  transition: background-color 0.35s, border-color 0.35s;
}
.node::after {
  content: ''; position: absolute; top: 0.55em; left: calc(-1 * var(--spine-gap));
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--c-accent);
  transform: translate(-4px, 0);
  opacity: 0; pointer-events: none;
}
.node.is-posted::before { background: var(--c-accent); border-color: var(--c-accent); }
html.motion .node.is-posted::after { animation: node-post 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes node-post {
  from { opacity: 0.9; scale: 1; }
  to { opacity: 0; scale: 2.6; }
}
.stations li .station-dot { transition: background-color 0.35s, box-shadow 0.35s; }
.stations li.is-posted .station-dot { box-shadow: 0 0 0 4px rgb(14 114 86 / 0.16); }
@media (prefers-reduced-motion: reduce) {
  .node::after { display: none; }
}

@media (max-width: 1099px) {
  .spined { grid-template-columns: minmax(0, 1fr); }
  .spined::before { left: var(--gutter); }
  .sec-meta { display: none; }
  .sec-body { padding-left: var(--spine-gap); }
}

/* ---------- Ledger lists (numbered rows on hairlines) ---------- */

.ledger { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 46rem; }
.ledger li {
  display: grid; grid-template-columns: 3rem minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.5rem 1.25rem; align-items: baseline;
  padding-block: 1.1rem; border-top: 1px solid var(--c-line);
}
.ledger li:last-child { border-bottom: 1px solid var(--c-line); }
.ledger .ledger-no { color: var(--c-accent); }
.ledger h3 { font-size: var(--t-body); font-weight: 500; }
.ledger p { color: var(--c-muted); font-size: var(--t-s); }
.ledger li:not(:has(.ledger-no)) { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
.ledger-3 li { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
@media (max-width: 699px) {
  .ledger li, .ledger-3 li { grid-template-columns: 3rem minmax(0, 1fr); }
  .ledger li:not(:has(.ledger-no)), .ledger-3 li { grid-template-columns: minmax(0, 1fr); }
  .ledger p { grid-column: -2; }
  .ledger li:has(.ledger-no) p { grid-column: 2; }
}

/* ---------- Navbar ---------- */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgb(243 242 238 / 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
/* A backdrop filter makes the header the box a fixed child is placed in, which would clip the full-screen phone menu. */
.site-header:has(.nav-menu[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-bg); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { width: 148px; height: auto; }
.wordmark img { transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .wordmark:hover img { translate: 0 -2px; } }
.ft-logo { transition: opacity 0.3s, translate 0.3s; }
@media (hover: hover) { .ft-logo:hover { opacity: 0.8; translate: 2px 0; } }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-size: var(--t-s); font-weight: 500; }
.nav-links > a, .nav-products-button {
  color: var(--c-ink); padding: 0.4rem 0; font-weight: 500; font-size: var(--t-s);
  background: linear-gradient(var(--c-accent) 0 0) left bottom / 0% 2px no-repeat;
  transition: background-size 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (hover: hover) { .nav-links > a:hover, .nav-products-button:hover { background-size: 100% 2px; } }
.nav-links > a:focus-visible, .nav-products-button:focus-visible { background-size: 100% 2px; }
.nav-links > a[aria-current='page'], .nav-products-button.is-current { background-size: 100% 2px; }
.nav-links > a:not([href]) { color: var(--c-muted); cursor: default; }

.nav-cta.nav-cta {
  background: var(--c-ink); color: #F3F2EE; padding: 0.6rem 1.1rem; border-radius: var(--radius);
  transition: background-color 0.3s;
}
@media (hover: hover) { .nav-cta.nav-cta:hover { background-color: var(--c-accent); } }
.nav-cta.nav-cta:focus-visible { background-color: var(--c-accent); }
.nav-cta[aria-current='page'] { background-color: var(--c-accent); }
@media (hover: hover) { .nav-cta.nav-cta[aria-current='page']:hover { background-color: #0A5741; } }

.nav-chevron { display: inline-block; width: 11px; height: 11px; margin-left: 0.35em; vertical-align: -1px; transition: rotate 0.3s; }
.nav-products { position: relative; }
.nav-products-button { display: inline-flex; align-items: center; }
.nav-products.is-open .nav-chevron { rotate: 180deg; }
.nav-products-panel {
  position: absolute; left: -1rem; top: calc(100% + 0.9rem);
  min-width: 21rem; padding: 1.1rem 1.25rem 1.25rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 4px;
  box-shadow: 0 18px 50px -18px rgb(20 36 32 / 0.28);
  display: none; opacity: 0; translate: 0 -6px;
  transition: opacity 0.25s, translate 0.25s, display 0.25s allow-discrete;
}
.nav-products.is-open .nav-products-panel { display: block; opacity: 1; translate: 0 0; }
@starting-style { .nav-products.is-open .nav-products-panel { opacity: 0; translate: 0 -6px; } }
.nav-products-title { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); margin-bottom: 0.75rem; }
.nav-products-grid { display: grid; gap: 0.25rem; }

.nav-product {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 0.75rem; align-items: center;
  padding: 0.55rem 0.6rem; border-radius: var(--radius);
  transition: background-color 0.25s;
}
.nav-product img { grid-row: 1 / 3; width: 28px; height: 28px; }
.nav-product:not(:has(img)) { grid-template-columns: minmax(0, 1fr); padding-left: calc(2rem + 0.75rem + 0.6rem); }
.nav-product-name { font-weight: 500; font-size: var(--t-s); line-height: 1.3; }
.nav-product-descriptor { font-size: var(--t-xs); color: var(--c-muted); line-height: 1.3; }
a.nav-product:hover, a.nav-product:focus-visible { background-color: rgb(14 114 86 / 0.07); }
span.nav-product .nav-product-name { color: var(--c-muted); }

/* Phone menu */
.nav-menu { display: none; }
/* Some engines still lay out a closed details' content (phantom 11px link boxes): hide it outright. */
.nav-menu:not([open]) .nav-menu-panel { display: none; }
@media (max-width: 699px) {
  .nav-links { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu-button { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: var(--radius); }
  .nav-menu-button::-webkit-details-marker { display: none; }
  .nav-menu-button svg { width: 24px; height: 24px; }
  .nav-menu-close { display: none; }
  .nav-menu[open] .nav-menu-open { display: none; }
  .nav-menu[open] .nav-menu-close { display: block; }
  .nav-menu-panel {
    position: fixed; left: 0; right: 0; top: 4.25rem; bottom: 0; z-index: var(--z-header);
    background: var(--c-bg); border-top: 1px solid var(--c-line);
    padding: 1.25rem var(--gutter) 2rem; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.25rem;
  }
  .nav-menu-panel > a {
    padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--c-line);
    font-size: var(--t-m); font-weight: 500;
  }
  .nav-menu-panel > a[aria-current='page'] { color: var(--c-accent); }
  .nav-menu-panel > a:not([href]) { color: var(--c-muted); }
  .nav-menu-panel .nav-cta { margin-top: 1.25rem; text-align: center; border-bottom: 0; border-radius: var(--radius); background: var(--c-ink); color: #F3F2EE; }
  .nav-menu-products summary {
    list-style: none; cursor: pointer; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--c-line);
    font-size: var(--t-m); font-weight: 500; display: flex; align-items: center; justify-content: space-between;
  }
  .nav-menu-products summary::-webkit-details-marker { display: none; }
  .nav-menu-products summary.is-current { color: var(--c-accent); }
  .nav-menu-products[open] summary .nav-chevron { rotate: 180deg; }
  .nav-menu-products .nav-product { padding-left: 1rem; }
}

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

.journey-wrap { margin-top: clamp(3rem, 7vw, 5.5rem); }
.journey-title { margin-bottom: 1.25rem; }
.journey {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  position: relative; display: flex; justify-content: space-between; gap: 0.5rem;
  max-width: 58rem;
}
.journey::before {
  content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; height: 1px;
  background: var(--c-line-strong);
}
.journey li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  min-width: 0; flex: 1;
}
.journey li svg {
  width: 3rem; height: 3rem; padding: 0.55rem; border-radius: 50%;
  background: var(--c-bg); border: 1px solid var(--c-line-strong);
  stroke-width: 3.2; color: var(--c-ink);
}
.journey li span { font-size: var(--t-xs); font-family: var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.journey-dot {
  position: absolute; left: 0; top: 1.5rem; width: 7px; height: 7px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px rgb(14 114 86 / 0.14);
}
@media (max-width: 699px) {
  .journey { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.5rem; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .journey li { flex: 0 0 5.2rem; scroll-snap-align: start; }
}

/* ---------- Platform module map ---------- */

.platform-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: 2.5rem; }
.platform-copy { display: grid; gap: 1.25rem; max-width: 36ch; }
.platform-copy p { color: var(--c-muted); }
.module-map { margin: 0; }
.module-map svg { width: 100%; height: auto; font-family: var(--f-text); }
.map-wires { color: var(--c-line-strong); }
.map-core { fill: var(--c-ink); }
.map-ring { fill: none; stroke: var(--c-accent); stroke-width: 1.5; }
.map-core-label { fill: #F3F2EE; font-size: 17px; font-weight: 500; }
.map-core-sub { fill: #A9BBB3; font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.map-node circle { fill: var(--c-bg); stroke: var(--c-ink); stroke-width: 2; }
/* Halo in the ground colour so the spokes never run through a label. */
.map-node text { fill: var(--c-ink); font-size: 16px; font-weight: 500; paint-order: stroke; stroke: var(--c-bg); stroke-width: 6px; stroke-linejoin: round; }
/* Record types: one variable per element, set from the logo's four colours. */
[data-rec='sales'] { --rec: var(--c-sales); }
[data-rec='stock'] { --rec: var(--c-stock); }
[data-rec='accounts'] { --rec: var(--c-accounts); }
[data-rec='alerts'] { --rec: var(--c-alerts); }
.map-node[data-rec] circle { fill: var(--rec); stroke: var(--rec); }
.journey li[data-rec] svg, .intg-list li[data-rec] svg {
  border-color: var(--rec); background: color-mix(in srgb, var(--rec) 16%, var(--c-bg));
}
.rec-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 0.75rem; font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.rec-key span { display: inline-flex; align-items: center; gap: 0.5em; }
.rec-key span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
.map-node .map-sub { fill: var(--c-muted); font-size: 11.5px; font-family: var(--f-mono); letter-spacing: 0.03em; }
@media (max-width: 1099px) {
  .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-copy { max-width: 52ch; }
}

/* ---------- Offline signature stage ---------- */

.sec-night { position: relative; }
.off-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4.5rem); margin-top: 3rem; }
.off-stage { position: sticky; top: clamp(5rem, 14vh, 8rem); align-self: start; }
.off-diagram { width: 100%; height: auto; }
.off-pos rect { fill: none; stroke: var(--c-ink); stroke-width: 1.5; }
.off-label { fill: var(--c-ink); font-size: 17px; font-weight: 500; font-family: var(--f-text); }
.off-sub { fill: var(--c-muted); font-size: 11.5px; font-family: var(--f-mono); letter-spacing: 0.04em; }
.off-cloud path { fill: none; stroke: var(--c-ink); stroke-width: 1.5; }
.off-linkline path { stroke: var(--c-accent); stroke-width: 2; }
.off-cut path { stroke: #F0907F; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.off-queue rect { fill: var(--c-surface); stroke: var(--c-accent); stroke-width: 1.2; opacity: 0; }
.off-pulses rect { fill: var(--c-accent); opacity: 0; }
.off-status { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; color: var(--c-ink); font-size: var(--t-xs); }
.off-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-live); flex: none; transition: background-color 0.4s; }
[data-state='1'] .off-dot { background: #F0907F; }
.off-chapters { display: grid; gap: clamp(2rem, 7vh, 4rem); padding-block: clamp(0.5rem, 2vh, 1.5rem); }
.off-ch h3 { font-size: var(--t-l); margin: 0.4rem 0 0.6rem; }
.off-ch p { color: var(--c-muted); max-width: 34ch; }
.off-ch-no { color: var(--c-accent); }
.off-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem;
  margin: 3.5rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--c-line);
}
@media (max-width: 1099px) {
  .off-layout { grid-template-columns: minmax(0, 1fr); }
  .off-stage { position: static; }
  .off-chapters { gap: 2rem; padding-block: 0; }
}
/* Without JS or with reduced motion the final, synced state shows and all chapters read in order. */
html:not(.motion) .off-queue rect, html:not(.motion) .off-pulses rect { opacity: 0; }
html:not(.motion) .off-cut path { opacity: 0; }

/* ---------- Stores (multi-location) ---------- */

.stores { margin: 2.5rem 0 0; max-width: 52rem; }
.stores svg { width: 100%; height: auto; }
.store-wires { color: var(--c-line-strong); }
.store-node circle, .store-total circle { fill: var(--c-bg); stroke: var(--c-ink); stroke-width: 2; }
.store-node text { fill: var(--c-muted); font-size: 13px; font-family: var(--f-mono); }
.store-node .store-amt { fill: var(--c-ink); font-size: 16px; font-weight: 500; font-family: var(--f-text); }
.store-total text { fill: var(--c-muted); font-size: 13px; font-family: var(--f-mono); }
.store-total .store-total-amt { fill: var(--c-ink); font-size: 26px; font-weight: 500; font-family: var(--f-text); }
.stores figcaption { margin-top: 0.75rem; }

/* ---------- Permission table ---------- */

.perm-wrap { margin-top: 2.5rem; overflow-x: auto; }
.perm { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: var(--t-s); }
.perm th, .perm td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-top: 1px solid var(--c-line); }
.perm thead th { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); font-weight: 400; border-top: 0; }
.perm tbody th { font-weight: 500; }
.perm td.y { color: var(--c-ink); }
.perm td.n { color: var(--c-muted); }
.perm tbody tr:last-child th, .perm tbody tr:last-child td { border-bottom: 1px solid var(--c-line); }

/* ---------- Migration stations ---------- */

.stations { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; max-width: 46rem; }
.stations::before { content: ''; position: absolute; left: calc(-1 * var(--spine-gap)); top: 0.8rem; bottom: 0.8rem; width: 0; }
.stations li { position: relative; padding: 1.1rem 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 5rem minmax(0, 13rem) minmax(0, 1fr); gap: 0.4rem 1.25rem; align-items: baseline; }
.stations li:last-child { border-bottom: 1px solid var(--c-line); }
.station-dot { position: absolute; left: calc(-1 * var(--spine-gap)); top: 1.7rem; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--c-accent); }
.station-no { color: var(--c-accent); }
.stations h3 { font-size: var(--t-body); font-weight: 500; }
.stations li > p:last-child { color: var(--c-muted); font-size: var(--t-s); }
@media (max-width: 699px) {
  .stations li { grid-template-columns: 5rem minmax(0, 1fr); }
  .stations li > p:last-child { grid-column: 2; }
}

/* ---------- Product family index ---------- */

.family { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.family-row {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem; align-items: center;
  padding: 1.35rem 0; border-top: 1px solid var(--c-line);
}
.family li:last-child .family-row { border-bottom: 1px solid var(--c-line); }
.family-name { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--t-l); font-weight: 500; letter-spacing: -0.01em; }
.family-name img { width: 30px; height: 30px; }
.family-desc { color: var(--c-muted); font-size: var(--t-s); }
.family-traits { font-size: var(--t-xs); }
a.family-row { transition: color 0.3s; }
a.family-row::before {
  content: ''; position: absolute; left: calc(-1 * var(--spine-gap)); top: 50%; height: 1px;
  width: var(--spine-gap); background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
a.family-row .btn-arrow { width: 1.1em; height: 1.1em; justify-self: end; color: var(--c-accent); transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  a.family-row:hover::before { transform: scaleX(1); }
  a.family-row:hover .family-name { color: var(--c-accent); }
  a.family-row:hover .btn-arrow { translate: 4px 0; }
}
a.family-row:focus-visible::before { transform: scaleX(1); }
a.family-row:focus-visible .family-name { color: var(--c-accent); }
.foundation { margin-top: 2rem; }
@media (max-width: 1099px) {
  .family-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'name side' 'desc side' 'traits side';
    row-gap: 0.3rem;
  }
  .family-name { grid-area: name; }
  .family-desc { grid-area: desc; }
  .family-traits { grid-area: traits; }
  a.family-row .btn-arrow { grid-area: side; align-self: center; }
}

/* ---------- Support ---------- */

.support-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.support-photo { margin: 0; overflow: clip; border-radius: 4px; }
.support-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1099px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Homepage: section heads that use the width ---------- */

.sec-head-split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end;
}
.sec-head-split .lead-s { margin-top: 0; }
@media (max-width: 1099px) {
  .sec-head-split { grid-template-columns: minmax(0, 1fr); }
  .sec-head-split .lead-s { margin-top: 0.25rem; }
}

/* ---------- Software windows (real screens) ---------- */

.win {
  position: relative; background: #fff; border-radius: 6px; overflow: clip;
  box-shadow: 0 0 0 1px rgb(20 36 32 / 0.12), 0 28px 60px -30px rgb(20 36 32 / 0.45);
}
.win img { display: block; width: 100%; height: auto; }
.win-bar {
  display: flex; align-items: center; gap: 0.75em; height: 30px; padding: 0 0.85rem;
  background: #ECEEEA; border-bottom: 1px solid rgb(20 36 32 / 0.08);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #56625D; white-space: nowrap; overflow: hidden;
}
.win-dots { flex: none; width: 8px; height: 8px; margin-right: 26px; border-radius: 50%; background: #CBD2CC; box-shadow: 13px 0 0 #CBD2CC, 26px 0 0 #CBD2CC; }

/* ---------- Homepage hero: copy beside the platform ---------- */

.hh-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); align-items: start;
}
.hh-copy .lead { margin-top: 0; max-width: 34ch; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem); }
.hh-copy .cta-row { margin-top: 1.75rem; }
.hh-facts { list-style: none; padding: 0; margin: 2.25rem 0 0; border-top: 1px solid var(--c-line); }
.hh-facts li { display: grid; gap: 0.1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--c-line); }
.hh-facts b { font-weight: 500; }
.hh-facts span { font-size: var(--t-s); color: var(--c-muted); }

.hh-stage { margin: 0; }
.hh-frame { position: relative; aspect-ratio: 100 / 72; container-type: inline-size; }
.hh-frame .win-bar { height: 3.2cqi; padding: 0 1.2cqi; font-size: 1.25cqi; gap: 0.8cqi; }
.hh-frame .win-dots { width: 0.9cqi; height: 0.9cqi; margin-right: 3cqi; box-shadow: 1.5cqi 0 0 #CBD2CC, 3cqi 0 0 #CBD2CC; }
.hh-erp { position: absolute; left: 0; top: 0; width: 84%; }
.hh-pos { position: absolute; left: 8%; top: 50%; width: 58%; z-index: 1; }
.hh-phone { position: absolute; right: 0; top: 18%; width: 23%; z-index: 2; }
.hh-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
/* The hero wires carry a sale, so they post in the sales colour. */
.hh-wires path { fill: none; stroke: var(--c-sales); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; opacity: 0.6; }
.hh-dot { fill: var(--c-sales); visibility: hidden; }
.hh-ping { fill: none; stroke: var(--c-sales); stroke-width: 1.5; vector-effect: non-scaling-stroke; visibility: hidden; }
.hh-stage figcaption { margin-top: 1rem; text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 1099px) {
  /* Stacked: the software comes straight after the buttons, the facts follow it. */
  .hh-grid { grid-template-columns: minmax(0, 1fr); }
  .hh-copy { display: contents; }
  .hh-stage { order: 3; }
  .hh-facts { order: 4; margin-top: 0; }
  .hh-copy .cta-row { margin-top: 0; }
  .hh-copy .lead { max-width: 46ch; }
  .hh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
}
@media (max-width: 699px) { .hh-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Phone mockups (illustrations; includes/phones.php). Sized in container units. ---------- */

.phone { container-type: inline-size; }
.phone-body {
  aspect-ratio: 9 / 19.2; padding: 2.8cqi; border-radius: 14cqi; background: #0E1729;
  box-shadow: inset 0 0 0 0.5cqi #2A3750, 0 30px 60px -26px rgb(20 36 32 / 0.6);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 11.5cqi;
  display: flex; flex-direction: column; gap: 3.4cqi; padding: 0 5cqi;
  background: #F4F6FA; color: #142420; font-family: var(--f-text); font-size: 4.2cqi; line-height: 1.25;
}
.phone-screen p { text-wrap: nowrap; }
.ph-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 10cqi; padding: 0 2cqi; font-size: 3.6cqi; font-weight: 600; }
.ph-island { position: absolute; left: 50%; top: 2.6cqi; width: 26cqi; height: 6.6cqi; margin-left: -13cqi; border-radius: 4cqi; background: #0E1729; }
.ph-punch { position: absolute; left: 50%; top: 3cqi; width: 4.4cqi; height: 4.4cqi; margin-left: -2.2cqi; border-radius: 50%; background: #0E1729; }
.ph-bars { display: inline-flex; align-items: flex-end; gap: 0.8cqi; }
.ph-bars i { width: 1cqi; height: 1.6cqi; border-radius: 0.3cqi; background: #0B1F44; }
.ph-bars i:nth-child(2) { height: 2.4cqi; }
.ph-bars i:nth-child(3) { height: 3.2cqi; }
.ph-head { display: flex; justify-content: space-between; align-items: center; }
.ph-hello { font-size: 6.2cqi; font-weight: 600; letter-spacing: -0.02em; }
.ph-sub { font-size: 3.4cqi; color: #6B7280; }
.ph-avatar, .ph-bell { display: grid; place-items: center; width: 9cqi; height: 9cqi; border-radius: 50%; }
.ph-avatar { background: #0B1F44; color: #fff; }
.ph-avatar svg, .ph-bell svg { width: 5cqi; height: 5cqi; }
.ph-card { padding: 3.6cqi 4cqi; border-radius: 4cqi; background: #fff; box-shadow: 0 0.3cqi 0.9cqi rgb(11 31 68 / 0.06); }
.ph-label { font-size: 3.1cqi; color: #6B7280; }
.ph-today { background: #0B1F44; color: #fff; }
.ph-today .ph-label { color: #9FB0CC; }
.ph-big { margin-top: 0.6cqi; font-size: 8.4cqi; font-weight: 600; letter-spacing: -0.02em; }
.ph-up { font-size: 3.1cqi; color: #34D399; }
.ph-spark { width: 100%; height: 7cqi; margin-top: 1.6cqi; }
.ph-spark path { fill: none; stroke: #5B8CFF; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ph-stock { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqi; }
.ph-pair, .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqi; }
.ph-mid { margin-top: 0.6cqi; font-size: 4.8cqi; font-weight: 600; }
.ph-list { display: grid; gap: 2.2cqi; }
.ph-row { display: flex; justify-content: space-between; font-size: 3.4cqi; }
.ph-row small { margin-left: 1cqi; color: #8A99AD; font-size: 3cqi; }
.ph-row b { font-weight: 600; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: auto -5cqi 0; padding: 2.4cqi 0 4.5cqi; background: #fff; border-top: 1px solid #E5E7EB; }
.ph-tabs span { display: grid; justify-items: center; gap: 0.8cqi; font-size: 2.7cqi; color: #8A99AD; }
.ph-tabs svg { width: 5.4cqi; height: 5.4cqi; }
.ph-tabs .is-on { color: #1256F5; }
.ph-attend { display: flex; align-items: flex-start; gap: 3.6cqi; }
.ph-tile { display: grid; place-items: center; flex: none; width: 10cqi; height: 10cqi; border-radius: 2.8cqi; }
.ph-tile svg { width: 5.6cqi; height: 5.6cqi; }
.ph-round { border-radius: 50%; }
.ph-blue { background: #E8EEFE; color: #1256F5; }
.ph-red { background: #FBECE9; color: #D6452F; }
.ph-amber { background: #FEF5E6; color: #D08405; }
.ph-green { background: #E7F8F1; color: #0E8F64; }
.ph-time { font-size: 7cqi; font-weight: 600; letter-spacing: -0.01em; }
.ph-pill { display: inline-block; margin-top: 1cqi; padding: 0.8cqi 2.4cqi; border-radius: 99px; background: #E7F8F1; color: #0E8F64; font-size: 2.8cqi; font-weight: 600; }
.ph-action { display: grid; justify-items: center; gap: 1cqi; padding: 4cqi 2cqi; text-align: center; }
.ph-action b { font-size: 3.6cqi; font-weight: 600; }
.ph-action small, .ph-news small { font-size: 2.8cqi; color: #6B7280; }
.ph-section { display: flex; justify-content: space-between; align-items: baseline; font-size: 4cqi; font-weight: 600; }
.ph-section small { font-size: 3.1cqi; color: #1256F5; }
.ph-news { display: flex; align-items: center; gap: 3cqi; }
.ph-news b { display: block; font-size: 3.6cqi; font-weight: 600; }

/* ---------- Products: accents and illustrations (includes/product-visuals.php) ----------
   --pc is the product colour for text and fills (AA on paper and surface), --pc-soft its tint. Plain pixels with fluid
   widths, so the illustrations reflow on phones instead of shrinking. */
[data-product='trends'] { --pc: #285AC4; --pc-soft: #E5EBF7; }
[data-product='fresh'] { --pc: #146C43; --pc-soft: #E0EDE4; }
[data-product='connect'] { --pc: #2B59D8; --pc-soft: #E4E9F6; }
[data-product='beauty'] { --pc: #A34862; --pc-soft: #F2E5E9; }

.spec { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgb(20 36 32 / 0.4); color: var(--c-ink); font-size: 14px; overflow: hidden; }
.spec-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.spec-chip { display: inline-block; padding: 3px 7px; border-radius: var(--radius); background: var(--pc-soft); color: var(--pc); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.spec-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.spec-title { padding: 1rem 1rem 0; font-size: 1.05rem; font-weight: 500; }
.spec-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 0.8rem 1.25rem; margin: 0; padding: 0.9rem 1rem; }
.spec-fields dt { font-size: 12px; color: var(--c-muted); }
.spec-fields dd { margin: 0.15rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.spec-fields-row { grid-template-columns: repeat(2, minmax(0, 9rem)); border-top: 1px solid var(--c-line); }
.spec-history { list-style: none; margin: 0 1rem; padding: 0.4rem 0 0.9rem; border-top: 1px solid var(--c-line); }
.spec-history li { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; font-size: 13px; color: var(--c-muted); }
.spec-history li span:first-child { color: var(--c-ink); font-weight: 500; }
.spec-history li span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 0.55rem; border-radius: 50%; background: var(--pc); vertical-align: 0.08em; }

.spec-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 1rem 1rem 0.6rem; counter-reset: step; }
.spec-flow li { padding: 0.35rem 0.6rem; border: 1px solid var(--c-line-strong); border-radius: var(--radius); font-size: 13px; color: var(--c-muted); }
.spec-flow li.is-done { border-color: transparent; background: var(--pc-soft); color: var(--pc); }
.spec-flow li.is-now { border-color: var(--pc); background: var(--pc); color: #FFFFFF; }
.spec-side { padding: 0 1rem 0.9rem; font-family: var(--f-mono); font-size: 11px; color: var(--c-muted); }

.spec-slots { list-style: none; margin: 0; padding: 0 1rem; }
.spec-slots li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); }
.spec-slots li:last-child { border-bottom: 0; }
.spec-slots b { display: block; font-weight: 500; }
.spec-slots small { display: block; font-size: 12px; color: var(--c-muted); }
.spec-slots li.is-now { box-shadow: -1rem 0 0 -0.82rem var(--pc); }
.spec-slots li.is-done .spec-chip { background: var(--c-bg); color: var(--c-muted); }
.spec-slots li:not(.is-done):not(.is-now) .spec-chip { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line-strong); color: var(--c-muted); }

.spec-recipe table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-recipe th, .spec-recipe td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.spec-recipe th { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.spec-recipe th:not(:first-child), .spec-recipe td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.spec-recipe tfoot td { border-bottom: 0; font-weight: 500; color: var(--pc); }

/* Fresh: the F of the logo as a board of the platform's modules. Text colours pass AA on each crate. */
.spec-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: none; border: 0; box-shadow: none; }
.spec-shelf span { display: flex; align-items: flex-end; aspect-ratio: 1; padding: 0.8rem; border-radius: 18%; border: 1px dashed var(--c-line-strong); font-size: 14px; font-weight: 500; color: var(--c-muted); }
.spec-shelf .is-spine { border: 0; background: #2FA35B; color: #0E1F17; }
.spec-shelf .is-top { border: 0; background: #F6B60F; color: #2A1F02; }
.spec-shelf .is-mid { border: 0; background: #2E66D6; color: #FFFFFF; }

/* Every product page points to the one shared MykaPro price list (pricing.php) instead of repeating it. */
.pd-price { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; padding-block: 1.75rem; border-block: 1px solid var(--c-line); }
.pd-price .lead-s { margin-top: 0.6rem; }

/* ---------- Product tour (assets/js/home-tour.js) ---------- */

.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-top: 2.5rem; }
.tour-tabs { display: none; }
.tour-stage { display: grid; gap: 3rem; }
.tour.is-ready { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
.tour.is-ready .tour-tabs { display: flex; flex-direction: column; }
.tour.is-ready .tour-stage { display: block; }
.tour-tab {
  position: relative; display: grid; gap: 0.2rem; padding: 0.95rem 0 0.95rem 1.1rem;
  text-align: left; color: var(--c-muted); border-top: 1px solid var(--c-line); transition: color 0.3s;
}
.tour-tab:last-of-type { border-bottom: 1px solid var(--c-line); }
.tour-tab::before {
  content: ''; position: absolute; left: 0; top: 0.95rem; bottom: 0.95rem; width: 2px;
  background: var(--c-accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-tab[aria-selected='true'] { color: var(--c-ink); }
.tour-tab[aria-selected='true']::before { transform: scaleY(1); }
.tour-where { color: var(--c-accent); }
.tour-name { font-size: var(--t-m); font-weight: 500; line-height: 1.25; transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .tour-tab:hover { color: var(--c-ink); } .tour-tab:hover .tour-name { translate: 4px 0; } }
.tour-tab:active .tour-name { translate: 2px 0; }
.tour-note { margin-top: 1rem; }
.tour-panel { margin: 0; }
.tour-panel figcaption { margin-top: 1rem; max-width: 62ch; color: var(--c-muted); }
html.motion .tour.is-ready .tour-panel:not([hidden]) { animation: tour-in 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes tour-in { from { opacity: 0; translate: 0 12px; } }
@media (max-width: 1099px) {
  .tour.is-ready { grid-template-columns: minmax(0, 1fr); }
  .tour.is-ready .tour-tabs { flex-direction: row; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
  .tour-tab, .tour-tab:last-of-type { flex: none; padding: 0.6rem 0.9rem; border: 1px solid var(--c-line-strong); border-radius: var(--radius); }
  .tour-tab::before { display: none; }
  .tour-tab[aria-selected='true'] { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
  .tour-tab[aria-selected='true'] .tour-where { color: #A9BBB3; }
  .tour-name { font-size: var(--t-s); }
  .tour-note { display: none; }
}

/* ---------- The journey since 2013 (engine.js scrubs --p) ---------- */

.hist {
  --p: 1;
  position: relative; list-style: none; margin: clamp(2.5rem, 4vw, 3.25rem) 0 0; padding: 2.2rem 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.25rem);
}
.hist::before, .hist::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--c-line-strong); }
.hist::after { height: 2px; top: -0.5px; background: var(--c-accent); transform: scaleX(var(--p)); transform-origin: left; }
.hist li { position: relative; }
.hist li::before {
  content: ''; position: absolute; left: 0; top: calc(-2.2rem - 4.5px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-accent); border: 2px solid var(--c-accent); transition: background-color 0.35s, border-color 0.35s;
}
html.motion .hist li:not(.is-posted)::before { background: var(--c-bg); border-color: var(--c-ink); }
.hist-when { font-size: var(--t-l); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--c-accent); }
.hist h3 { margin-top: 0.7rem; font-size: var(--t-body); font-weight: 500; }
.hist li > p:last-child { margin-top: 0.35rem; color: var(--c-muted); font-size: var(--t-s); }
@media (max-width: 1099px) { .hist { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; } }
@media (max-width: 699px) {
  .hist { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 1.5rem; }
  .hist::before, .hist::after { top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .hist::after { width: 2px; left: -0.5px; transform: scaleY(var(--p)); transform-origin: top; }
  .hist li::before { top: 0.45rem; left: calc(-1.5rem - 4px); }
}

/* Where we work */
.presence {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--c-line);
}
.presence-map { margin: 0; }
.presence-map svg { width: 100%; height: auto; }
.pm-grid path { fill: none; stroke: var(--c-line-strong); stroke-width: 1; stroke-dasharray: 2 6; }
.pm-grid-labels text { fill: var(--c-muted); font-family: var(--f-mono); font-size: 11px; }
.pm-route { fill: none; stroke: var(--c-accent); stroke-width: 2; }
.pm-place circle { fill: var(--c-ink); }
.pm-place .pm-ring { fill: none; stroke: var(--c-accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
html.motion .pm-ring { animation: pm-breathe 2.8s ease-out infinite; }
@keyframes pm-breathe { from { opacity: 0.8; scale: 0.6; } to { opacity: 0; scale: 1.6; } }
.pm-place text { fill: var(--c-ink); font-family: var(--f-text); font-size: 19px; font-weight: 500; paint-order: stroke; stroke: var(--c-bg); stroke-width: 6px; stroke-linejoin: round; }
.pm-place .pm-sub { fill: var(--c-muted); font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.03em; }
.presence-copy p { margin-top: 1rem; max-width: 42ch; color: var(--c-muted); }
.presence-copy .arrow-link { margin-top: 1.5rem; }
@media (max-width: 1099px) { .presence { grid-template-columns: minmax(0, 1fr); } }

/* Ecosystem: the journey row sits under the map */
#ecosystem .platform-grid { margin-top: 2rem; }
#ecosystem .journey-wrap { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.75rem; border-top: 1px solid var(--c-line); }
#ecosystem .journey { max-width: none; }

/* ---------- Industries ---------- */

.ind { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 3vw, 2.75rem); margin-top: 2.5rem; align-items: start; }
.ind-feature {
  display: grid; gap: 1.1rem; padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.45s;
}
.ind-head { display: flex; align-items: center; gap: 0.9rem; }
.ind-head img { width: 44px; height: 44px; }
.ind-head b { display: block; font-size: var(--t-l); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.ind-head small { color: var(--c-muted); font-size: var(--t-s); }
.ind-text { max-width: 54ch; color: var(--c-muted); }
.ind-shot { display: block; overflow: clip; border-radius: 4px; box-shadow: 0 0 0 1px var(--c-line); }
.ind-shot img { width: 100%; transition: scale 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.ind-go { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; color: var(--c-accent); }
.ind-go .btn-arrow { transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .ind-feature:hover { border-color: var(--c-accent); box-shadow: 0 24px 50px -30px rgb(14 114 86 / 0.45); }
  .ind-feature:hover .ind-shot img { scale: 1.025; }
  .ind-feature:hover .ind-go .btn-arrow { translate: 4px 0; }
}
.ind-feature:focus-visible { border-color: var(--c-accent); }
.ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.ind-list li { border-bottom: 1px solid var(--c-line); }
/* Each product row links to its page: logo, name, descriptor and traits, with the arrow in the product's colour. */
.ind-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 1.35rem 0; color: inherit; text-decoration: none; }
.ind-row img { grid-row: 1 / span 3; width: 34px; height: 34px; }
.ind-row .btn-arrow { grid-column: 3; grid-row: 1 / span 3; align-self: center; color: var(--pc); transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.ind-name { font-size: var(--t-l); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; transition: color 0.3s; }
.ind-desc { color: var(--c-muted); font-size: var(--t-s); }
.ind-name, .ind-desc, .ind-traits { grid-column: 2; }
.ind-traits { font-size: var(--t-xs); }
@media (hover: hover) {
  .ind-row:hover .ind-name { color: var(--pc); }
  .ind-row:hover .btn-arrow { translate: 4px 0; }
}
.ind-row:focus-visible { outline-offset: 4px; }
@media (max-width: 1099px) { .ind { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mobile apps ---------- */

.mob { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mob-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.mob-apps h3 { font-weight: 500; }
.mob-apps p { margin-top: 0.4rem; color: var(--c-muted); font-size: var(--t-s); }
.mob-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; margin-top: 2rem; color: var(--c-ink); text-transform: none; letter-spacing: 0.02em; }
.mob-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accounts); box-shadow: 0 0 0 4px rgb(242 178 27 / 0.22); }
.mob-state { display: inline-flex; align-items: center; gap: 0.6rem; }
.mob-dot.is-live { background: var(--c-live); box-shadow: 0 0 0 4px rgb(31 138 91 / 0.18); } /* available, not pending */
.mob-phones { margin: 0; }
.mob-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: start; }
.mob-phone { grid-row: 1; grid-column: 1 / 6; }
.mob-phone-2 { grid-column: 6 / 11; margin: 3.5rem 0 0 clamp(0.75rem, 2vw, 1.75rem); }
.mob-phone > p { margin-top: 0.9rem; text-align: center; }
.mob-phones figcaption { margin-top: 1.5rem; text-align: center; text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 1099px) {
  .mob { grid-template-columns: minmax(0, 1fr); }
  .mob-phones { max-width: 36rem; }
}
@media (max-width: 699px) {
  .mob-apps { grid-template-columns: minmax(0, 1fr); }
  /* Two phones overlap instead of shrinking side by side, so each stays readable at 375 px. */
  .mob-phone { grid-column: 1 / 7; position: relative; z-index: 1; }
  .mob-phone-2 { grid-column: 5 / 11; margin: 4rem 0 0; }
}

/* ---------- Offline: the real POS header in both states ---------- */

.off-shot { margin: 1.5rem 0 0; }
.off-shot-frame { display: grid; max-width: 30rem; overflow: clip; border-radius: 6px; box-shadow: 0 0 0 1px var(--c-line-strong); }
.off-shot-frame img { grid-area: 1 / 1; width: 100%; transition: opacity 0.5s; }
.off-shot-off, [data-state='1'] .off-shot-on { opacity: 0; }
[data-state='1'] .off-shot-off { opacity: 1; }
.off-shot figcaption { margin-top: 0.6rem; text-transform: none; letter-spacing: 0.02em; }

/* ---------- Benefits and integrations ---------- */

.ben { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.5rem; }
.ben-block > p { margin-top: 0.6rem; max-width: 44ch; color: var(--c-muted); }
.ben .stores { margin-top: 1.25rem; max-width: none; }
.ben .perm-wrap { margin-top: 1.5rem; }
.ben .perm { max-width: none; }
.intg { margin-top: clamp(2.5rem, 5vw, 3.75rem); padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.intg-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 1.4rem 0 0; padding: 0; }
.intg-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.intg-list svg { flex: none; width: 2.75rem; height: 2.75rem; padding: 0.35rem; border: 1px solid var(--c-line-strong); border-radius: 50%; stroke-width: 3.2; color: var(--c-ink); }
.intg-list span { font-size: var(--t-s); color: var(--c-muted); }
.intg-list b { display: block; font-size: var(--t-body); font-weight: 500; color: var(--c-ink); }
@media (max-width: 1099px) { .ben { grid-template-columns: minmax(0, 1fr); } .intg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .intg-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Go-live steps ---------- */

.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--c-line-strong); }
.steps li { position: relative; display: grid; gap: 0.2rem; }
.steps li::before { content: ''; position: absolute; left: 0; top: calc(-1.4rem - 5px); width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); }
.steps .mono { color: var(--c-accent); }
.steps b { font-weight: 500; }
.steps small { color: var(--c-muted); font-size: var(--t-s); }
/* Phones: the rail turns vertical so each dot sits beside its own step. */
@media (max-width: 699px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 0 0 0 1.4rem; border-top: 0; border-left: 1px solid var(--c-line-strong); }
  .steps li::before { top: 0.3em; left: calc(-1.4rem - 5px); }
}

/* ---------- Homepage close: demo, conversation, partnership ---------- */

.start-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.start-routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.start-routes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--c-line); }
.start-routes .mono, .start-routes b { grid-column: 1; }
.start-routes b { font-size: var(--t-m); font-weight: 500; transition: color 0.3s; }
.start-routes .btn-arrow { grid-column: 2; grid-row: 1 / 3; width: 1.2em; height: 1.2em; color: var(--c-accent); transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .start-routes a:hover b { color: var(--c-accent); } .start-routes a:hover .btn-arrow { translate: 5px 0; } }
.start-routes a:focus-visible b { color: var(--c-accent); }
@media (max-width: 1099px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }

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

.footer { background: var(--c-footer); color: #F3F2EE; }
.footer[data-tone='night'] { background: var(--c-bg); color: var(--c-ink); }
.ft-next { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.ft-next .node::before { background: var(--c-bg); border-color: var(--c-ink); }
.ft-benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; margin: 3rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--c-line); }
.ft-next .btn { margin-top: 2rem; }

.ft-main {
  display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--c-line);
}
.ft-brand p { color: var(--c-muted); font-size: var(--t-s); max-width: 34ch; margin-top: 1.25rem; }
.ft-logo { display: inline-flex; align-items: center; gap: 0.9rem; }
.ft-logo span { display: grid; line-height: 1.35; }
.ft-logo b { font-weight: 500; }
.ft-logo small { color: var(--c-muted); font-size: var(--t-xs); }
.ft-social { list-style: none; display: flex; gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; }
.ft-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-muted);
}
.ft-social svg { width: 17px; height: 17px; }
.ft-col h3 { font-weight: 400; margin-bottom: 1rem; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: var(--t-s); }
.ft-col a { display: inline-block; padding-block: 4px; color: #D5DDD8; transition: color 0.25s; }
@media (hover: hover) { .ft-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; } }

.ft-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--c-line);
  text-transform: none; letter-spacing: 0.02em;
}
.ft-made { display: flex; gap: 2rem; }
.ft-made span { display: inline-flex; align-items: center; gap: 0.5em; }
.flag { width: 20px; height: auto; }
@media (max-width: 1099px) { .ft-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .ft-main { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ft-made { flex-direction: column; gap: 0.5rem; }
  .ft-made span:first-child { white-space: nowrap; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
