/* ============================================================
 * install-prompt.css
 * PWA install surfaces: topbar pill, login link, banner, iOS modal
 * Brand vocabulary: dark navy #0b1024, 1px borders, soft shadows,
 * monospace-light accents — mirrors the Variant C login design language.
 * ============================================================ */

/* ----------------------------------------------------------
 * Topbar install pill
 * ---------------------------------------------------------- */
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  background: #0b1024;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.pwa-install-btn:hover {
  opacity: 0.85;
}

.pwa-install-btn:active {
  opacity: 0.7;
}

/* ----------------------------------------------------------
 * Login-page install box-button (mobile only, above the card)
 *
 * Bold filled navy block — first thing a mobile visitor sees above
 * the login card. The high contrast against the soft #f7f8fb page bg
 * means the install affordance is impossible to miss, while the
 * navy fill anchors it visually to the ShedTech brand mark inside
 * the card below.
 * ---------------------------------------------------------- */
.pwa-install-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 408px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: #0b1024;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px -8px rgba(11, 16, 36, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.pwa-install-box:hover,
.pwa-install-box:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(11, 16, 36, 0.5);
  background: #131a35;
  outline: none;
}

.pwa-install-box:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px -4px rgba(11, 16, 36, 0.5);
}

.pwa-install-box__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-install-box__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pwa-install-box__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pwa-install-box__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
  line-height: 1.3;
}

.pwa-install-box__chev {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
 * First-time bottom banner
 * ---------------------------------------------------------- */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px;
  animation: pwa-banner-slide-up 0.25s ease;
}

@keyframes pwa-banner-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-install-banner__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.pwa-install-banner__copy {
  flex: 1;
  min-width: 0;
}

.pwa-install-banner__title {
  font-size: 14px;
  font-weight: 600;
  color: #0b1024;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-banner__sub {
  font-size: 12px;
  color: var(--ink-3, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-banner__cta {
  background: #0b1024;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.pwa-install-banner__cta:hover { opacity: 0.85; }

.pwa-install-banner__dismiss {
  background: transparent;
  color: var(--ink-3, #6b7280);
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pwa-install-banner__dismiss:hover {
  border-color: #9ca3af;
  color: #374151;
}

/* ----------------------------------------------------------
 * iOS Add-to-Home-Screen modal
 * ---------------------------------------------------------- */
.pwa-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pwa-ios-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 36, 0.5);
  backdrop-filter: blur(4px);
}

.pwa-ios-modal__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(11, 16, 36, 0.2);
  overflow: hidden;
}

/* Navy header strip */
.pwa-ios-modal__header {
  background: #0b1024;
  padding: 18px 20px;
}

.pwa-ios-modal__title {
  font-family: 'Inter Tight', Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.pwa-ios-modal__body {
  padding: 20px;
}

.pwa-ios-modal__intro {
  font-size: 14px;
  color: var(--ink-2, #374151);
  margin: 0 0 16px;
}

.pwa-ios-modal__step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pwa-ios-modal__step:last-child {
  margin-bottom: 0;
}

.pwa-ios-modal__share-icon {
  flex-shrink: 0;
  color: #0b1024;
}

.pwa-ios-modal__step-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  color: #0b1024;
}

.pwa-ios-modal__step-arrow {
  font-size: 14px;
  color: var(--ink-4, #9ca3af);
  flex-shrink: 0;
}

.pwa-ios-modal__step-text {
  font-size: 14px;
  color: var(--ink-1, #111827);
  font-weight: 500;
}

.pwa-ios-modal__footer {
  padding: 0 20px 20px;
}

.pwa-ios-modal__got-it {
  width: 100%;
  padding: 11px;
  justify-content: center;
  background: #0b1024;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pwa-ios-modal__got-it:hover { opacity: 0.85; }
