.kp-pwa-chip {
  position: fixed;
  z-index: 1200;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: #004d4d;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 45, 45, 0.28);
}
.kp-pwa-chip:hover { background: #0a6363; }
@media (display-mode: standalone) {
  .kp-pwa-chip { display: none !important; }
}

.kp-install {
  min-height: 100vh;
  background:
    radial-gradient(720px 280px at 50% -4%, rgba(232, 146, 10, 0.18), transparent 58%),
    linear-gradient(180deg, #002226 0%, #004d4d 28%, #eef3f3 28%, #f5f8f8 100%);
  color: #142424;
  padding: 1rem 1.1rem 2.75rem;
  box-sizing: border-box;
}
.kp-install *,
.kp-install *::before,
.kp-install *::after {
  box-sizing: border-box;
}
.kp-install__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}
.kp-install__hero {
  text-align: center;
  color: #fff;
  padding: 0.65rem 0 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kp-install__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
}
.kp-install__logo {
  width: min(168px, 46vw);
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}
.kp-install__brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  line-height: 1.35;
}
.kp-install__brand-text strong {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: #e8920a;
  letter-spacing: 0.01em;
}
.kp-install__brand-text span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d7ebea;
}
.kp-install__eyebrow {
  margin: 0 0 0.35rem;
  color: #e8c57a;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.kp-install__hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  line-height: 1.35;
  max-width: 22ch;
}
.kp-install__lead {
  margin: 0 auto;
  max-width: 36rem;
  color: #d5e4e4;
  line-height: 1.75;
  font-size: 0.94rem;
}
.kp-install__platforms {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
}
.kp-install__platforms a,
.kp-install__platforms .kp-install__plat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2fafa;
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.kp-install__platforms a:hover,
.kp-install__platforms .kp-install__plat:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
.kp-install__plat-ico {
  display: inline-flex;
  color: #e8c57a;
}
.kp-install__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.9rem;
  width: 100%;
}
.kp-install__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 10.5rem;
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: #e8920a;
  color: #142424;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.kp-install__cta--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.kp-install__cta--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.kp-install__detect {
  margin: 0.8rem auto 0;
  max-width: 34rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(232, 146, 10, 0.2);
  color: #ffe6b5;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.kp-install__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.15rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .kp-install__grid { grid-template-columns: 1fr; gap: 1.15rem; }
}

.kp-install__card {
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid #dce8e8;
  box-shadow: 0 10px 28px rgba(0, 45, 45, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  position: relative;
}
.kp-install__card.is-recommended {
  border-color: #e8920a;
  box-shadow: 0 12px 32px rgba(232, 146, 10, 0.16);
}
.kp-install__card.is-recommended::before {
  content: "پیشنهاد برای دستگاه شما";
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  background: #e8920a;
  color: #142424;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 1;
}

.kp-install__card-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  min-height: 64px;
}
.kp-install__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  overflow: hidden;
}
.kp-install__icon svg {
  display: block;
  flex-shrink: 0;
}
.kp-install__icon--windows {
  background: #e8f1fb;
  color: #0078d4;
  border-color: #c5daf3;
}
.kp-install__icon--android {
  background: #eaf6ea;
  color: #3ddc84;
  border-color: #c6e9ce;
}
.kp-install__icon--apple {
  background: #f2f2f4;
  color: #111;
  border-color: #dddde3;
}
.kp-install__card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  align-items: flex-start;
}
.kp-install__badge {
  display: inline-flex;
  align-items: center;
  background: #004d4d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.kp-install__card h2 {
  margin: 0;
  color: #004d4d;
  font-size: 1.12rem;
  line-height: 1.45;
}
.kp-install__desc {
  margin: 0;
  color: #3a4f4f;
  line-height: 1.8;
  font-size: 0.95rem;
}
.kp-install__meta {
  margin: 0;
  padding: 0.85rem 1rem;
  list-style: none;
  background: #f3f7f7;
  border-radius: 12px;
  color: #3a4f4f;
  font-size: 0.9rem;
  line-height: 1.75;
}
.kp-install__meta li + li { margin-top: 0.2rem; }
.kp-install__meta strong { color: #004d4d; }
.kp-install__card ol {
  margin: 0;
  padding-right: 1.25rem;
  line-height: 1.85;
  color: #3a4f4f;
  font-size: 0.92rem;
  flex: 1 1 auto;
}
.kp-install__card ol li + li { margin-top: 0.15rem; }
.kp-install__footer {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.kp-install__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: #004d4d;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.92rem;
}
.kp-install__dl:hover { background: #0a6363; }
.kp-install__dl--soft {
  background: #eef6f6;
  color: #004d4d;
  border: 1px solid #cfe0e0;
  cursor: pointer;
  font: inherit;
}
.kp-install__dl--soft:hover { background: #e2efef; }

.kp-install__alt {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.35rem;
  border: 1px solid #dce8e8;
}
.kp-install__alt h2 {
  margin: 0 0 0.5rem;
  color: #004d4d;
  font-size: 1.1rem;
}
.kp-install__alt > p {
  margin: 0 0 1rem;
  color: #3a4f4f;
  line-height: 1.75;
}
.kp-install__alt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 700px) {
  .kp-install__alt-grid { grid-template-columns: 1fr; }
}
.kp-install__alt-grid > div {
  background: #f3f7f7;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  min-height: 5.5rem;
}
.kp-install__alt-grid h3 {
  margin: 0 0 0.35rem;
  color: #004d4d;
  font-size: 0.98rem;
}
.kp-install__alt-grid p {
  margin: 0;
  color: #3a4f4f;
  font-size: 0.9rem;
  line-height: 1.65;
}
.kp-install__note {
  margin-top: 1.25rem;
  background: #fff8ee;
  border: 1px solid #f0d7a8;
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  color: #5f4a20;
  line-height: 1.85;
}
.kp-install__home {
  display: inline-block;
  margin-top: 1.1rem;
  color: #004d4d;
  font-weight: 700;
}
