/* The homepage, from the Figma: white Areal on a moving blue field that settles into one deep blue.
   The background itself is bg.js; this file is type and layout only.
   /privacy still uses p8.css. */

/* Areal / Areal Mono (Dinamo) need a web licence. Until the .woff2 files are in
   web/fonts/, local() picks them up where installed and Arial — the face Areal
   is drawn from — stands in everywhere else. */
@font-face { font-family: 'Areal'; src: local('Areal'), local('Areal Regular'); font-weight: 400; }
@font-face { font-family: 'Areal'; src: local('Areal Medium'); font-weight: 500; }
@font-face { font-family: 'Areal'; src: local('Areal Bold'); font-weight: 700; }
@font-face { font-family: 'Areal Mono'; src: local('Areal Mono'), local('Areal Mono Regular'); font-weight: 400; }

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

:root {
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.72);
  --blue: #2f45d6;
  --sans: 'Areal', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'Areal Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

html { background: #1e2cc8; color: var(--fg); }  /* = the shader's settled blue */

/* What shows before the first frame, and instead of it without WebGL. */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #4a60e0 0%, #1e2cc8 60%);
}
canvas.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-color: rgba(255, 255, 255, 0.4); }
a:hover { text-decoration-color: currentColor; }

.wrap { max-width: 36rem; margin: 0 auto; padding: 5rem 1.5rem 5rem; }
@media (max-width: 640px) { .wrap { padding-top: 3rem; } }

h1 { line-height: 0; }
h1 .logo { display: block; width: clamp(7rem, 26vw, 9.5rem); height: auto; color: #fff; }
.tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.download {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85rem 1.8rem;
  background: #fff;
  color: var(--blue);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(10, 20, 120, 0.35); }
.meta { display: block; margin-top: 0.8rem; font-size: 0.8rem; color: var(--fg-dim); }

section { margin-top: 4.5rem; }
h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2rem;
}
p + p { margin-top: 1rem; }
section > p { max-width: 34rem; }

.stations { list-style: none; counter-reset: st; margin-bottom: 2.6rem; }
.stations li {
  counter-increment: st;
  padding-left: 1.45em;
  text-indent: -1.45em;
  font-size: clamp(1.4rem, 3.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.stations li::before { content: counter(st) '.'; display: inline-block; width: 1.45em; text-indent: 0; text-align: right; padding-right: 0.35em; }
.stations sup {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.15em;
  vertical-align: 0.9em;
  line-height: 0;
}

.fine { font-family: var(--mono); font-size: 0.8rem; line-height: 1.55; color: var(--fg-dim); margin-top: 2.2rem !important; }

.steps { padding-left: 1.3rem; }
.steps li { padding-left: 0.3rem; }
.steps li + li { margin-top: 1.1rem; }
.steps + p { margin-top: 1.6rem; color: var(--fg-dim); }

/* Help: questions only, each opens in place. */
.qa { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.qa details { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  font-family: var(--mono);
  font-weight: 400;
  color: var(--fg-dim);
  transition: transform 0.2s ease;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover::after { color: var(--fg); }
.qa details p { color: var(--fg-dim); padding: 0 2rem 1.1rem 0; margin: 0; }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.05em 0.4em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

footer { margin-top: 7rem; font-family: var(--mono); font-size: 0.95rem; line-height: 1.5; }
footer .logo { display: block; width: 6.5rem; height: auto; color: #fff; margin-bottom: 2.6rem; }
footer p + p { margin-top: 2.6rem; }
