/* /app - PWA install guide */

.install {
  padding: 48px 0 88px;
  min-height: calc(100svh - 65px - var(--announce-h, 0px));
}

.install__hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "title"
    "lead";
  align-items: start;
  row-gap: 12px;
  max-width: none;
  margin-bottom: 32px;
}

.install__eyebrow {
  margin: 0 0 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.install__hero .install__eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.install h1 {
  grid-area: title;
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.install__hero h1 {
  margin: 0;
}

.install__lead {
  margin: 0;
  max-width: none;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: nowrap;
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
}

.os-tabs button {
  appearance: none;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.os-tabs button.is-on,
.os-tabs button:hover {
  color: #111;
  background: var(--bone);
  border-color: var(--bone);
}

.install-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.install-note--warn {
  border-color: rgba(232, 224, 212, 0.35);
  color: var(--bone);
}

.install-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bone);
  color: #111;
}

.install-prompt p {
  margin: 0;
  flex: 1 1 200px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.install-prompt .btn {
  flex-shrink: 0;
  background: #111;
  color: #fff;
}

.mock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #161616;
  border: 1px solid var(--border-color);
}

.mock__url {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2a2a2a;
  color: #ccc;
}

.mock__share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.22);
  animation: share-pulse 1.8s ease-in-out infinite;
}

.mock__install {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bone);
  color: #111;
  animation: share-pulse 1.8s ease-in-out infinite;
}

@keyframes share-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.install-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.install-step h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.install-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.step-glyph {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-glyph--share {
  background: #0a84ff;
  color: #fff;
}

.step-glyph--plus {
  background: #1c1c1e;
  color: #fff;
  border: 1px solid #3a3a3c;
}

.step-glyph--menu {
  background: #202124;
  color: #e8eaed;
}

.step-glyph--bone {
  background: var(--bone);
  color: #111;
}

.install-done {
  max-width: 480px;
  padding: 28px 0;
}

.install-done .install__eyebrow {
  text-align: left;
}

.install-done h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.install-done p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .install__lead {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .install {
    padding-left: 20px;
    padding-right: 20px;
  }

  .install__hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "lead";
  }

  .install__hero .install__eyebrow {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .install-step {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .step-glyph {
    width: 48px;
    height: 48px;
  }
}
