/* The download page's look: the CRM's own light colours (apps/web/src/index.css), with the fonts already on
   the visitor's computer, so nothing is loaded from another site. */
:root {
  --background: #fcfbfd;
  --foreground: #09090b;
  --card: #ffffff;
  --primary: #8336cf;
  --primary-hover: #6a2aae;
  --primary-foreground: #ffffff;
  --muted-foreground: #686870;
  --border: #e4e2e8;
  --soft: #f3f0f8;
  --radius: 0.5rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    'Inter Variable',
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  flex: none;
  width: 46px;
  height: 46px;
}

.brand__name {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.6px;
}

.brand__line {
  margin: 2px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
}

.notice {
  margin: 40px 0 0;
  color: var(--muted-foreground);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 40px;
}

.platform {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--card);
  box-shadow: 0 1px 3px 0 #0000000d;
}

.platform__title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.platform__downloads {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease;
}

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

.button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.button__sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
}

.download__meta {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.platform__hint,
.platform__missing {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.platform__missing {
  font-size: 16px;
}

.help__title {
  margin: 26px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
}

.help {
  margin: 0;
  padding-left: 22px;
}

.help li + li {
  margin-top: 6px;
}

.help__note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 14px;
}

.address {
  white-space: nowrap;
}

.footer {
  margin: 40px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .page {
    padding: 32px 16px 40px;
  }

  .platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  .platform {
    padding: 22px 18px;
  }
}

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