/* Store buttons + the phone "get the app" sheet (promo.js). */

.store-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 48px; padding: 0 1rem 0 0.75rem; box-sizing: border-box;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 9px;
  text-decoration: none; line-height: 1; white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.store-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge > span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.store-badge small, .store-badge b { color: #fff; }
.store-badge small { font-size: 9.5px; letter-spacing: 0.04em; font-weight: 500; }
.store-badge b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.soon { opacity: 0.55; cursor: default; }
.store-badge.soon small { font-size: 8.5px; }

/* footer */
.foot-apps { width: 100%; }
.foot-apps p { margin: 0 0 0.7rem !important; font-family: var(--display); font-size: 1.05rem; color: var(--cloth-ink, #efe6cf) !important; }

/* the sheet */
.app-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--paper, #f4eee1); color: var(--ink, #1f1d1a);
  border-top: 3px solid var(--gold, #c8a45a);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  padding: 1.4rem 16px calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform 0.3s ease;
  font-family: var(--text, Georgia, serif);
}
.app-sheet.open { transform: none; }
.app-sheet-x {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper-3, #e0d5bd); color: var(--ink, #1f1d1a);
  display: grid; place-items: center;
}
.app-sheet-x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.app-sheet-head { display: flex; gap: 0.85rem; align-items: flex-start; padding-right: 48px; margin-bottom: 1.1rem; }
.app-sheet-head img { border-radius: 50%; flex: none; }
.app-sheet-head strong { display: block; font-family: var(--display, Georgia, serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.3rem; }
.app-sheet-head span { color: var(--ink-soft, #5d574c); font-size: 0.93rem; line-height: 1.45; }
.app-sheet .store-badges { justify-content: center; }
.app-sheet-later {
  display: block; margin: 0.9rem auto 0; padding: 0.5rem 1rem;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9rem;
  color: var(--ink-soft, #5d574c); text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 821px) {
  .app-sheet { left: auto; right: 24px; bottom: 24px; width: 400px; border-radius: 16px; border: 1px solid var(--rule); border-top: 3px solid var(--gold, #c8a45a); }
}
