:root {
  --bg: #f3f4f6;
  --ink: #12141a;
  --muted: #5c6370;
  --accent: #12141a;
  --accent-ink: #f7f8fa;
  --line: rgba(18, 20, 26, 0.1);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  height: 100vh;
  height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 0 16px;
  text-align: center;
  overflow: hidden;
}

.page > .brand,
.page > .tagline,
.page > .support,
.page > .actions,
.page > .meta,
.page > .footer {
  padding-left: 24px;
  padding-right: 24px;
  flex-shrink: 0;
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 20px;
  pointer-events: none;
}

.topnav a {
  pointer-events: auto;
}

.topnav-brand {
  margin-right: auto;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.topnav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topnav-link:hover {
  color: var(--ink);
}

.topnav-link:focus-visible,
.topnav-brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  animation: rise 0.7s ease both;
}

.tagline {
  margin: 10px 0 0;
  max-width: 28ch;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.35;
  color: var(--muted);
  animation: rise 0.7s ease 0.08s both;
}

.support {
  margin: 6px 0 0;
  max-width: 36ch;
  font-size: clamp(12px, 1.5vw, 13px);
  line-height: 1.35;
  color: var(--muted);
  animation: rise 0.7s ease 0.12s both;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.7s ease 0.18s both;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 10px 24px rgba(18, 20, 26, 0.18);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.download:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 28px rgba(18, 20, 26, 0.22);
}

.download:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.download.download-disabled,
.download.download-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 10px 24px rgba(18, 20, 26, 0.18);
}

.pay-hint {
  margin: 10px 0 0;
  max-width: 28ch;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.meta {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  animation: rise 0.7s ease 0.24s both;
}

.docs-body {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}

.docs {
  max-width: 34rem;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: left;
}

.docs-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.docs-lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.docs-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.docs-steps li {
  position: relative;
  padding-left: 2.1rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  counter-increment: step;
}

.docs-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--fill, rgba(0, 0, 0, 0.06));
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
}

.docs-steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.docs-steps code,
.docs-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--muted);
}

.docs-note {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.docs-note-tight {
  margin-top: 8px;
}

.docs-subtitle {
  margin: 36px 0 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-shortcuts {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.docs-shortcuts > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(18, 20, 26, 0.08);
}

.docs-shortcuts > div:last-child {
  border-bottom: 1px solid rgba(18, 20, 26, 0.08);
}

.docs-shortcuts dt {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.docs-shortcuts dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.docs-shortcuts kbd,
.docs-steps kbd,
.docs-note kbd {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(18, 20, 26, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--ink);
}

.docs-cta-wrap {
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.docs-cta-wrap .pay-hint {
  text-align: center;
  max-width: 36ch;
}

.legal-updated {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.legal h2 {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.legal a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em 0.75em;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sep {
  color: var(--muted);
  opacity: 0.45;
  user-select: none;
}

.hero {
  margin: 14px 0 0;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: rise 0.7s ease 0.28s both;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.footer {
  margin-top: auto;
  padding: 22px 24px 10px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  animation: rise 0.7s ease 0.34s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .brand {
    font-size: clamp(36px, 11vw, 48px);
  }

  .actions {
    margin-top: 14px;
  }

  .download {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 14px;
  }

  .meta {
    margin-top: 10px;
  }

  .hero {
    margin-top: 12px;
  }

  .footer {
    padding-top: 18px;
  }
}

@media (max-height: 700px) {
  .page {
    padding-top: 16px;
    padding-bottom: 10px;
  }

  .brand {
    font-size: clamp(32px, 6vw, 44px);
  }

  .tagline {
    margin-top: 6px;
    font-size: 13px;
  }

  .support {
    margin-top: 4px;
    font-size: 12px;
  }

  .actions {
    margin-top: 12px;
  }

  .download {
    min-width: 180px;
    padding: 11px 22px;
    font-size: 13px;
  }

  .meta {
    margin-top: 8px;
  }

  .hero {
    margin-top: 10px;
  }

  .footer {
    padding: 16px 24px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .tagline,
  .support,
  .actions,
  .meta,
  .hero,
  .footer {
    animation: none;
  }

  .download:hover {
    transform: none;
  }
}
