/* Trekker3D's support site, in the app's Beacon colours (lib/ui/beacon.dart):
   a basalt page, a lime hairline grid-reference ruler down the left margin,
   condensed headings, and the screens as one horizontal strip like a ridge.
   System fonts only; no scripts, cookies or analytics. */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

:root {
  --bg: #121513;
  --surface: #1C211E;
  --raised: #262C28;
  --ink: #E8ECEE;
  --muted: #A3ADA8;
  --lime: #C5F03A;
  --on-lime: #121513;
  --line: rgba(255, 255, 255, 0.12);
  --rule: rgba(197, 240, 58, 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #E8ECEE;
    --surface: #F6F8F9;
    --raised: #FFFFFF;
    --ink: #121513;
    --muted: #4D5652;
    --lime: #4A6600;
    --on-lime: #FFFFFF;
    --line: rgba(0, 0, 0, 0.1);
    --rule: rgba(74, 102, 0, 0.55);
    color-scheme: light;
  }
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  /* The grid ruler: a hairline with a tick every 100 px, like a sheet's margin. */
  background-image:
    linear-gradient(var(--rule), var(--rule)),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 100px);
  background-size: 1px 100px, 10px 100px;
  background-position: 28px 0, 19px 0;
  background-repeat: repeat-y;
}
h1, h2, h3, .brand {
  font-family: "Barlow Condensed", "SF Pro Display", -apple-system, "Roboto Condensed", "Arial Narrow", sans-serif;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
a { color: var(--lime); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

header.bar, main, footer {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 24px;
}
header.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
header.bar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
header.bar nav a { color: var(--muted); text-decoration: none; }
header.bar nav a:hover { color: var(--ink); }
nav.crumbs { align-items: center; }
nav.crumbs a.brand { color: var(--ink); font-size: 20px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
nav.crumbs img { width: 26px; height: 26px; border-radius: 6px; }

section { padding: 44px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

section.hero { padding-top: 56px; }
section.hero img.icon { width: 96px; height: 96px; border-radius: 22px; }
section.hero h1 { font-size: clamp(36px, 7vw, 64px); margin: 18px 0 10px; }
section.hero p.lead { font-size: 19px; color: var(--muted); max-width: 46em; margin: 0 0 22px; }
div.stores { display: flex; flex-wrap: wrap; gap: 12px; }
a.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  min-width: 170px;
  background: var(--lime);
  color: var(--on-lime);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
}
a.store small { font-weight: 500; opacity: 0.8; }
p.note { color: var(--muted); font-size: 15px; max-width: 46em; margin-top: 18px; }

/* The screens as one strip, scrolled sideways; the page itself never is. */
section.shots { padding-right: 0; }
div.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
div.strip img {
  flex: 0 0 auto;
  width: min(240px, 62vw);
  scroll-snap-align: start;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

h2 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 20px; }
h3 { font-size: 22px; margin: 0 0 6px; }
div.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
div.grid.four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
div.grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
div.grid article p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* A lime tick at each card's head, like a grid line's label. */
div.grid article h3::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin: 0 8px 5px 0;
  background: var(--lime);
  border-radius: 2px;
}

section.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
section.faq details:last-of-type { border-bottom: 1px solid var(--line); }
section.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
section.faq summary::-webkit-details-marker { display: none; }
section.faq summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--lime); font-weight: 700; }
section.faq details[open] summary::before { content: "−"; }
section.faq details p { color: var(--muted); margin: 10px 0 0 1.2em; }

main.doc { padding-top: 32px; padding-bottom: 48px; max-width: 820px; }
main.doc h1 { font-size: clamp(32px, 6vw, 48px); }
main.doc h2 { font-size: 26px; margin-top: 34px; }
main.doc ul { padding-left: 1.2em; }
main.doc li { margin: 6px 0; }

footer { padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer p.small { font-size: 13px; }

@media (max-width: 600px) {
  body { background-position: 12px 0, 3px 0; }
  header.bar, main, footer { padding-left: 32px; padding-right: 16px; }
  section { padding: 34px 0; }
}
