/* Install demo on the About page (scoped copy of install-demo.css) */
.install-demo { --clay: #b5604c; --cocoa: #6a312b; --ink: #3a2622; color: var(--ink); }
.install-demo [hidden] { display: none !important; }
.install-demo *, .install-demo *::before, .install-demo *::after { box-sizing: border-box; }
.install-demo .tile .sq1 { background: #d9c4bc; }
.install-demo .tile .sq2 { background: #e8cfa9; }
.install-demo .tile .sq3 { background: #f6e9d4; }
.install-demo .phone { margin: 0 auto; }
#get-app > h2 { margin-bottom: 0; }
.install-demo .tile img { background: #f3f3f1; }




.install-demo {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 36px;
  align-items: center;
}
.install-demo .kicker {
  margin: 0 0 8px;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.install-demo h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cocoa);
}
.install-demo .lead { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.5; max-width: 38rem; }
.install-demo .switch { display: flex; gap: 8px; margin-bottom: 18px; }
.install-demo .switch button, .install-demo .controls button {
  border: 1px solid #d9c4bc;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.install-demo .switch button[aria-pressed="true"], .install-demo .controls button.play {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.install-demo .dots { display: flex; gap: 6px; margin: 18px 0 8px; }
.install-demo .dots span { width: 28px; height: 4px; border-radius: 99px; background: #e2d6cf; }
.install-demo .dots span.on { background: var(--cocoa); }
.install-demo .controls { display: flex; gap: 8px; margin-top: 16px; }
.install-demo .note { margin-top: 18px; color: #6a4e48; font-size: 0.92rem; line-height: 1.45; }

.install-demo .stage { display: flex; justify-content: center; }
.install-demo .phone {
  width: 340px;
  height: 700px;
  background: #111;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(61, 28, 24, 0.28), inset 0 0 0 2px #2a2a2a;
  position: relative;
}
.install-demo .screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}
.install-demo .island {
  position: absolute;
  z-index: 8;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 20px;
}
.install-demo .status {
  position: absolute;
  z-index: 7;
  top: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 18px 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.install-demo .status.dark { color: #111; text-shadow: 0 0 6px #fff, 0 0 6px #fff; }
.install-demo iframe.site {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3f3f1;
}
.install-demo iframe.site.under-safari { top: 80px; height: calc(100% - 80px); }
.install-demo iframe.site.under-safari.with-hint { top: 124px; height: calc(100% - 124px); }
.install-demo .open-hint {
  position: absolute;
  z-index: 7;
  left: 14px;
  right: 14px;
  top: 80px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6a312b;
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}
.install-demo .open-hint.android { top: 92px; }
.install-demo iframe.site.under-chrome.with-hint { top: 136px; height: calc(100% - 136px); }
.install-demo .safari-url {
  position: absolute;
  z-index: 6;
  top: 40px;
  left: 12px;
  right: 12px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.install-demo iframe.site.under-chrome { top: 84px; height: calc(100% - 84px); }
.install-demo .safari-bar, .install-demo .chrome-bar, .install-demo .sheet, .install-demo .add-sheet, .install-demo .home, .install-demo .install-dialog, .install-demo .chrome-menu {
  position: absolute;
  z-index: 5;
}
.install-demo .safari-bar {
  left: 10px; right: 10px; bottom: 10px;
  height: 58px;
  background: rgba(248,248,248,0.94);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.install-demo .safari-bar button, .install-demo .chrome-bar button {
  width: 36px; height: 36px;
  border: 0; background: transparent;
  border-radius: 10px;
  display: grid; place-items: center;
}
.install-demo .safari-bar button.hot, .install-demo .chrome-bar button.hot, .install-demo .row.hot, .install-demo .add-btn.hot, .install-demo .dialog button.hot, .install-demo .chrome-menu div.hot {
  outline: 3px solid #b5604c;
  background: rgba(181, 96, 76, 0.12);
}
.install-demo .rows .row.hot { outline: none; box-shadow: inset 0 0 0 3px #b5604c; }
.install-demo .url-pill {
  position: absolute;
  z-index: 6;
  left: 16px; right: 16px; bottom: 76px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 7px 10px;
  font-size: 13px;
  color: #222;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.install-demo .url-pill strong { font-weight: 650; }
.install-demo .chrome-bar {
  top: 0; left: 0; right: 0;
  height: 84px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 34px 8px 0 12px;
  border-bottom: 1px solid #e6e6e6;
}
.install-demo .chrome-bar .omni {
  flex: 1;
  min-width: 0;
  background: #f1f3f4;
  border-radius: 20px;
  padding: 7px 8px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-demo .chrome-bar #dotsBtn { font-size: 22px; font-weight: 700; color: #222; }
.install-demo .sheet {
  left: 0; right: 0; bottom: 0;
  background: #f2f2f7;
  border-radius: 18px 18px 32px 32px;
  padding: 8px 12px 22px;
  transform: translateY(110%);
  transition: transform 0.45s ease;
}
.install-demo .sheet.show { transform: translateY(0); }
.install-demo .grab { width: 36px; height: 4px; border-radius: 4px; background: #c7c7cc; margin: 4px auto 10px; }
.install-demo .apps { display: flex; gap: 10px; overflow: hidden; margin-bottom: 10px; }
.install-demo .app-bubble { width: 58px; text-align: center; font-size: 10px; color: #333; }
.install-demo .app-bubble i {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto 4px;
  border-radius: 14px; background: #fff; font-style: normal; font-weight: 700;
}
.install-demo .rows {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-height: 148px;
  overflow-y: auto;
  scrollbar-width: none;
}
.install-demo .row-pad { height: 120px; }
.install-demo .rows::-webkit-scrollbar { display: none; }
.install-demo .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px;
  border-top: 1px solid #eee;
  font-size: 14px;
  white-space: nowrap;
}
.install-demo .row:first-child { border-top: 0; }
.install-demo .add-sheet {
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: flex-end;
}
.install-demo .add-sheet.show { display: flex; }
.install-demo .add-card {
  width: 100%;
  background: #f7f7f8;
  border-radius: 18px 18px 32px 32px;
  padding: 12px 16px 28px;
}
.install-demo .add-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.install-demo .add-top span { color: #0a84ff; }
.install-demo .add-btn {
  border: 0; background: transparent; color: #0a84ff;
  font-weight: 700; font-size: 16px; border-radius: 8px; padding: 4px 8px;
}
.install-demo .add-preview {
  margin-top: 18px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.install-demo .add-preview img { width: 58px; height: 58px; border-radius: 14px; }
.install-demo .add-preview b { display: block; font-size: 15px; }
.install-demo .add-preview small { color: #666; }
.install-demo .home {
  inset: 0;
  display: none;
  background:
    linear-gradient(180deg, rgba(77, 35, 31, 0.28), rgba(77, 35, 31, 0.08)),
    url("/media-static/hero-poster.jpg") center/cover;
}
.install-demo .home.show { display: block; }
.install-demo .icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 64px 16px 0;
}
.install-demo .tile { text-align: center; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.install-demo .tile .sq {
  width: 58px; height: 58px; margin: 0 auto 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
}
.install-demo .tile img { width: 58px; height: 58px; border-radius: 14px; display: block; margin: 0 auto 4px; }
.install-demo .tile span { display: block; line-height: 1.15; }
.install-demo .tile.hot img { outline: 3px solid #fff; outline-offset: 3px; }
.install-demo .chrome-menu, .install-demo .install-dialog { display: none; }
.install-demo .chrome-menu.show, .install-demo .install-dialog.show { display: block; }
.install-demo .chrome-menu {
  top: 84px; right: 8px;
  width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  overflow: hidden;
}
.install-demo .chrome-menu div { padding: 12px 14px; border-top: 1px solid #eee; font-size: 14px; }
.install-demo .chrome-menu div:first-child { border-top: 0; }
.install-demo .install-dialog {
  left: 18px; right: 18px; top: 180px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.install-demo .install-dialog img { width: 42px; height: 42px; border-radius: 10px; vertical-align: middle; margin-right: 8px; }
.install-demo .install-dialog p { margin: 8px 0 14px; color: #444; font-size: 14px; }
.install-demo .install-dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
.install-demo .install-dialog button {
  border: 0; background: transparent; color: #0b57d0;
  font-weight: 700; border-radius: 8px; padding: 8px 10px;
}
.install-demo .finger {
  position: absolute;
  z-index: 9;
  width: 26px; height: 26px;
  margin-left: -13px; margin-top: -13px;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  border: 2px solid #6a312b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.28), 0 0 0 5px rgba(181, 96, 76, 0.22);
  transition: left 0.45s ease, top 0.45s ease, transform 0.15s ease, opacity 0.2s ease;
  pointer-events: none;
}
.install-demo .finger.tap { transform: scale(0.82); }
.install-demo .finger.drag { transition: none; }
.install-demo .finger.hide { opacity: 0; }
@media (max-width: 860px) {
  .install-demo { grid-template-columns: 1fr; justify-items: center; }
  .install-demo .phone { transform: scale(0.92); transform-origin: top center; }
}
