/* ============================================================================
   OFFIQA — Install page stylesheet
   Loads AFTER offiqa-design-v2.css via extra_css. For /install/ only.
   ============================================================================ */

/* Extension info strip — version, users, rating */
.ext-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.ext-info strong { color: var(--ink-2); font-weight: 700; }

/* Numbered install steps */
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: install-step;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.install-steps > li {
  position: relative;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 3.4rem);
  border-bottom: 1px solid var(--line-soft);
  counter-increment: install-step;
}
.install-steps > li:last-child { border-bottom: none; }
.install-steps > li::before {
  content: counter(install-step);
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}
.install-steps > li h3 { margin-bottom: 0.3rem; }
.install-steps > li p:last-child { margin-bottom: 0; }

/* Chrome badge chip */
.chrome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem 0.38rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

/* Browser compatibility notice */
.compat-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--muted);
}

/* Post-install confirmation block */
.install-confirm {
  padding: var(--space-4);
  border: 1px solid var(--green-soft);
  border-left: 4px solid var(--green-400);
  border-radius: var(--r-md);
  background: var(--green-tint);
}
.install-confirm h3 { color: var(--green-700); margin-bottom: 0.4rem; }
.install-confirm p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .ext-info { gap: 0.4rem 1rem; }
}

/* =====================================================================
   INSTALL CTA CARD — overrides .cta-card grid for 2-column layout
   ===================================================================== */
.install-cta {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

/* Left column: kicker + heading + intro */
.install-cta .cta-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* keeps inline-flex children compact, not stretched */
}

/* Section-kicker badge on dark bg — override teal-tint to semi-transparent white */
.install-cta .cta-body .section-kicker {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
}
.install-cta .cta-body .section-kicker::before {
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}


/* Right column: buttons + trust links */
.install-cta .cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.install-cta .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Trust links row inside dark CTA card */
.install-cta .cta-trust {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}
.install-cta .cta-trust strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.install-cta .cta-trust a {
  color: rgba(56, 189, 248, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.install-cta .cta-trust a:hover {
  color: #7DD3FC;
  border-bottom-color: #7DD3FC;
}

/* Mobile: stack columns */
@media (max-width: 860px) {
  .install-cta {
    grid-template-columns: 1fr;
  }
  .install-cta .cta-actions {
    width: 100%;
  }
}
