/* "Put Divine Domain on your phone": the home card and the iPhone guide. Tokens from portal.css; slow, calm motion. */
[data-install][hidden] { display: none !important; }

/* Home card (public/install.js inserts it after "Your next step") */
.install-card.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--t-change) var(--ease), transform var(--t-change) var(--ease); }
.install-row { display: flex; align-items: center; gap: 16px; }
.install-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--linen); }
.install-text { min-width: 0; }
.app-card .install-title { font: 700 19px/1.3 var(--f-body); color: var(--charcoal); }
.app-card .install-line { margin-top: 4px; font-size: 16px; }
.install-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; font-size: 17px; cursor: pointer; }
.install-skip { display: block; width: 100%; margin-top: 4px; font-size: 16px; cursor: pointer; }

/* Guide: slides up from the bottom over a soft dim */
.install-guide { position: fixed; inset: 0; z-index: 100; }
.install-dim { position: absolute; inset: 0; background: rgba(33, 31, 32, 0.45); opacity: 0; transition: opacity var(--t-change) var(--ease); }
.install-guide.is-open .install-dim { opacity: 1; }
.install-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94%; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box;
  max-width: 560px; margin: 0 auto; background: var(--cream); border-radius: 26px 26px 0 0; padding: 8px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 30px -12px rgba(33, 31, 32, 0.45); transform: translateY(100%); transition: transform var(--t-appear) var(--ease); }
.install-guide.is-open .install-sheet { transform: none; }
.install-sheet:focus { outline: none; }
.install-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.install-h { margin: 0; font: 32px/1.15 var(--f-script); color: var(--script); -webkit-text-stroke: 0.3px currentColor; }
.install-x { flex: none; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--charcoal);
  border: 1px solid rgba(33, 31, 32, 0.16); background: rgba(255, 248, 241, 0.6); box-shadow: var(--glass-edge), var(--lift-clear);
  transition: transform var(--t-release) var(--ease), box-shadow var(--t-release) var(--ease); }
.install-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.install-x:active { transform: scale(0.96); box-shadow: var(--press-clear); transition-duration: var(--t-press); }
.install-x:focus-visible, .install-ok:focus-visible { outline: 3px solid var(--script); outline-offset: 3px; }
.install-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 22px; }
.install-step { display: grid; grid-template-columns: 40px 76px 1fr; align-items: center; gap: 14px; }
.install-num { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--script); color: var(--cream); font: 700 20px/1 var(--f-body); }
.install-pic { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: var(--linen); color: var(--script); }
.install-pic svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.install-words { display: grid; gap: 6px; min-width: 0; font-size: 19px; line-height: 1.3; color: var(--charcoal); }
.install-words strong { font-weight: 700; overflow-wrap: anywhere; }
.install-note { font-size: 17px; line-height: 1.35; color: var(--muted); }
.install-final { margin: 26px 0 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); text-align: center; }
.install-ok { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 18px; font-size: 18px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .install-card.is-leaving, .install-dim, .install-sheet, .install-x { transition: none; }
}

.install-guide:not(.is-open) { pointer-events: none; }
