/* SPDX-FileCopyrightText: 2026 HNY Labs LLC */
/* SPDX-License-Identifier: FSL-1.1-ALv2 */

/* BurrowScope website. Colours are the app's own tokens (web/static/app.css),
   light or dark following the OS. System fonts only: no external requests. */

:root {
  color-scheme: light dark;
  --ground: light-dark(#F3F4F1, #111513);
  --surface: light-dark(#FFFFFF, #1A201D);
  --ink: light-dark(#1B1F1D, #E3E8E5);
  --muted: light-dark(#555D59, #9AA59F);
  --line: light-dark(#DCE0DC, #2E3732);
  --control-line: light-dark(#C6CDC8, #3C4741);
  --hover: light-dark(#F3F8F6, #1F2A25);
  --accent: #0F766E;
  --accent-ink: #0B5F58;
  --accent-soft: light-dark(#E3F2EE, #173530);
  --link: light-dark(#0F766E, #5CCFBE);
  --on-accent: #FFFFFF;
  --side: light-dark(#17201C, #0C100E);
  --side-ink: #C9D2CD;
  --side-muted: light-dark(#93A09A, #8F9C96);
  --side-line: #25312B;
  --side-strong: #FFFFFF;
  --side-link: #5CCFBE;
  --side-item: #E3E8E5;
  --side-head: #B7C3BD;
  --shadow: light-dark(rgba(23, 32, 28, 0.16), rgba(0, 0, 0, 0.55));
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5vw + 1.45rem, 2.85rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.15rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.measure { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--surface); }
.skip:focus { left: 8px; }
.soon-bar { margin: 0; padding: 9px 20px; background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; text-align: center; }

/* ---- buttons, the app's .btn ---- */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--control-line); border-radius: 6px;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fine { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.lede { margin-top: 18px; font-size: 1.16rem; color: var(--muted); max-width: 62ch; }

/* ---- header and footer ---- */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.top nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15.5px; }
.top nav a:not(.btn):hover { color: var(--link); text-decoration: underline; }
.foot { background: var(--side); color: var(--side-ink); padding: 40px 0; }
.foot-row { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--side-strong); font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--side-link); }
.foot-note { font-size: 13.5px; color: var(--side-muted); max-width: 80ch; }
.foot-copy { font-size: 14px; color: var(--side-ink); }

/* ---- hero: the gopher peeks over the top of the real app ---- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero-shot { position: relative; margin: 52px 0 0; }
.peek { position: absolute; left: 9%; top: 0; width: 132px; transform: translateY(-58%); z-index: 1; }
.shot { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px -18px var(--shadow); background: var(--surface); }

/* ---- the RVTools jab: plain type, one rule down the side ---- */
.rip { padding: 8px 0 80px; }
.rip-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start;
  padding-top: 40px; border-top: 1px solid var(--line); }
.rip p { margin-top: 14px; color: var(--muted); max-width: 62ch; }
.rip-list { list-style: none; margin: 4px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent); }
.rip-list li { padding: 7px 0; font-weight: 550; }

/* ---- the 30 views, shown as the app's own sidebar with every group open ---- */
.views { padding: 80px 0 0; }
.views-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.views-copy p { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.side-panel { background: var(--side); color: var(--side-item); border: 1px solid light-dark(transparent, var(--line)); border-radius: 10px;
  padding: 18px; columns: 2 260px; column-gap: 18px; box-shadow: 0 18px 50px -18px var(--shadow); }
.side-group { break-inside: avoid; margin-bottom: 14px; }
.side-group h3 { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--side-head); }
.side-count { background: var(--side-line); border-radius: 999px; padding: 0 8px; font-weight: 600; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: 15px; }
.side-group li.is-sel { background: var(--side-line); }
.side-tab { color: var(--side-link); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---- features: text beside a screenshot, alternating ---- */
.feature { padding: 80px 0 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.feature-flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 14px; color: var(--muted); max-width: 60ch; }

.facts { padding: 88px 0 0; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; margin: 32px 0 0; }
.fact-list div { border-top: 3px solid var(--accent); padding-top: 14px; }
.fact-list dt { font-weight: 650; }
.fact-list dd { margin: 6px 0 0; color: var(--muted); }

.faq { padding: 88px 0 0; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
details p { padding: 0 0 18px; color: var(--muted); }

.closing { padding: 88px 0 96px; text-align: center; }
.closing p { margin-top: 12px; color: var(--muted); }
.closing .actions { justify-content: center; }

/* ---- article pages ---- */
.article { padding: 56px 0 88px; }
.article h2 { margin-top: 48px; font-size: 1.6rem; }
.article h2 + p, .article h2 + ul { margin-top: 14px; }
.ticks { padding-left: 1.2em; }
.ticks li { margin: 8px 0; }
.ticks li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.map { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.map th { text-align: left; font-weight: 600; background: var(--accent-soft); }
.map th, .map td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.map tr:last-child td { border-bottom: 0; }
.map .tab { font-weight: 600; white-space: nowrap; }

/* ---- back to top, as in the app. A plain link (#top), so it works with
   no JavaScript. Where the browser supports scroll-driven animations it is
   hidden until the page is scrolled; elsewhere it is always shown. The
   404 page, too short to scroll, has none. ---- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--control-line); border-radius: 50%; background: var(--surface); color: var(--ink);
  box-shadow: 0 4px 14px var(--shadow); }
.to-top:hover { background: var(--hover); }
.to-top:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@supports (animation-timeline: scroll()) {
  .to-top { opacity: 0; visibility: hidden; animation: to-top-in linear both; animation-timeline: scroll(root); animation-range: 0 400px; }
  @keyframes to-top-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (max-width: 860px) {
  .hero-grid, .feature-grid, .rip-grid, .views-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-flip .feature-copy { order: 0; }
  .hero { padding-top: 40px; }
  .top nav { gap: 14px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav a.btn { display: none; } /* the pages have their own demo buttons; Pro and Download stay */
  .peek { width: 96px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* Pro page */
.pro-page h1 { margin-top: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 40px 0 0; }
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.plan-org { border-color: var(--accent); }
.plan h2 { margin: 0; }
.plan-for { margin: 4px 0 0; color: var(--muted); }
.plan-price { margin: 18px 0 6px; }
.plan-price .price { font-size: 1.6rem; font-weight: 700; }
.plan-price .per { color: var(--muted); }
.plan .ticks { flex: 1; }
.plan-buy { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 18px; }
.seats { display: grid; gap: 4px; font-size: 14.5px; color: var(--muted); }
.seats input { width: 6em; min-height: 44px; padding: 0 10px; border: 1px solid var(--control-line); border-radius: 6px; font: inherit; color: var(--ink); background: var(--surface); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.buy-status { margin-top: 16px; }
.faq-list dt { margin-top: 18px; font-weight: 600; }
.faq-list dd { margin: 6px 0 0; }

/* Home: the Pro section */
.pro-band { padding: 88px 0 0; }
.pro-band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start;
  padding: 36px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); }
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pro-band h2 { margin: 0 0 14px; }
.pro-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pro-points li { padding-left: 16px; border-left: 3px solid var(--accent); }
@media (max-width: 860px) { .pro-band-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }

/* Download page */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 36px 0 0; }
.edition { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); scroll-margin-top: 24px; }
.edition-pro { border-color: var(--accent); }
.edition h2 { margin: 0; }
.edition-sub { margin: 6px 0 16px; color: var(--muted); }
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.files .btn { width: 100%; justify-content: center; }
.soon { margin: 0; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td { text-align: center; width: 7.5em; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 400; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: var(--muted); }
#compare { scroll-margin-top: 24px; }

.pro-band-shot { grid-column: 1 / -1; width: 100%; height: auto; margin-top: 8px; }

/* Pro page screenshots */
.pro-shots { display: grid; gap: 36px; margin: 48px 0 0; }
.pro-shot { margin: 0; }
.pro-shot img { width: 100%; height: auto; }
.pro-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* Roadmap */
.roadmap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 36px 0 0; }
.roadmap-item { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.roadmap-item h2 { margin: 8px 0 0; }
.roadmap-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.roadmap-status.maybe { background: var(--hover); color: var(--muted); }

/* ---- Pro: renewing a Personal license ---- */
.renew-link { margin-top: 32px; }
.renew .field { display: block; margin: 16px 0 8px; font-weight: 600; font-size: 15px; }
.renew textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 14px/1.5 var(--mono); resize: vertical; word-break: break-all; }
.renew textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.renew-info { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
