:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #61708a;
  --line: rgba(22, 32, 51, 0.12);
  --blue: #2563eb;
  --green: #0f9f6e;
  --orange: #f97316;
  --pink: #db2777;
  --bg: #f6f8fc;
  --panel: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(235deg, rgba(249, 115, 22, 0.12), transparent 42%),
    var(--bg);
}

a {
  color: inherit;
}

.download-page {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  padding: 36px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.hero-copy p:last-child,
.app-card p,
.install-box p {
  color: var(--muted);
  line-height: 1.55;
}

.status-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(21, 32, 51, 0.08);
}

.status-panel span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #eef5ff;
  color: #164a9f;
  font-weight: 750;
}

.status-panel span:last-child {
  background: #eaf9f2;
  color: #087454;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.install-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(21, 32, 51, 0.08);
}

.app-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.app-icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}

.staff .app-icon {
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

.client .app-icon {
  background: linear-gradient(135deg, var(--green), var(--orange));
}

.app-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.install-box {
  margin-top: 18px;
  padding: 22px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.install-steps article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.install-steps strong {
  display: block;
  margin-bottom: 6px;
}

.install-steps p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .download-page {
    width: min(100% - 24px, 520px);
    padding: 20px 0 24px;
  }

  .hero,
  .apps-grid,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 14px;
    padding-top: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  .app-card,
  .install-box {
    padding: 18px;
  }

  .actions {
    display: grid;
  }
}
