/* Local software overlay — GriGsi Air Check homepage card */
body.ac-soft-open { overflow: hidden; }
.ac-soft-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(40, 24, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ac-soft-overlay.hidden { display: none; }
.ac-soft-panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  position: relative;
}
.ac-soft-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
.ac-soft-close:hover { color: #333; }
.ac-soft-heading {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #4a2a28;
  font-weight: 800;
  padding-right: 28px;
}
.ac-soft-lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.45;
}
.ac-soft-platforms { display: flex; flex-direction: column; gap: 10px; }
.ac-soft-plat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 2px solid rgba(240, 139, 131, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #4a2a28;
  background: #fff8f6;
  cursor: pointer;
  text-align: left;
}
.ac-soft-plat:hover { border-color: #e06b5f; background: #ffece8; }
.ac-soft-plat i { color: #c04a3f; font-size: 0.85rem; }
.ac-soft-download-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c04a3f 0%, #e06b5f 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(224, 107, 95, 0.35);
}
.ac-soft-download-hero.hidden { display: none; }
.ac-soft-download-hero:hover { filter: brightness(1.08); color: #fff; }
.ac-soft-download-hero i { font-size: 1.35rem; }
.ac-soft-file { color: #4a2a28; font-weight: 600; }
.ac-soft-plat-soon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b05820;
  background: #fff0e6;
  padding: 4px 8px;
  border-radius: 999px;
}
.ac-soft-web-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
}
.ac-soft-web-note a { color: #c04a3e; font-weight: 700; }
.ac-soft-download-meta {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}
.ac-soft-download-meta p { margin: 0 0 8px; }
.ac-soft-web-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e06b5f 0%, #f08b83 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(240, 139, 131, 0.35);
}
.ac-soft-web-link:hover { filter: brightness(1.06); color: #fff; }
.ac-soft-back {
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.ac-soft-back:hover { background: #f5f5f5; }
.ac-soft-step.hidden { display: none; }
.ac-soft-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.ac-soft-open-app,
.ac-soft-pay-link {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.ac-soft-open-app {
  background: #3d2860;
  color: #fff;
}
.ac-soft-pay-link {
  background: #e8e4ff;
  color: #4a3d8f;
  border: 1px solid rgba(61, 40, 96, 0.2);
}
.ac-soft-trial-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f7ff;
  border: 1px solid rgba(61, 40, 96, 0.15);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #3d2860;
}
.ac-soft-after {
  margin-top: 10px !important;
  font-size: 0.78rem !important;
  color: #666 !important;
}

.home-quick-card--air-check.home-quick-card--with-soft {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding-bottom: 8px !important;
}
.home-quick-card--air-check .home-quick-soft-btn {
  grid-row: 4;
  width: calc(100% - 4px);
  margin: 4px auto 0;
  padding: 7px 8px;
  border: 1px solid rgba(224, 107, 95, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8f6 0%, #ffece8 100%);
  color: #4a2a28;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.2;
}
.home-quick-card--air-check .home-quick-soft-btn:hover {
  background: #ffe0da;
  border-color: #e06b5f;
}
.home-quick-card--air-check .home-quick-card-link > small {
  font-size: 0.58rem;
  line-height: 1.35;
}
.ac-chrome-overlay .ac-chrome-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #4a2a28;
  line-height: 1.5;
}
.ac-chrome-overlay .ac-chrome-lead strong {
  color: #c04a3f;
}
.ac-chrome-overlay .ac-chrome-alt {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
}
.ac-chrome-overlay .ac-chrome-alt button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #c04a3e;
  cursor: pointer;
  text-decoration: underline;
}
.ac-chrome-overlay .ac-chrome-alt button:hover {
  color: #e06b5f;
}

/* macOS download — roomy read mode (hide extra chrome) */
.ac-soft-overlay.ac-soft-macos-read .ac-soft-panel {
  width: min(540px, calc(100vw - 20px));
  padding: 22px 22px 18px;
}
@media (min-height: 320px) {
  .ac-soft-overlay.ac-soft-macos-read .ac-soft-panel {
    max-height: min(94dvh, 820px);
  }
}
.ac-soft-overlay.ac-soft-macos-read #ac-soft-step-download {
  max-height: none;
  flex: 1 1 auto;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-app-links,
.ac-soft-overlay.ac-soft-macos-read .ac-soft-trial-note,
.ac-soft-overlay.ac-soft-macos-read .ac-soft-web-link {
  display: none !important;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-install-back {
  display: block !important;
  width: 100%;
  margin: 0 0 10px;
  flex-shrink: 0;
}
.ac-soft-install-back.hidden {
  display: none !important;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-back:not(.ac-soft-install-back) {
  display: none !important;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-hero {
  margin-bottom: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta {
  flex: 1 1 auto;
  min-height: min(52dvh, 480px);
  max-height: min(68dvh, 560px);
  margin-bottom: 10px;
  padding: 4px 2px 8px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.ac-soft-overlay.ac-soft-macos-read .grigsi-macos-install-term-body {
  max-height: min(46dvh, 360px);
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-back {
  margin-top: 4px;
  flex-shrink: 0;
}

/* macOS read mode: always-visible scroll hint (side sliders) */
.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta {
  position: relative;
  padding-left: 12px;
  padding-right: 12px;
}

.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta::before,
.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 7px;
  border-radius: 999px;
  border: 1px dashed rgba(224, 107, 95, 0.55);
  background: rgba(224, 107, 95, 0.14);
  pointer-events: none;
  opacity: 0.9;
  animation: acSoftScrollHintDrift 2.1s ease-in-out infinite alternate,
    acSoftScrollHintPulse 1.3s ease-in-out infinite;
}

.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta::before {
  left: 2px;
}
.ac-soft-overlay.ac-soft-macos-read .ac-soft-download-meta::after {
  right: 2px;
}

@keyframes acSoftScrollHintDrift {
  from {
    transform: translateY(-1px);
  }
  to {
    transform: translateY(3px);
  }
}

@keyframes acSoftScrollHintPulse {
  0% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
