/* Rangehead — shared stylesheet.
   Committed to a single light identity on purpose: an enterprise trust surface
   should read as one document, not as a themeable app. Every colour is a token
   and nothing is left to the host background. */

:root {
  --ground: #F4F5F6;
  --paper: #FFFFFF;
  --wash: #EAEDEF;
  --ink: #0E1319;
  --ink-2: #333E49;
  --muted: #64707C;
  --rule: #D9DEE3;
  --rule-firm: #BFC7CF;
  --pine: #125A4C;
  --pine-deep: #0C3F35;
  --pine-wash: #E2EDE9;
  --brass: #8A6A22;
  --brass-wash: #F4EEDF;
  --brass-rule: #E4D5AE;
  --red: #8E2F2A;
  --red-wash: #F8E7E5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── nav ── */
header.bar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark .glyph { width: 22px; height: 22px; flex: none; }
.mark .word {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.bar nav a.cta {
  background: var(--pine);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
}
.bar nav a.cta:hover { background: var(--pine-deep); color: #fff; }
@media (max-width: 820px) { .bar nav a.nav-link { display: none; } }

/* ── hero ── */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-top: 78px; padding-bottom: 60px; }
.hero .label { display: block; margin-bottom: 24px; color: var(--pine); }
h1 {
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.024em;
  margin: 0 0 22px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero.compact .wrap { padding-top: 56px; padding-bottom: 44px; }
.hero.compact h1 { font-size: clamp(32px, 4.6vw, 46px); max-width: 20ch; }
.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 34px;
}
.lede:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.btn {
  display: inline-block;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid var(--pine);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
.btn.ghost { background: transparent; color: var(--pine); border-color: var(--rule-firm); }
.btn.ghost:hover { background: var(--pine-wash); border-color: var(--pine); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ── lineage strip ── */
.lineage { background: var(--wash); border-bottom: 1px solid var(--rule); }
.lineage .wrap { padding: 26px 28px; }
.lineage .intro { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); max-width: 74ch; }
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { background: var(--paper); padding: 18px 20px; }
.facts .n {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.2;
}
.facts .t { font-size: 14px; color: var(--muted); }

/* ── sections ── */
section.band { padding: 68px 0; border-bottom: 1px solid var(--rule); }
section.band.paper { background: var(--paper); }
section.band.tight { padding: 48px 0; }
h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 14px 0 16px;
  max-width: 22ch;
  text-wrap: balance;
}
.sub { font-size: 17px; color: var(--ink-2); max-width: 64ch; margin: 0 0 38px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.006em; }
p { margin: 0 0 15px; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.prose h3 { margin-top: 32px; color: var(--ink); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 9px; }

.cols { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 800px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.cols.two { grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols.two { grid-template-columns: repeat(2, 1fr); } }
.cols > div { max-width: 46ch; }
.cols .label { display: block; margin-bottom: 12px; color: var(--pine); }
.cols p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ── boxed grid ── */
.boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 800px) { .boxes.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .boxes.two { grid-template-columns: repeat(2, 1fr); } }
.boxes > div { background: var(--paper); padding: 24px; }
.boxes h3 { margin-bottom: 8px; }
.boxes p { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.boxes p:last-child { margin-bottom: 0; }
.boxes ul { font-size: 15px; color: var(--ink-2); margin: 0; padding-left: 18px; }
.boxes li { margin-bottom: 7px; }

/* ── definition rows ── */
.posture { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); max-width: 82ch; }
.posture > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 680px) { .posture > div { grid-template-columns: 230px minmax(0, 1fr); } }
.posture .k { font-weight: 600; font-size: 15.5px; }
.posture .v { font-size: 15.5px; color: var(--ink-2); }

.tick {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: 2px;
}
.tick.live { background: var(--pine-wash); color: var(--pine); }
.tick.soon { background: var(--brass-wash); color: var(--brass); }
.tick.none { background: var(--red-wash); color: var(--red); }

/* ── callouts ── */
.honest {
  margin: 34px 0 0;
  padding: 20px 22px;
  background: var(--brass-wash);
  border: 1px solid var(--brass-rule);
  border-radius: 4px;
  max-width: 82ch;
}
.honest .label { display: block; margin-bottom: 8px; color: var(--brass); }
.honest p { font-size: 15.5px; margin: 0 0 10px; color: var(--ink-2); }
.honest p:last-child { margin: 0; }

/* ── tables ── */
.scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: var(--wash);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* ── resources ── */
.docs { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
@media (min-width: 760px) { .docs { grid-template-columns: repeat(2, 1fr); } }
.docs > div { background: var(--paper); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.docs h3 { margin: 0; }
.docs p { font-size: 15px; color: var(--ink-2); margin: 0; flex: 1; }
.docs .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.docs .foot a { font-size: 14.5px; font-weight: 600; }
.pill {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.open { background: var(--pine-wash); color: var(--pine); }
.pill.gate { background: var(--brass-wash); color: var(--brass); }

/* ── price band ── */
.price { background: var(--pine); color: #fff; }
.price .wrap { padding: 52px 28px; }
.price .label { color: rgba(255,255,255,.72); display: block; margin-bottom: 14px; }
.price p.big {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.3;
  margin: 0 0 12px;
  max-width: 26ch;
}
.price p.small { font-size: 15.5px; color: rgba(255,255,255,.8); margin: 0; max-width: 62ch; }
.price a { color: #fff; }

/* ── form ── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 46px; align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 60px; } }
.form-aside p { font-size: 15.5px; color: var(--ink-2); }
.form-aside ul { margin: 0; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }
.form-aside li { margin-bottom: 9px; }

form.enq { background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 26px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-firm);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #97A2AC; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.submit-row .fineprint { font-size: 13px; color: var(--muted); margin: 0; }

.msg { margin-top: 16px; font-size: 15px; border-radius: 4px; padding: 14px 16px; display: none; }
.msg.err { display: block; background: var(--red-wash); border: 1px solid #E3BCB8; color: var(--red); }
.msg.ok { display: block; background: var(--pine-wash); border: 1px solid #A9CCC2; color: var(--pine-deep); }
.msg a { color: inherit; font-weight: 600; }

/* ── footer ── */
footer.foot { background: var(--paper); border-top: 1px solid var(--rule); }
footer.foot .wrap { padding: 40px 28px 56px; display: grid; gap: 20px; }
footer.foot .lineage-line { font-size: 15px; color: var(--ink-2); max-width: 74ch; margin: 0; }
footer.foot .legal {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
  margin: 0;
}
footer.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
