/* Altrevo Systems — design B "Blueprint" */

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

:root {
  color-scheme: dark;

  --bg: #0b111c;
  --bg-2: #0d1420;
  --panel: #111a29;
  --panel-2: #0f1724;
  --raise: #162235;
  --line: #1e2a3d;
  --line-2: #2a3a52;
  --wire: #34496a;

  --text: #e7ecf3;
  --text-2: #93a1b5;
  --text-3: #7d8ba0;

  --accent: #5cc8ff;
  --accent-hover: #8ad8ff;
  --accent-ink: #04121d;
  --accent-soft: rgba(92, 200, 255, 0.08);
  --accent-line: rgba(92, 200, 255, 0.42);

  --ok: #5fd39a;
  --warn: #f0b553;
  --info: #8fb0ff;
  --mute: #93a1b5;
  --bad: #ff8a7a;

  --grid-fine: rgba(120, 170, 230, 0.045);
  --grid-major: rgba(120, 170, 230, 0.08);

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

  --max: 1200px;
  --max-wide: 1280px;
  --gutter: 32px;
  --header-h: 64px;
}

@media (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 599px)  { :root { --gutter: 16px; } }

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

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
svg { display: block; }
p { margin: 0; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

::selection { background: rgba(92, 200, 255, 0.28); color: var(--text); }

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

.mono { font-family: var(--mono); }

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

/* Logo mark */
.mark { width: 28px; height: 28px; flex: none; }
.mark-bg { fill: var(--panel); stroke: var(--line-2); }
.mark-bar { fill: var(--text); }
.mark-line { stroke: var(--text); }
.mark-acc { fill: var(--accent); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-line {
  background: rgba(17, 26, 41, 0.7);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-line:hover { border-color: var(--accent-line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 28, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--text); background: rgba(147, 161, 181, 0.08); }
.header-cta { flex: none; }
.header-back { flex: none; margin-left: auto; }

@media (max-width: 959px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ------------------------------------------------------------------
   Shared drawing details
   ------------------------------------------------------------------ */

/* Dimension line with tick ends (horizontal). Colour from currentColor. */
.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: none;
  width: 40px;
  height: 9px;
  opacity: 0.55;
  background:
    linear-gradient(currentColor, currentColor) left center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

/* Section tag: [A] HOW IT WORKS ———— */
.sec-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.sec-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sec-id {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
  letter-spacing: 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -260px;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(92, 200, 255, 0.09), transparent);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-head {
  max-width: calc(940px + 2 * var(--gutter));
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 80px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.lede {
  max-width: 40em;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* Drawing sheet holding the product mock-up */
.sheet {
  position: relative;
  margin-top: 80px;
  padding: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(17, 26, 41, 0.55), rgba(11, 17, 28, 0.35));
}
/* Registration corner marks just outside the sheet */
.sheet::before {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  --c: var(--accent-line);
  background:
    linear-gradient(var(--c), var(--c)) left top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 14px no-repeat;
}
.sheet-ruler {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: -28px -28px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 26px;
  text-align: center;
}
.sheet-ruler span + span { border-left: 1px solid var(--line); }

.sheet-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 28px -28px -28px 0;
}
.sheet-cut {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
}
.sheet-cut span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.sheet-cut i {
  width: 96px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--wire) 0 14px, transparent 14px 18px, var(--wire) 18px 21px, transparent 21px 25px);
}

/* Title block — the corner box of the drawing */
.title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  width: min(420px, 100%);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  background: rgba(11, 17, 28, 0.6);
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 600;
}
.tb-brand .mark { width: 22px; height: 22px; }
.tb-rev {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
}
.tb-rev span {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.tb-rev b { color: var(--accent); font-size: 16px; font-weight: 500; line-height: 1; }
.tb-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tb-note li {
  padding: 9px 16px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.tb-note li + li { border-top: 1px solid var(--line); }
.tb-note .mono { margin-left: 4px; color: var(--text); font-size: 13px; }

@media (max-width: 719px) {
  .hero { padding: 64px 0 72px; }
  .lede { font-size: 17px; margin-top: 22px; }
  .actions { margin-top: 32px; }
  .eyebrow { gap: 10px; font-size: 11.5px; letter-spacing: 0.14em; }
  .eyebrow::before, .eyebrow::after { width: 22px; }

  .sheet { margin-top: 56px; padding: 12px; }
  .sheet::before { inset: -7px; }
  .sheet-ruler { display: none; }
  .sheet-foot { margin: 12px -12px -12px; }
  .sheet-cut { display: none; }
  .title-block { width: 100%; border-left: 0; }
}

/* ------------------------------------------------------------------
   App UI (shared by the mock-ups)
   ------------------------------------------------------------------ */

.app,
.win {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 40px 80px -40px rgba(0, 0, 0, 0.75);
}

.app-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.crumb {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.crumb i { margin: 0 4px; color: var(--line-2); font-style: normal; }
.crumb b { color: var(--text); font-weight: 500; }
.views {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.views span {
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
}
.views .on {
  background: var(--raise);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* BOM table */
.bom-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.bom {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bom th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.bom .c-pn { width: 20%; }
.bom .c-rev { width: 8%; }
.bom .c-qty { width: 8%; text-align: right; }
.bom .c-st { width: 17%; }
.bom td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bom tbody tr:last-child td { border-bottom: 0; }
.bom .pn,
.bom .rv,
.bom .qty { font-family: var(--mono); font-size: 13px; }
.bom .pn { color: var(--text-2); }
.bom .rv { color: var(--text-2); }
.bom .qty { text-align: right; }

/* Indented tree: level boxes + indent guides drawn as backgrounds */
.bom td.d {
  --g: var(--line-2);
  background-repeat: no-repeat;
}
.bom .lvl {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
}
.bom .r0 td.d { padding-left: 16px; font-weight: 600; }
.bom .r1 td.d,
.bom .r4 td.d,
.bom .r6 td.d { padding-left: 38px; }
.bom .r2 td.d,
.bom .r3 td.d,
.bom .r5 td.d { padding-left: 60px; }

.bom .r0 td.d {
  background-image: linear-gradient(var(--g), var(--g));
  background-size: 1px 50%;
  background-position: 25px 100%;
}
.bom .r1 td.d,
.bom .r4 td.d {
  background-image: linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g));
  background-size: 1px 100%, 13px 1px, 1px 50%;
  background-position: 25px 0, 25px 50%, 47px 100%;
}
.bom .r2 td.d {
  background-image: linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g));
  background-size: 1px 100%, 1px 100%, 13px 1px;
  background-position: 25px 0, 47px 0, 47px 50%;
}
.bom .r3 td.d,
.bom .r5 td.d {
  background-image: linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g));
  background-size: 1px 100%, 1px 50%, 13px 1px;
  background-position: 25px 0, 47px 0, 47px 50%;
}
.bom .r6 td.d {
  background-image: linear-gradient(var(--g), var(--g)), linear-gradient(var(--g), var(--g));
  background-size: 1px 50%, 13px 1px;
  background-position: 25px 0, 25px 50%;
}

/* Highlighted row */
.bom tr.sel td { background-color: rgba(92, 200, 255, 0.07); }
.bom tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.bom tr.sel .pn { color: var(--accent); }
.bom tr.sel .lvl { border-color: var(--accent-line); color: var(--accent); background: #10202f; }

.app-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.app-foot b { color: var(--text-2); font-weight: 500; }
.app-change::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--accent);
}

/* Status chips */
.chip {
  --c: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 11%, transparent);
  color: var(--c);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.ok { --c: var(--ok); }
.chip.warn { --c: var(--warn); }
.chip.info { --c: var(--info); }
.chip.mute { --c: var(--mute); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section { padding: clamp(80px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head .sec-tag { grid-column: 1 / -1; margin: 0 0 8px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; line-height: 1.05; }
.sec-intro {
  max-width: 36em;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
  .sec-intro { font-size: 17px; }
}

/* ------------------------------------------------------------------
   How it works — four steps on a dimension line
   ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; }
.step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.step-node::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
}
/* connector to the next step, with tick ends */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19.5px;
  left: 68px;
  right: -12px;
  height: 9px;
  color: var(--wire);
  background:
    linear-gradient(currentColor, currentColor) left center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.step-label {
  margin: 30px 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.step h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.step p:last-child {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 16px;
  text-wrap: pretty;
}
.step code,
.mod code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88em;
  white-space: nowrap;
}

@media (max-width: 959px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 22px;
    padding-bottom: 40px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-node { grid-column: 1; grid-row: 1 / span 3; }
  .step-label,
  .step h3,
  .step p:last-child { grid-column: 2; }
  .step-label { margin: 6px 0 8px; }
  .step:not(:last-child)::after {
    top: 64px;
    bottom: 10px;
    left: 19.5px;
    right: auto;
    width: 9px;
    height: auto;
    background:
      linear-gradient(currentColor, currentColor) center top / 9px 1px no-repeat,
      linear-gradient(currentColor, currentColor) center bottom / 9px 1px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  }
}

/* ------------------------------------------------------------------
   Modules — system map
   ------------------------------------------------------------------ */

.map-frame {
  position: relative;
  margin: 0 0 80px;
  padding: 48px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
}

.map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 22%, 240px) minmax(0, 1fr);
  grid-template-areas:
    "l0   l0   l0"
    "dash dash dash"
    "l1   .    l2"
    "g1   hub  g2"
    "g3   g3   g3"
    "l3   l3   l3";
  column-gap: 0;
}

.map-label {
  margin: 0 0 14px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.map-label.l1 { grid-area: l1; }
.map-label.l2 { grid-area: l2; padding-left: 28px; }
.map-label.l3 { grid-area: l3; margin: 16px 0 0; text-align: center; }
.map-label.l0 { grid-area: l0; text-align: center; }

/* Top band: role dashboards, across everything */
.map-dash {
  grid-area: dash;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: #0c1928;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.map-dash:hover { border-color: var(--accent); background: #0f2032; }
.dash-id { display: flex; flex-direction: column; gap: 5px; }
.dash-id .code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}
.dash-id .nm { font-size: 16px; font-weight: 600; line-height: 1.3; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.roles span {
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.3;
}
.hub-up {
  position: absolute;
  top: -64px;
  bottom: 50%;
  left: 50%;
  border-left: 1px solid var(--accent-line);
}

.map-nodes {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.map-nodes.g1 { grid-area: g1; }
.map-nodes.g2 { grid-area: g2; }
/* Both side columns fill the row, so 4 and 5 nodes end level */
.map-nodes.g1,
.map-nodes.g2 { display: flex; flex-direction: column; gap: 10px; }
.map-nodes.g1 li,
.map-nodes.g2 li { flex: 1; margin-top: 0; }
.map-nodes.g3 { grid-area: g3; }
.map-nodes li { position: relative; }
.map-nodes li + li { margin-top: 10px; }

.map-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 10px 14px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.map-node .code {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}
.map-node .nm { font-size: 15px; font-weight: 500; line-height: 1.3; }
.map-node:hover { border-color: var(--accent-line); background: #112032; }
.map-node:hover .code { color: var(--accent); }

/* Left group: stubs and spine on the right */
.g1 li { padding-right: 28px; }
.g1 li::after,
.g2 li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  border-top: 1px solid var(--wire);
}
.g1 li::before,
.g2 li::before {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
}
.g1 li::after { right: 0; }
.g1 li::before { right: 0; border-right: 1px solid var(--wire); }

/* Right group: mirrored */
.g2 li { padding-left: 28px; }
.g2 li::after { left: 0; }
.g2 li::before { left: 0; border-left: 1px solid var(--wire); }

.g1 li:first-child::before,
.g2 li:first-child::before { top: 50%; }
.g1 li:last-child::before,
.g2 li:last-child::before { bottom: 50%; }

/* Hub */
.map-hub-cell {
  grid-area: hub;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}
.map-hub-cell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--accent-line);
}
.map-hub-cell::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 50%;
  border-left: 1px solid var(--accent-line);
}
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 196px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(92, 200, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}
.ring i {
  position: absolute;
  top: 8px;
  right: 18px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}
.map-hub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: #0c1928;
  box-shadow: 0 0 0 5px var(--bg-2), 0 0 0 6px rgba(92, 200, 255, 0.22);
  text-align: center;
}
.hub-k {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.map-hub strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }

/* Bottom group: bus from the hub */
.map-nodes.g3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 48px;
}
.map-nodes.g3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 28px;
  border-left: 1px solid var(--accent-line);
}
.g3 li + li { margin-top: 0; }
.g3 li::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -6px;
  right: -6px;
  border-top: 1px solid var(--wire);
}
.g3 li:first-child::before { left: 50%; }
.g3 li:last-child::before { right: 50%; }
.g3 li::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  height: 20px;
  border-left: 1px solid var(--wire);
}

/* Phones: the map becomes a tree */
@media (max-width: 719px) {
  .map-frame { margin-bottom: 56px; padding: 24px 16px 28px; }

  .map {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "l0" "dash" "hub" "l1" "g1" "l2" "g2" "l3" "g3";
  }
  .map-label.l0 { padding: 0 0 10px; }
  .map-label.l0::before,
  .map-label.l0::after { display: none; }
  .map-dash { margin-bottom: 18px; }
  .hub-up { display: block; top: -19px; bottom: auto; left: 20px; height: 19px; }
  .map-hub-cell { min-height: 0; justify-items: start; }
  .map-hub-cell::before,
  .map-hub-cell::after,
  .ring { display: none; }
  .map-hub { align-items: flex-start; text-align: left; }

  .map-label,
  .map-label.l2,
  .map-label.l3 {
    position: relative;
    margin: 0;
    padding: 22px 0 10px 40px;
    text-align: left;
  }
  .map-label::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    border-left: 1px solid var(--accent-line);
  }
  .map-label.l3::before { bottom: auto; height: 30px; }
  .map-label::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 20px;
    width: 12px;
    border-top: 1px solid var(--accent-line);
  }

  .map-nodes,
  .map-nodes.g1,
  .map-nodes.g2,
  .map-nodes.g3 { display: block; padding: 0 0 0 40px; }
  .map-nodes.g1::before,
  .map-nodes.g2::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    border-left: 1px solid var(--accent-line);
  }
  .map-nodes.g3::before { display: none; }

  .map-nodes li,
  .g1 li,
  .g2 li,
  .g3 li { padding: 0 0 0 22px; }
  .map-nodes li + li,
  .map-nodes.g1 li + li,
  .map-nodes.g2 li + li,
  .g3 li + li { margin-top: 8px; }

  .g1 li::before,
  .g2 li::before,
  .g3 li::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 0;
    right: auto;
    width: 0;
    border-top: 0;
    border-right: 0;
    border-left: 1px solid var(--wire);
  }
  .g1 li:first-child::before,
  .g2 li:first-child::before,
  .g3 li:first-child::before { top: -10px; left: 0; }
  .g1 li:last-child::before,
  .g2 li:last-child::before,
  .g3 li:last-child::before { bottom: 50%; right: auto; }
  .g1 li::after,
  .g2 li::after,
  .g3 li::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: auto;
    width: 22px;
    height: 0;
    border-left: 0;
    border-top: 1px solid var(--wire);
  }
}

/* ------------------------------------------------------------------
   Modules — spec sheet
   ------------------------------------------------------------------ */

.groups { display: grid; gap: 40px; }

.group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 26, 41, 0.45);
}
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel);
}
.group-no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.group-head h3 { font-size: 22px; letter-spacing: -0.02em; }

.mod {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "code desc list";
  gap: 10px 32px;
  padding: 26px 24px;
}
.mod + .mod { border-top: 1px solid var(--line); }
.mod:target {
  background: linear-gradient(90deg, rgba(92, 200, 255, 0.08), transparent 70%);
  box-shadow: inset 2px 0 0 var(--accent);
}
.mod-code {
  grid-area: code;
  align-self: start;
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.mod-desc { grid-area: desc; }
.mod h4 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }
.mod-desc p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.mod-list {
  grid-area: list;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}
.mod-list li {
  position: relative;
  padding-left: 22px;
}
.mod-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 11px;
  height: 7px;
  color: var(--accent-line);
  background:
    linear-gradient(currentColor, currentColor) left center / 1px 7px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  transform: translateY(-50%);
}

@media (max-width: 899px) {
  .mod {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "code desc" ".    list";
    gap: 16px 20px;
  }
}
@media (max-width: 559px) {
  .group-head { padding: 14px 16px; }
  .group-head h3 { font-size: 20px; }
  .mod {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "code" "desc" "list";
    gap: 12px;
    padding: 22px 16px;
  }
}

/* ------------------------------------------------------------------
   Change & release — pipeline
   ------------------------------------------------------------------ */

.pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}
.pipe li { position: relative; padding-right: 22px; }
.pipe-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-right: -34px;
  padding: 0 26px 0 30px;
  background: linear-gradient(180deg, #16243a, var(--panel));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.pipe li:first-child .pipe-head {
  padding-left: 18px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.pipe li:last-child .pipe-head {
  margin-right: 0;
  background: linear-gradient(180deg, #123049, #0f2539);
}
.pipe-no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}
.pipe-name { font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.pipe li:last-child .pipe-name { color: var(--accent); }
.pipe li > p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.pipe.pipe-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 40px; }

@media (max-width: 1023px) {
  .pipe,
  .pipe.pipe-3 { grid-template-columns: minmax(0, 1fr); margin-bottom: 56px; }
  .pipe.pipe-3 { margin-bottom: 36px; }
  .pipe li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
    padding: 0 0 30px;
  }
  .pipe li:last-child { padding-bottom: 0; }
  .pipe-head { display: contents; }
  .pipe-no {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: var(--panel);
  }
  .pipe li:last-child .pipe-no { background: #0f2539; border-color: var(--accent); }
  .pipe-name { grid-column: 2; padding-top: 11px; font-size: 18px; }
  .pipe li > p { grid-column: 2; margin-top: 6px; font-size: 16px; }
  .pipe li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    bottom: 8px;
    left: 21.5px;
    border-left: 1px solid var(--wire);
  }
  .pipe li:not(:last-child)::before {
    content: "";
    position: absolute;
    bottom: 9px;
    left: 18.5px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--wire);
    border-bottom: 1px solid var(--wire);
    transform: rotate(45deg);
  }
}

/* ------------------------------------------------------------------
   Change & release — mock-ups
   ------------------------------------------------------------------ */

.mocks {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 959px) {
  .mocks { grid-template-columns: minmax(0, 1fr); }
}

.win { border-radius: 12px; }
.win-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 48px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ecr-id {
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.win-title {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* ECR key/value rows */
.kv { margin: 0; padding: 4px 20px; }
.kv > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 11px 0;
}
.kv > div + div { border-top: 1px dashed var(--line); }
.kv dt { color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.kv dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.kv .mono { font-size: 13.5px; }
.rev {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  vertical-align: 1px;
}
.rev.new { border-color: var(--accent-line); color: var(--accent); }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}
.disp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}
.disp-k { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.seg span {
  padding: 3px 10px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.seg span + span { border-left: 1px solid var(--line-2); }

.approvals {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.approvals-k { color: var(--text-3); font-size: 13.5px; }
.appr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.appr li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
}
.appr .who { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.appr .st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
}
.appr .done { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.appr .done .st { color: var(--ok); }
.appr .wait {
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.appr svg,
.ic svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 559px) {
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .appr { grid-template-columns: minmax(0, 1fr); }
  .appr li { flex-direction: row; justify-content: space-between; align-items: center; }
  .win-bar, .win-title, .kv, .approvals { padding-left: 16px; padding-right: 16px; }
}

/* Release gate checklist */
.checks { margin: 0; padding: 4px 20px; list-style: none; }
.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14.5px;
  line-height: 1.4;
}
.checks li + li { border-top: 1px dashed var(--line); }
.ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.pass .ic { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.fail .ic,
.gate-result .ic { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.checks .val {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
.checks .fail .val { color: var(--bad); }
.gate-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
  background: color-mix(in srgb, var(--bad) 9%, var(--panel-2));
  color: var(--bad);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 559px) {
  .checks { padding: 4px 16px; }
  .checks li { gap: 10px; font-size: 14px; }
  .gate-result { padding: 14px 16px; }
}

/* ------------------------------------------------------------------
   Delivery — two spec plates
   ------------------------------------------------------------------ */

.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 767px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
}
.plate {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel);
}
.plate::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --c: var(--accent-line);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 16px no-repeat;
}
.plate-head { display: flex; align-items: center; gap: 14px; }
.plate-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
}
.plate-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plate h3 { font-size: 22px; letter-spacing: -0.02em; }
.plate > p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 16px;
  text-wrap: pretty;
}
.facts { margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.facts > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-transform: uppercase;
}
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; }

@media (max-width: 479px) {
  .plate { padding: 24px 18px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------
   Why Altrevo — the spreadsheet problem
   ------------------------------------------------------------------ */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
@media (max-width: 959px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.cmp {
  position: relative;
  margin: 0;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.cmp-k {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cmp-dot { width: 8px; height: 8px; border-radius: 50%; }
.cmp-dot.bad { background: var(--bad); }
.cmp-dot.good { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Before: a scatter of spreadsheet files */
.cmp-before {
  background-color: #0d1219;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 138, 122, 0.025) 0 1px, transparent 1px 12px);
}
.files { position: relative; height: 372px; }
.file {
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "xl fn" "xl own";
  column-gap: 12px;
  align-items: center;
  width: 60%;
  padding: 9px 12px;
  border: 1px solid #2c3442;
  border-radius: 6px;
  background: #141b26;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.8);
}
.file .xl {
  grid-area: xl;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #1f6f45;
  color: #e8f7ee;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.file .fn {
  grid-area: fn;
  overflow: hidden;
  color: #c9d1dc;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file .own { grid-area: own; color: var(--text-3); font-size: 12px; line-height: 1.4; }
.f1 { top: 0;    left: 0;   transform: rotate(-1.6deg); }
.f2 { top: 54px; left: 38%; transform: rotate(1.2deg); }
.f3 { top: 120px; left: 3%; transform: rotate(0.8deg); }
.f4 { top: 180px; left: 40%; transform: rotate(-1.4deg); }
.f5 { top: 246px; left: 1%; transform: rotate(-0.7deg); }
.f6 { top: 310px; left: 37%; transform: rotate(1.8deg); }

/* Hand-written style notes with a dashed arrow */
.hand {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border: 1px dashed rgba(255, 138, 122, 0.55);
  border-radius: 999px;
  color: var(--bad);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(13, 18, 25, 0.9);
}
.hand::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.k1 { top: 12px;  right: 2%; }
.k2 { top: 132px; right: 0;  }
.k3 { top: 258px; right: 2%; }

@media (max-width: 599px) {
  .cmp { padding: 20px 16px 22px; }
  .files { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: auto; }
  .file, .hand { position: static; }
  .file { width: calc(100% - 14px); }
  .f2, .f4, .f6 { margin-left: 14px; }
  .hand { margin: 2px 0 2px 24px; }
}

/* After: one record feeding every team */
.one {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.one-hub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: #0c1928;
  box-shadow: 0 0 0 5px var(--bg-2), 0 0 0 6px rgba(92, 200, 255, 0.22);
}
.one-hub strong { font-size: 18px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.one-out {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 52px;
  list-style: none;
}
.one-out::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  border-top: 1px solid var(--accent-line);
}
.one-out li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
}
.one-out li::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -27px;
  border-left: 1px solid var(--accent-line);
}
.one-out li:first-child::before { top: 50%; }
.one-out li:last-child::before { bottom: 50%; }
.one-out li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -27px;
  width: 26px;
  border-top: 1px solid var(--accent-line);
}
.one-out .nm { font-size: 15px; font-weight: 500; }
.one-out .v { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.one-cap {
  margin-top: 22px;
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}
@media (max-width: 479px) {
  .one { grid-template-columns: minmax(0, 1fr); }
  .one-hub { justify-self: start; }
  .one-out { padding: 18px 0 0 40px; }
  .one-out::before { top: 0; left: 20px; width: 0; height: 18px; border-top: 0; border-left: 1px solid var(--accent-line); }
  .one-out li::before { left: -20px; }
  .one-out li:first-child::before { top: -12px; }
  .one-out li::after { left: -20px; width: 19px; }
  .one-cap { text-align: left; }
}

/* Problem -> solution rows */
.fixes {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.fix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.fix-p,
.fix-s { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.fix-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.fix-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fix-ic.bad { color: var(--bad); background: rgba(255, 138, 122, 0.1); }
.fix-ic.good { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.fix-p h3 { color: var(--text-2); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.fix-p p { margin-top: 6px; color: var(--text-3); font-size: 15px; line-height: 1.55; }
.fix-t { color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.fix-s p:not(.fix-t) { margin-top: 6px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
/* A dimension-line arrow between the two halves */
.fix-arrow {
  position: relative;
  align-self: center;
  height: 9px;
  margin: 0 14px;
  color: var(--accent-line);
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.fix-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 899px) {
  .fix { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .fix-arrow { width: 9px; height: 26px; margin: 0 0 0 10px; background-size: 1px 100%; }
  .fix-arrow::after { top: auto; bottom: 0; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
}

.punch {
  margin-top: 56px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.punch span { color: var(--accent); }

/* ------------------------------------------------------------------
   Customisation
   ------------------------------------------------------------------ */

.fit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1099px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .fit { grid-template-columns: minmax(0, 1fr); } }
.fit-item {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel);
}
.fit-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  border-top: 2px solid var(--accent);
}
.fit-no {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
}
.fit-item h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.fit-item p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

.fit-process { margin-top: 64px; }
.fit-k {
  margin-bottom: 22px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Contact — closing band
   ------------------------------------------------------------------ */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 13vw, 160px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-2);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 80%);
}
/* A drawn circle with dash-dot centre lines behind the heading */
.contact::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(92, 200, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(92, 200, 255, 0.13) 0 18px, transparent 18px 23px, rgba(92, 200, 255, 0.13) 23px 26px, transparent 26px 31px) center / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, rgba(92, 200, 255, 0.13) 0 18px, transparent 18px 23px, rgba(92, 200, 255, 0.13) 23px 26px, transparent 26px 31px) center / 1px 100% no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 62%, #000 80%);
  mask-image: radial-gradient(circle closest-side, transparent 0 62%, #000 80%);
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: calc(860px + 2 * var(--gutter));
  text-align: center;
}
.sec-tag-center {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 28px;
}
.sec-tag-center::before,
.sec-tag-center::after {
  content: "";
  flex: none;
  width: 40px;
  height: 9px;
  opacity: 0.55;
  background:
    linear-gradient(currentColor, currentColor) left center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1px 9px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.contact h2 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.contact-text {
  max-width: 38em;
  margin: 26px auto 0;
  color: var(--text-2);
  font-size: 19px;
  text-wrap: pretty;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 40px;
}
.mail {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mail:hover { border-color: var(--accent); color: var(--accent); }

.contact-alt {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 15px;
}
.contact-alt .mail { margin-left: 6px; }

/* Contact form: a drawing sheet with a title strip */
.cform,
.cform-done {
  max-width: 760px;
  margin: 44px auto 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(13, 20, 32, 0.92);
  text-align: left;
}
.cform { padding: 0 28px 28px; }
.cform-tag {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -28px 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.cform-tag span:first-child { color: var(--accent); }
.cform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.cform-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cform-field-wide { grid-column: 1 / -1; }
.cform-field label,
.cform-field .cform-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.cform-opt {
  margin-left: 6px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cform-field input[type="text"],
.cform-field input[type="email"],
.cform-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cform-field textarea { min-height: 132px; resize: vertical; }
.cform-field input,
.cform-field textarea { scroll-margin-top: calc(var(--header-h) + 48px); }
.cform-field textarea::placeholder { color: var(--text-3); }
.cform-field input:hover,
.cform-field textarea:hover { border-color: var(--wire); }
.cform-field input:focus,
.cform-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cform-field [aria-invalid="true"] { border-color: var(--bad); }
.cform-err { color: var(--bad); font-size: 13px; line-height: 1.4; }
.cform-err:empty { display: none; }

/* Honeypot: off screen for people, still in the form for bots */
.cform-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-check:not(:empty) { margin-top: 20px; }
.cform-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cform-note { color: var(--text-3); font-size: 14px; }
.cform-note a { color: var(--text-2); text-underline-offset: 3px; }
.cform-note a:hover { color: var(--accent); }
.cform .btn { border: 0; cursor: pointer; }
.cform .btn:disabled { opacity: 0.6; cursor: progress; }
.cform .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform-status { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.cform-status:empty { display: none; }
.cform-status.is-error { color: var(--bad); }

.cform-done { padding: 36px 28px; text-align: center; }
.cform-done:focus { outline: none; }
.cform-done-k {
  color: var(--ok);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cform-done-t { margin-top: 12px; font-size: 19px; text-wrap: pretty; }

@media (max-width: 599px) {
  .contact-text { font-size: 17px; }
  .mail { font-size: 15px; }
  .cform { padding: 0 16px 20px; }
  .cform-tag { margin: 0 -16px 20px; padding: 12px 16px; }
  .cform-grid { grid-template-columns: minmax(0, 1fr); }
  .cform-foot .btn { width: 100%; }
  .cform-done { padding: 28px 16px; }
}

/* ------------------------------------------------------------------
   Privacy notice
   ------------------------------------------------------------------ */

.legal {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.legal-inner { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.legal-date {
  margin-top: 14px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 21px;
  letter-spacing: -0.015em;
}
.legal p,
.legal li { color: var(--text-2); text-wrap: pretty; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li + li { margin-top: 10px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-hover); }

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

.site-footer {
  padding: 28px 0 36px;
  color: var(--text-3);
  font-size: 14px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
