/* Vendor Governance Pack — night instrument panel.
 *
 * The world: a small aircraft's night six-pack. Outside is ink; inside, six
 * calm dials agree with each other, and the practiced eye sweeps them in a
 * ritual of cross-checks. That is exactly what scoring a proposal is, so the
 * six gauges carry the six scorecard sections and the reader cross-checks
 * them against the total.
 *
 * Rules this world enforces:
 *   - Amber and red are LAMPS. They appear only for caution, never as
 *     decoration, and the word always travels with the colour.
 *   - Secondary text is tinted from the panel's own hue, never grey. Grey on
 *     black is how a dark interface reads as unfinished.
 *   - Every figure is tabular. A gauge whose numerals shift width is a gauge
 *     nobody trusts.
 *   - Needles are damped, never snapped. One authored motion, on arrival.
 *
 * Fonts are self-hosted. A third-party font file is a request to somebody
 * else's server carrying your visitor's IP address, which is a POPIA question
 * for the sake of slightly different letterforms. Downloading them once at
 * build time keeps the promise; linking a CDN would not.
 */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrainsmono.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* Panel */
  --void: #070806;
  --panel: #101310;
  --panel-hi: #171b17;
  --face: #0a0d0a;
  --hairline: #24291f;
  --screw: #2b312a;

  /* Markings */
  --lume: #e9efe6;
  --radium: #74e39a;
  --radium-dim: #3d7a55;
  /* Secondary text is tinted from the panel hue. Never grey. */
  --placard: #93a394;

  /* Lamps. Caution only, and never without the word. */
  --amber: #f0ad3c;
  --lamp-red: #ff6459;

  --measure: 82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--radium-dim) var(--void); }

body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--lume);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  caret-color: var(--radium);
  overflow-x: hidden;
}

/* The parts nobody draws still carry the design. */
::selection { background: var(--radium-dim); color: var(--lume); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--hairline); border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--radium-dim); }

/* Cabin light: the ink outside the glass. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 68% 22%, rgba(116, 227, 154, 0.07), transparent 60%),
    radial-gradient(90% 70% at 12% 8%, rgba(233, 239, 230, 0.045), transparent 55%);
}

.shell { position: relative; z-index: 1; max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem 5rem; }

/* ---------------------------------------------------------------------------
 * Type
 * ------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 0.94; text-transform: uppercase; }
h1 { font-size: clamp(2.35rem, 4.7vw, 4.15rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.15; }

p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--placard); max-width: 34ch; line-height: 1.55; }
.muted { color: var(--placard); }

/* Placards: the terse caps under a gauge, and every label on the panel. */
.placard {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--placard);
}

a { color: var(--radium); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--radium);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Masthead
 * ------------------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1.2rem;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--lume);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.wordmark svg { display: block; }
.status-lamp { display: flex; align-items: center; gap: 0.55rem; }
/* A lamp is a lit object, not a glow effect. Drawn as a radial field that
 * falls off from a hot centre, so the light is authored material rather than a
 * zero-offset halo bolted onto a dot. */
/* A lens, not a light effect: solid colour, a bezel ring, and one offset
 * specular highlight. A gradient fading to transparent on a dark page reads as
 * the same decoration a zero-offset halo does, whichever property draws it. */
.lamp {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--radium);
  border: 1px solid var(--radium-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.lamp.caution { background: var(--amber); border-color: #8a6420; }

/* ---------------------------------------------------------------------------
 * Flight deck — the first viewport
 * ------------------------------------------------------------------------- */

.deck {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.6rem);
}
.deck-copy h1 { margin-bottom: 1.3rem; }
.deck-copy .lede { margin-bottom: 1.9rem; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radium);
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--radium-dim);
  background: rgba(116, 227, 154, 0.05);
  transition: background 160ms ease-out, border-color 160ms ease-out;
}
.cta:hover { background: rgba(116, 227, 154, 0.12); border-color: var(--radium); }
/* A pending action states that it is pending. It is not a link and never
 * resolves anywhere, so it is not marked up as one. */
.cta.is-pending { color: var(--placard); border-color: var(--hairline); background: none; cursor: default; }
.cta .chev { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }

.certs {
  margin: 1.7rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------------
 * The panel and its six gauges
 * ------------------------------------------------------------------------- */

.panel {
  position: relative;
  background: linear-gradient(158deg, var(--panel-hi), var(--panel) 46%, #0b0e0b);
  border: 1px solid var(--hairline);
  padding: clamp(1.3rem, 2.6vw, 2.3rem);
  box-shadow: 0 14px 22px -18px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(233, 239, 230, 0.045);
}
.six-pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.5rem);
}
.gauge { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.gauge svg { display: block; width: 100%; height: auto; max-width: 15.5rem; }
.gauge-placard {
  width: 100%;
  text-align: center;
  border: 1px solid var(--hairline);
  background: rgba(7, 8, 6, 0.72);
  padding: 0.4rem 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--placard);
  line-height: 1.35;
}
.gauge-placard b { display: block; color: var(--lume); font-weight: 700; letter-spacing: 0.16em; }
.gauge-placard .readout { display: block; color: var(--lume); letter-spacing: 0.08em; margin: 0.15rem 0; }
.gauge.is-caution .gauge-placard { border-color: rgba(240, 173, 60, 0.55); color: var(--amber); }
.gauge.is-caution .gauge-placard b { color: var(--amber); }

/* One authored motion: the needles sweep to their reading on arrival, damped,
 * the way a real instrument settles. Never snapped.
 *
 * The angle itself is static CSS and is always the true reading. The sweep is
 * driven from script with fill:none, so when it finishes — or never runs at
 * all, because the visitor asked for reduced motion, script is off, or the tab
 * is throttled — the element falls back to this transform and the gauge still
 * tells the truth. An entrance animation must never own an instrument's value.
 */
.needle {
  transform-box: fill-box;
  transform-origin: 50% 88%;
  transform: rotate(var(--settle, 0deg));
}

/* ---------------------------------------------------------------------------
 * Status strip — the verdict, read as a row of instruments
 * ------------------------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border: 1px solid var(--hairline);
  border-bottom: 0;
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
}
.cell { padding: 1.2rem 1.3rem 1.35rem; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; }
.cell + .cell { border-left: 1px solid var(--hairline); }
.cell .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.35rem;
  color: var(--lume);
  letter-spacing: -0.01em;
}
.cell.is-caution .value { color: var(--lamp-red); }
.cell .note { margin: 0.4rem 0 0; font-size: 0.83rem; color: var(--placard); line-height: 1.45; }

/* ---------------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------------- */

.block { margin: 0 0 clamp(2.6rem, 5.5vw, 4.2rem); }
.block > .placard { display: block; margin-bottom: 0.9rem; }
.block h2 { margin-bottom: 1.1rem; }
.block p { max-width: 62ch; color: var(--placard); }
.block h2 + p { color: var(--lume); }

.rows { border-top: 1px solid var(--hairline); margin: 1.8rem 0 0; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
}
.row .idx { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--radium-dim); font-weight: 700; }
.row p { margin: 0.35rem 0 0; font-size: 0.95rem; }
.row .fmt { justify-self: end; text-align: right; }

/* Free: the primary ask, given the panel treatment and real weight. */
.enlist {
  margin-bottom: clamp(3.6rem, 8vw, 6.5rem);
  background: linear-gradient(158deg, var(--panel-hi), var(--panel) 55%, #0b0e0b);
  border: 1px solid var(--radium-dim);
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  box-shadow: 0 14px 22px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(116, 227, 154, 0.09);
}
.enlist h2 { margin-bottom: 1rem; }

form { margin-top: 1.6rem; max-width: 30rem; }
label { display: block; margin-bottom: 0.4rem; }
input[type="email"] {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--lume);
  background: var(--void);
  border: 1px solid var(--placard);
  border-radius: 0;
}
input[type="email"]::placeholder { color: #5d6a5e; }
input[type="email"]:hover { border-color: var(--radium); }
input[type="email"][aria-invalid="true"] { border-color: var(--lamp-red); }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.1rem 0 1.3rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--placard);
}
.consent input { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; margin-top: 0.05rem; accent-color: var(--radium); }

button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--radium);
  border: 1px solid var(--radium);
  border-radius: 0;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  width: 100%;
  transition: background 160ms ease-out;
}
@media (min-width: 34rem) { button { width: auto; } }
button:hover { background: #8bf0ac; }
button:disabled { background: var(--hairline); border-color: var(--hairline); color: var(--placard); cursor: default; }

#status { margin: 1rem 0 0; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; min-height: 1.5rem; }
#status.is-error { color: var(--lamp-red); }
#status.is-done { color: var(--radium); }

/* Comparison, set as an instrument readout rather than a marketing table. */
.compare { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.94rem; }
.compare th, .compare td { text-align: left; padding: 0.75rem 0.6rem 0.75rem 0; border-bottom: 1px solid var(--hairline); }
.compare thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--placard);
  font-weight: 500;
}
.compare tbody th { font-weight: 400; color: var(--lume); }
.compare td { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; letter-spacing: 0.06em; width: 7rem; }
.compare .no { color: #5d6a5e; }
.compare .yes { color: var(--radium); }

.block p.price,
.price {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--lume);
  margin: 0.6rem 0 0.3rem;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------------------
 * Document pages — privacy and licence. Read mode inside the same world:
 * the panel recedes, the measure tightens, comprehension leads.
 * ------------------------------------------------------------------------- */

.doc { max-width: 44rem; padding-bottom: 4rem; }
.doc-head { padding: clamp(2.4rem, 6vw, 4rem) 0 1.4rem; border-bottom: 1px solid var(--hairline); margin-bottom: 2rem; }
.doc-head h1 { margin-bottom: 1rem; }
.doc-head .placard { margin: 0.9rem 0 0; }
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2.6rem 0 0.8rem; }
.doc p { max-width: 62ch; }
.doc ul { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--placard); }
.doc li { margin-bottom: 0.5rem; max-width: 60ch; }
.doc li::marker { color: var(--radium-dim); }

footer {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
footer a { display: inline-block; padding: 0.45rem 0; }

/* ---------------------------------------------------------------------------
 * Adaptation. The six-pack stacks by criticality, not by source order.
 * ------------------------------------------------------------------------- */

@media (max-width: 60rem) {
  .deck { grid-template-columns: 1fr; gap: 2.2rem; }
  .deck-copy .lede { max-width: none; }
}
@media (max-width: 40rem) {
  .six-pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .fmt { grid-column: 1; justify-self: start; text-align: left; margin-top: 0.3rem; }
}
@media (max-width: 26rem) {
  .six-pack { grid-template-columns: 1fr; }
  .gauge svg { max-width: 11rem; }
}
