/* BatBus guides — shared styles. Standalone (no build): palette copied from design-tokens.css. */
:root {
  --bg: #ffffff; --surface: #f4f6fa; --surface-2: #ebeff6;
  --fg: #15224a; --muted: #6b7185; --border: #e1e5ee;
  --red: #e1141f; --violet: #7c3aed;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1024; --surface: #141b3a; --surface-2: #1b2447; --fg: #f4f6fa; --muted: #9aa0ae; --border: #232d55; }
}
/* explicit theme via toggle wins over the media query (higher specificity) */
:root[data-theme="light"] { --bg: #ffffff; --surface: #f4f6fa; --surface-2: #ebeff6; --fg: #15224a; --muted: #6b7185; --border: #e1e5ee; }
:root[data-theme="dark"] { --bg: #0b1024; --surface: #141b3a; --surface-2: #1b2447; --fg: #f4f6fa; --muted: #9aa0ae; --border: #232d55; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 18px 72px; }

/* header (mirrors privacy.html) */
header { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
header img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
header .brand { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -0.2px; font-size: 18px; }
header .brand .red { color: var(--red); }
.theme { margin-left: auto; flex: none; border: 0; background: var(--surface); color: var(--fg); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.theme svg { width: 18px; height: 18px; }
.langs { margin-left: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; background: var(--surface); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.langs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.lang-select { display: none; margin-left: 8px; flex: none; border: 0; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
@media (max-width: 480px) {
  .langs { display: none; }
  .lang-select { display: block; }
}

.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 4px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.crumb:hover { color: var(--red); }

h1 { font-size: 27px; letter-spacing: -0.6px; margin: 12px 0 8px; line-height: 1.2; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
h2 { font-size: 19px; letter-spacing: -0.3px; margin: 34px 0 10px; }
a { color: var(--red); }
.ext { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; white-space: nowrap; }

/* annotated screenshot */
.shot { position: relative; width: 300px; max-width: 78vw; margin: 18px auto 8px; }
.shot img { width: 100%; display: block; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(21,34,74,0.14); }
@media (prefers-color-scheme: dark) { .shot img { box-shadow: 0 12px 30px rgba(0,0,0,0.5); } }
:root[data-theme="dark"] .shot img { box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
:root[data-theme="light"] .shot img { box-shadow: 0 12px 30px rgba(21,34,74,0.14); }
/* numbered badge — left/top in % mark the CENTRE placed on the target */
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,0.35); z-index: 2;
}
.pin.v { background: var(--violet); } /* premium / places accent */
/* arrow pointing toward a target; --a rotates it (0deg points right) */
.arrow { position: absolute; width: 46px; height: 14px; transform: translate(-50%, -50%) rotate(var(--a, 0deg)); transform-origin: center; z-index: 2; pointer-events: none; }
.arrow::before { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 3px; border-radius: 2px; background: var(--red); }
.arrow::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: var(--red); border-right: 0; }
.caption { text-align: center; color: var(--muted); font-size: 13px; margin: 0 auto 6px; max-width: 300px; }

/* numbered steps (match badge numbers) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 42px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px;
  width: 27px; height: 27px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.steps.v li::before { background: var(--violet); }
.steps b { font-weight: 700; }
.kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* app icon hero (install guide) */
.appicon { text-align: center; margin: 20px 0 6px; }
.appicon img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 26px rgba(21,34,74,0.20); }
.appicon figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* benefits list (check bullets) */
.benefits { list-style: none; padding: 0; margin: 12px 0 8px; }
.benefits li { position: relative; padding: 7px 0 7px 30px; color: var(--fg); }
.benefits li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 11px; height: 6px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
[dir="rtl"] .benefits li { padding: 7px 30px 7px 0; }
[dir="rtl"] .benefits li::before { left: auto; right: 4px; }

.note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; margin: 18px 0; font-size: 15px; }
.note.v { border-color: color-mix(in srgb, var(--violet) 40%, var(--border)); }
.note b { color: var(--fg); }

footer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--red); }

/* hub cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 22px 0; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--red); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 2px 0 3px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.card .lock { font-size: 12px; font-weight: 700; color: var(--violet); }

[data-l] { display: none; }
