/* rigready.io. The colours are the app's own (src/renderer/styles.css): status colours mean status,
   blue is what can be clicked, violet marks racing. Headings and the instrument use B612, the
   typeface Airbus drew for cockpit displays; text uses Atkinson Hyperlegible Next. */

@font-face {
  font-family: 'B612';
  src: url('/fonts/b612-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'B612';
  src: url('/fonts/b612-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0f1317;
  --surface: #171c22;
  --surface-2: #1e252d;
  --border: #262d36;
  --border-strong: #36404c;
  --text: #e6e9ed;
  --text-2: #c3cad3;
  --muted: #8b95a3;
  --ok: #3fb97f;
  --warn: #e2b23c;
  --bad: #ee635b;
  --accent: #5aa9e6;
  --accent-ink: #0b1a26;
  --racing: #b197fc;
  --focus: #a8d1f5;

  --font-display: 'B612', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, 'DejaVu Sans Mono', monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 1.0625rem/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
  max-width: 64ch;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--focus);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
code {
  overflow-wrap: anywhere;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text);
}
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.6;
  color: var(--text);
}
pre code {
  overflow-wrap: normal;
  background: none;
  padding: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(15 19 23 / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 1.15rem var(--font-display);
  text-decoration: none;
}
.mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
}
.site-header nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.97rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
}
.site-header nav a[aria-current='page']:not(.nav-download) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.site-header nav .nav-download {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.site-header nav .nav-download:hover {
  color: var(--accent-ink);
  background: var(--focus);
}
@media (max-width: 640px) {
  .site-header nav a[href^='/#'],
  .site-header nav a[href^='https:'] {
    display: none;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: 700 1rem var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms var(--ease),
    border-color 120ms var(--ease);
}
.button:hover {
  color: var(--text);
  border-color: var(--muted);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button.primary:hover {
  background: var(--focus);
  border-color: var(--focus);
  color: var(--accent-ink);
}
.button svg {
  flex: none;
}

/* Hero: one line for all three jobs, then the three of them as cards ------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) 0 var(--section);
  background:
    radial-gradient(45% 55% at 78% 30%, rgb(90 169 230 / 0.14), transparent 70%),
    radial-gradient(30% 40% at 95% 70%, rgb(63 185 127 / 0.08), transparent 70%);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.05rem);
}
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34em;
}
.hero-copy .lead {
  font-size: 1.12rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-copy .actions {
  margin-top: 26px;
}
.hero-note {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Three real screenshots, one per job: the Play screen in front, a cheat sheet and the input
   tester behind it, tilted. */
.stage {
  position: relative;
  aspect-ratio: 1.3;
  margin-right: calc(var(--gutter) * -0.5);
}
.stage-shot {
  position: absolute;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.85);
}
.stage-shot .shot {
  overflow: hidden;
  border-radius: 9px;
}
.stage-back-left {
  top: 2%;
  left: 0;
  width: 62%;
  transform: rotate(-6deg);
  animation: drift-left 9s ease-in-out infinite alternate;
}
.stage-back-right {
  top: 0;
  right: 0;
  width: 62%;
  transform: rotate(5deg);
  animation: drift-right 11s ease-in-out infinite alternate;
}
.stage-back-left img,
.stage-back-right img {
  filter: brightness(0.82);
}
.stage-front {
  left: 11%;
  bottom: 0;
  width: 80%;
  border-color: var(--muted);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 40px 80px -20px rgb(0 0 0 / 0.95),
    0 0 90px -20px rgb(90 169 230 / 0.35);
}
@keyframes drift-left {
  to {
    transform: rotate(-4.5deg) translateY(-8px);
  }
}
@keyframes drift-right {
  to {
    transform: rotate(3.5deg) translateY(6px);
  }
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(15 19 23 / 0.92);
  color: var(--text);
  font: 700 0.78rem/1.4 var(--font-text);
  white-space: nowrap;
  pointer-events: none;
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
}
.chip-ready {
  --tone: var(--ok);
  left: 14px;
  bottom: -13px;
}
.chip-controls {
  --tone: var(--accent);
  left: 14px;
  top: -13px;
}
.chip-troubleshoot {
  --tone: var(--warn);
  right: 14px;
  top: -13px;
}
@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr);
  }
  /* On a phone the pictures come first, so the first screen is not only text. */
  .stage {
    order: -1;
    margin: 6px 4px 8px;
  }
}

/* The colour of each job, used for its card, its kicker and its section. */
.pillar:nth-child(1),
.ready {
  --tone: var(--ok);
}
.pillar:nth-child(2),
.controls {
  --tone: var(--accent);
}
.pillar:nth-child(3),
.troubleshoot {
  --tone: var(--warn);
}
.kicker {
  margin: 0 0 6px;
  color: var(--tone, var(--muted));
  font: 700 0.8rem/1.3 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--tone);
  border-radius: 12px;
  background: var(--surface);
}
.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-2);
  fill: none;
  stroke: var(--tone);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.pillar h2 a {
  color: var(--text);
  text-decoration: none;
}
.pillar h2 a:hover {
  color: var(--tone);
}
.pillar > p:not(.kicker) {
  margin-bottom: 14px;
}
.pillar ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.95rem;
}
.pillar ul li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.pillar ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone);
}
.pillar-link {
  margin-top: auto;
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The instrument: a working model of the Play screen ----------------------------------------- */

.instrument {
  --kind: var(--accent);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.03),
    0 30px 60px -30px rgb(0 0 0 / 0.7);
  font-family: var(--font-text);
}
.instrument[data-kind='racing'] {
  --kind: var(--racing);
}
.instrument noscript img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.inst-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.inst-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.kind-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
}
.kind-switch button,
.toggle button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 0.88rem var(--font-text);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.kind-switch button[aria-pressed='true'],
.toggle button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.kind-switch button:disabled {
  cursor: default;
}
.inst-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dial {
  flex: none;
  width: 112px;
  height: 112px;
}
.dial .seg {
  fill: none;
  stroke-width: 7;
  transition:
    stroke 260ms var(--ease),
    filter 260ms var(--ease);
}
.dial .seg.ok {
  stroke: var(--ok);
}
.dial .seg.bad {
  stroke: var(--bad);
}
.dial .seg.warn {
  stroke: var(--warn);
}
.dial.ready .seg.ok {
  filter: drop-shadow(0 0 5px rgb(63 185 127 / 0.55));
}
.dial-count {
  font: 700 30px var(--font-display);
  fill: var(--text);
}
.dial-of {
  font: 400 11px var(--font-display);
  fill: var(--muted);
}
.setup-name {
  margin: 0;
  color: var(--text);
  font: 700 1.35rem/1.25 var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}
.setup-name svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--kind);
  stroke-width: 1.75;
  stroke-linecap: round;
}
.setup-game {
  margin: 2px 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.status {
  margin: 0;
  font: 700 1.1rem var(--font-display);
}
.status.bad {
  color: var(--bad);
}
.status.ok {
  color: var(--ok);
}
.status.busy {
  color: var(--text);
}
.status-detail {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.checks {
  list-style: none;
  margin: 22px 0 18px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.check:first-child {
  border-top: 0;
}
.check-icon {
  width: 20px;
  height: 20px;
}
.check-name {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.check-name .tag {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.check-detail {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}
.check.bad .check-detail {
  color: var(--bad);
}
.check.warn .check-detail {
  color: var(--warn);
}
.check.ok .check-detail,
.check.summary .check-detail {
  color: var(--muted);
}
.check-fix {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgb(90 169 230 / 0.1);
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
}
.check.working .check-fix {
  color: var(--text);
  background: var(--surface-2);
}
.check.working .check-icon {
  animation: spin 900ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.inst-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.inst-actions .button {
  min-height: 44px;
}
.inst-actions .button.go {
  background: var(--ok);
  border-color: var(--ok);
  color: #06140d;
}
.inst-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.4em;
}
@media (max-width: 480px) {
  .instrument {
    padding: 16px;
  }
  .dial {
    width: 88px;
    height: 88px;
  }
  .inst-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .check {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .check-fix {
    grid-column: 2;
    justify-self: start;
  }
}

/* Screenshots ------------------------------------------------------------------------------- */

.frame {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.75);
}
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot:focus-visible {
  outline-offset: -3px;
}

/* The three jobs, each in a layout of its own ------------------------------------------------ */

.pillar-section,
.ai {
  padding: var(--section) 0;
  border-top: 1px solid var(--border);
}
.pillar-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.pillar-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}
.pillar-head p:last-child {
  margin-bottom: 0;
}

/* Ready to launch: the working model beside the four steps of a session */

.ready {
  background: radial-gradient(70% 60% at 10% 0%, rgb(63 185 127 / 0.06), transparent 70%);
}
.ready-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.timeline {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 54px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--tone);
  border-radius: 50%;
  background: var(--bg);
  color: var(--tone);
  font: 700 0.95rem var(--font-display);
  z-index: 1;
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 16.5px;
  top: 30px;
  bottom: 0;
  width: 1.5px;
  background: var(--border-strong);
}
.timeline li:last-child::after {
  display: none;
}
.timeline h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.timeline p {
  margin: 0;
  font-size: 0.98rem;
}

.also {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
.also li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.also-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  fill: none;
  stroke: var(--tone);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.also h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.also p {
  margin: 0;
  font-size: 0.93rem;
}

/* A screenshot cut to the top left of the page's content, so its text can be read at tile
   size: the app's header and sidebar are left out. The whole picture opens in the viewer. */
.tile-shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
}
.tile-shot img {
  width: 165%;
  max-width: none;
  margin: -7.4% 0 0 -27.5%;
}
.tile-shot.whole img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

/* Controls: a grid of tiles, then the steps to a new PC */

.controls {
  background: linear-gradient(to bottom, var(--surface) 0, var(--bg) 55%);
}
.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
}
.tile h3 {
  margin: 16px 0 6px;
  font-size: 1.08rem;
}
.tile p {
  margin: 0;
  font-size: 0.95rem;
}
.tiles-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .tiles,
  .tiles-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .tiles,
  .tiles-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.newpc {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.newpc h3 {
  margin-bottom: 18px;
}
.strip {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}
.strip li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.93rem;
  line-height: 1.45;
}
.strip li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--tone);
  font: 700 0.85rem var(--font-display);
}
.strip strong {
  color: var(--text);
}
.newpc > p {
  margin: 0;
  font-size: 0.95rem;
}

/* See what the rig is doing: one wide picture, four tiles below */

.band {
  margin-bottom: clamp(32px, 4vw, 48px);
}
/* Controls: the overlay under the tiles, before the steps to a new PC */
.overlay-band {
  margin: clamp(32px, 4vw, 48px) 0 0;
}
.band figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.98rem;
}
.band figcaption strong {
  color: var(--text);
}
.troubleshoot .section-lead {
  margin: clamp(28px, 4vw, 40px) 0 0;
}

@media (max-width: 900px) {
  .ready-grid,
  .also {
    grid-template-columns: minmax(0, 1fr);
  }
  .strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .strip li {
    padding: 10px 14px 10px 38px;
  }
  .strip li::before {
    position: absolute;
    left: 14px;
    top: 11px;
    margin: 0;
  }
}
@media (max-width: 560px) {
  .newpc,
  .ai-card {
    padding: 20px;
  }
}

/* Optional AI help: two forms, side by side */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.ai-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.ai-card p {
  font-size: 0.98rem;
}
.ai-card .frame {
  margin-top: auto;
}
.ai .section-lead {
  margin: 28px 0 0;
}
@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Games ------------------------------------------------------------------------------------- */

.games {
  padding: var(--section) 0;
  border-top: 1px solid var(--border);
}
.section-lead {
  color: var(--text-2);
}
.games-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  margin-top: 28px;
}
.games-shots {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
tr:first-child th,
tr:first-child td {
  border-top: 0;
  padding-top: 0;
}
th {
  width: 38%;
  padding-right: 24px;
  color: var(--text);
  font: 700 1rem/1.35 var(--font-display);
}
td {
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  th,
  td {
    display: block;
    width: auto;
    padding: 0;
  }
  th {
    padding-top: 16px;
    margin-bottom: 4px;
  }
  td {
    border-top: 0;
    padding-bottom: 4px;
  }
}

/* Safety ------------------------------------------------------------------------------------ */

.safety {
  padding: var(--section) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
}
.promises li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.promises li:first-child {
  border-top: 0;
  padding-top: 0;
}
.promises li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%2306140d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--ok);
}
.promises li:first-child::before {
  top: 1px;
}
@media (max-width: 900px) {
  .safety-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Download and changelog -------------------------------------------------------------------- */

.download {
  padding: 0 0 calc(var(--section) * 0.6);
}
.download h2 {
  font-size: 1.3rem;
}
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.download h3 {
  margin-top: 1.8em;
}
.download-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 20px;
}
.download-card p:last-child {
  margin-bottom: 0;
}
.download-version {
  margin: 0 0 4px;
  color: var(--text);
  font: 700 1.35rem var(--font-display);
}
.download-meta {
  color: var(--muted);
}
.facts {
  margin: 0;
  padding-left: 1.2em;
}
.facts li {
  margin-bottom: 6px;
}
.facts li::marker {
  color: var(--muted);
}

.page-head {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
}
.page-head h1 {
  margin-bottom: 0.3em;
}
.page-head .lead {
  margin: 0;
}
.narrow > * {
  max-width: 780px;
}
.source,
.changelog-section {
  padding: calc(var(--section) * 0.6) 0;
  border-top: 1px solid var(--border);
}
.changelog-section {
  padding-bottom: var(--section);
}
.version {
  border-top: 1px solid var(--border);
}
.version:last-of-type {
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.version summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.version summary::-webkit-details-marker {
  display: none;
}
.version summary::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 160ms var(--ease);
}
.version[open] summary::before {
  transform: rotate(45deg);
}
.version summary h3 {
  margin: 0;
  font-size: 1.1rem;
}
.version-body {
  padding: 0 0 24px 20px;
  font-size: 0.98rem;
}
.version-body h4 {
  margin: 1.4em 0 0.5em;
  font-size: 1rem;
}
.version-body h5 {
  margin: 1.1em 0 0.3em;
  font-size: 0.92rem;
  color: var(--text-2);
}
.version-body ul {
  margin: 0 0 0.8em;
  padding-left: 1.1em;
}
.version-body li {
  margin-bottom: 4px;
}
.version-body li::marker {
  color: var(--muted);
}
@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Get RigReady (home) */

.get {
  padding: calc(var(--section) * 0.75) 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(60% 120% at 85% 50%, rgb(90 169 230 / 0.08), transparent 70%);
}
.get-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.get-row p {
  margin: 0;
}
.get-row .actions {
  margin: 0;
}

/* Docs ------------------------------------------------------------------------------------- */

.docs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--section);
}
.docs-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.docs-toc > summary {
  display: none;
}
.docs-nav-title {
  margin: 0 0 8px;
  font: 700 0.95rem var(--font-display);
}
.docs-nav-title a {
  color: var(--text);
  text-decoration: none;
}
.docs-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.docs-list a {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.docs-list a:hover {
  color: var(--text);
  background: var(--surface);
}
.docs-list a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* The manual as a tree: the sections, and the pages of the one you are in. */
.docs-tree {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.docs-tree a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.docs-tree a:hover {
  color: var(--text);
  background: var(--surface);
}
.docs-tree a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.docs-tree a[aria-current='location'] {
  color: var(--text);
  font-weight: 700;
}
.docs-tree ul {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--border);
}
.docs-tree ul a {
  padding: 5px 10px;
  font-size: 0.92rem;
}
/* A section: its page linked from the summary, and a chevron that folds its pages in and out. */
.docs-tree summary {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.docs-tree summary::-webkit-details-marker {
  display: none;
}
.docs-tree summary > a {
  flex: 1;
  min-width: 0;
}
.docs-twist {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted);
}
.docs-twist::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-2px) rotate(-45deg);
  transition: transform 160ms var(--ease);
}
.docs-tree details[open] > summary .docs-twist::before {
  transform: translateY(-2px) rotate(45deg);
}
.docs-tree summary:hover .docs-twist {
  color: var(--text);
  background: var(--surface);
}
.docs-tree summary:focus-visible {
  outline: none;
}
.docs-tree summary:focus-visible .docs-twist {
  outline: 2px solid var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The docs search, above the contents. */
.docs-search {
  position: relative;
  margin: 0 0 20px;
}
.docs-search input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.docs-search input::placeholder {
  color: var(--muted);
}
.docs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.docs-search-key {
  position: absolute;
  top: 9px;
  right: 10px;
  pointer-events: none;
  color: var(--muted);
}
.docs-search:focus-within .docs-search-key {
  display: none;
}
@media (hover: none) {
  .docs-search-key {
    display: none;
  }
}
.docs-results {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.docs-results ul {
  list-style: none;
  margin: 0;
  padding: 4px;
}
.docs-results li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}
.docs-results li a:hover,
.docs-results li a:focus-visible {
  background: var(--surface-2);
  outline: none;
  box-shadow: inset 2px 0 0 var(--accent);
}
.r-title {
  display: block;
  font-size: 0.95rem;
}
.r-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}
.docs-results mark {
  background: none;
  color: var(--accent);
  font-weight: 700;
}
.docs-noresults,
.docs-more {
  margin: 0;
  padding: 10px 14px;
  color: var(--text-2);
  font-size: 0.88rem;
}
.docs-more {
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .docs-search {
    margin-bottom: 10px;
  }
  .docs-search input {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .docs-toc-body {
    position: relative;
    max-height: 65vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 16px 4px;
  }
  .docs-tree a {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .docs-tree ul a {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .docs-nav {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .docs-toc {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  .docs-toc > summary {
    display: block;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
  }
  .docs-toc > summary::after {
    content: '';
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 160ms var(--ease);
  }
  .docs-toc[open] > summary::after {
    transform: rotate(-135deg);
  }
  .docs-toc[open] > summary {
    border-bottom: 1px solid var(--border);
  }
  .docs-toc > summary::-webkit-details-marker {
    display: none;
  }
}

.prose {
  max-width: 74ch;
  min-width: 0;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.45rem;
}
.prose h3 {
  margin-top: 1.5em;
}
.prose strong {
  color: var(--text);
}
.prose ul:not(.cards),
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.55em;
}
.prose li::marker {
  color: var(--muted);
}
.prose blockquote {
  margin: 0 0 1.2em;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-2);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose table {
  display: block;
  overflow-x: auto;
  margin: 0 0 1.4em;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  display: table-cell;
  width: auto;
  padding: 8px 20px 8px 0;
  border-top: 1px solid var(--border);
}
.prose thead th {
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
  font: 700 0.8rem/1.4 var(--font-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose tbody tr:first-child td {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.prose tbody th {
  font-size: 0.95rem;
  white-space: nowrap;
}
.crumbs {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--border-strong);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.crumbs [aria-current='page'] {
  color: var(--text-2);
}
.doc-figure {
  margin: 28px 0 32px;
}
.doc-figure.tall {
  max-width: 360px;
}
.doc-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}
/* A card per section of the manual, or per page of a section. */
.cards {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cards li {
  margin: 0;
}
.cards a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 120ms var(--ease);
}
.cards a:hover {
  border-color: var(--accent);
}
.cards strong {
  display: block;
  color: var(--text);
  font: 700 1.02rem/1.3 var(--font-display);
}
.cards .summary {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 48px;
}
.pager a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font: 700 1rem var(--font-display);
}
.pager a:hover {
  border-color: var(--accent);
}
.pager a span {
  color: var(--muted);
  font: 400 0.85rem var(--font-text);
}
.pager-next {
  grid-column: 2;
  text-align: right;
}
.edit {
  margin-top: 24px;
  font-size: 0.9rem;
}
.edit a {
  color: var(--muted);
}

/* Contribute and footer --------------------------------------------------------------------- */

.contribute {
  padding: var(--section) 0;
  border-top: 1px solid var(--border);
}
.contribute-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.links li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.links li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.links a {
  display: block;
  font: 700 1.05rem var(--font-display);
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
}
.links span {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .contribute-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-row {
  display: grid;
  gap: 12px;
}
.footer-row p {
  margin: 0;
  max-width: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Lightbox ---------------------------------------------------------------------------------- */

.lightbox {
  width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(5 7 9 / 0.86);
}
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
}
.lightbox form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.lightbox-close {
  border: 1px solid var(--border-strong);
  background: rgb(15 19 23 / 0.9);
  color: var(--text);
  font: 700 0.9rem var(--font-text);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* How this was built ------------------------------------------------------------------------ */

.built > section {
  padding: calc(var(--section) * 0.5) 0;
  border-top: 1px solid var(--border);
}
.built > section:last-child {
  padding-bottom: var(--section);
}
.built h2 {
  font-size: 1.45rem;
}
.built .facts {
  margin-bottom: 1.2em;
}
.built .facts li {
  margin-bottom: 10px;
}

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