/* The "keep me on your home screen" sheet (install/sheet.js). */
.ph-wrap { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.ph-back { position: absolute; inset: 0; background: rgba(44, 44, 44, 0.34); opacity: 0; transition: opacity 0.3s ease; }
.ph-sheet {
  position: relative; width: 100%; max-width: 480px; box-sizing: border-box;
  background: var(--warm-white, #fdfaf5); color: var(--ink, #2c2c2c);
  border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(44, 44, 44, 0.18);
  font-family: 'DM Sans', sans-serif;
  transform: translateY(100%); transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.04);
  outline: none;
}
.ph-wrap.in .ph-back { opacity: 1; }
.ph-wrap.in .ph-sheet { transform: none; }
.ph-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--border, #e2dbd1); margin: 0 auto 16px; }

/* A little home screen row; Pila's icon drops into the empty spot. */
.ph-dock { display: flex; gap: 14px; justify-content: center; align-items: flex-start; margin: 0 0 16px; }
.ph-dock i { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-light, #e8f0e9); }
.ph-dock i:nth-child(2) { background: var(--clay-light, #f5e8e2); }
.ph-dock i:nth-child(3) { background: var(--gold-light, #fdf6e3); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.18); }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-app img { width: 46px; height: 46px; border-radius: 12px; display: block; box-shadow: 0 4px 12px rgba(139, 94, 60, 0.28); }
.ph-app b { font-weight: 500; font-size: 0.66rem; color: var(--ink-soft, #5a5a5a); }
.ph-wrap.in .ph-app { animation: phLand 0.9s 0.3s both cubic-bezier(0.3, 1.4, 0.5, 1); }
.ph-dock.landed .ph-app { animation: phHop 0.7s both ease; }
@keyframes phLand {
  0% { transform: translateY(-44px) scale(0.6); opacity: 0; }
  60% { transform: translateY(3px) scale(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes phHop {
  0%, 100% { transform: none; }
  40% { transform: translateY(-10px) scale(1.06); }
  70% { transform: translateY(1px) scale(0.98); }
}

.ph-title {
  font-family: 'Lora', serif; font-style: italic; font-weight: 400;
  font-size: 1.4rem; line-height: 1.25; color: var(--pila-warm, #8b5e3c);
  text-align: center; margin: 0 0 6px; text-wrap: balance;
}
.ph-sub { text-wrap: balance; text-align: center; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft, #5a5a5a); margin: 0 auto 16px; max-width: 34ch; }

.ph-steps {
  list-style: none; margin: 0 0 12px; padding: 14px;
  background: var(--cream, #f7f3ec); border: 1px solid var(--border, #e2dbd1); border-radius: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.ph-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.6; }
.ph-n {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--hero, #5b3a8c); color: #fff; font-size: 0.78rem; font-weight: 500;
  display: grid; place-items: center;
}
/* The button they'll tap, drawn like the real thing. */
.ph-key {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px;
  padding: 0 8px; margin: 0 1px; border-radius: 8px; line-height: 1.55;
  background: #fff; border: 1px solid var(--border, #e2dbd1); box-shadow: 0 1px 0 rgba(44, 44, 44, 0.06);
  font-size: 0.86rem; font-weight: 500; white-space: nowrap;
}
.ph-key svg { width: 15px; height: 15px; flex: none; }
.ph-key-more, .ph-key-menu, .ph-key-samsung-menu { border-radius: 999px; padding: 0 10px; letter-spacing: 0.06em; }
.ph-key-add { color: #007aff; }   /* the system's own blue "Add" */

.ph-go {
  display: block; width: 100%; margin: 2px 0 10px; padding: 15px 18px;
  background: var(--hero, #5b3a8c); color: #fff; border: 0; border-radius: 14px;
  font: 500 1rem 'DM Sans', sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px rgba(91, 58, 140, 0.28);
}
.ph-go:active { transform: scale(0.98); }
.ph-note { text-align: center; font-size: 0.78rem; line-height: 1.4; color: var(--ink-muted, #9a9a9a); margin: 0 0 2px; }
.ph-foot { display: flex; justify-content: center; }
.ph-later {
  background: none; border: 0; padding: 10px 18px; cursor: pointer;
  font: 400 0.88rem 'DM Sans', sans-serif; color: var(--ink-soft, #5a5a5a);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border, #e2dbd1);
}

@media (prefers-reduced-motion: reduce) {
  .ph-back, .ph-sheet { transition: none; }
  .ph-wrap.in .ph-app, .ph-dock.landed .ph-app { animation: none; }
}
