/* ==========================================================
   Propeller Computing — shared foundation (public site + portal)
   Design rules: 4 colours, 3 type sizes, 1 system font stack.
   Everything is built from these tokens; don't add more.
   ========================================================== */
:root {
  /* Colour: the only four. Lines and hovers are tints of these, never new hues. */
  --black: #0A0A0A;
  --gray:  #6B7280;
  --white: #FFFFFF;
  --blue:  #2563EB;

  --line:      color-mix(in srgb, var(--gray) 28%, transparent);
  --line-dark: color-mix(in srgb, var(--gray) 45%, transparent);
  --blue-tint: color-mix(in srgb, var(--blue) 10%, transparent);

  /* Type: the only three sizes. */
  --fs-1: clamp(2.25rem, 4.6vw, 3.5rem); /* h1, h2, big numbers */
  --fs-2: 1.25rem;                        /* h3, lede, brand */
  --fs-3: 1rem;                           /* everything else */

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 var(--fs-3)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1, h2 { font-size: var(--fs-1); }
h3 { font-size: var(--fs-2); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; background: var(--blue); color: var(--white); border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Small uppercase section label: "01  What we do" */
.label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  color: var(--gray); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.label .idx { color: var(--blue); font-variant-numeric: tabular-nums; }
.label .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px;
  background: var(--blue); color: var(--white);
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--blue); border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--line-dark); }
.btn-ghost:hover { background: transparent; border-color: var(--black); }
.btn-small { min-height: 36px; padding: 0 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }


/* ---------- form fields ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
/* Errors use black + weight, not a fifth colour (red). */
.field.has-error input, .field.has-error textarea { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.field .err { font-weight: 600; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; } /* layout rules like display:flex must not override hidden */
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 500; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* reCAPTCHA: badge hidden, legal notice shown under each protected form instead. */
.grecaptcha-badge { visibility: hidden; }
.fine { margin: 0; color: var(--gray); }
.fine a { color: inherit; }
