/* Install guide.
 *
 * The step figures are DRAWN IN CSS rather than screenshotted. Not a shortcut — a deliberate choice
 * with three reasons:
 *
 *   1. A real capture of chrome://extensions shows every extension the person taking it has
 *      installed. Publishing that on a public page leaks the operator's own browser contents.
 *   2. Chrome's settings UI is redesigned regularly. A screenshot is wrong the moment it changes and
 *      nothing tells you; a diagram of "a toggle labelled Developer mode" stays true.
 *   3. They scale to any viewport and cost no image bytes on a page people load on a slow
 *      connection while trying to fix something.
 *
 * They are drawn to be recognisable, not pixel-accurate: the point is "look for a toggle here, on
 * the right", which is what someone scanning the real page needs.
 */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 1.6rem + 2vw, 3.4rem);
}

.step {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1.4vw, 2rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  border-top: 1px solid var(--edge, rgba(210, 229, 244, 0.14));
}

.step:first-child { border-top: 0; padding-top: 0; }

/* One column on narrow screens: side-by-side text and figure both become unreadable. */
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; }
}

.step__text h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
}

/* The number is the wayfinding element, so it reads as a sequence rather than a pile of headings. */
.step__n {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d2a1c;
  background: #4ade80;
}

.step__text p { margin: 0 0 0.7rem; line-height: 1.6; }
.step__text .note { font-size: 0.86rem; opacity: 0.72; }

/* --- the drawn figures --- */

.step__shot { margin: 0; }

.shot-frame {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(210, 229, 244, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
}

/* A row of controls, like Chrome's extensions toolbar. */
.shot-frame--bar,
.shot-frame--omnibox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.shot-frame--omnibox {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
}

.shot-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0.9;
}

.shot-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
}

.shot-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  opacity: 0.7;
}

.shot-row--target .shot-file { opacity: 1; font-weight: 600; }

.shot-label { font-weight: 500; }
.shot-label--dim { opacity: 0.65; }

.shot-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(210, 229, 244, 0.2);
  border-radius: 7px;
  font-size: 0.8rem;
}

/* The one control the step is about. Everything else is dimmed, so the eye lands on it without
   needing an arrow drawn to it. */
.shot-btn--target {
  border-color: #4ade80;
  color: #0d2a1c;
  background: #4ade80;
  font-weight: 600;
}

.shot-btn--dim { opacity: 0.4; }

.shot-toggle {
  position: relative;
  width: 2.2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #4ade80;
}

.shot-toggle__knob {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #0d2a1c;
}

.shot-puzzle,
.shot-pin {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(210, 229, 244, 0.45);
  border-radius: 3px;
  opacity: 0.8;
}

.shot-pin { border-radius: 50% 50% 3px 3px; border-color: #4ade80; opacity: 1; }

.shot-frame--panel { max-width: 15rem; }

.shot-input {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(210, 229, 244, 0.2);
  border-radius: 6px;
  font-size: 0.78rem;
  opacity: 0.6;
}

.shot-cta {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  color: #0d2a1c;
  background: #4ade80;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

/* The callout. Positioned relative to the frame, and it wraps rather than overflowing — a label that
   runs off the edge is worse than no label. */
.callout {
  position: relative;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #0d2a1c;
  background: #fbbf24;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}

.callout--right { margin-left: auto; }

.callout--below {
  flex-basis: 100%;
  justify-self: start;
  width: fit-content;
}

.step__shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* --- the expectation-setting notice, and the FAQ --- */

.notice {
  margin: 0 0 clamp(2rem, 1.6rem + 2vw, 3rem);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.07);
}

.notice h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.notice p { margin: 0 0 0.6rem; line-height: 1.6; }
.notice p:last-child { margin-bottom: 0; }

.notice--plain {
  border-color: rgba(210, 229, 244, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.download {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 9px;
  color: #0d2a1c;
  background: #4ade80;
  font-weight: 600;
  text-decoration: none;
  transition: translate 160ms ease;
}

.download:hover { translate: 0 -1px; }
.download:focus-visible { outline: 2px solid #4ade80; outline-offset: 3px; }

.copyable {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.copy {
  margin-left: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(210, 229, 244, 0.25);
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.copy:hover { border-color: #4ade80; }

.faq dt {
  margin-top: 1.1rem;
  font-weight: 600;
}

.faq dd {
  margin: 0.35rem 0 0;
  line-height: 1.6;
  opacity: 0.82;
}

.foot {
  margin-top: clamp(2.4rem, 2rem + 2vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(210, 229, 244, 0.12);
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .download:hover { translate: 0 0; }
}
