:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --border: #dfe6ef;
  --text: #1d2735;
  --muted: #5d6f86;
  --accent: #1d4ed8;
  --accent-2: #22c1c3;
  --code-bg: #121722;
  --code-text: #e8eef7;
  --code-border: #263246;
  --success: #10b981;
  --hero-wash:
    radial-gradient(ellipse 55% 85% at 88% 5%, rgba(34, 193, 195, 0.24) 0%, transparent 70%),
    radial-gradient(ellipse 70% 90% at 5% 0%, rgba(29, 78, 216, 0.16) 0%, transparent 70%),
    linear-gradient(180deg, #eef4fd 0%, #f1f7fb 100%);
  --panel-shadow: 0 1px 2px rgba(29, 39, 53, 0.05), 0 18px 50px rgba(29, 78, 216, 0.10);
  --tile-bg: linear-gradient(145deg, #dde8fb, #e3f6f7);
  --tile-rim: rgba(29, 39, 53, 0.06);
  --tile-glow: 0 10px 26px rgba(29, 78, 216, 0.18);
  --icon-glow: none;
  --shot-shadow: 0 8px 28px rgba(29, 39, 53, 0.12);
  color-scheme: light dark;
  --app-tile-base: #ffffff;
  --app-tile-mix: 14%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121b;
    --surface: rgba(20, 27, 39, 0.88);
    --border: #263246;
    --text: #f3f7ff;
    --muted: #a7b6cc;
    --accent: #5b8cff;
    --code-bg: #0a0f17;
    --code-border: #263246;
    --hero-wash:
      radial-gradient(ellipse 55% 85% at 88% 5%, rgba(34, 193, 195, 0.22) 0%, transparent 70%),
      radial-gradient(ellipse 70% 90% at 5% 0%, rgba(29, 78, 216, 0.26) 0%, transparent 70%),
      linear-gradient(180deg, #0f1a2b 0%, #0d121b 100%);
    --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --tile-bg: linear-gradient(145deg, #1f3352, #1a2a40);
    --tile-rim: rgba(255, 255, 255, 0.16);
    --tile-glow: 0 8px 30px rgba(91, 140, 255, 0.35);
    --icon-glow: drop-shadow(0 0 8px rgba(91, 140, 255, 0.55));
    --shot-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
    --app-tile-base: #262833;
    --app-tile-mix: 30%;
  }
  .manual-btn { box-shadow: none; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* Hero */

.hero {
  background: var(--hero-wash);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 26% 100%, 0 90%);
  padding: 28px 16px 150px;
  overflow: hidden;
}

.hero-inner { max-width: 960px; margin: 0 auto; }

.crumb {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.crumb a:hover { color: var(--text); }

/* Top-aligned with a fixed offset, so the tile and heading sit in the same
   place on every app page however long the description is. */
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
}

.hero-copy { max-width: 540px; padding-top: 9px; }

.hero-tile {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: var(--tile-bg);
  box-shadow: inset 0 0 0 1px var(--tile-rim), inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--tile-glow);
}

.hero-tile img { width: 64px; height: 64px; filter: var(--icon-glow); }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-art {
  flex: none;
  width: 360px;
  height: auto;
  margin-right: -20px;
}

/* Page body */

.page {
  max-width: 992px; /* 960px of content, matching .hero-inner, plus side padding */
  margin: -110px auto 0;
  padding: 0 16px 48px;
  position: relative;
}

/* Install panel */

.install {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.install::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.platform-labels {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 4px;
}

.platform-label {
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0.6rem 0.15rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.platform-label:hover,
.platform-label.active { color: var(--text); }
.platform-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.platform-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
}

.install-hint {
  margin: 20px 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.install-hint strong { color: var(--text); font-weight: 600; }

.install-code-wrapper { position: relative; min-width: 0; }

.install-code-block {
  margin: 0;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  padding: 0.7rem 3.25rem 0.7rem 0.9rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  color: var(--code-text);
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.install-code-block::-webkit-scrollbar { height: 4px; }
.install-code-block::-webkit-scrollbar-track { background: transparent; }
.install-code-block::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 2px; }

.install-copy-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--code-bg);
  border: none;
  border-left: 1px solid var(--code-border);
  border-radius: 0 9px 9px 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.install-copy-btn:hover { color: #fff; background: #1d212b; }
.install-copy-btn.copied { color: var(--success); }

.install-variants {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  min-height: 24px;
}

.install-variant-btn {
  background: transparent;
  border: none;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.install-variant-btn:hover { color: var(--text); }
.install-variant-btn.active { color: var(--accent); font-weight: 600; }

.install-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}


/* Content */

h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.features, .shots { margin-top: 64px; }

.features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.features li {
  position: relative;
  padding: 14px 16px 14px 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.features li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.shot-row img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shot-shadow);
}

/* Manual download button, as on voquill.org */

.install-manual {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(21, 19, 28, 0.05), 0 4px 16px rgba(21, 19, 28, 0.04);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.manual-btn:hover,
.manual-btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 18%, transparent);
}

.manual-icon { width: 1.5em; height: 1.5em; flex-shrink: 0; }

/* Footer: "Other apps" and the footer line, shared by every app page. */

.site-footer { margin-top: 72px; }

.other-apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.all-apps { color: var(--accent); font-size: 0.9rem; font-weight: 400; text-decoration: none; }

.all-apps:hover { text-decoration: underline; }

.app-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-tile:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--app) 45%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--app) 18%, transparent);
}

.app-tile.is-current { border-color: color-mix(in srgb, var(--app) 55%, var(--border)); }

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--app) var(--app-tile-mix), var(--app-tile-base)),
    color-mix(in srgb, var(--app-2) calc(var(--app-tile-mix) * 0.6), var(--app-tile-base)));
  box-shadow: inset 0 0 0 1px var(--tile-rim), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tile img { width: 34px; height: 34px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta a { color: var(--muted); }

.footer-meta a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .hero { padding-bottom: 140px; }
  .hero-row { position: relative; margin-top: 28px; }
  .hero-copy { position: relative; z-index: 1; padding-top: 0; }
  .hero-art {
    position: absolute;
    right: -110px;
    top: -30px;
    width: 280px;
    opacity: 0.4;
  }
  .install { padding: 22px 14px 18px; }
  .app-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .platform-tab-indicator { transition: none; }
}
