/* The Harness website. Colours are design/tokens.json's (dark first; light follows the visitor's system), the type is
   the app's own: Archivo, semi-expanded for titles, and JetBrains Mono for measurements. One teal action per page. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #000000; --panel: #1A1B1B; --raised: #262727;
  --ink: #EEEFEF; --ink-muted: #939595;
  --accent: #5CC8B8; --on-accent: #06201C; --accent-ink: #5CC8B8;
  --danger: #F0716B;
  --plate: #55585C; --plate-grid: #73777C; --grid-line: rgba(238, 239, 239, .06);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-control: 999px; --r-card: 16px; --r-tile: 28px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #F3F4F4; --panel: #FFFFFF; --raised: #E6E8E8;
    --ink: #121313; --ink-muted: #5A5F5F;
    --accent: #2A9A8B; --on-accent: #03201B; --accent-ink: #17695F;
    --danger: #AE2E28;
    --plate: #DCDEE0; --plate-grid: #C8CBCE; --grid-line: rgba(18, 19, 19, .06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}
body::before { /* the faint 30 pt grid fading out over the top, as on the app's screens */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px; background-position: center top;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.wrap { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-stretch: 112%; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 750; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 700; font-stretch: 100%; }
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 112%; font-size: 20px; color: var(--ink); text-decoration: none; }
.lockup svg { width: 30px; height: 30px; flex: none; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-block: 32px 48px; margin-top: 48px;
  border-top: 1px solid var(--raised); font-size: 14px; color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* buttons and the waitlist form */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; font: inherit; font-weight: 650; font-size: 16px;
  padding: 12px 22px; border-radius: var(--r-control); white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn.raised { background: var(--raised); color: var(--ink); padding: 8px 16px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .6; cursor: default; }
.waitlist { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.waitlist .row { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--raised);
  border: 1px solid transparent; border-radius: var(--r-control); padding: 12px 18px; }
.waitlist input[type="email"]::placeholder { color: var(--ink-muted); }
.waitlist input[type="email"]:focus-visible { outline: none; border-color: var(--accent-ink); }
.waitlist .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .status { font-size: 14px; color: var(--ink-muted); min-height: 1.55em; }
.waitlist .status.error { color: var(--danger); }
.waitlist.done .row { display: none; }
.waitlist.done .status { color: var(--ink); font-size: 16px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy h1 .line { white-space: nowrap; }
.hero-copy .sub { font-size: 19px; color: var(--ink-muted); max-width: 34ch; }
.shot { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 19.5; border-radius: 40px; background: var(--panel);
  padding: 12px; display: flex; }
.shot img, .shot svg { width: 100%; height: 100%; border-radius: 30px; display: block; object-fit: cover; }

section.band { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--panel); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.steps p { color: var(--ink-muted); font-size: 16px; }

.printers { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--panel); border-radius: var(--r-card); overflow: hidden; }
.printers th, .printers td { padding: 12px 20px; text-align: left; font-weight: 400; }
.printers th { font-size: 13px; color: var(--ink-muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.printers td + td, .printers th + th { text-align: right; white-space: nowrap; }
.printers tr + tr td { border-top: 1px solid var(--raised); }

/* documents: the legal pages and Support */
.doc { max-width: 72ch; padding-block: 32px 16px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 16px; }
.doc h3 { margin: 28px 0 8px; scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ink-muted); }
.doc em:first-child:only-child { color: var(--ink-muted); }
.doc strong { font-weight: 650; }
.doc .table { overflow-x: auto; margin: 0 0 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--raised); }
.doc th { font-weight: 650; }
.doc hr { border: 0; border-top: 1px solid var(--raised); margin: 32px 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 24px 40px; }
  .hero-copy h1 .line { display: block; }
  .shot { width: min(220px, 64%); }
  .printers th, .printers td { padding: 12px 16px; }
}
