/* "Install Beltchecker" sheet and the desktop front page card (scripts/bc-install.js). */

[data-bc-install-open][hidden], [data-bc-install-entry][hidden] { display: none !important; }

/* Settings > Notifications, under "Push on this device" */
.bc-np-install { margin-top: 14px; }
.bc-np-install .bc-set-help { margin: 0 0 8px; }

/* ---- Sheet ---- */
.bc-install-sheet .bc-sheet-head h2 { font-size: 19px; }
.bc-inst-hero { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.bc-inst-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 2px;
  border-radius: 18px;
  background: var(--bc-brand-grad);
  box-shadow: 0 10px 24px -12px rgba(91, 75, 209, 0.7);
}
.bc-inst-icon img { display: block; width: 100%; height: 100%; border-radius: 16px; background: #000; object-fit: cover; }
.bc-inst-name { margin: 0; font-size: 17px; font-weight: 700; color: var(--bc-ink); letter-spacing: -0.01em; }
.bc-inst-sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--bc-muted); }

.bc-inst-benefits { list-style: none; margin: 0 0 6px; padding: 12px 14px; border-radius: 16px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-inst-benefits li { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--bc-ink-2); }
.bc-inst-benefits i { flex: 0 0 20px; margin-top: 2px; text-align: center; color: var(--bc-accent); }
/* With steps below: a tighter list so everything fits on one phone screen */
.bc-install-sheet:not(.bc-install-sheet--native) .bc-inst-benefits { padding: 8px 12px; }
.bc-install-sheet:not(.bc-install-sheet--native) .bc-inst-benefits li { padding: 3px 0; font-size: 13.5px; }
.bc-install-sheet:not(.bc-install-sheet--native) .bc-inst-hero { margin-bottom: 10px; }

.bc-inst-howto { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bc-muted); }
.bc-inst-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bc-inst-steps li { display: flex; gap: 12px; padding: 10px 0; }
.bc-inst-steps li + li { border-top: 1px solid var(--bc-line); }
.bc-inst-num {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-on-ink);
  background: var(--bc-ink);
}
.bc-inst-stepbody { min-width: 0; flex: 1 1 auto; }
.bc-inst-stepbody p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--bc-ink-2); }
.bc-inst-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bc-inst-visual:empty { display: none; }

/* A browser control drawn as it looks on the phone */
.bc-inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bc-ink);
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong), var(--bc-shadow-1);
}
.bc-inst-chip-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; color: #0a84ff; }
.bc-inst-chip-ic svg { width: 24px; height: 24px; }
.bc-install-sheet--android .bc-inst-chip-ic,
.bc-install-sheet--android-inapp .bc-inst-chip-ic { color: var(--bc-ink-2); }
.bc-inst-chip.is-icon { padding: 0 7px; }
.bc-inst-or { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bc-muted); }

.bc-inst-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
  background: var(--bc-accent);
  cursor: pointer;
}
.bc-inst-copy svg { width: 18px; height: 18px; }
.bc-inst-copy.is-done { color: var(--bc-green); background: rgba(22, 163, 74, 0.1); box-shadow: inset 0 0 0 1.5px var(--bc-green); }
.bc-inst-copy:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-inst-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--bc-muted); background: var(--bc-surface-2); }
.bc-inst-go i { font-size: 14px; }

/* iPhone Safari: a nudge towards the toolbar below the page */
.bc-install-sheet--ios .bc-sheet-foot { position: relative; }
.bc-install-sheet--ios .bc-sheet-foot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 2px solid var(--bc-accent);
  border-bottom: 2px solid var(--bc-accent);
  transform: rotate(45deg);
  animation: bc-inst-nudge 1.6s var(--bc-ease) infinite;
  opacity: 0.8;
}
@keyframes bc-inst-nudge { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 2px; } }

/* ---- Desktop front page card ---- */
.bc-inst-card[hidden] { display: none !important; }
.bc-inst-card { transition: opacity 0.2s var(--bc-ease), transform 0.2s var(--bc-ease); }
.bc-inst-card.is-leaving { opacity: 0; transform: scale(0.98); }
.bc-inst-card > .content { position: relative; }
.bc-inst-card-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-top: 10px; }
.bc-inst-card-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bc-accent); }
.bc-inst-card-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--bc-ink); letter-spacing: -0.01em; }
.bc-inst-card-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bc-muted); }
.bc-inst-card-list { list-style: none; margin: 10px 0 0; padding: 0; }
.bc-inst-card-list li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.5; color: var(--bc-ink-2); }
.bc-inst-card-list i { width: 14px; text-align: center; font-size: 12px; color: var(--bc-accent); }
.bc-inst-qr {
  width: 104px;
  height: 104px;
  padding: 7px;
  border-radius: 14px;
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px rgba(15, 15, 25, 0.12);
  color: #000;
}
.bc-inst-qr svg { display: block; width: 100%; height: 100%; }
.bc-inst-qr:empty { background: #fff linear-gradient(90deg, #f2f2f5, #fff, #f2f2f5); }
.bc-inst-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--bc-muted); }
.bc-inst-card-hide {
  border: 0;
  padding: 4px 8px;
  margin: -4px -8px -4px 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bc-muted);
  background: transparent;
  cursor: pointer;
}
.bc-inst-card-hide:hover { color: var(--bc-ink); background: var(--bc-surface-2); }
.bc-inst-card-hide:focus-visible { outline: none; box-shadow: var(--bc-ring); }

/* Desktop only: phones get the sheet, tablets neither */
@media (max-width: 991px), (hover: none), (pointer: coarse) {
  .bc-slot:has(> .bc-inst-card), .bc-inst-card { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-install-sheet--ios .bc-sheet-foot::after { animation: none; }
  .bc-inst-card { transition: none; }
}

/* Short version: centred icon, each step on one line ("Tap [Share]", "Then [Add to Home Screen]") */
.bc-inst-hero.is-short { justify-content: center; margin: 0 0 14px; }
.bc-install-sheet .bc-inst-steps li { align-items: center; }
.bc-install-sheet .bc-inst-stepbody { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.bc-install-sheet .bc-inst-stepbody p { margin: 0; font-weight: 600; }
.bc-install-sheet .bc-inst-visual { margin: 0; }

/* Front page QR card: title, code, one line, Hide. Nothing else. */
.bc-inst-card-min { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bc-inst-card-min .bc-inst-card-title { margin: 0; }
.bc-inst-card-min .bc-inst-card-text { margin: 0; font-size: 13px; color: var(--bc-muted); }
.bc-inst-card-min .bc-inst-card-hide { margin-top: 2px; }
