/* UQNS — Install & share page (install.html). Uses the tokens from styles.css, so both themes work. */

.ip-body {
  background: radial-gradient(ellipse 90% 440px at 50% 60px, var(--glow), transparent 70%) no-repeat, var(--bg);
}
.ip-spacer { flex: 1; }

.ip {
  width: min(640px, 100% - 32px);
  margin-inline: auto;
  padding: 104px 0 var(--s7);
}

/* shared small icon style */
.ip svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.ip h1 { font-size: clamp(26px, 7.2vw, 36px); line-height: 1.3; font-weight: 700; }
.ip h2 { font-size: 22px; line-height: 1.35; color: var(--accent); }
.ip-lead { color: var(--muted); font-size: 17px; margin: var(--s3) auto 0; max-width: 34em; }
.ip-lead-sm { margin-inline: 0; margin-top: var(--s2); font-size: 16px; }

/* ---------- Hero ---------- */
.ip-hero {
  text-align: center;
  position: relative;
  padding-bottom: var(--s6);
}
.ip-icon {
  width: 108px; height: 108px; margin: 0 auto var(--s4);
  border-radius: 27px; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 18px 48px var(--glow);
}
.ip-icon img { width: 100%; height: 100%; border-radius: inherit; }

.ip-cta { margin-top: var(--s5); display: flex; justify-content: center; }
.ip-install { min-height: 52px; padding-inline: var(--s5); font-size: 17px; gap: 10px; }
.ip-install svg { width: 22px; height: 22px; stroke-width: 2.2; }

.ip-done {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glow);
  color: var(--text); font-weight: 500;
}
.ip-done svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); stroke-width: 2.6;
}

/* Perks: one bordered group, hairlines between the cells */
.ip-perks {
  list-style: none; margin: var(--s5) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; text-align: start;
}
.ip-perks li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  font-size: 15px; line-height: 1.4;
}
.ip-perks svg { color: var(--accent); }

/* ---------- Manual install steps ---------- */
.ip-steps { padding-bottom: var(--s6); }
.ip-seg {
  display: inline-flex; margin-top: var(--s3);
  border: 1px solid var(--gold); border-radius: 999px; overflow: hidden;
}
.ip-seg button {
  min-height: 40px; padding: 0 var(--s4); border: 0; background: transparent;
  color: var(--accent); font-weight: 600; font-size: 15px; cursor: pointer;
}
.ip-seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

.ip-list {
  list-style: none; margin: var(--s4) 0 0; padding: 0;
  counter-reset: ip;
}
.ip-list li {
  counter-increment: ip; position: relative;
  padding: 4px 0 var(--s4); padding-inline-start: 52px;
  min-height: 40px; line-height: 1.6;
}
.ip-list li::before {
  content: counter(ip); position: absolute; inset-inline-start: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 15px;
}
.ip-list li::after {
  content: ""; position: absolute; inset-inline-start: 17px; top: 42px; bottom: 6px;
  width: 2px; background: var(--line);
}
.ip-list li:last-child { padding-bottom: 0; }
.ip-list li:last-child::after { display: none; }

/* ---------- Share ---------- */
.ip-share { border-top: 1px solid var(--line); padding-top: var(--s6); }
.ip-panel {
  margin-top: var(--s4); padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
}

.ip-link {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: var(--surface-input); border: 1px solid var(--line);
}
html[dir="rtl"] .ip-link { padding: 6px 14px 6px 6px; }
.ip-link > svg { color: var(--accent); }
.ip-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500; font-size: 15px; font-family: var(--font-ui);
}
.ip-copy {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--accent);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s;
}
.ip-copy:hover { background: var(--btn-hover); }
.ip-copy svg { width: 18px; height: 18px; }

.ip-status { margin: 0; padding-inline: 14px; font-size: 14px; color: var(--accent); }
.ip-status:not(:empty) { margin-top: 8px; }

.ip-native { width: 100%; min-height: 52px; margin-top: var(--s1); gap: 10px; font-size: 17px; }
.ip-native svg { width: 22px; height: 22px; }

.ip-apps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px; margin-top: var(--s3);
}
.ip-app {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center;
  transition: color .2s;
}
.ip-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-input); color: var(--accent);
  transition: border-color .2s, background .2s;
}
.ip-ico svg { width: 24px; height: 24px; }
.ip-app:hover, .ip-app:focus-visible { color: var(--accent); }
.ip-app:hover .ip-ico, .ip-app:focus-visible .ip-ico { border-color: var(--gold); background: var(--glow); }

/* QR: the one place a white tile is needed, so phones can scan it in either theme */
.ip-qr {
  display: flex; align-items: center; gap: var(--s4);
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line);
}
.ip-qr-tile {
  flex: none; width: 148px; padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.ip-qr-tile img { width: 100%; height: auto; border-radius: 8px; }
.ip-qr-text h3 { font-size: 17px; line-height: 1.4; }
.ip-qr-text p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.ip-back { margin-top: var(--s6); text-align: center; }

@media (max-width: 400px) {
  .ip-qr { flex-direction: column; text-align: center; }
  .ip-copy span { display: none; }
  .ip-copy { padding: 0 14px; }
}
@media (min-width: 801px) {
  .ip { padding-top: 124px; }
}
