/* SPDX-License-Identifier: Unlicense */
/* overpressure.org, in the app's look: its colour tokens (app/src/app.css), Inter, panels with a 1 px line, 12 px
   tiles with an icon chip, round badges and pills; brand's blue glow behind the top. Dark and light, one column on
   a phone. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter.woff2") format("woff2-variations");
}

:root {
  color-scheme: dark;
  --bg: #181a1f;
  --glow: #1c2b52;
  --panel: #202329;
  --surface: #25282f;
  --line: #343840;
  --text: #e9eaed;
  --muted: #a0a6b1;
  --blue: #77a2ff;
  --primary: #346bdc;
  --primary-hover: #447cf0;
  --button: #353941;
  --button-hover: #414650;
  --hover: #292e37;
  --pill-bg: #373c44;
  --pill-text: #d2d7de;
  --good-bg: #203d32;
  --good-text: #8ce4b5;
  --update-bg: #483725;
  --update-text: #ffc084;
  --warn-bg: #332a23;
  --warn-line: #66513d;
  --warn-text: #e0c3a6;
  --warn-heading: #ffd09c;
  --blue-bg: #2c3e60;
  --blue-text: #b7ceff;
  --shadow: #0008;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f8fa;
    --glow: #dfe8fb;
    --panel: #fff;
    --surface: #eef0f3;
    --line: #dde0e5;
    --text: #20242a;
    --muted: #606773;
    --blue: #245fc9;
    --primary: #2f66d8;
    --primary-hover: #245fc9;
    --button: #eef0f3;
    --button-hover: #e3e6eb;
    --hover: #f1f5fb;
    --pill-bg: #e5e8ed;
    --pill-text: #4f5763;
    --good-bg: #dff3e8;
    --good-text: #146c43;
    --update-bg: #fff0d6;
    --update-text: #8a4c10;
    --warn-bg: #fff7e6;
    --warn-line: #e6c99c;
    --warn-text: #6e5330;
    --warn-heading: #8b4b12;
    --blue-bg: #e4ecfd;
    --blue-text: #1d4fb8;
    --shadow: #24304433;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(60rem 34rem at 70% -8rem, var(--glow), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.i {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar,
main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* The bar on top, as the app's header: a line under it, the brand left, links right. */

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
}

.top .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.2px;
}

.brand:hover {
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.93rem;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Buttons, badges, pills: the app's. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--button);
  color: var(--text);
  font-weight: 600;
  transition: background-color 0.12s;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button span:not(:first-child),
.button > span + span {
  font-weight: 500;
  opacity: 0.75;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
}

.badge b {
  color: var(--text);
  font-weight: 600;
}

.badge .i {
  width: 14px;
  height: 14px;
}

.badge:hover {
  text-decoration: none;
  border-color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--update-text);
  box-shadow: 0 0 0 3px var(--update-bg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill .i {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.pill.good {
  background: var(--good-bg);
  color: var(--good-text);
}

.pill.warn {
  background: var(--update-bg);
  color: var(--update-text);
}

/* The top: the pitch, and the app at work. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 4rem;
}

.pitch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.actions .button {
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
}

.systems-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.systems-line li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.systems-line .i {
  width: 15px;
  height: 15px;
}

.shot {
  margin: 0;
}

.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 30px 80px -20px var(--shadow), 0 0 0 1px #ffffff08;
}

.chrome {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Sections. */

.block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.block h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tiles,
.steps,
.systems,
.headsets,
.links,
.runs {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* What you get: the app's tiles, an icon chip over two short lines. */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 0.75rem;
}

.tiles li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.tiles .glyph {
  grid-row: span 2;
  margin: 0;
}

.tiles h3 {
  align-self: end;
}

.tiles p {
  align-self: start;
}

.glyph {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  background: var(--blue-bg);
  color: var(--blue-text);
}

.glyph .i {
  width: 20px;
  height: 20px;
}

.tiles h3 {
  font-size: 0.98rem;
  font-weight: 600;
}

.tiles p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Three steps: the app's stage list, round marks on a line. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 3.25rem;
  right: -0.75rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--line));
}

.mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}

.mark .i {
  width: 19px;
  height: 19px;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 600;
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--muted);
}

.steps p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Download: the warning, one tile per system. */

.callout {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 0.92rem;
}

.callout b {
  color: var(--warn-heading);
}

.callout .i {
  margin-top: 0.1rem;
  color: var(--warn-heading);
}

.systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.system {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "os name"
    "os detail"
    "get get"
    "note note";
  column-gap: 0.85rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.os {
  grid-area: os;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--surface);
}

.os .i {
  width: 21px;
  height: 21px;
}

.system h3 {
  grid-area: name;
  align-self: end;
  font-size: 1.02rem;
  font-weight: 600;
}

.system .detail {
  grid-area: detail;
  align-self: start;
}

.detail {
  color: var(--muted);
  font-size: 0.85rem;
}

.system .button {
  grid-area: get;
  justify-content: center;
  margin-top: 1rem;
}

.system .note {
  grid-area: note;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.system.missing .note {
  margin-top: 1rem;
}

/* The visitor's system, once download.js found it: first, with the primary button. */

.system.this {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.system.this .button {
  background: var(--primary);
  color: #fff;
}

.system.this .button:hover {
  background: var(--primary-hover);
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

/* Headsets: the app's library tiles. */

.headsets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 0.75rem;
}

.headset {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.12s, background-color 0.12s;
}

.headset:hover {
  border-color: var(--muted);
}

.headset > a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  color: var(--text);
}

.headset > a:hover {
  text-decoration: none;
}

.headset img {
  width: 4rem;
  height: 4rem;
  border-radius: 15px;
  box-shadow: 0 6px 16px -6px var(--shadow);
}

.who {
  flex: 1;
  min-width: 0;
}

.who h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.who .pill {
  margin-top: 0.4rem;
}

.headset .go {
  color: var(--muted);
}

.runs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 1rem;
}

.runs li {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.headset.add {
  border-style: dashed;
  background: transparent;
}

.plus {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
}

.plus .i {
  width: 22px;
  height: 22px;
}

/* Join in: rows with an icon chip and a chevron. */

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  transition: background-color 0.12s;
}

.links a:hover {
  background: var(--hover);
  text-decoration: none;
}

.links .glyph {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
}

.links .glyph .i {
  width: 18px;
  height: 18px;
}

.links b {
  display: block;
  font-weight: 600;
}

.links small {
  color: var(--muted);
  font-size: 0.83rem;
}

.links .go {
  margin-left: auto;
  color: var(--muted);
}

footer {
  margin-top: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

footer p + p {
  margin-top: 0.25rem;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
  }

  .steps .mark {
    grid-row: span 2;
    margin: 0;
  }

  .steps li:not(:last-child)::after {
    top: 2.75rem;
    bottom: -1.25rem;
    left: calc(1.25rem - 1px);
    right: auto;
    width: 2px;
    height: auto;
    background: var(--line);
  }
}

@media (max-width: 30rem) {
  nav {
    gap: 0.9rem;
  }

  nav .icon-link span {
    display: none;
  }

  .block {
    padding: 2.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
