/* The project page: one stylesheet, a system font stack, no external file. The colours follow the system's light or dark scheme (the same blue as the app); everything is drawn from the variables below. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #161b20;
  --muted: #56616c;
  --border: #dbe0e5;
  --accent: #1565c0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 101, 192, 0.09);
  --navy: #18345c;
  --ok: #2e7d32;
  --shadow: 0 24px 60px -24px rgba(16, 44, 90, 0.45), 0 4px 14px rgba(16, 44, 90, 0.1);
  --code-bg: #0f2038;
  --code-text: #d9e8fb;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #171b1f;
    --surface-2: #1e2328;
    --text: #e7eaed;
    --muted: #9aa5af;
    --border: #2b3238;
    --accent: #6aa9ee;
    --accent-ink: #08182a;
    --accent-soft: rgba(106, 169, 238, 0.12);
    --ok: #66bb6a;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(0, 0, 0, 0.4);
    --code-bg: #12253f;
    --code-text: #d9e8fb;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

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

.skip:focus {
  top: 12px;
}

/* ---- the header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav .gh {
  color: var(--text);
  border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .nav a.opt {
    display: none;
  }
}

/* ---- buttons and the install line */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(16, 44, 90, 0.5);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.2;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn .label {
  text-align: left;
  line-height: 1.25;
}

.cmd {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font: 0.9rem/1.5 var(--mono);
  overflow: hidden;
  text-align: left;
}

.cmd code {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.cmd .prompt {
  color: #7fb2ee;
  user-select: none;
}

.copy {
  flex: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--code-text);
  font: 600 0.82rem var(--font);
  padding: 0 16px;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.09);
}

.copy[data-done] {
  color: #8fe08f;
}

/* ---- buttons and the install line */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(16, 44, 90, 0.5);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.2;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn .label {
  text-align: left;
  line-height: 1.25;
}

.cmd {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font: 0.9rem/1.5 var(--mono);
  overflow: hidden;
  text-align: left;
}

.cmd code {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.cmd .prompt {
  color: #7fb2ee;
  user-select: none;
}

.copy {
  flex: none;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--code-text);
  font: 600 0.82rem var(--font);
  padding: 0 16px;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.09);
}

.copy[data-done] {
  color: #8fe08f;
}

/* ---- the hero */
.hero {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 0 0;
  background:
    radial-gradient(900px 420px at 50% -80px, var(--accent-soft), transparent 70%),
    radial-gradient(600px 300px at 90% 120px, var(--accent-soft), transparent 70%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--accent);
}

.lead,
h2 {
  text-wrap: balance;
}

.lead {
  max-width: 36em;
  margin: 16px auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero .hero-shot {
  margin: clamp(28px, 5vw, 44px) auto 0;
  max-width: var(--wrap);
  padding: 0 var(--gutter);
}

/* ---- screenshots */
.shot {
  margin: 0;
}

.zoom {
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
  line-height: 0;
}

.frame {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.frame::after {
  content: "Enlarge";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 18, 30, 0.78);
  color: #fff;
  font: 600 0.78rem/1.2 var(--font);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.frame:hover::after,
.frame:focus-visible::after {
  opacity: 1;
}

/* ---- the sections */
section {
  padding: clamp(44px, 7vw, 80px) 0 0;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ---- the feature cards and the install steps */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 18px;
}

.card > .zoom {
  margin-bottom: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.card > .zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}

.card h3,
.card p {
  padding: 0 4px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-rows: auto 1fr;
  column-gap: 28px;
  row-gap: 6px;
  padding: 18px;
}

.step h3,
.step p {
  grid-column: 1;
  padding: 0;
}

.step .run {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.step .btn {
  justify-self: start;
}

.step .cmd {
  font-size: 0.8rem;
}

.step .cmd code {
  padding: 10px 12px;
}

.replay {
  max-width: 420px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .step .run {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

/* ---- the table of radios */
.radios {
  width: 100%;
  margin-top: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.radios th,
.radios td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.radios tr:last-child th,
.radios tr:last-child td {
  border-bottom: 0;
}

.radios thead th {
  background: var(--surface-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.radios tbody th {
  font-weight: 600;
  width: 62%;
}

@media (max-width: 640px) {
  .radios thead {
    display: none;
  }
  .radios,
  .radios tbody,
  .radios tr,
  .radios th,
  .radios td {
    display: block;
    width: 100%;
  }
  .radios tbody th {
    width: 100%;
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .radios td {
    padding-top: 0;
  }
}

/* ---- the gallery */
.gallery {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.gallery a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  transition: transform 0.12s, box-shadow 0.12s;
}

.gallery a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}

.gallery .tall img {
  object-fit: contain;
  object-position: center;
}

.gallery span {
  display: block;
  padding: 10px 14px 12px;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery span {
    padding: 8px 10px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .actions .btn {
    justify-content: center;
  }
}

/* ---- the lightbox */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(6, 10, 16, 0.88);
}

.lb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 56px 64px 20px;
  gap: 12px;
}

.lb img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
  background: var(--surface);
}

.lb p {
  margin: 0;
  font-size: 0.98rem;
  text-align: center;
  color: #dbe4ee;
}

.lb button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 400 1.7rem/1 var(--font);
  cursor: pointer;
}

.lb button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lb .close {
  top: 12px;
  right: 14px;
}

.lb .prev,
.lb .next {
  top: 50%;
  margin-top: -22px;
}

.lb .prev {
  left: 10px;
}

.lb .next {
  right: 10px;
}

@media (max-width: 640px) {
  .lb {
    padding: 56px 12px 16px;
  }
  .lb .prev,
  .lb .next {
    top: auto;
    bottom: 12px;
    margin: 0;
  }
  .lb .prev {
    left: calc(50% - 56px);
  }
  .lb .next {
    right: calc(50% - 56px);
  }
  .lb p {
    margin-bottom: 52px;
  }
}

/* ---- the footer */
footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

footer .wrap {
  display: grid;
  gap: 10px;
}

footer p {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
