/* ==========================================================================
   Avantix FMS — marketing site
   Visual language: the forklift yard. Warm concrete, near-black ink,
   one safety-amber accent. Status colours are reserved for unit statuses.
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f2f0eb;
  --paper-2: #e8e5dd;
  --card: #fbfaf7;
  --ink: #121418;
  --ink-2: #1b1e24;
  --ink-3: #252932;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #eceae4;
  --on-ink-muted: #a3a6ad;
  --text: #16181c;
  --muted: #5a5e66;
  --line: rgba(18, 20, 24, 0.12);
  --line-strong: rgba(18, 20, 24, 0.22);

  /* brand */
  --amber: #f5b301;
  --amber-hi: #ffc72c;
  --amber-deep: #8a6300;
  --amber-wash: rgba(245, 179, 1, 0.14);

  /* statuses (used only for unit/record states) */
  --st-available: #2e9e5b;
  --st-rental: #3b73e0;
  --st-sold: #767c86;
  --st-reserved: #8a63db;
  --st-loan: #17a2ad;
  --st-demo: #e8862a;
  --st-repair: #dc4a40;
  --st-spare: #9a7650;
  --st-unavailable: #a4a9b0;
  --st-scrap: #4a4f58;
  --ok: #2e9e5b;
  --due: #e8862a;
  --late: #dc4a40;
  --due-text: #9a5410;
  --late-text: #b3261e;

  /* type */
  --f-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-1: 0 1px 2px rgba(18, 20, 24, 0.06), 0 4px 14px rgba(18, 20, 24, 0.06);
  --shadow-2: 0 2px 4px rgba(18, 20, 24, 0.06), 0 18px 48px rgba(18, 20, 24, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
  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(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- labels & section heads ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 18px; height: 2px; background: var(--amber); }
.on-ink .label, .label--ink { color: var(--on-ink-muted); }
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 7vw, 88px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .label { justify-content: center; }
.sec-title { font-size: clamp(34px, 5.2vw, 60px); margin-top: 16px; }
.sec-title:first-child { margin-top: 0; }
.sec-lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 62ch; }
.sec-head--center .sec-lede { margin-inline: auto; }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .sec-lede { color: var(--on-ink-muted); }
.hl { color: var(--amber); }
.hl-under { background: linear-gradient(transparent 62%, var(--amber-wash) 62%); padding: 0 2px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--amber); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 16px/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(245, 179, 1, 0.22);
  white-space: nowrap;
}
.btn:hover { background: var(--amber-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: rgba(18, 20, 24, 0.05); }
.on-ink .btn--ghost, .hero .btn--ghost, .final .btn--ghost, .page-hero .btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); }
.on-ink .btn--ghost:hover, .hero .btn--ghost:hover, .final .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14.5px; }
.btn--dark { --bg: var(--ink); --fg: var(--on-ink); box-shadow: none; }
.btn--dark:hover { background: var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.on-ink .cta-note, .hero .cta-note { color: var(--on-ink-muted); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--amber); padding-bottom: 2px;
}
.link-arrow .ico { transition: transform 0.2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 24, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  color: var(--on-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--ink-line); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--f-display); letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; }
.brand small { font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--on-ink-muted); text-transform: uppercase; margin-left: 2px; }
.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;
  font-size: 15px; font-weight: 500; color: var(--on-ink-muted); transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--ink-line); 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(--on-ink); border-radius: 2px; position: relative; transition: transform 0.25s var(--ease), background-color 0.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); }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 30px 60px rgba(18, 20, 24, 0.18);
  z-index: 2;
}
/* floor markings: the yard lane lines, faint */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, 0.028) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255, 255, 255, 0.028) 119px 120px);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 780px; height: 780px; right: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.13), transparent 62%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__eyebrow { font: 500 13px/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); display: flex; gap: 10px; align-items: center; }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.18); }
.hero h1 { font-size: clamp(44px, 5vw, 68px); margin-top: 22px; line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 1.7vw, 20px); color: var(--on-ink-muted); max-width: 34em; }
.hero__sub strong { color: var(--on-ink); font-weight: 500; }
.hero .cta-row { margin-top: 34px; }
.hero__facts { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font: 500 13.5px/1.3 var(--f-mono); color: var(--on-ink-muted); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st-available); }

/* ---------- yard board (hero visual) ---------- */
.board {
  background: linear-gradient(180deg, #1f232b, #181b21);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-size: 13px;
}
.board__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ink-line); }
.board__dots { display: flex; gap: 6px; }
.board__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.board__title { font: 600 13px/1 var(--f-mono); color: var(--on-ink); letter-spacing: 0.02em; }
.board__meta { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--on-ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.board__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
.chip {
  --c: var(--on-ink-muted);
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); cursor: pointer;
  font: 500 12px/1 var(--f-mono); color: var(--on-ink-muted); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.chip b { color: var(--on-ink); font-weight: 600; }
.chip:hover { border-color: rgba(255, 255, 255, 0.24); }
.chip[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); border-color: var(--c); color: var(--on-ink); }
.chip--all::before { background: linear-gradient(135deg, var(--st-available) 0 33%, var(--st-rental) 33% 66%, var(--st-repair) 66%); }
.board__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.board__grid { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 12px 16px 16px; align-content: start; }
.tile {
  --c: var(--st-available);
  position: relative; width: 100%; min-height: 58px; padding: 8px 8px 7px 11px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 9px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px; overflow: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.tile__id { font: 600 13px/1 var(--f-mono); color: var(--on-ink); letter-spacing: 0.01em; }
.tile__cat { font: 500 10.5px/1.1 var(--f-mono); color: var(--on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__flag { position: absolute; bottom: 7px; right: 6px; font: 700 8.5px/1 var(--f-mono); padding: 2px 4px; border-radius: 3px; background: rgba(46, 158, 91, 0.22); color: #7fdca4; letter-spacing: 0.04em; }
.tile:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.tile[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.tile.is-dim { opacity: 0.18; transform: scale(0.97); }
.st-available { --c: var(--st-available); }
.st-rental { --c: var(--st-rental); }
.st-sold { --c: var(--st-sold); }
.st-reserved { --c: var(--st-reserved); }
.st-loan { --c: var(--st-loan); }
.st-demo { --c: var(--st-demo); }
.st-repair { --c: var(--st-repair); }
.st-spare { --c: var(--st-spare); }
.st-unavailable { --c: var(--st-unavailable); }
.st-scrap { --c: var(--st-scrap); }

.unit-card { border-top: 1px solid var(--ink-line); padding: 16px; background: rgba(0, 0, 0, 0.18); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 12px 24px; align-items: start; min-height: 132px; }
.unit-card__head { display: grid; gap: 8px; justify-items: start; }
.unit-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.unit-card__id { font: 600 20px/1 var(--f-mono); color: var(--on-ink); }
.unit-card__id span { color: var(--on-ink-muted); font-weight: 500; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  font: 600 11px/1 var(--f-mono); letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--c, var(--st-available)) 18%, transparent); color: color-mix(in srgb, var(--c, var(--st-available)) 55%, white);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--st-available)); }
.unit-card__spec { font-size: 13px; color: var(--on-ink-muted); line-height: 1.45; }
.unit-card dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.unit-card dl div { display: grid; gap: 2px; }
.unit-card dt { font: 500 10px/1 var(--f-mono); color: var(--on-ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.unit-card dd { margin: 0; color: var(--on-ink); font-size: 13.5px; line-height: 1.35; }
.count { font: 600 13px/1.2 var(--f-mono); color: var(--amber); }
.count.is-late { color: #ff8a80; }
.board__foot { padding: 10px 16px; border-top: 1px solid var(--ink-line); font: 500 11px/1.4 var(--f-mono); color: var(--on-ink-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- fact strip ---------- */
.facts { position: relative; z-index: 1; margin-top: -1px; padding: 56px 0 8px; }
.facts__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__list li { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list b { display: block; font: 700 clamp(30px, 3.4vw, 40px)/1 var(--f-display); letter-spacing: -0.02em; }
.facts__list span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ---------- definition (GEO) ---------- */
.define { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 56px; }
.define p { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; letter-spacing: -0.005em; max-width: 44em; }
.define p strong { font-weight: 600; }
.define p.label { font-size: 12.5px; line-height: 1; letter-spacing: 0.08em; margin-top: 8px; }
.define .muted { color: var(--muted); }

/* ---------- problem ---------- */
.mess { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.scrap-card {
  background: var(--card); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  position: relative; min-height: 250px; display: flex; flex-direction: column;
}
.scrap-card h3 { font-size: 23px; display: flex; align-items: center; gap: 10px; }
.scrap-card h3 .ico { color: var(--muted); }
.scrap-card__body { margin-top: 16px; flex: 1; }
.scrap-card--board { background: #fdfdfb; }
.whiteboard { font: 500 15px/1.7 "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive; color: #2c4fa8; }
.whiteboard s { color: #b8423a; text-decoration-thickness: 2px; }
.whiteboard .smudge { color: rgba(44, 79, 168, 0.35); }
.sheet { width: 100%; border-collapse: collapse; font: 12.5px/1.3 var(--f-mono); }
.sheet th, .sheet td { border: 1px solid #d5d7d9; padding: 5px 6px; text-align: left; }
.sheet th { background: #eef0f1; font-weight: 600; }
.sheet .warn { background: #fff4c7; }
.sheet .conflict { background: #fde2df; }
.chat { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chat p { background: #e9f7ea; padding: 7px 11px; border-radius: 10px 10px 10px 3px; max-width: 92%; line-height: 1.4; }
.chat p small { display: block; font: 500 10.5px/1.2 var(--f-mono); color: #3a7a45; margin-bottom: 3px; }
.chat p.me { align-self: flex-end; background: #dcf1ff; border-radius: 10px 10px 3px 10px; }
.chat p.me small { color: #2c6aa0; }
.questions { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.q-list { list-style: none; background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.q-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 17px; line-height: 1.4; }
.q-list li::before { content: "?"; width: 26px; height: 26px; border-radius: 7px; background: rgba(220, 74, 64, 0.2); color: #ff8a80; display: grid; place-items: center; font: 700 14px/1 var(--f-mono); }
.q-list .q-head { display: block; grid-template-columns: none; font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); }
.q-list .q-head::before { display: none; }
.answer-panel { border-radius: var(--r-lg); padding: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px; }
.answer-panel h3 { font-size: clamp(28px, 3vw, 38px); }
.answer-panel ul { list-style: none; display: grid; gap: 10px; }
.answer-panel li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; }
.answer-panel li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; background: var(--st-available) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- lifecycle ("follow one forklift") ---------- */
.life { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.life__steps { list-style: none; display: grid; gap: 4px; position: relative; counter-reset: step; }
.life__steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.life__btn {
  position: relative; width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 10px 12px 10px 0; background: transparent; border: 0; text-align: left; cursor: pointer; border-radius: 12px;
}
.life__btn .dot {
  --c: var(--muted);
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong);
  display: grid; place-items: center; font: 600 13px/1 var(--f-mono); color: var(--muted); position: relative; z-index: 1;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.life__btn strong { display: block; font: 700 21px/1.1 var(--f-display); }
.life__btn small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.life__btn:hover .dot { border-color: var(--text); }
.life__btn[aria-selected="true"] .dot { background: var(--text); border-color: var(--c); box-shadow: 0 0 0 3px var(--c); color: #fff; transform: scale(1.08); }
.life__btn.is-done .dot { border-color: var(--c); color: var(--text); }
.life__stage { position: sticky; top: 100px; }
.life__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.js .life__panel[hidden] { display: none; }
.life__card {
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px; min-height: 340px;
}
.life__card .unit-card__id { font-size: 26px; }
.life__card .meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.life__card .meter i { display: block; height: 100%; background: var(--c, var(--amber)); border-radius: inherit; }
.life__card .rows { display: grid; gap: 8px; }
.life__card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed var(--ink-line); padding-bottom: 8px; }
.life__card .row span:first-child { color: var(--on-ink-muted); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.life__card .row span:last-child { text-align: right; }
.life__what { padding: 6px 0; }
.life__what h3 { font-size: clamp(28px, 3vw, 36px); }
.life__what p { margin-top: 12px; color: var(--muted); }
.life__what ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.life__what li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; line-height: 1.45; font-size: 16px; }
.life__what li .ico { color: var(--amber-deep); margin-top: 3px; }
.auto-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-mono); padding: 4px 8px; border-radius: 6px; background: var(--amber-wash); color: #6f5000; text-transform: uppercase; letter-spacing: 0.06em; }
.life__nav { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.life__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.life__nav button:hover { border-color: var(--text); }
.life__nav button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.life__nav span { font: 500 13px/1 var(--f-mono); color: var(--muted); margin-left: 6px; }
.no-js-note { display: none; }

/* ---------- tabs (by team) ---------- */
.tabs__list { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--paper-2); border-radius: 999px; width: fit-content; margin-bottom: 28px; }
.tabs__tab {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font: 600 15px/1 var(--f-body); color: var(--muted); transition: background-color 0.2s, color 0.2s;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.tabs__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tabs__panel + .tabs__panel { margin-top: 48px; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.js .tabs__panel[hidden] { display: none; }
.tabs__copy h3 { font-size: clamp(30px, 3.4vw, 42px); }
.tabs__copy > p { margin-top: 14px; color: var(--muted); }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 3px; background: var(--amber); }
.on-ink .ticks li::before { background: var(--amber); }
.tabs__copy .link-arrow { margin-top: 24px; }

/* mini product UIs (light) */
.ui {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  overflow: hidden; font-size: 13.5px;
}
.ui__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f6f5f1; }
.ui__bar b { font: 600 13px/1 var(--f-mono); }
.ui__bar span { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ui__body { padding: 16px; }
.ui table { width: 100%; border-collapse: collapse; }
.ui th { font: 500 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.ui td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ui tr:last-child td { border-bottom: 0; }
.ui .num { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
.ui .id { font: 600 13px/1 var(--f-mono); }
.ui .pill { color: color-mix(in srgb, var(--c) 60%, black); background: color-mix(in srgb, var(--c) 14%, white); }
.ui__split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #f6f5f1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font: 700 26px/1 var(--f-display); }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.stat--late b { color: var(--late); }
.stat--due b { color: var(--due); }
.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; vertical-align: middle; }
.check.on { background: var(--st-available); border-color: var(--st-available); }
.check.on::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bars { display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 118px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.bars i { display: block; height: 10px; border-radius: 99px; background: var(--c, var(--amber)); }
.bars span:last-child { font-family: var(--f-mono); text-align: right; }
.ui-note { margin-top: 12px; font: 500 11px/1.4 var(--f-mono); color: var(--muted); }

/* ---------- reminders ---------- */
.remind { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; position: relative; }
.lane { border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--ink-line); padding: 14px 12px; }
.lane h3 { font: 600 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.lane h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lane--up { --c: var(--st-rental); }
.lane--due { --c: var(--due); }
.lane--late { --c: var(--late); }
.lane p { font-size: 12.5px; color: var(--on-ink-muted); margin-top: 8px; line-height: 1.4; }
.note-card {
  margin-top: 14px; background: #2a2f38; border-radius: 10px; padding: 10px; border-left: 3px solid var(--c, var(--st-rental)); font-size: 12.5px; line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.note-card b { display: block; font: 600 12.5px/1.2 var(--f-mono); color: var(--on-ink); }
.note-card span { color: var(--on-ink-muted); }
.note-card--ghost { opacity: 0.35; box-shadow: none; }
.traveller { position: absolute; top: 0; left: 0; width: calc((100% - 20px) / 3 - 24px); margin: 62px 12px 0; transition: transform 0.9s var(--ease), border-color 0.4s; z-index: 2; }
.remind__bell { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.bell { display: inline-flex; align-items: center; gap: 10px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.bell .ico { color: var(--amber); }
.bell sup { background: var(--due); color: var(--ink); font: 700 10.5px/1 var(--f-mono); padding: 3px 6px; border-radius: 99px; margin-left: 2px; }

/* ---------- rate picker ---------- */
.rates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.rate-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.rate-box h3 { font-size: 26px; }
.rate-box > p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.field label { display: block; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 7px; }
.field select {
  width: 100%; min-height: 46px; padding: 10px 34px 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5e66' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat;
  appearance: none; -webkit-appearance: none; font: 500 15px/1.2 var(--f-body); color: var(--text); cursor: pointer;
}
.field select:focus { border-color: var(--amber-deep); outline: none; box-shadow: 0 0 0 3px var(--amber-wash); }
.rate-out { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rate-out div { background: #f6f5f1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; }
.rate-out span { display: block; font: 500 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.rate-out b { display: block; margin-top: 6px; font: 600 15px/1 var(--f-mono); }
.rate-out.is-hidden b { filter: blur(5px); user-select: none; }
.privacy { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14.5px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background-color 0.2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease); }
.switch input:checked + i { background: var(--st-available); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--amber); outline-offset: 2px; }
.transport { margin-top: 20px; }
.transport table { width: 100%; border-collapse: collapse; font-size: 14px; }
.transport th, .transport td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.transport th { font: 500 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.transport td.num { font-family: var(--f-mono); text-align: right; }
.transport th.num, .ui th.num { text-align: right; }
.transport tr.is-match td { background: var(--amber-wash); }
.example { display: inline-block; margin-top: 14px; font: 500 11.5px/1.4 var(--f-mono); color: var(--muted); }

/* ---------- roles matrix ---------- */
.control { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; align-items: start; }
.matrix__foot { padding: 16px 16px 18px; font-size: 14.5px; color: var(--muted); display: grid; gap: 6px; }
.matrix__foot b { color: var(--text); font-weight: 600; }
.matrix { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.matrix__scroll { overflow-x: auto; }
.matrix table { width: 100%; border-collapse: collapse; min-width: 520px; }
.matrix th, .matrix td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font: 500 10.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #f6f5f1; }
.matrix tbody th { font-weight: 600; }
.crud { display: inline-flex; gap: 3px; font: 600 11px/1 var(--f-mono); }
.crud i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--paper-2); color: rgba(18, 20, 24, 0.45); text-decoration: line-through; }
.crud i.on { text-decoration: none; }
.crud i.on { background: var(--ink); color: var(--amber); }
.dash { color: rgba(18, 20, 24, 0.3); }
.control__side { display: grid; gap: 20px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.side-card h3 { font-size: 24px; display: flex; gap: 10px; align-items: center; }
.side-card h3 .ico { color: var(--amber-deep); }
.side-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.history { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 13.5px; }
.history li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.history time { font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.history s { color: var(--muted); }

/* ---------- comparison ---------- */
.compare { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.compare__scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; }
.compare thead th { font: 700 20px/1.1 var(--f-display); background: #f6f5f1; }
.compare thead th small { display: block; font: 500 12px/1.3 var(--f-body); color: var(--muted); margin-top: 4px; }
.compare tbody th { font-weight: 600; width: 22%; }
.compare .us { background: rgba(245, 179, 1, 0.07); }
.compare thead .us { background: var(--ink); color: var(--on-ink); }
.compare thead .us small { color: var(--on-ink-muted); }
.yes, .no, .part { display: inline-flex; gap: 8px; align-items: baseline; }
.yes::before, .no::before, .part::before { font: 700 13px/1 var(--f-mono); flex: none; }
.yes::before { content: "✓"; color: var(--st-available); }
.no::before { content: "—"; color: var(--muted); }
.part::before { content: "~"; color: var(--due); }

/* ---------- audiences ---------- */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.aud a {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--on-ink); min-height: 280px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.aud a:hover { transform: translateY(-4px); border-color: rgba(245, 179, 1, 0.5); }
.aud .tag { font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.aud h3 { font-size: 30px; }
.aud p { color: var(--on-ink-muted); font-size: 15.5px; }
.aud .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.aud .go .ico { transition: transform 0.2s var(--ease); }
.aud a:hover .go .ico { transform: translateX(4px); }
.aud__stat { font: 600 12.5px/1.4 var(--f-mono); color: var(--on-ink-muted); border-top: 1px dashed var(--ink-line); padding-top: 12px; }

/* ---------- trust / origin ---------- */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.origin__title { margin-top: 16px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch; }
.origin__why { margin-top: 16px; font: 600 clamp(19px, 1.9vw, 23px)/1.3 var(--f-display); color: var(--amber-deep); max-width: 34ch; }
.origin__facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.origin__facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.origin__facts li b { font: 500 11.5px/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 6vw, 64px); counter-reset: s; }
.steps3 li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; }
.steps3 li::before { content: "0" counter(s); font: 600 13px/1 var(--f-mono); color: var(--amber-deep); display: block; margin-bottom: 14px; }
.steps3 h3 { font-size: 24px; }
.steps3 p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font: 600 18px/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--amber); }
.faq .faq__a { padding: 0 20px 20px; color: var(--muted); display: grid; gap: 10px; }
.faq .faq__a p:first-child { color: var(--text); }
.faq .faq__a a { color: var(--text); }

/* ---------- final CTA ---------- */
.final { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl) var(--r-xl) 0 0; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -380px; transform: translateX(-50%); background: radial-gradient(circle, rgba(245, 179, 1, 0.14), transparent 62%); pointer-events: none; }
.final__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.final h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 0.98; }
.final p.lede { margin-top: 18px; color: var(--on-ink-muted); font-size: 18px; max-width: 34em; }
.final .cta-row { margin-top: 30px; }
.expect { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 24px; }
.expect h3 { font: 600 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); }
.expect ol { list-style: none; margin-top: 16px; display: grid; gap: 14px; counter-reset: e; }
.expect li { counter-increment: e; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.expect li::before { content: counter(e); width: 28px; height: 28px; border-radius: 8px; background: rgba(245, 179, 1, 0.14); color: var(--amber); display: grid; place-items: center; font: 600 13px/1 var(--f-mono); }
.expect li b { color: var(--on-ink); font-weight: 600; }
.expect li span { color: var(--on-ink-muted); }
.expect .contacts { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--ink-line); display: grid; gap: 6px; font-size: 15px; }
.expect .contacts a { color: var(--on-ink); text-decoration-color: rgba(245, 179, 1, 0.6); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 110px; font-size: 14.5px; border-top: 1px solid var(--ink-line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--on-ink); }
.footer__desc { margin-top: 14px; max-width: 30em; line-height: 1.55; }
.footer h4 { font: 600 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--on-ink-muted); text-decoration: none; }
.footer a:hover { color: var(--on-ink); }
.footer address { font-style: normal; line-height: 1.6; }
.footer address a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.2); text-underline-offset: 3px; }
.footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  transform: translateY(140%); transition: transform 0.35s var(--ease);
}
.mobile-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.mobile-cta { visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
.mobile-cta.is-visible { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }

/* ---------- sub pages ---------- */
.page-hero { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); border-radius: 0 0 var(--r-xl) var(--r-xl); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -240px; background: radial-gradient(circle, rgba(245, 179, 1, 0.12), transparent 62%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font: 500 12.5px/1.3 var(--f-mono); color: var(--on-ink-muted); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: var(--on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-ink); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 16em; line-height: 1.02; }
.page-hero .sub { margin-top: 20px; color: var(--on-ink-muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 40em; }
.page-hero .cta-row { margin-top: 30px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__grid .ui { color: var(--text); }
.answer {
  margin-top: -40px; position: relative; z-index: 3; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 170px 1fr; gap: 24px;
}
.answer h2 { font: 600 12px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-deep); }
.answer p { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.answer p + p { margin-top: 10px; font-size: 16px; color: var(--muted); }

.feature-rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.frow { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.frow--flip > :first-child { order: 2; }
.frow h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 14px; }
.frow h3 { font-size: clamp(28px, 3vw, 38px); margin-top: 14px; }
.frow > div > p { margin-top: 14px; color: var(--muted); }

.module-index { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.module-index a { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color 0.2s; }
.module-index a:hover { border-color: var(--text); }
.module-index a span { font: 500 12px/1 var(--f-mono); color: var(--amber-deep); }
.module { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.module__head .n { font: 600 13px/1 var(--f-mono); color: var(--amber-deep); }
.module__head h2 { font-size: clamp(30px, 3.4vw, 40px); margin-top: 12px; }
.module__head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.module__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.fcard h3 { font: 600 17px/1.3 var(--f-body); letter-spacing: 0; }
.fcard p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fcard--wide { grid-column: 1 / -1; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-row .pill { color: color-mix(in srgb, var(--c) 60%, black); background: color-mix(in srgb, var(--c) 14%, white); }
.tagline { display: inline-block; font: 500 12px/1 var(--f-mono); background: var(--paper-2); padding: 5px 8px; border-radius: 6px; margin: 2px 2px 0 0; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease); }
.related a:hover { border-color: var(--text); transform: translateY(-2px); }
.related span { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber-deep); }
.related b { font: 700 22px/1.15 var(--f-display); }
.related p { font-size: 14.5px; color: var(--muted); }

/* guides / prose */
.prose { max-width: 740px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 48px 0 14px; }
.prose h3 { font-size: 24px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration-color: var(--amber-deep); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose .tbl { overflow-x: auto; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r); padding: 18px 20px; margin: 0 0 24px; font-size: 16.5px; }
.callout strong { display: block; font: 600 11.5px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber-deep); margin-bottom: 6px; }
.byline { font: 500 13px/1.5 var(--f-mono); color: var(--on-ink-muted); margin-top: 18px; }
.sources { font-size: 15px; color: var(--muted); }
.sources li { word-break: break-word; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-list a { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease); }
.guide-list a:hover { border-color: var(--text); transform: translateY(-2px); }
.guide-list span { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber-deep); }
.guide-list b { font: 700 28px/1.1 var(--f-display); }
.guide-list p { color: var(--muted); font-size: 15.5px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .code { font: 700 clamp(90px, 18vw, 180px)/0.9 var(--f-display); color: var(--amber); letter-spacing: -0.03em; }
.lost h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 16px; }
.lost p { color: var(--on-ink-muted); margin: 14px auto 0; max-width: 32em; }
.lost .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- reveal (JS only) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .d1 { transition-delay: 0.08s; }
.js .d2 { transition-delay: 0.16s; }
.js .d3 { transition-delay: 0.24s; }
.js .d4 { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 720px; }
  .board__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .life { grid-template-columns: 1fr; }
  .life__steps { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .life__steps::before { display: none; }
  .life__steps li { flex: none; scroll-snap-align: start; }
  .life__btn { grid-template-columns: 34px auto; padding: 8px 14px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; gap: 10px; }
  .life__btn .dot { width: 30px; height: 30px; font-size: 12px; }
  .life__btn strong { font-size: 17px; white-space: nowrap; }
  .life__btn small { display: none; }
  .life__stage { position: static; }
  .module { grid-template-columns: 1fr; }
  .module-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--ink-line); gap: 2px;
  }
  .nav.is-open .nav__links a { padding: 14px 12px; font-size: 17px; }
  .nav.is-open .nav__cta { display: inline-flex; position: absolute; top: calc(100% + 12px); right: var(--gutter); }
  .nav.is-open .nav__links { padding-top: 70px; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .facts__list li:nth-child(-n+2) { border-top: 0; }
  .facts__list li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .facts__list li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .define { grid-template-columns: 1fr; gap: 14px; }
  .mess { grid-template-columns: 1fr; }
  .scrap-card { min-height: 0; }
  .questions, .remind, .rates, .control, .origin, .faq, .final__in, .page-hero__grid, .frow { grid-template-columns: 1fr; }
  .frow--flip > :first-child { order: 0; }
  .faq__head { position: static; }
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__list { width: 100%; overflow-x: auto; flex-wrap: nowrap; border-radius: 16px; }
  .tabs__tab { flex: 1 0 auto; }
  .aud, .steps3, .related { grid-template-columns: 1fr; }
  .aud a { min-height: 0; }
  .answer { grid-template-columns: 1fr; gap: 10px; margin-top: -32px; }
  .guide-list { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .board__body { grid-template-columns: 1fr; }
  .unit-card { grid-template-columns: 1fr; min-height: 0; }
  .board__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 10px 12px 12px; }
  .board__filters { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px 4px; scrollbar-width: none; }
  .board__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .tile { min-height: 52px; padding: 7px 6px 6px 9px; }
  .tile__id { font-size: 12px; }
  .tile__cat { font-size: 9.5px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__facts { gap: 8px 16px; font-size: 12.5px; }
  .life__panel { grid-template-columns: 1fr; }
  .life__card { min-height: 0; }
  .lanes { grid-template-columns: 1fr; }
  .lane { min-height: 0; }
  .traveller { display: none; }
  .lane .note-card--live { display: block; }
  .pickers { grid-template-columns: 1fr; }
  .rate-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate-out div:last-child { grid-column: 1 / -1; }
  [data-lanes-toggle] { display: none !important; }
  .ui__split { grid-template-columns: 1fr 1fr; }
  .ui__split .stat:last-child { grid-column: 1 / -1; }
  .bars div { grid-template-columns: 96px 1fr 28px; }
  .module__body { grid-template-columns: 1fr; }
  .module-index { grid-template-columns: 1fr 1fr; }
  .origin__facts li { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .ui { font-size: 12.5px; }
  .ui__body { padding: 12px; }
  .ui td, .ui th { padding: 8px 5px; }
  .hide-sm { display: none; }
}
@media (min-width: 641px) {
  /* the empty slot each lane keeps for the travelling card */
  .js .lane p::after { content: ""; display: block; height: var(--slot, 52px); margin-top: 10px; border: 1px dashed var(--ink-line); border-radius: 10px; }
  .js .lane p + .note-card--live { margin-top: 10px; }
  .js .lane .note-card--live { opacity: 0.85; box-shadow: none; }
}
html:not(.js) .traveller { display: none; }
html:not(.js) .lane .note-card--live { display: block; }
html:not(.js) .no-js-note { display: block; }

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

@media print {
  .nav, .mobile-cta, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; }
}

.t-due { color: var(--due-text); font-weight: 600; }
.t-late { color: var(--late-text); font-weight: 600; }

/* ---------- "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(--text); }
.pagenav__list a[aria-current="true"] { color: var(--text); border-bottom-color: var(--amber-deep); }
.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; } }
  .has-pagenav .life__stage, .has-pagenav .faq__head { top: 133px; }
}
@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; } }
