/* ========================================
   Add to Home Screen — Prompt Sheet
   ======================================== */

/* Backdrop overlay */
.a2hs-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: a2hs-fade-in 0.3s ease-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes a2hs-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bottom sheet card */
.a2hs-sheet {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 28px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: a2hs-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes a2hs-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Drag handle */
.a2hs-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 0 auto 24px;
}

/* App icon */
.a2hs-sheet-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  background: #f3f4f6;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Title */
.a2hs-sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Description */
.a2hs-sheet-desc {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Install button — big CTA */
.a2hs-sheet-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.a2hs-sheet-btn:active {
  background: #333;
}

/* Dismiss link */
.a2hs-sheet-dismiss {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.a2hs-sheet-dismiss:active {
  color: #6b7280;
}

/* ========================================
   Guide Overlay (iOS / Android steps)
   ======================================== */

.a2hs-guide-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: a2hs-fade-in 0.2s ease-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.a2hs-guide {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 36px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: a2hs-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.a2hs-guide-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 0 auto 20px;
}

.a2hs-guide-close {
  background: none;
  border: none;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
  float: right;
  line-height: 1;
  padding: 0 4px;
}

.a2hs-guide-content h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.a2hs-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.a2hs-guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a2hs-guide-step-text {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
  padding-top: 5px;
}

.a2hs-guide-step-text strong {
  color: #111;
}

.a2hs-guide-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

/* ========================================
   Inline system icons (per-platform)
   ======================================== */

.a2hs-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  color: #111;
  margin: 0 2px;
  flex-shrink: 0;
}

/* ========================================
   Visual mockups (iOS share sheet, Chrome Android menu)
   ======================================== */

.a2hs-mockup {
  max-width: 280px;
  margin: 0 auto 24px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* iOS share sheet mockup */
.a2hs-mockup-ios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.a2hs-mockup-ios-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.a2hs-mockup-ios-appicon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

.a2hs-mockup-ios-app span {
  font-size: 9px;
  color: #6b7280;
  text-align: center;
}

.a2hs-mockup-ios-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a2hs-mockup-ios-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
}

.a2hs-mockup-ios-rowlabel { flex: 1; text-align: left; }
.a2hs-mockup-ios-rowicon {
  font-size: 16px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
}

/* Chrome Android menu mockup (dropdown list only — no browser header) */
.a2hs-mockup-android-dropdown {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.a2hs-mockup-android-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.a2hs-mockup-android-row:last-child { border-bottom: none; }

.a2hs-mockup-android-rowicon {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
}

/* Highlighted (target) row — pulse animation to draw the eye */
.a2hs-mockup-highlight {
  background: #eff6ff;
  border: 1px solid #60a5fa !important;
  color: #1e40af !important;
  animation: a2hs-pulse 2s ease-in-out infinite;
  position: relative;
}

.a2hs-mockup-highlight strong { color: #1e3a8a; }

@keyframes a2hs-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
  }
}

/* Fallback note (small hint at the bottom of platform-specific guides) */
.a2hs-guide-note {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  padding: 10px 14px 4px;
  line-height: 1.4;
  font-style: italic;
}
