/* Avantix Procurement Portal — marketing site.
   Visual language: a purchasing ledger. Warm paper, ink, ruled lines, rubber-stamp approvals.
   Colour roles: green = approved / brand / action, vermilion = price alert, amber = waiting / overdue. */

:root {
  --paper: #f4f1e9;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --ink: #16191e;
  --ink-2: #3a3f47;
  --muted: #5f636a;
  --line: #d8d1c2;
  --line-soft: #e6e0d3;
  --night: #121714;
  --night-2: #1b221e;
  --night-line: #2c3630;
  --on-night: #e9ede8;
  --on-night-muted: #9aa69f;

  --green: #17634f;
  --green-deep: #0f4a3b;
  --green-bright: #3fb58f;
  --green-50: #e2eee8;
  --red: #c4432b;
  --red-50: #f9e4de;
  --amber: #a86b12;
  --amber-50: #f8ecd6;
  --blue: #2f5f8a;
  --blue-50: #e3ecf4;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-card: 0 1px 0 rgba(22, 25, 30, .04), 0 10px 30px -12px rgba(40, 32, 16, .22);
  --shadow-lift: 0 2px 0 rgba(22, 25, 30, .04), 0 30px 60px -24px rgba(40, 32, 16, .35);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night a { color: var(--green-bright); }

/* Section labels: the "document field" voice */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.label::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.section--night .label { color: var(--green-bright); }
.h-display { font-family: var(--f-display); font-weight: 600; font-variation-settings: 'opsz' 96; letter-spacing: -.025em; }
.h2 { font-family: var(--f-display); font-size: clamp(32px, 4.4vw, 54px); font-variation-settings: 'opsz' 96; letter-spacing: -.025em; }
.h2 em, .h1 em { font-style: italic; color: var(--green); font-weight: 500; }
.section--night .h2 em { color: var(--green-bright); }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.section--night .lede { color: var(--on-night-muted); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }
.note { font-size: 13px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .01em; }
.section--night .note { color: var(--on-night-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -8px rgba(23, 99, 79, .6); }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.section--night .btn--ghost, .cta .btn--ghost { color: var(--on-night); border-color: var(--night-line); }
.section--night .btn--ghost:hover, .cta .btn--ghost:hover { border-color: var(--on-night); background: transparent; color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 17px; min-height: 56px; }
.btn--sm { padding: 10px 16px; font-size: 14.5px; min-height: 40px; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 233, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 241, 233, .94); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: rgba(22, 25, 30, .05); }
.nav__menu-cta { display: none; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s var(--ease), background-color .2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav__links a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__menu-cta { display: block; margin-top: 14px; }
  .nav__menu-cta a { background: var(--green); color: #fff !important; text-align: center; border-radius: 999px; border: 0; font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before { /* ledger ruling, fading out */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(23, 99, 79, .07) 1px, transparent 1px);
  background-size: 100% 36px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 60%, transparent);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; margin-bottom: 24px; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(63, 181, 143, .2); }
.h1 .l { display: block; }
.h1 { font-family: var(--f-display); font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -.03em; font-variation-settings: 'opsz' 144; font-weight: 600; }
.h1 .strike { position: relative; white-space: nowrap; color: var(--muted); font-weight: 500; }
.h1 .strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: .07em; background: var(--red); transform: rotate(-2deg); border-radius: 2px; }
.hero__sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 34em; margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ico { color: var(--green); width: 16px; height: 16px; }

/* ---------- The purchase request document (hero visual) ---------- */
.doc {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 22px 22px 18px; font-size: 14px;
}
.doc::before { /* paper stacked underneath */
  content: ''; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: var(--r-lg);
  background: var(--paper-2); border: 1px solid var(--line);
}
.doc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.doc__no { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.doc__title { font-weight: 700; font-size: 16px; margin-top: 3px; letter-spacing: -.01em; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.chip--green { background: var(--green-50); color: var(--green-deep); }
.chip--red { background: var(--red-50); color: #9e2f1a; }
.chip--amber { background: var(--amber-50); color: #7f500b; }
.chip--blue { background: var(--blue-50); color: #244a6c; }
.chip--dark { background: var(--ink); color: #fff; }
.lines { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lines th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 6px 8px; border-bottom: 1px solid var(--line-soft); }
.lines td { padding: 10px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.lines td.num, .lines th.num { text-align: right; font-family: var(--f-mono); font-feature-settings: 'tnum' 1; white-space: nowrap; }
.lines .part { font-weight: 600; display: block; line-height: 1.3; }
.lines .pn { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.diff { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.diff--up { background: var(--red-50); color: #9e2f1a; }
.diff--flat { background: var(--paper-2); color: var(--ink-2); }
.diff--down { background: var(--green-50); color: var(--green-deep); }
.lines tr.is-flag td { background: rgba(196, 67, 43, .055); }
.doc__alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-50); color: #7d2412; font-size: 13px; line-height: 1.45; }
.doc__alert .ico { color: var(--red); margin-top: 2px; }
.doc__route { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.doc__route-h { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; border: 1.5px dashed var(--line); border-radius: 10px; min-height: 104px; padding: 8px 8px 6px; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; }
.slot__role { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.slot__when { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.slot.is-waiting { border-color: var(--amber); border-style: solid; background: var(--amber-50); }
.slot.is-waiting .slot__when { color: #7f500b; font-weight: 600; }

/* Rubber stamp: the site's signature mark */
.stamp {
  --c: var(--green);
  position: absolute; right: 4px; bottom: 4px; width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--c); color: var(--c); display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 7px; font-weight: 600; letter-spacing: 0; line-height: 1.2; text-transform: uppercase;
  transform: rotate(-12deg); opacity: .88; mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), inset 0 0 0 4.5px var(--c);
}
.stamp b { display: block; font-size: 8.5px; letter-spacing: 0; }
.js .stamp[data-stamp] { opacity: 0; transform: rotate(-12deg) scale(1.6); }
.js .stamp[data-stamp].is-in { opacity: .88; transform: rotate(-12deg) scale(1); transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), opacity .12s linear; }
.doc__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.caption { margin-top: 22px; text-align: center; }

/* ---------- Entity strip ---------- */
.entity { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.entity__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 36px 0; align-items: center; }
.entity p { font-size: 17px; color: var(--ink-2); }
.entity p strong { color: var(--ink); }
.entity__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; border-left: 1px solid var(--line); }
.entity__facts li { padding: 4px 18px; border-right: 1px solid var(--line); }
.entity__facts b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.entity__facts span { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Problem: the paper form ---------- */
.problem__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.paper {
  position: relative; background: #fbf8ef; border: 1px solid var(--line); border-radius: 4px; padding: 28px 26px 24px;
  box-shadow: var(--shadow-card); transform: rotate(-1.6deg); font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2);
  background-image: linear-gradient(to bottom, transparent 31px, rgba(47, 95, 138, .16) 32px); background-size: 100% 32px; background-position: 0 58px;
}
.paper::after { /* coffee-ring-free fold shadow */
  content: ''; position: absolute; left: 0; right: 0; top: 48%; height: 18px; background: linear-gradient(to bottom, rgba(0,0,0,.035), transparent); pointer-events: none;
}
.paper .paper__t { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; font-weight: 600; }
.paper__row { display: flex; justify-content: space-between; gap: 12px; height: 32px; align-items: flex-end; padding-bottom: 5px; }
.paper__hand { font-family: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive; font-size: 19px; color: #2b4a73; line-height: 1; }
.paper__sigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.paper__sig { border-top: 1px solid var(--ink-2); padding-top: 6px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; min-height: 50px; position: relative; }
.paper__sig .paper__hand { position: absolute; top: -26px; left: 4px; font-size: 22px; transform: rotate(-6deg); }
.paper__sig--empty::before { content: '?'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-size: 26px; color: var(--red); }
.paper__note { position: absolute; right: -14px; top: -18px; background: #f6e27a; color: #4a3f10; font-family: 'Caveat', 'Bradley Hand', cursive; font-size: 19px; line-height: 1.15; padding: 12px 14px 14px; width: 150px; transform: rotate(5deg); box-shadow: 0 10px 18px -10px rgba(0,0,0,.35); }
.qs { list-style: none; counter-reset: q; display: grid; gap: 0; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 54px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.qs li:last-child { border-bottom: 1px solid var(--line); }
.qs li::before { content: '0' counter(q); font-family: var(--f-mono); font-size: 13px; color: var(--red); padding-top: 6px; grid-row: span 2; }
.qs h3 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; font-style: italic; letter-spacing: -.015em; }
.qs p { color: var(--ink-2); font-size: 16px; }
.pivot { margin-top: 30px; font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pivot em { color: var(--green); }

/* ---------- Route (the approval path) ---------- */
.route { position: relative; }
.route__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; }
.route::before { /* the track */
  content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--night-line) 0 8px, transparent 8px 14px);
}
.route__fill { position: absolute; left: 6%; top: 34px; height: 2px; width: 88%; background: var(--green-bright); transform-origin: left; box-shadow: 0 0 12px rgba(63, 181, 143, .6); }
.js .route__fill { transform: scaleX(0); }
.route.is-run .route__fill { transform: scaleX(1); transition: transform 2.6s cubic-bezier(.5, 0, .3, 1) .2s; }
.route li { position: relative; text-align: center; padding: 0 4px; }
.route__node { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 1.5px solid var(--night-line); position: relative; z-index: 1; color: var(--on-night); transition: background-color .3s, border-color .3s, color .3s; }
.route__node .ico { width: 26px; height: 26px; }
.route li.is-done .route__node, .no-js .route__node, .route.is-static .route__node { background: var(--green); border-color: var(--green-bright); color: #fff; }
.route__step { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); }
.route h3 { font-size: 18px; margin: 6px 0 8px; color: #fff; letter-spacing: -.01em; }
.route p { font-size: 14.5px; color: var(--on-night-muted); line-height: 1.5; }
.route__wait { display: inline-block; margin-top: 12px; font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--on-night); }
.route__wait--late { background: rgba(214, 150, 50, .18); color: #f0c07a; }
.route li.is-po .route__node { border-radius: 16px; width: auto; min-width: 68px; padding: 0 12px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; }
.route-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.rnote { border: 1px solid var(--night-line); border-radius: var(--r); padding: 20px; background: var(--night-2); }
.rnote h3 { font-size: 16.5px; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rnote h3 .ico { color: var(--green-bright); }
.rnote p { font-size: 14.5px; color: var(--on-night-muted); }

/* Return-for-revision rule */
.rule { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.rule__case { border: 1px solid var(--night-line); border-radius: var(--r); padding: 20px; background: var(--night-2); }
.rule__case h3 { font-size: 15.5px; color: #fff; margin-bottom: 14px; }
.rule__path { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 12px; }
.rule__path span { padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--on-night); }
.rule__path span.hl { background: rgba(63, 181, 143, .18); color: #9fe3c9; }
.rule__path span.warn { background: rgba(214, 150, 50, .18); color: #f0c07a; }
.rule__path i { font-style: normal; color: var(--on-night-muted); }
.rule__case p { font-size: 14px; color: var(--on-night-muted); margin-top: 12px; }

/* ---------- Price check (interactive) ---------- */
.pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pc__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px; }
.pc__panel h3 { font-size: 17px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 99, 79, .14); }
.input[readonly] { background: var(--paper); color: var(--ink-2); }
.input--money { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.input.is-warn { border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 67, 43, .12); }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); color: var(--muted); font-size: 14px; pointer-events: none; }
.prefix .input { padding-left: 46px; }
.pc__hint { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.verdict { margin-top: 16px; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; transition: background-color .2s, color .2s; min-height: 76px; }
.verdict .ico { width: 20px; height: 20px; margin-top: 1px; }
.verdict b { display: block; font-size: 15.5px; }
.verdict--ok { background: var(--green-50); color: var(--green-deep); }
.verdict--warn { background: var(--amber-50); color: #6b4308; }
.verdict--alert { background: var(--red-50); color: #7d2412; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.presets button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-family: var(--f-mono); cursor: pointer; min-height: 36px; transition: border-color .15s, background-color .15s; }
.presets button:hover { border-color: var(--ink); }
.hist { margin-top: 0; }
.hist__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; margin-top: 14px; }
.hist__stats div { background: var(--card); padding: 10px 12px; }
.hist__stats dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hist__stats dd { margin: 2px 0 0; font-family: var(--f-mono); font-weight: 600; font-size: 15px; }
.chart { margin-top: 16px; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); }
.chart .axis text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaFill); }
.chart .pt { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.chart .limit { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .limit-t { font-family: var(--f-mono); font-size: 10px; fill: var(--red); }
.chart .new { fill: var(--green); stroke: var(--card); stroke-width: 2.5; transition: cy .25s var(--ease), fill .2s; }
.chart .new.is-alert { fill: var(--red); }
.chart .new-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pc__side h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.ticks { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.ticks li .ico { color: var(--green); width: 20px; height: 20px; margin-top: 3px; }
.ticks b { color: var(--ink); }
.alertcard { margin-top: 26px; background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; box-shadow: var(--shadow-card); }
.alertcard__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--red); display: grid; place-items: center; }
.alertcard__ic .ico { color: #fff; }
.alertcard b { display: block; font-size: 14.5px; }
.alertcard p { font-size: 13.5px; color: #c7ccd1; line-height: 1.45; margin-top: 2px; }
.alertcard .to { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8e959c; margin-top: 8px; }

/* ---------- Approver's desk ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.approve { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.approve__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.approve__head b { font-size: 15px; }
.aline { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); transition: background-color .2s, opacity .2s; }
.aline:last-of-type { border-bottom: 0; }
.aline__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.aline__sub { font-size: 12.5px; color: var(--muted); font-family: var(--f-mono); margin-top: 2px; }
.aline__amt { font-family: var(--f-mono); font-size: 14px; text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; gap: 5px; transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"].is-ok { background: var(--green); color: #fff; }
.seg button[aria-pressed="true"].is-no { background: var(--red); color: #fff; }
.seg button .ico { width: 14px; height: 14px; }
.aline.is-declined { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(196, 67, 43, .04) 8px 16px); }
.aline.is-declined .aline__name, .aline.is-declined .aline__amt { text-decoration: line-through; color: var(--muted); }
.approve__remark { padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--paper); display: grid; gap: 10px; }
.approve__remark .input { font-size: 14px; min-height: 44px; padding: 10px 12px; }
.approve__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.approve__actions .btn { font-size: 14px; padding: 10px 16px; min-height: 42px; }
.btn--warn { background: transparent; color: #7f500b; border-color: #e0c28c; }
.btn--warn:hover { background: var(--amber-50); color: #6b4308; }
.btn--danger { background: transparent; color: #9e2f1a; border-color: #e7b3a8; }
.btn--danger:hover { background: var(--red-50); color: #7d2412; }
.budget { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; }
.budget h3 { font-size: 15.5px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.budget h3 span { font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.bar { position: relative; height: 18px; border-radius: 999px; background: var(--paper-2); margin: 30px 0 14px; display: flex; }
.bar .b-this { border-radius: 999px; }
.b-mark { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); transition: left .5s var(--ease); }
.b-mark em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; margin-bottom: 2px; }
.bar i { display: block; height: 100%; transition: width .5s var(--ease); }
.bar .b-used { background: var(--ink-2); }
.bar .b-this { background: repeating-linear-gradient(-45deg, var(--green) 0 6px, #2a7d66 6px 12px); }
.bar.is-over .b-this { background: repeating-linear-gradient(-45deg, var(--red) 0 6px, #d45f47 6px 12px); }
.legend { list-style: none; display: grid; gap: 7px; font-size: 13.5px; }
.legend li { display: flex; justify-content: space-between; gap: 10px; }
.legend li span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend li span:last-child { font-family: var(--f-mono); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.budget__warn { margin-top: 14px; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--green-50); color: var(--green-deep); display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.budget__warn.is-over { background: var(--red-50); color: #7d2412; }
.budget__warn .ico { margin-top: 2px; }
.desk__side { display: grid; gap: 20px; }
.outcome { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; font-size: 14.5px; line-height: 1.5; }
.outcome b { color: #9fe3c9; font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.outcome p { color: #d8dde1; }

/* ---------- Loop (procurement closes the loop) ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: lp; position: relative; }
.loop li { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); background: var(--card); margin-left: -1px; }
.loop li:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); margin-left: 0; }
.loop li:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--green); color: #fff; border-color: var(--green); }
.loop li:last-child p, .loop li:last-child .loop__k { color: #d4ece3; }
.loop__k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.loop h3 { font-size: 18px; margin: 8px 0 8px; }
.loop p { font-size: 14.5px; color: var(--ink-2); }
.loop li:not(:last-child)::after { content: ''; position: absolute; right: -11px; top: 50%; width: 20px; height: 20px; background: var(--card); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.loop li:nth-child(3)::after { background: var(--card); }
.po { display: inline-block; margin-top: 12px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--paper-2); letter-spacing: .02em; }
.loop__back { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.loop__back svg { width: 64px; height: 24px; color: var(--green); flex: none; }

/* ---------- Roles (tabs) ---------- */
.roles { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.tablist { display: grid; gap: 4px; }
.tab { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; min-height: 48px; }
.tab .ico { width: 20px; height: 20px; color: var(--muted); }
.tab:hover { background: rgba(22, 25, 30, .04); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-card); }
.tab[aria-selected="true"] .ico { color: var(--green); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-card); min-height: 320px; }
.panel h3 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.015em; }
.panel > p { color: var(--ink-2); margin-top: 10px; max-width: 58ch; }
.panel ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 22px; }
.panel li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.panel li .ico { color: var(--green); width: 18px; height: 18px; margin-top: 3px; }
.panel .sees { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.panel .sees b { color: var(--ink); }
.js .panel[hidden] { display: none; }

/* ---------- Visibility: bell, reports, audit ---------- */
.vis { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.vcard > h3 { font-size: 19px; letter-spacing: -.01em; }
.vcard > p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.vcard--bell { grid-column: span 5; }
.vcard--reports { grid-column: span 7; }
.vcard--audit { grid-column: span 12; }
.bell { margin-top: 18px; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.bell__h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; }
.bell__icon { position: relative; display: inline-flex; }
.bell__icon .ico { width: 20px; height: 20px; }
.bell__count { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 10px; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.bell ul { list-style: none; }
.bell li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.4; }
.bell li:last-child { border-bottom: 0; }
.bell li i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; transform: translateY(-1px); }
.bell li.u i { background: var(--green); }
.bell li.a i { background: var(--red); }
.bell li time { font-family: var(--f-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.reports { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.reports li { border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; background: var(--paper); }
.reports b { display: block; font-size: 15px; }
.reports span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.reports .fmt { display: flex; gap: 6px; margin-top: 10px; }
.reports .fmt em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 10px; }
.mini-bars i { flex: 1; background: var(--ink-2); border-radius: 3px 3px 0 0; }
.mini-bars i.hot { background: var(--amber); }
.audit { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13.5px; }
.audit th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.audit td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.audit td:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Mobile approval ---------- */
.mobile__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.phone { width: 300px; max-width: 100%; margin-inline: auto; border-radius: 44px; background: #0c0f0d; padding: 12px; box-shadow: 0 50px 80px -30px rgba(0,0,0,.6), 0 0 0 1px #2a302c inset; }
.phone__screen { border-radius: 34px; overflow: hidden; background: var(--paper); color: var(--ink); min-height: 560px; display: flex; flex-direction: column; }
.phone__bar { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.phone__app { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.phone__app b { font-size: 14px; }
.phone__body { padding: 14px; display: grid; gap: 10px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 12.5px; }
.pcard__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pcard__t { font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.pcard__m { color: var(--muted); font-family: var(--f-mono); font-size: 11px; margin-top: 2px; }
.pcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.pcard__btns span { text-align: center; padding: 9px; border-radius: 10px; font-weight: 700; font-size: 12.5px; }
.pcard__btns .ok { background: var(--green); color: #fff; }
.pcard__btns .rt { background: var(--paper-2); color: var(--ink-2); }
.mobile__grid .section--night .lede { color: var(--on-night-muted); }

/* ---------- Feature index (compact, crawlable) ---------- */
.fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fx > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.fx > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.fx > div:not(:nth-child(3n+1)) { padding-left: 26px; }
.fx h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.fx h3 .ico { color: var(--green); width: 20px; height: 20px; }
.fx p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.fx a { font-weight: 600; font-size: 14px; }
.more { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card) no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2316191e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq .ans { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq .ans p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { background: var(--night); color: var(--on-night); border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to bottom, rgba(63, 181, 143, .07) 1px, transparent 1px); background-size: 100% 36px; pointer-events: none; }
.cta > * { position: relative; }
.cta .h2 { color: #fff; }
.cta .h2 em { color: var(--green-bright); }
.cta .lede { color: var(--on-night-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta .btn--primary { background: var(--green-bright); color: #062a1f; box-shadow: 0 10px 30px -10px rgba(63, 181, 143, .6); }
.cta .btn--primary:hover { background: #5ccaa3; color: #062a1f; }
.cta__contact { margin-top: 20px; font-size: 14.5px; color: var(--on-night-muted); }
.cta__contact a { color: var(--on-night); }
.next { list-style: none; counter-reset: nx; display: grid; gap: 0; align-self: center; }
.next li { counter-increment: nx; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--night-line); }
.next li:last-child { border-bottom: 1px solid var(--night-line); }
.next li::before { content: counter(nx); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--green-bright); color: var(--green-bright); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; }
.next b { color: #fff; display: block; font-size: 16px; }
.next span { color: var(--on-night-muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 1fr; gap: 32px; }
.footer .footer__h { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--green); text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__desc { margin-top: 14px; max-width: 30ch; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--muted); }

/* ---------- Sticky mobile CTA ---------- */
.sticky { display: none; }
@media (max-width: 760px) {
  .sticky { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; padding: 8px; border-radius: 999px; background: rgba(18, 23, 20, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .3s var(--ease); }
  .sticky.is-visible { transform: none; }
  .sticky .btn { flex: 1; min-height: 46px; padding: 12px 14px; font-size: 15px; }
  .sticky .btn--primary { background: var(--green-bright); color: #062a1f; }
  .sticky .btn--ghost { color: #fff; border-color: #3a453f; flex: 0 0 auto; }
  .footer { padding-bottom: 110px; }
}

/* ---------- Sub pages ---------- */
.phero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.phero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to bottom, rgba(23, 99, 79, .07) 1px, transparent 1px); background-size: 100% 36px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.phero > .wrap { position: relative; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.phero .h1 { font-size: clamp(36px, 4.8vw, 60px); max-width: 18ch; }
.answer { margin-top: 28px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; }
.answer b { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }
.answer p { font-size: 17px; color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 34px); margin: 56px 0 14px; letter-spacing: -.02em; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fgroup { padding: 36px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
.fgroup:first-child { border-top: 0; padding-top: 0; }
.fgroup h2 { font-family: var(--f-display); font-size: 28px; letter-spacing: -.02em; }
.fgroup > div > p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.fgroup ul { list-style: none; display: grid; gap: 12px; }
.fgroup li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.fgroup li .ico { color: var(--green); width: 18px; height: 18px; margin-top: 4px; }
.fgroup li b { color: var(--ink); }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14.5px; list-style: none; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); }
.toc a:hover { border-left-color: var(--green); color: var(--ink); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; } .d3 { transition-delay: .24s !important; } .d4 { transition-delay: .32s !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .roles { grid-template-columns: 1fr; }
  .tablist { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 14px; font-size: 14.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero__grid, .problem__grid, .pc, .desk, .mobile__grid, .split, .cta, .entity__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .route__list { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--night-line) 0 8px, transparent 8px 14px); }
  .route__fill { left: 33px; top: 20px; width: 2px; height: calc(100% - 40px); transform-origin: top; }
  .js .route__fill { transform: scaleY(0); }
  .route.is-run .route__fill { transform: scaleY(1); }
  .route li { display: grid; grid-template-columns: 68px 1fr; gap: 4px 18px; text-align: left; padding: 0 0 26px; }
  .route__node { margin: 0; grid-row: span 4; }
  .route h3 { margin: 2px 0 4px; }
  .route__wait { justify-self: start; margin-top: 8px; }
  .route-notes, .rule { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; gap: 12px; }
  .loop li, .loop li:first-child, .loop li:last-child { border-radius: var(--r-lg); margin-left: 0; }
  .loop li::after { display: none; }
  .vcard--bell, .vcard--reports { grid-column: span 12; }
  .fx { grid-template-columns: 1fr 1fr; }
  .fx > div { padding: 22px 20px 22px 0 !important; border-right: 0 !important; }
  .fx > div:nth-child(2n) { padding-left: 20px !important; border-left: 1px solid var(--line); }
  .fgroup { grid-template-columns: 1fr; gap: 16px; }
  .toc { display: none; }
  .entity__facts { border-left: 0; }
  .entity__facts li:first-child { padding-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .h1 { font-size: clamp(36px, 10vw, 44px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .doc { padding: 16px 14px 14px; font-size: 13px; }
  .doc::before { inset: 8px -6px -8px 6px; }
  .lines th.hide-s, .lines td.hide-s { display: none; }
  .lines td { padding: 9px 4px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .slot { min-height: 76px; }
  .stamp { width: 48px; height: 48px; }
  .paper { transform: rotate(-1deg); padding: 22px 16px 18px; }
  .paper__note { right: -4px; top: -26px; width: 128px; font-size: 16px; }
  .paper__sigs { grid-template-columns: repeat(2, 1fr); row-gap: 40px; margin-top: 40px; }
  .qs li { grid-template-columns: 38px 1fr; }
  .hist__stats { grid-template-columns: repeat(2, 1fr); }
  .field__row { grid-template-columns: 1fr; }
  .aline { grid-template-columns: 1fr auto; }
  .aline .seg { grid-column: 1 / -1; justify-self: start; }
  .loop { grid-template-columns: 1fr; }
  .panel ul { grid-template-columns: 1fr; }
  .reports { grid-template-columns: 1fr; }
  .fx { grid-template-columns: 1fr; }
  .fx > div, .fx > div:nth-child(2n) { padding: 20px 0 !important; border-left: 0 !important; }
  .entity__facts { grid-template-columns: 1fr 1fr 1fr; }
  .entity__facts li { padding: 0 10px; }
  .entity__facts b { font-size: 26px; }
  .faq summary { font-size: 16.5px; padding: 18px 0; }
  .faq .ans { padding-right: 0; }
  .cta { border-radius: 24px; padding: 32px 22px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .vcard { padding: 18px; }
  .audit .hide-s { display: none; }
}
@media print {
  .nav, .sticky, .cta__actions, .hero__actions { display: none !important; }
  body { background: #fff; }
}

/* Features list layout and guide article */
.flist { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.split--article { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); }
.article-aside { position: sticky; top: 92px; align-self: start; }
@media (max-width: 960px) {
  .flist, .split--article { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* Fixes after visual review */
.section--night .ticks li { color: var(--on-night-muted); }
.cta .label { color: var(--green-bright); }
.section--cta { padding-bottom: 8px; }
.reports .mini-bars { display: flex; }
.reports .mini-bars i { display: block; }
.nobr { white-space: nowrap; }
.roles > * { min-width: 0; }
.more .btn { white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 960px) {
  .route li.is-po .route__node { width: 68px; min-width: 0; padding: 0 6px; font-size: 10px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; border-radius: 50%; }
}
@media (max-width: 600px) {
  .doc__top { flex-direction: column; }
  .doc__meta { justify-content: flex-start; }
  .lines .part { font-size: 13px; }
  .lines .pn-last { display: none; }
}
.phone .mono[style*="a86b12"] { color: #7f500b !important; }
.approve__actions .btn { cursor: pointer; }
/* Real-system alignment: skipped stage, four route notes */
.slot.is-skipped { border-style: dashed; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(22, 25, 30, .035) 6px 12px); }
.slot.is-skipped .slot__role { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.route-notes { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .route-notes { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }

/* Glossary and guides hub */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; border-top: 1px solid var(--line); }
.gterm { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gterm dt { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.gterm dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.gterm:target { background: var(--green-50); box-shadow: -12px 0 0 var(--green-50), 12px 0 0 var(--green-50); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--green); color: var(--ink); }
.gcard h2 { font-family: var(--f-display); font-size: 22px; letter-spacing: -.015em; }
.gcard p { color: var(--ink-2); font-size: 15px; flex: 1; }
.gcard span { color: var(--green); font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } .gcards { grid-template-columns: 1fr; } }
.facts .gterm dt { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* ---------- "On this page" jump bar (home page) ----------
   Header is 69px tall; the bar is 48px. Offsets are fixed CSS values so anchors work without JS
   and links from other pages (./#faq) land below both bars. */
.pagenav { position: relative; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.pagenav__in { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.pagenav__title { flex: none; font: 600 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pagenav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.pagenav__list::-webkit-scrollbar { display: none; }
.pagenav__list li { scroll-snap-align: start; }
.pagenav__list a { display: block; padding: 15px 10px 13px; font: 600 14px/1 var(--f-body); color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.pagenav__list a:hover { color: var(--ink); }
.pagenav__list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--green); }
.pagenav__list a:focus-visible { outline-offset: -3px; }
@media (min-width: 1024px) and (min-height: 640px) {
  .pagenav { position: sticky; top: 69px; transition: opacity .2s, visibility .2s; }
  .pagenav.is-done { opacity: 0; visibility: hidden; }
  html:has(.pagenav) { scroll-padding-top: 129px; }
  /* browsers without :has(): add the bar height to the 84px html scroll-padding via the targets */
  @supports not selector(:has(*)) { .has-pagenav main [id] { scroll-margin-top: 45px; } }
}
@media (max-width: 1023px) {
  .pagenav__in { gap: 12px; }
  .pagenav__title { display: none; }
  /* fade the right edge so it's clear the strip scrolls sideways */
  .pagenav__list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pagenav, .pagenav__list a { transition: none; } }

/* "Ten lines" fact list, now a subsection of the feature index */
.facts-block { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
