/* Install page (install.html). Builds on tokens/base/components. */

.install-header {
  max-width: calc(680px + 2 * var(--gutter));
}

.install {
  width: 100%;
  max-width: calc(680px + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s-6) var(--gutter) 0;
  display: grid;
  gap: var(--s-4);
}

.install h2,
.install h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

.install p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}

.install a:not(.btn) {
  color: var(--accent);
}

.install code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--soft);
  border: var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.install-hero {
  display: grid;
  gap: var(--s-3);
}

.install-hero__title {
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

.install-hero__lead {
  font-size: 16px;
  max-width: 56ch;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
}
.trust li::before {
  content: '✓ ';
}

/* ---------- Status ---------- */
.ext-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s-2);
  align-items: baseline;
  padding: var(--s-3) var(--s-4) var(--s-3) 36px;
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.ext-status::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.ext-status--ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}
.ext-status--ok::before {
  background: var(--ok-dot);
}
.ext-status--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-ink);
}
.ext-status--warn::before {
  background: var(--warn-dot);
}
.ext-status a,
.ext-status .link-btn {
  color: inherit;
  font-weight: 700;
}

.not-here {
  padding: var(--s-4);
  display: grid;
  gap: 6px;
  background: var(--warn-bg);
  border-color: var(--warn-border);
}
.not-here h2 {
  font-size: 17px;
  color: var(--warn-ink);
}
.not-here p {
  color: var(--warn-ink);
}

/* ---------- Add from the Chrome Web Store ---------- */
.get {
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  box-shadow: var(--shadow-lift);
}
.get__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.get__text {
  font-size: 16px;
}
.get__meta {
  text-align: center;
  font-size: 13px;
  color: var(--muted) !important;
}
.get .link-btn {
  justify-self: center;
}
.not-here .btn {
  justify-self: start;
  margin-top: 6px;
}

/* ---------- Help, other platforms, about ---------- */
.help,
.about {
  padding: var(--s-4) var(--s-5);
  display: grid;
  gap: var(--s-2);
}
.help h2,
.about h2 {
  font-size: 17px;
  font-weight: 700;
}
.help details {
  border-top: var(--border);
  padding-top: var(--s-2);
}
.help summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.help details p {
  margin-top: 6px;
  font-size: 14px;
}

.others {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.section-label::before {
  content: '// ';
  opacity: 0.55;
}
.others__grid {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 640px) {
  .others__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.other {
  padding: var(--s-4);
  display: grid;
  gap: 6px;
  align-content: start;
  background: var(--field);
}
.other.is-yours {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}
.other h3 {
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.other p {
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
}
.badge--muted {
  background: var(--soft);
  border-color: var(--line);
  color: var(--muted);
}

.about ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  display: grid;
  gap: 6px;
  line-height: 1.5;
  font-size: 14px;
}

.site-footer a {
  color: inherit;
}

.btn:focus-visible,
.link-btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .get {
    padding: var(--s-4);
  }
  .get__title {
    font-size: 20px;
  }
}

