/* Busscope website styles. No external requests. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --surface: #ffffff;
  --text: #1b2430;
  --muted: #4a5667;
  --line: #d3d9e2;
  --accent: #2455cc;
  --accent-text: #ffffff;
  --accent-ink: #2455cc;
  --focus: #b45309;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1620;
    --bg-alt: #151e2b;
    --surface: #182233;
    --text: #e6ebf2;
    --muted: #a9b4c4;
    --line: #2c394d;
    --accent: #8fb0ff;
    --accent-text: #0b1220;
    --accent-ink: #8fb0ff;
    --focus: #fbbf24;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1rem/1.6 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--text); text-decoration: none; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* sections */
main { display: block; }
section { padding: 3rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 3.5rem 0 3rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.page-title { padding: 2.5rem 0 1rem; }
.page-title h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

/* buttons */
.btn { display: inline-block; padding: .7rem 1.2rem; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; border-radius: 4px; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent-ink); }
.btn.secondary:hover { background: var(--bg-alt); filter: none; }

/* grids and cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2rem; margin: 0 0 1em; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tags li { font-family: var(--mono); font-size: .9rem; border: 1px solid var(--line); background: var(--surface); padding: .25rem .6rem; border-radius: 4px; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 11rem; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.plan h3 { font-size: 1.2rem; }
.price { font-family: var(--mono); font-size: 2rem; font-weight: 700; margin: .25rem 0 .5rem; }
.price .was { color: var(--muted); font-weight: 400; font-size: 1.4rem; }
.plan p.muted { margin: 0 0 .75rem; }
[hidden] { display: none !important; }
.plan ul { padding-left: 1.2rem; margin: 0 0 1.25rem; flex: 1; }
.plan li { margin-bottom: .35rem; }
.plan .btn { text-align: center; }

/* screenshots */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin: 0; }
.shots figure { margin: 0; }
.shots figure:last-child { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.shots figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* faq */
details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--muted); }

/* legal text */
pre.legal { white-space: pre-wrap; overflow-wrap: anywhere; font: .92rem/1.55 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; margin: 0 0 1.5rem; }
.notice { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: .8rem 1rem; margin: 0 0 1.5rem; }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 3px; word-break: break-all; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 2rem 0; font-size: .92rem; color: var(--muted); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0 0 1rem; }
.site-footer p { margin: 0 0 .6rem; }

@media (max-width: 480px) {
  section { padding: 2rem 0; }
  .spec th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .spec td { display: block; padding-top: .15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .skip { display: none; } }

/* screenshot zoom */
.shots .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.shots .zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(10, 14, 20, .82); }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; background: #fff; cursor: default; }
.lightbox p { margin: .6rem 1rem 0; text-align: center; font-size: .9rem; color: #e5eaf0; }
.lightbox-close { position: absolute; top: -2.2rem; right: 0; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .3); }
