/* Install guide (install.html). Uses the tokens from styles.css.
   The macOS pictures are drawn here in HTML/CSS: no real screenshots. */

:root {
  --mac-win: #FFFFFF;
  --mac-bar: #ECEAE6;
  --mac-side: #F3F1ED;
  --mac-line: #E1DDD5;
  --mac-text: #1F2328;
  --mac-sub: #5B5B63;
  --mac-sel: #DCE6FB;
  --mac-blue: #2563EB;
  --mac-alert: #F6F4F0;
  --hit-ring: #FFD633;
  --hit-glow: rgba(255, 214, 51, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mac-win: #2A2B2F;
    --mac-bar: #38393E;
    --mac-side: #323337;
    --mac-line: #45474D;
    --mac-text: #EEEAE0;
    --mac-sub: #BDB8AC;
    --mac-sel: #2F4A86;
    --mac-blue: #4C8DFF;
    --mac-alert: #33353A;
    --hit-glow: rgba(255, 214, 51, 0.30);
  }
}

/* ---------- Page ---------- */
.install .tldr { font-size: 1.1em; }
.install .need { margin-bottom: 0.75rem; }
.started {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--hl);
  color: var(--hl-text);
}
.started p { margin: 0 0 0.25rem; }
.started a { color: var(--hl-text); }
.started[hidden] { display: none; }

.legal ol.isteps { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.istep {
  margin: 0 0 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.istep h2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
}
.istep-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--hl);
  color: var(--hl-text);
  font-size: 1.4rem;
}
.istep .warn {
  padding: 0.8rem 1.1rem;
  border-left: 5px solid #E5484D;
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.istep .why, .istep .tip {
  padding: 0.8rem 1.1rem;
  border-left: 5px solid var(--hl);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.tips { padding-left: 1.4rem; }

.aside {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.aside summary { cursor: pointer; padding: 0.9rem 1.2rem; font-weight: 700; }
.aside[open] summary { border-bottom: 1px solid var(--border); }
.aside ol, .aside p { margin: 1rem 1.2rem; }
.aside ol { padding-left: 1.4rem; }

.box {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.box h2, .box h3 { margin-top: 0; }
.box ul:not(.checks), .box ol { padding-left: 1.4rem; }
.box li { margin-bottom: 0.5rem; }
.box-why { border-left: 6px solid var(--mac-blue); }
.box-safe { border: 2px solid var(--hl); }

/* ---------- Pictures ---------- */
.shot {
  margin: 1.25rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  word-spacing: 0;
  color: var(--mac-text);
}
.shot-small { max-width: 22rem; }
.shot p { margin: 0; max-width: none; }

.mac-win {
  border-radius: 12px;
  overflow: hidden;
  background: var(--mac-win);
  border: 1px solid var(--mac-line);
  box-shadow: var(--shadow);
}
.mac-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: var(--mac-bar);
  border-bottom: 1px solid var(--mac-line);
}
.mac-bar span { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac-bar span:nth-child(2) { background: #FEBC2E; }
.mac-bar span:nth-child(3) { background: #28C840; }
.mac-bar b { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; pointer-events: none; }

.mac-body { display: flex; min-height: 150px; }
.side {
  flex: 0 0 34%;
  max-width: 190px;
  padding: 10px 8px;
  background: var(--mac-side);
  border-right: 1px solid var(--mac-line);
  font-size: 13px;
}
.side p { padding: 5px 8px; border-radius: 6px; }
.side .side-h { color: var(--mac-sub); font-size: 11px; font-weight: 600; }
.side .sel { background: var(--mac-sel); font-weight: 600; }

/* Highlight: our yellow, with a glow, on the thing to click */
.hit {
  position: relative;
  outline: 3px solid var(--hit-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--hit-glow);
  border-radius: 8px;
}
.hit-soft { position: relative; background: var(--hit-glow) !important; border-radius: 8px; }
.callout {
  position: absolute;
  top: -14px; right: -10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hit-ring);
  color: #1F2328;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.callout.no { background: var(--mac-line); color: var(--mac-text); font-weight: 600; }
.num {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--hit-ring);
  color: #1F2328;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.ghost { opacity: 0.55; }

/* Finder */
.files { flex: 1; padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.file { display: flex; align-items: center; gap: 10px; padding: 6px 10px; width: fit-content; max-width: 100%; }
.dmg-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(#F5F5F5, #D9D9D9);
  border: 1px solid #BDBDBD;
}
.dmg-icon img { width: 26px; height: 26px; }
.doc-icon, .blank-icon {
  display: inline-block;
  width: 30px; height: 36px;
  border-radius: 5px;
  background: var(--mac-side);
  border: 1px solid var(--mac-line);
}
.blank-icon { width: 44px; height: 44px; border-radius: 11px; }
.grid { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 18px 22px; padding: 22px 12px; }
.gapp { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 8px; font-size: 13px; }
.app-icon { width: 56px; height: 56px; }

/* DMG window */
.mac-body.dmg {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4%;
  padding: 24px 14px 18px;
  background: linear-gradient(var(--mac-win), var(--mac-side));
}
.dmg-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.dmg-item .app-icon { width: 72px; height: 72px; }
.folder-icon { width: 68px; height: 56px; }
.drag-arrow { width: 26%; max-width: 120px; color: #F2B805; }
.dmg-text { flex-basis: 100%; text-align: center; font-weight: 600; color: var(--mac-sub); }

/* Alerts */
.alert {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  padding: 22px 18px 16px;
  border-radius: 14px;
  background: var(--mac-alert);
  border: 1px solid var(--mac-line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.alert-icon { width: 64px; height: 64px; margin: 0 auto 8px; display: block; }
.alert-title { font-weight: 700; font-size: 15px; margin-bottom: 6px !important; }
.alert-text { font-size: 12.5px; color: var(--mac-sub); margin-bottom: 14px !important; }
.alert-btn {
  position: relative;
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--mac-win);
  border: 1px solid var(--mac-line);
  font-weight: 600;
  font-size: 14px;
}
.alert-btn.primary { background: var(--mac-blue); border-color: var(--mac-blue); color: #fff; }
.pw {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding: 7px 10px;
  border-radius: 8px; border: 1px solid var(--mac-line); background: var(--mac-win);
  font-size: 13px; color: var(--mac-sub);
}
.touch { font-weight: 600; }

/* System Settings */
.settings .pane { flex: 1; padding: 14px; min-width: 0; }
.settings.one .pane { padding: 18px; }
.pane-h { font-weight: 700; font-size: 13px; margin: 6px 0 8px !important; }
.pane-sub { font-size: 13px; color: var(--mac-sub); margin-bottom: 12px !important; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--mac-side);
  border: 1px solid var(--mac-line);
  font-size: 13.5px;
}
.row-app { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.row-icon { width: 28px; height: 28px; }
.row-icon.blank-icon { width: 24px; height: 24px; border-radius: 6px; }
.row-end { display: flex; align-items: center; gap: 10px; }
.row-tools { display: flex; gap: 2px; font-size: 16px; color: var(--mac-sub); }
.row-tools span { padding: 0 8px; border: 1px solid var(--mac-line); }
.muted-ui { color: var(--mac-sub); font-size: 12.5px; }
.ui-btn {
  flex: none;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--mac-win);
  border: 1px solid var(--mac-line);
  font-weight: 600;
  white-space: nowrap;
}
.ui-select { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--mac-line); background: var(--mac-win); }
.info {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--mac-sub);
  font-size: 12px; font-weight: 700; font-style: normal;
}
.info .num { position: absolute; top: -12px; right: -16px; margin: 0; }
.dl { display: inline-flex; align-items: center; color: var(--mac-blue); padding: 2px; }
.dl .num { position: absolute; top: -12px; right: -16px; margin: 0; }
.toggle {
  flex: none;
  position: relative;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--mac-line);
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.toggle.on { background: var(--mac-blue); }
.toggle.on::after { left: 18px; }

/* Try it */
.mac-body.tryit {
  position: relative;
  display: block;
  padding: 26px 64px 30px 22px;
  font-size: 19px;
  line-height: 1.7;
}
.tryit mark { background: var(--hit-ring); color: #1F2328; border-radius: 4px; padding: 0 3px; }
.try-bubble {
  position: absolute;
  right: 18px; top: 26px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

/* Phones */
@media (max-width: 520px) {
  .shot { font-size: 14px; }
  .side { flex-basis: 38%; font-size: 12px; padding: 8px 4px; }
  .side p { padding: 4px 6px; }
  .settings .pane { padding: 10px; }
  .row { flex-wrap: wrap; }
  .app-icon { width: 48px; height: 48px; }
  .dmg-item .app-icon { width: 60px; height: 60px; }
  .folder-icon { width: 56px; height: 46px; }
  .istep-num { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
}

/* "Not this one" sits under its button, so it never covers "Done" */
.alert-btn .callout.no { top: auto; bottom: -13px; right: -8px; }
.alert-btn + .alert-btn { margin-top: 12px; }
.alert .alert-btn:last-of-type { margin-bottom: 10px; }
