/*
  «Гроші Зараз» — сторінка-встановлювач PWA (index.html).
  Одна кнопка, мобільний першочерговий дизайн: 320–480px, кнопка ≥ 56px.
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  min-height: 100dvh;
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

h1 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 15px;
  max-width: 320px;
  line-height: 1.45;
}

/* Єдина кнопка встановлення (також посилання «Відкрити в Chrome») */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
  max-width: 360px;
  min-height: 60px;
  border: none;
  border-radius: 16px;
  background: #16a34a;
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
  transition: transform 0.1s, opacity 0.1s;
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.hint {
  margin-top: 14px;
  color: #94a3b8;
  font-size: 12px;
  max-width: 360px;
  line-height: 1.5;
}

.hint strong {
  color: #64748b;
}

/* iPhone: три дотики в Safari */
.ios-steps {
  margin-top: 24px;
  max-width: 360px;
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.4;
  counter-increment: step;
}

.ios-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.badge {
  margin-top: 24px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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