:root {
  --bg: #0b0d12;
  --bg-raised: #10131a;
  --bg-raised-2: #161a23;
  --border: #232838;
  --border-soft: #1b202c;
  --text: #e8ecf3;
  --text-dim: #aab2c2;
  --muted: #828ba0;

  --accent: #6f8bff;
  --accent-strong: #5a78ff;
  --accent-soft: rgba(111, 139, 255, 0.14);

  --green: #4ade80;
  --amber: #fbbf24;
  --rose: #fb7185;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);

  --font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #0b0d12;
    --text: #e8ecf3;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.1em 0.45em;
  color: var(--text-dim);
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}

.wordmark img {
  border-radius: 5px;
  display: block;
}

.site-header__nav {
  display: flex;
  gap: 28px;
}

.site-header__nav a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 88px 0 56px;
}

.hero__inner {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.12;
}

.hero__lede {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #050608;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__fineprint {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Demo video */

.demo {
  padding: 0 0 88px;
}

.window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raised-2);
}

.window__dots {
  display: inline-flex;
  gap: 6px;
}

.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.window__title {
  font-size: 13px;
  color: var(--muted);
  margin: 0 auto;
  font-family: var(--font-mono);
}

.window__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Flow / how it works */

.flow {
  padding: 40px 0 96px;
  border-top: 1px solid var(--border-soft);
}

.flow h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  max-width: 32ch;
  margin-bottom: 44px;
}

.flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.flow__list li {
  display: flex;
  gap: 22px;
  position: relative;
  padding-bottom: 40px;
}

.flow__list li:last-child {
  padding-bottom: 0;
}

.flow__list li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}

.flow__list li:last-child::before {
  display: none;
}

.flow__dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.flow__list h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.flow__list p {
  margin: 0;
  color: var(--text-dim);
  max-width: 58ch;
}

/* States */

.states {
  padding: 64px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.states__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.states__text h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 14px;
}

.states__text p {
  margin: 0;
  color: var(--text-dim);
  max-width: 46ch;
}

.states__legend {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
}

.states__legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
}

.state-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.state-dot--missing {
  background: var(--rose);
}

.state-dot--downloaded {
  background: var(--green);
}

.state-dot--outdated {
  background: var(--amber);
}

/* Features */

.features {
  padding: 96px 0;
}

.features h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  margin-bottom: 44px;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 36px;
}

.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 42ch;
}

/* Trust */

.trust {
  padding: 64px 0;
  border-top: 1px solid var(--border-soft);
}

.trust__inner {
  max-width: 680px;
}

.trust h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 16px;
}

.trust p {
  margin: 0;
  color: var(--text-dim);
}

/* Download */

.download {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border-soft);
}

.download__inner {
  max-width: 680px;
}

.download h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 26px;
}

.download__notes {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download__notes p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 48px;
}

.site-footer__inner p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.site-footer__inner a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.site-footer__inner a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 720px) {
  .site-header__nav {
    gap: 18px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .demo {
    padding-bottom: 64px;
  }

  .states__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .features__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header__nav a:nth-child(3) {
    display: none;
  }
}

/* Support modal (support.js) */

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.support-modal[hidden] {
  display: none;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.72);
  backdrop-filter: blur(3px);
}

.support-modal__card {
  position: relative;
  width: 420px;
  max-width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.support-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

.support-modal__close:hover {
  color: var(--text);
}

.support-modal__card h2 {
  font-size: 19px;
  margin: 0 0 12px;
  padding-right: 22px;
}

.support-modal__card p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.support-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.support-modal__options .btn {
  justify-content: center;
  width: 100%;
}

.support-modal__twint {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-modal__twint-number {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  user-select: all;
}

.support-modal__continue {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.support-modal__continue:hover {
  color: var(--text);
}
