/* Installasjonssiden (installer.html). Bruker temavariablene fra theme.css / dark.css. */
.installer-body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); overflow-y: auto; -webkit-user-select: text; user-select: text; }
.inst { max-width: 760px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 20px calc(40px + var(--safe-b)); }
.inst-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.inst-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.inst-brand img { border-radius: 9px; }
.inst-theme { width: auto; }
.inst-theme button { flex: 0 0 auto; width: 36px; padding: 0; }

.inst-hero { text-align: center; padding: 16px 0 24px; }
.inst-icon { border-radius: 26px; box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35); margin-bottom: 20px; }
.inst-hero h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.inst-lead { margin: 0 auto; max-width: 52ch; color: var(--text-2); font-size: 16px; }

.inst-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); padding: 24px; margin-bottom: 24px; }
.inst-card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.inst-card .muted { margin: 0 0 16px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16px; border-radius: 14px; }
.inst-steps { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.inst-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.inst-step-n { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.inst-steps strong { font-weight: 600; }
.inst-inline-ico { display: inline-flex; vertical-align: -4px; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--text-2); margin: 0 2px; }
.inst-small { font-size: 12px; margin: 12px 0 0 !important; word-break: break-all; }
.inst-warn { display: flex; gap: 12px; padding: 12px 16px; margin: 12px 0; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #92400e; }
.inst-warn p { margin: 0; font-size: 14px; }
.inst-warn svg { flex-shrink: 0; margin-top: 2px; }
.inst-done { text-align: center; padding: 8px 0; }
.inst-ok { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #15803d; align-items: center; justify-content: center; margin-bottom: 8px; }

.inst-desktop { display: flex; gap: 32px; align-items: center; }
.inst-desktop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.inst-desktop-text .btn { align-self: flex-start; margin-top: 12px; }
.inst-qr { flex: 0 0 200px; width: 200px; height: 200px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.inst-qr svg { width: 100%; height: 100%; display: block; }
.inst-link { display: flex; gap: 8px; align-items: center; }
.inst-link input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }

.inst-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.inst-feature { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.inst-feature strong { display: block; font-size: 14px; margin-bottom: 2px; }
.inst-feature p { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.inst-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.inst-faq h2 { font-size: 16px; margin: 0 0 12px; }
.inst-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; }
.inst-faq summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.inst-faq p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.inst-faq a, .inst-foot a { color: var(--brand); }
.inst-foot { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-3); }

@media (max-width: 640px) {
  .inst { padding-left: 16px; padding-right: 16px; }
  .inst-hero h1 { font-size: 24px; }
  .inst-features { grid-template-columns: 1fr; }
  .inst-desktop { flex-direction: column-reverse; align-items: stretch; }
  .inst-qr { align-self: center; }
  .inst-card { padding: 20px; }
}
:root[data-theme="dark"] .inst-warn { background: #3a2f10; border-color: #6b5314; color: #fcd34d; }
:root[data-theme="dark"] .inst-ok { background: #123524; color: #4ade80; }
:root[data-theme="dark"] .inst-icon { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
