/**
 * install.css
 *
 * Styles unique to install.php (the device-specific "how to install" guide).
 * Shared variables (--warm, --mist, --radius, etc.) and common components
 * (.shell, header, footer, .status-pill, .eyebrow, .alert-bar, .features/.card)
 * come from themes.css.php, which install.php loads first.
 *
 * This file intentionally contains no hardcoded org colors — everything
 * here reads var(--...) so it automatically follows whichever org's
 * themes.css.php?org=... was loaded on the page.
 */

/* ── Main (install page uses tighter bottom padding than the chat page) ── */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 56px;
  text-align: center;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--ink);
}

/* ── Device card ── */
.device-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
  max-width: 560px;
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.device-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.device-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--mist);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--warm);
}

.device-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.device-subtitle {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 2px;
}

/* Video */
.video-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--mist);
  display: none; /* shown by JS if video exists */
}
.video-wrap video { width: 100%; display: block; }

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #3A3632;
  line-height: 1.5;
}

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.step-images img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--mist);
  display: block;
}

/* Install CTA */
.install-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--warm);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.18s, transform 0.12s;
}
.install-cta-btn:hover  { background: var(--warm-h); transform: translateY(-1px); }
.install-cta-btn:active { transform: translateY(0); }
.install-cta-btn.hidden { display: none; }

/* Success state */
.installed-notice {
  display: none;
  align-items: center;
  gap: 10px;
  background: #EAF7EF;
  border: 1px solid #A8DFC0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1F6B43;
  width: 100%;
  text-align: left;
}

/* Feature cards (install page calls this .feature-card; chat page's .card is
   visually equivalent but kept separate since markup/class names differ) */
.feature-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 20px 22px;
  flex: 1 1 190px;
  max-width: 220px;
  text-align: left;
}
.feature-card h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 5px; }
.feature-card p  { font-size: 0.8rem; color: var(--slate); line-height: 1.55; }

/* ── QR code alert (desktop fallback) ───────────────────────────────── */
.qr-alert {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.qr-alert-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.qr-code-wrap {
  display: flex;
  justify-content: center;
}
.qr-code-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--mist);
}
.qr-code-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate);
}
.qr-code-placeholder svg {
  width: 46px;
  height: 46px;
  opacity: 0.6;
}
.qr-code-placeholder span {
  font-size: 0.68rem;
  font-weight: 500;
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  main   { padding: 36px 16px 40px; }
  .device-card    { padding: 20px 18px 22px; }
  .step-images    { grid-template-columns: 1fr; }
  .feature-card   { max-width: 100%; }
}