/* rearobservations.com: GIA's home. The app's operations-centre look: slate greys, one blue for action, colour only
   where it means something. System fonts only, so the site makes no third-party requests. */

:root {
  --bg: #0b0f14;
  --surface-1: #10151c;
  --surface-2: #151b24;
  --surface-3: #1b2330;
  --border: #222a35;
  --border-strong: #2e3846;
  --text-1: #e2e7ee;
  --text-2: #aab4c2;
  --text-3: #7f8a9a;
  --heading: #ffffff;
  --accent: #4c9aff;
  --accent-strong: #2f7fe6;
  --accent-soft: rgba(76, 154, 255, 0.14);
  --on-accent: #ffffff;
  --live: #ff4d4d;
  --ok: #3ecf8e;
  --warn: #ffb020;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --wrap: 1140px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fa;
    --surface-1: #ffffff;
    --surface-2: #eef2f7;
    --surface-3: #e3e9f1;
    --border: #dbe2ea;
    --border-strong: #c2ccd8;
    --text-1: #1b2430;
    --text-2: #46525f;
    --text-3: #687485;
    --heading: #0b1220;
    --accent: #1f6fe0;
    --accent-strong: #1659bd;
    --accent-soft: rgba(31, 111, 224, 0.1);
    --live: #d42424;
    --ok: #138a59;
    --warn: #a86a00;
    --shadow: 0 18px 44px rgba(15, 30, 50, 0.16), 0 2px 6px rgba(15, 30, 50, 0.08);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.lede, .section-head p, .feature .text p { text-wrap: pretty; }
h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 50%; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--text-2); font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.site-nav a:hover { color: var(--heading); background: var(--surface-2); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--heading); }
.site-nav .btn { margin-left: 6px; }
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 0; }
  .site-nav a { padding: 6px 8px; }
  .site-nav .btn { margin-left: auto; }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 11px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent-strong); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent); }
.btn.secondary { border-color: var(--border-strong); color: var(--text-1); background: var(--surface-1); }
.btn.secondary:hover { border-color: var(--accent); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 64px 0 24px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 12px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
.hero h1 { max-width: 880px; margin: 0 auto; }
.hero .lede { max-width: 700px; margin: 20px auto 0; color: var(--text-2); font-size: clamp(17px, 2vw, 19px); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-note { margin-top: 14px; color: var(--text-3); font-size: 13px; }
.shot { margin: 44px auto 0; border-radius: var(--radius); border: 1px solid var(--border-strong); overflow: hidden; box-shadow: var(--shadow); background: #0b0f14; }
.shot .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #000; border-bottom: 1px solid #1d2530; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3542; }
.shot .bar span { margin-left: 8px; font: 600 11px var(--mono); letter-spacing: 0.08em; color: #7f8a9a; }

/* ------------------------------------------------------------------ facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 56px 0 0; }
.fact { background: var(--surface-1); padding: 20px 22px; }
.fact b { display: block; font: 700 26px/1.1 var(--mono); color: var(--heading); }
.fact span { display: block; margin-top: 6px; color: var(--text-2); font-size: 14px; }

/* ------------------------------------------------------------------ sections */
section.band { padding: 88px 0 0; scroll-margin-top: 40px; }
.hero, section.band { scroll-margin-top: 40px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker, .kicker { display: block; font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 48px; }
  .feature.flip .text { order: 2; }
}
.feature .text p { color: var(--text-2); margin-top: 12px; }
.feature ul, .ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.feature li, .ticks li { position: relative; padding-left: 24px; color: var(--text-1); font-size: 15px; }
.feature li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.feature .img { border-radius: var(--radius); border: 1px solid var(--border-strong); overflow: hidden; box-shadow: var(--shadow); background: #0b0f14; }
.tag { display: inline-block; font: 700 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; vertical-align: middle; margin-left: 8px; }
.tag.pro { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.tag.free { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); }
.tag.planned { color: var(--text-2); border: 1px dashed var(--border-strong, var(--text-3)); }

/* ------------------------------------------------------------------ cards */
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ------------------------------------------------------------------ pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } .plan { padding: 24px 20px; } }
.plan { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow); }
.plan .name { font: 700 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.plan.featured .name { color: var(--accent); }
.plan .price { margin-top: 14px; color: var(--heading); font-size: 40px; font-weight: 700; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.plan .sub { margin-top: 8px; color: var(--text-2); font-size: 14px; min-height: 2.8em; }
.plan ul { margin: 18px 0 22px; }
.plan .btn { margin-top: auto; justify-content: center; }
.fine { color: var(--text-3); font-size: 13px; margin-top: 18px; }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font: 400 22px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--text-2); }
.faq details p + p { margin-top: -8px; }

/* ------------------------------------------------------------------ closing call */
.closing { margin: 96px 0 0; padding: 48px 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.closing p { color: var(--text-2); margin-top: 10px; }

/* ------------------------------------------------------------------ long-form pages (terms, privacy, download) */
.page { padding: 56px 0 0; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); }
.page .meta { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page h3 { margin: 24px 0 8px; }
.page p, .page li { color: var(--text-2); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.page .note { margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface-1); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 15px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin-top: 14px; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text-1); overflow-wrap: anywhere; }
.dl-box { margin-top: 28px; padding: 24px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.os-list { display: grid; gap: 12px; margin-top: 18px; }
.os { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.os > svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.os b { color: var(--heading); }
.os span { color: var(--text-3); font-size: 14px; }
.os .btn { margin-left: auto; }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: 96px; border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--text-3); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--text-2); }
.site-foot p + p { margin-top: 6px; }
.nb { white-space: nowrap; }
/* Shows the left of a screenshot only (the map without the panel at its right edge). */
.img.crop-left img { width: 100%; aspect-ratio: 76 / 74; object-fit: cover; object-position: left center; }

/* ------------------------------------------------------------------ updates log */
.upd-day { margin-top: 36px; }
.upd-day h2 { margin: 0 0 12px; font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.upd { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.upd li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; color: var(--text-1); }
.upd .tag { margin-left: 0; text-align: center; }
.tag.new { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.tag.improved { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); }
.tag.hotfix { color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); }
@media (max-width: 520px) { .upd li { grid-template-columns: 1fr; gap: 4px; } .upd .tag { justify-self: start; } }
