/* Plentier Systems — site styles */

/* Geist (variable, 400–600) and Geist Mono 500, self-hosted latin subsets. SIL Open Font License. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  /* optional, not swap: the font is preloaded and cached for a year, so it is nearly always ready
     at first paint; if it isn't, the page keeps the fallback instead of shifting (CLS) mid-load. */
  font-display: optional;
}
/* Arial (and its metric twins Liberation Sans / Arimo) resized to Geist's metrics. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Roboto");
  size-adjust: 105.4%;
  ascent-override: 95.35%;
  descent-override: 27.99%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #15171c;
  --ink-2: #4b505b;
  --ink-3: #6b707b;
  --line: #e6e3dc;
  --line-strong: #d6d2c8;
  --accent: #dd6531;
  --accent-strong: #b9481a;
  --accent-button: #c4521d;      /* white text passes WCAG AA (4.6:1) */
  --accent-button-hover: #a8431a;
  --accent-soft: #fbeee7;
  --dark: #121419;
  --dark-2: #1c1f26;
  --dark-line: #2c3039;
  --dark-ink: #f4f2ee;
  --dark-ink-2: #a9adb6;

  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Spacing scale (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout rhythm */
  --section: clamp(72px, 9vw, 120px);      /* standard section padding */
  --section-sm: clamp(56px, 7vw, 88px);    /* compact sections, hero bottoms, footer top */
  --page-top: clamp(16px, 2.5vw, 32px);    /* gap between header and first content */
  --head-gap: clamp(40px, 5vw, 56px);      /* section heading to its content */
  --layout-gap: clamp(40px, 6vw, 80px);    /* gap between two-column layouts */
  --grid-gap: var(--space-5);              /* gap between cards */
  --card-pad: clamp(24px, 2.5vw, 32px);    /* inner padding of cards */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(21 23 28 / 4%), 0 8px 24px -12px rgb(21 23 28 / 12%);
  --shadow-lg: 0 2px 4px rgb(21 23 28 / 4%), 0 24px 48px -24px rgb(21 23 28 / 22%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

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

html {
  font-size: 96.875%; /* 15.5px root: every rem-based size scales from here */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }
/* Two adjacent sections on the same background shouldn't stack their padding. */
.section:not(.section--surface, .section--dark) + .cta-section,
.page-hero + .section--tight { padding-top: 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--dark-ink); }

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
  margin-bottom: var(--head-gap);
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--space-7); }
}
.section-head p { color: var(--ink-2); font-size: 1.25rem; line-height: 1.55; }
.section--dark .section-head p { color: var(--dark-ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--accent); }

.lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink-2); line-height: 1.5; }

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

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1.0625rem/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--accent { --btn-bg: var(--accent-button); }
.btn--accent:hover { --btn-bg: var(--accent-button-hover); }
.btn--dark:hover { --btn-bg: #2a2e37; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost,
.cta .btn--ghost { --btn-fg: var(--dark-ink); border-color: var(--dark-line); }
.section--dark .btn--ghost:hover,
.cta .btn--ghost:hover { border-color: var(--dark-ink); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 246 / 85%);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand img { width: 168px; height: auto; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font: 500 1.0625rem/1.2 var(--font);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--ink); }
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.nav__link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__item--menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 660px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.menu__link {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s;
}
.menu__link:hover, .menu__link[aria-current="page"] { background: var(--surface-2); }
.menu__link .icon-tile { width: 40px; height: 40px; }
.menu__text strong { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.menu__text small { display: block; margin-top: 2px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-3); }
.menu__all {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 1rem;
  font-weight: 500;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.icon-tile svg { width: 18px; height: 18px; }
.icon-tile--lg { width: 48px; height: 48px; border-radius: 12px; }
.icon-tile--lg svg { width: 22px; height: 22px; }

.header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-login { display: none; font-weight: 500; color: var(--ink-2); }
.header-login:hover { color: var(--ink); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  padding: 16px var(--gutter) 32px;
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__group { padding-block: 8px; border-bottom: 1px solid var(--line); }
.mobile-nav__label {
  display: block;
  padding: 12px 0 4px;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mobile-nav a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 1.25rem;
  font-weight: 500;
}
.mobile-nav a[aria-current="page"] { color: var(--accent-strong); }
.mobile-nav a svg { width: 18px; height: 18px; color: var(--ink-3); }
.mobile-nav .btn { margin-top: 24px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 10px 18px; font-size: 1rem; }
  .header-login { display: inline-block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

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

.hero {
  position: relative;
  padding-block: var(--page-top) var(--section-sm);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.hero__grid {
  display: grid;
  gap: var(--layout-gap);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.3fr 0.7fr; }
}
.hero__copy { display: grid; gap: var(--space-5); }
.hero__copy h1 { font-size: clamp(2.75rem, 5vw, 4.25rem); }
.hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__copy .lead { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.pill b {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-2);
  color: var(--ink-3);
  font-size: 1rem;
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--accent); }

.hero__media { position: relative; }
.hero__media picture img,
.hero__media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 959px) {
  .hero__media picture img,
  .hero__media > img { aspect-ratio: 4 / 3; }
}
.float-card {
  position: absolute;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.float-card--bl { left: -16px; bottom: 32px; }
.float-card--tr { right: -16px; top: 32px; }
@media (max-width: 600px) {
  .float-card--bl { left: 12px; bottom: 12px; }
  .float-card--tr { display: none; }
}
.float-card strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.float-card span { font-size: 0.9375rem; color: var(--ink-3); }
.float-card__row { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 500; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2f9e5b;
  box-shadow: 0 0 0 4px rgb(47 158 91 / 18%);
}

/* ---------- Logo strip ---------- */

.logos { padding-block: var(--space-7); border-block: 1px solid var(--line); background: var(--surface); }
.logos__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .logos__inner { grid-template-columns: 200px 1fr; } }
.logos__label { font-size: 1rem; color: var(--ink-3); line-height: 1.5; }
.logos__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 700px) { .logos__list { grid-template-columns: repeat(5, 1fr); } }
.logos__list a,
.logos__list span { display: grid; place-items: center; height: 48px; }
.logos__list img {
  max-height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.25s, opacity 0.25s;
}
.logos__list a:hover img,
.logos__list span:hover img { filter: none; opacity: 1; }

/* ---------- Cards / services ---------- */

.grid { display: grid; gap: var(--grid-gap); }
@media (min-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
a.card:hover,
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .link-arrow { margin-top: auto; padding-top: var(--space-2); }

.card--dark {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--dark-ink);
}
.card--dark p { color: var(--dark-ink-2); }
.card--dark .link-arrow { color: var(--dark-ink); }
.card--dark .icon-tile { background: rgb(221 101 49 / 18%); color: var(--accent); }

.service-card { padding: 0; overflow: hidden; gap: 0; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--card-pad); }

.num {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--dark-line);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) 0 0;
}
.stats dt { order: 2; color: var(--dark-ink-2); font-size: 1.0625rem; }
.stats dd {
  order: 1;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats:not(.section--dark *) { border-top-color: var(--line); }
.section:not(.section--dark) .stats dt { color: var(--ink-3); }

/* ---------- Process ---------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--card-pad) var(--space-5) var(--card-pad) 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent-strong);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.step p { color: var(--ink-2); font-size: 1.0625rem; }
.section--dark .step { border-top-color: var(--dark-line); }
.section--dark .step p { color: var(--dark-ink-2); }
.section--dark .step::before { color: var(--accent); }

/* ---------- Split / feature ---------- */

.split {
  display: grid;
  gap: var(--layout-gap);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media img {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  object-fit: cover;
}
.split__copy { display: grid; gap: var(--space-5); }

.checklist { display: grid; gap: var(--space-4); }
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
}
.checklist svg {
  width: 24px; height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.section--dark .checklist li { color: var(--dark-ink-2); }
.section--dark .checklist svg { background: rgb(221 101 49 / 18%); color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding-block: var(--page-top) var(--section-sm); }
.page-hero__grid { display: grid; gap: var(--layout-gap); align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero__copy { display: grid; gap: var(--space-5); }
.page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); }
.page-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}
.page-hero--center .page-hero__copy { max-width: 820px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

.highlights { display: grid; gap: var(--space-4); padding-top: var(--space-2); }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent); }
.highlights strong { font-weight: 600; letter-spacing: -0.01em; }
.highlights span { font-size: 1.0625rem; color: var(--ink-2); }

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

.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; letter-spacing: inherit; }
.faq summary svg {
  flex: none;
  width: 32px; height: 32px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq details[open] summary svg { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq details p { padding: 0 var(--space-8) var(--space-5) 0; color: var(--ink-2); }

.faq-layout { display: grid; gap: var(--layout-gap); }
.faq-layout .section-head { margin: 0; }
/* Pin the heading beside the questions only in the two-column layout; stacked on mobile it would overlap them. */
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + var(--space-6)); align-self: start; }
}

/* ---------- Values ---------- */

.value { display: grid; gap: var(--space-3); padding: var(--card-pad) 0; border-top: 1px solid var(--line-strong); }
.value p { color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: var(--layout-gap); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-list { display: grid; }
.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
.contact-item h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: var(--space-1); }
.contact-item p, .contact-item a { color: var(--ink-2); }
.contact-item a:hover { color: var(--accent-strong); }

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.75rem; margin-bottom: var(--space-2); }
.form-card > p { color: var(--ink-2); margin-bottom: var(--space-5); }
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 1rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234b505b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9ea7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgb(21 23 28 / 8%);
}
.field .error { font-size: 0.9375rem; color: #b42318; }
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: #b42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: var(--ink-3); }
.error { font-size: 0.9375rem; color: #b42318; }

.alert {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #b7e1c6;
  border-radius: var(--radius-sm);
  background: #ecf8f0;
  color: #17603a;
  font-weight: 500;
}
.alert svg { width: 20px; height: 20px; flex: none; }

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

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  padding: clamp(32px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--dark);
  color: var(--dark-ink);
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(221 101 49 / 45%), transparent);
  filter: blur(20px);
}
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; align-items: end; } }
.cta h2 { max-width: 640px; }
.cta p { margin-top: var(--space-4); color: var(--dark-ink-2); max-width: 560px; }

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

.site-footer {
  padding-block: var(--section-sm) var(--space-6);
  background: var(--dark);
  color: var(--dark-ink-2);
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--dark-line);
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { display: grid; gap: var(--space-5); align-content: start; max-width: 340px; }
.footer-brand .brand-mark {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.footer-brand .brand-mark img { width: 150px; }
.site-footer h2 {
  margin-bottom: var(--space-4);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink);
}
.footer-links { display: grid; gap: var(--space-3); }
.footer-links a, .site-footer address a { transition: color 0.15s; }
.footer-links a:hover, .site-footer address a:hover { color: var(--dark-ink); }
.site-footer address { display: grid; gap: var(--space-3); font-style: normal; }
.socials { display: flex; gap: var(--space-2); }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: var(--dark-ink);
  transition: background-color 0.15s, border-color 0.15s;
}
.socials a:hover { background: var(--dark-2); border-color: #444955; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.9375rem;
}

/* ---------- 404 ---------- */

.not-found { display: grid; gap: var(--space-5); justify-items: start; max-width: 640px; padding-block: var(--section-sm) var(--section); }
.not-found .code { font-family: var(--mono); color: var(--accent-strong); }

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */

.stack { display: grid; gap: var(--space-4); }
.stats--spaced { margin-top: var(--section-sm); }
.card-title { font-size: 1.5rem; }
.text-muted { color: var(--ink-2); }

/* ==========================================================================
   Plentier ERP (product pages, account, dashboard) — built on the tokens above
   ========================================================================== */

.container.narrow { max-width: calc(560px + var(--gutter) * 2); }
/* .page-hero h1 would otherwise win on specificity and render this at page-heading size */
.form-title, .page-hero .form-title { font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: var(--space-2); }
.form-card > p { margin-bottom: var(--space-5); }
.form-grid--single { grid-template-columns: 1fr !important; }
.form-section { margin: 0 0 var(--space-6); padding: 0; border: 0; }
.form-section > legend {
  margin-bottom: var(--space-4);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-suffix span {
  display: flex; align-items: center;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.alert--error { border-color: #f1c0bb; background: #fdf0ef; color: #9b1c12; }
.alert--info { border-color: var(--line-strong); background: var(--surface); color: var(--ink-2); }
.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 500 0.9375rem/1.4 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--ink); }

.card > .btn, .card > .btn-row { align-self: flex-start; }
.card--dark .checklist li { color: var(--dark-ink-2); }
.card--dark .checklist svg { background: rgb(221 101 49 / 18%); color: var(--accent); }
.card--dark .btn--ghost { --btn-fg: var(--dark-ink); border-color: var(--dark-line); }
.card--dark .btn--ghost:hover { border-color: var(--dark-ink); }

/* Feature tiles */
.feature { display: grid; gap: var(--space-3); align-content: start; }
.feature p { color: var(--ink-2); font-size: 1.0625rem; }
.feature h3 { font-size: 1.25rem; }

/* Billing period toggle */
.cycle-toggle {
  display: inline-flex;
  width: fit-content;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.cycle-toggle a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-2);
}
.cycle-toggle a[aria-current="true"] { background: var(--ink); color: #fff; }
.cycle-toggle span { font-size: 0.8125rem; color: var(--accent-strong); }
.cycle-toggle a[aria-current="true"] span { color: #ffd3bd; }

/* Plan cards */
.plans { display: grid; gap: var(--grid-gap); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute; top: calc(var(--space-3) * -1); left: var(--card-pad);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--accent-button);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}
.plan__head h3 { font-size: 1.5rem; }
.plan__head p { color: var(--ink-3); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-1); }
.plan__price strong { font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { color: var(--ink-3); }
.plan__note { margin-top: calc(var(--space-3) * -1); font-size: 0.9375rem; color: var(--accent-strong); }
.plan__features { flex: 1; align-content: start; padding-block: var(--space-4); border-top: 1px solid var(--line); }

/* Summary lists */
.summary { display: grid; gap: 0; margin: 0 0 var(--space-5); }
.summary > div {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.summary__total dt, .summary__total dd { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.summary__total { border-bottom: 0 !important; }

/* Dashboard */
.dash { padding-bottom: var(--section); }
.dash-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.dash-title { font-size: clamp(2rem, 4vw, 3rem); }
.dash-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.dash-nav a, .dash-nav button {
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-2);
  font: 500 1rem/1.2 var(--font);
  cursor: pointer;
}
.dash-nav a:hover, .dash-nav button:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.dash-grid { display: grid; gap: var(--grid-gap); }
@media (min-width: 960px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-card--wide { grid-column: 1 / -1; }
}
.dash-card { gap: var(--space-4); }
.dash-card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.dash-card__head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.dash-big { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink) !important; }
.dash-upsell {
  display: grid; gap: var(--space-5); align-items: center;
  margin-top: var(--grid-gap);
}
@media (min-width: 900px) { .dash-upsell { grid-template-columns: 1fr auto; } }
.dash-upsell h2 { font-size: 1.5rem; }

/* Status pills */
.pill[class*="pill--"] {
  display: inline-flex; align-items: center; gap: var(--space-2);
  width: auto;
  padding: 2px var(--space-3);
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.pill[class*="pill--"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--active, .pill--success { background: #e8f6ee; color: #17603a; }
.pill--pending, .pill--provisioning, .pill--past_due, .pill--suspending { background: #fff4e5; color: #8a4b08; }
.pill--failed, .pill--expired, .pill--suspended, .pill--cancelled { background: #fdf0ef; color: #9b1c12; }
.pill--refunded, .pill--decommissioned { background: var(--surface-2); color: var(--ink-3); }

/* Provisioning progress */
.progress { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.progress__step { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-3); font-size: 1.0625rem; }
.progress__dot {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}
.progress__step.is-done { color: var(--ink); }
.progress__step.is-done .progress__dot { border-color: #2f9e5b; background: #2f9e5b; }
.progress__step.is-done .progress__dot::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.progress__step.is-active { color: var(--ink); font-weight: 500; }
.progress__step.is-active .progress__dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.progress__step.is-delayed { color: var(--ink); font-weight: 500; }
.progress__step.is-delayed .progress__dot { border-color: #d99a2b; background: #fff4e5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* One-time credentials */
.credential {
  display: grid; gap: var(--space-3);
  padding: var(--space-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
}
.credential h3 { font-size: 1.125rem; }
.credential p { color: var(--ink-2); font-size: 1rem; }
.credential__value { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.credential__value code {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: 500 1.0625rem/1.4 var(--mono);
  letter-spacing: 0.02em;
  user-select: all;
}

/* Tables */
.table-wrap { overflow-x: auto; margin-inline: calc(var(--card-pad) * -1); padding-inline: var(--card-pad); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

@media print {
  .site-header, .site-footer, .btn-row, .skip-link { display: none !important; }
  .receipt { box-shadow: none; border: 0; }
}

/* ---------- Sign-up wizard ---------- */

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.wizard-steps li {
  display: flex; align-items: center; gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 3px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.wizard-steps li span {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 0.8125rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.wizard-steps li.is-current { border-color: var(--accent); color: var(--ink); }
.wizard-steps li.is-current span { background: var(--accent-button); color: #fff; }
.wizard-steps li.is-done { border-color: var(--ink); color: var(--ink); }
.wizard-steps li.is-done span { background: var(--ink); color: #fff; }
@media (max-width: 480px) { .wizard-steps li { font-size: 0.8125rem; } }

.js [data-wizard] [data-wizard-step]:not(.is-current) { display: none; }
.js [data-wizard] [data-wizard-step].is-current { animation: wizard-in 0.3s var(--ease); }
@keyframes wizard-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.wizard-nav { display: flex; gap: var(--space-3); justify-content: space-between; }
.wizard-nav [data-wizard-next], .wizard-nav [data-wizard-submit] { margin-left: auto; }

/* Plan options (radio cards) */
.plan-picker { display: grid; gap: var(--space-3); }
.plan-option {
  position: relative;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.plan-option:hover { border-color: var(--ink-3); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-option:has(input:checked), .plan-option.is-selected { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.plan-option:has(input:checked)::before, .plan-option.is-selected::before { border-color: var(--accent-button); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent-button); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-option__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.plan-option__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.plan-option__name em {
  margin-left: var(--space-2);
  padding: 1px var(--space-2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: middle;
}
.plan-option__meta { color: var(--ink-3); font-size: 0.9375rem; }
.plan-option__price { font-weight: 600; white-space: nowrap; }
.plan-option__price small { color: var(--ink-3); font-weight: 400; }

/* Billing toggle as radios */
.cycle-toggle label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.cycle-toggle label input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-toggle label:has(input:checked) { background: var(--ink); color: #fff; }
.cycle-toggle label:has(input:checked) span { color: #ffd3bd; }
.cycle-toggle label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Choice chips (replace dropdowns for short option lists) */
.chips-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips-field legend { margin-bottom: var(--space-2); padding: 0; font-size: 1rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip:hover span { border-color: var(--ink-3); color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--invalid .chip span { border-color: #e7a19a; }

/* ERP address preview */
.field-label { font-size: 1rem; font-weight: 500; }
.slug-preview {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.slug-preview strong { color: var(--ink); font-weight: 600; }
.js .js-hide { display: none; }
@media (max-width: 480px) { .wizard-steps li { flex-direction: column; align-items: flex-start; gap: var(--space-1); } }

/* Button loading state */
.btn.is-loading, .btn-link.is-loading { cursor: progress; opacity: 0.92; pointer-events: none; }
.btn.is-loading:active { transform: none; }
.btn-link.is-loading { display: inline-flex; align-items: center; gap: var(--space-2); }
.btn-link .spinner, .dash-nav .spinner { width: 14px; height: 14px; }
.dash-nav button.is-loading { display: inline-flex; align-items: center; gap: var(--space-2); }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s !important; } }

/* ---------- Case studies ---------- */

.browser {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.browser--lg { border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); }
.browser img { display: block; width: 100%; height: auto; }
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__bar span {
  margin-left: var(--space-3);
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.work-card { padding: 0; gap: 0; overflow: hidden; }
.work-card__media { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.work-card__media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.6s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--card-pad); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.875rem;
}
.case-layout { display: grid; gap: var(--layout-gap); align-items: start; }
@media (min-width: 960px) {
  .case-layout { grid-template-columns: 300px 1fr; }
  .case-facts { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.case-facts .summary dd { text-align: right; }
.case-body { display: grid; gap: var(--space-5); max-width: 720px; }
.case-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: var(--space-4); }
.case-body h2:first-child { margin-top: 0; }
.case-body > p { color: var(--ink-2); font-size: 1.125rem; }
.case-figure figcaption { padding: var(--space-3) var(--space-4); color: var(--ink-3); font-size: 0.9375rem; border-top: 1px solid var(--line); }
.case-quote { margin: 0; padding: var(--space-5) var(--space-6); border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.case-quote p { font-size: 1.25rem; color: var(--ink); }
.case-quote cite { display: block; margin-top: var(--space-3); color: var(--ink-3); font-style: normal; }

/* Plan comparison */
.compare { margin-inline: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare .table th, .compare .table td { padding: var(--space-3) var(--space-4); }
.compare .table thead th { color: var(--ink); font-size: 1rem; font-weight: 600; }
.compare .table tbody th { font-weight: 500; color: var(--ink-2); text-align: left; }
.compare .table td, .compare .table thead th:not(:first-child) { text-align: center; }
.compare__yes svg { width: 20px; height: 20px; margin-inline: auto; color: #2f9e5b; }
.compare__no { color: var(--line-strong); }

/* POS page: decorative receipt in the hero, and the POS band on the ERP landing page */
.pos-art {
  display: grid; place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--accent-soft);
}
.receipt {
  width: min(100%, 340px);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.receipt__shop { font-family: var(--font); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-align: center; }
.receipt__meta { text-align: center; color: var(--ink-3); margin-top: var(--space-1); }
.receipt dl > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 3px 0; }
.receipt dd { margin: 0; white-space: nowrap; }
.receipt__lines { margin: var(--space-4) 0 0; padding: var(--space-3) 0; border-block: 1px dashed var(--line-strong); }
.receipt__totals { margin: var(--space-3) 0 0; }
.receipt__totals > div:first-child { color: var(--ink); font-weight: 700; }
.receipt__stock {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin-top: var(--space-4); padding: var(--space-2);
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong);
  font-family: var(--font); font-weight: 600;
}
.receipt__stock svg { width: 16px; height: 16px; }
.pos-band { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .pos-band { grid-template-columns: 1fr auto; } }
.pos-band h2 { color: var(--dark-ink); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.nowrap { white-space: nowrap; }

/* Cookie consent (only rendered when GA4 is configured) */
.consent {
  position: fixed; z-index: 60;
  inset: auto var(--gutter) var(--gutter) var(--gutter);
  display: grid; gap: var(--space-3);
  max-width: 560px; margin-inline: auto;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-lg);
  font-size: 0.9375rem; color: var(--ink-2);
}
.consent[hidden] { display: none; }
.consent a { color: var(--ink); text-decoration: underline; }
.consent__actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.consent .btn { min-height: 40px; padding-block: 8px; }
@media (min-width: 640px) { .consent { grid-template-columns: 1fr auto; align-items: center; } }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 1024px) { .consent { margin-inline: 0; } }

/* ---------- Leo (AI assistant) page ---------- */
.leo-row { margin-top: var(--section-sm); }
.leo-row:first-of-type { margin-top: var(--space-6); }
.leo-row__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; }
.leo-shot {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.leo-shot img { display: block; width: 100%; height: auto; }
.leo-prompts {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .leo-prompts { grid-template-columns: 1fr 1fr; } }
.leo-prompts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.leo-prompts svg { width: 22px; height: 22px; color: var(--accent-strong); }
.leo-band { background: var(--accent-soft); border-color: transparent; }
.leo-band h2 { color: var(--ink); }
.leo-hero__shot { max-width: 460px; transform: rotate(1deg); }
