/* ghostrak.app — the product's own small site.
 *
 * Palette is taken from the product, not invented: #0a0e16 is the logo's
 * ground, #22d3ee is the iOS accent colour (sRGB 0.133/0.827/0.933) and the
 * logo's primary, and the three trail colours below are the ghost-overlay
 * trails from ghostrak-logo.svg. Nothing here is decorative for its own sake —
 * the trail motif is the product's one idea, so it is the only flourish.
 */
:root {
  --ground:      #0a0e16;
  --ground-lift: #111827;
  --rule:        #1e2a3d;
  --ink:         #e8edf5;
  --ink-dim:     #93a1b5;
  --accent:      #22d3ee;
  --trail-1:     #ec5cf0;
  --trail-2:     #f4c542;
  --trail-3:     #ff8fc4;
  --measure:     66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  /* 16px side gutter at phone width; never a horizontal page scroll. */
  padding: 0 16px;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 48px 0 96px; }

/* ---- masthead ---------------------------------------------------------- */

header.site { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; }

.mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  background: linear-gradient(145deg, #1a2742, #090d15);
  display: grid; place-items: center;
}
/* The three trails, stacked — the overlay idea in 34 pixels. */
.mark span { display: block; width: 15px; height: 2px; border-radius: 2px; }
.mark span:nth-child(1) { background: var(--trail-1); opacity: .55; transform: translateY(-4px) translateX(-3px); }
.mark span:nth-child(2) { background: var(--trail-2); opacity: .75; transform: translateX(-1px); }
.mark span:nth-child(3) { background: var(--accent);  transform: translateY(4px) translateX(1px); }

.wordmark { font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.wordmark a { color: var(--ink); text-decoration: none; }

nav.site { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
nav.site a { color: var(--ink-dim); text-decoration: none; padding: 10px 0; }
nav.site a:hover, nav.site a:focus-visible { color: var(--accent); }

/* ---- type -------------------------------------------------------------- */

h1 {
  font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em;
  text-wrap: balance; margin: 20px 0 10px;
}
h2 {
  font-size: 19px; letter-spacing: -0.01em; text-wrap: balance;
  margin: 40px 0 8px; padding-top: 22px; border-top: 1px solid var(--rule);
}
h3 { font-size: 16px; margin: 24px 0 6px; }
p, li { color: var(--ink); }
.lede { font-size: 18px; color: var(--ink-dim); margin-top: 0; }
.dim  { color: var(--ink-dim); }
small { color: var(--ink-dim); font-size: 13px; }
a { color: var(--accent); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
code {
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--ground-lift); border: 1px solid var(--rule);
  border-radius: 5px; padding: 1px 5px;
}

/* ---- blocks ------------------------------------------------------------ */

.card {
  background: var(--ground-lift); border: 1px solid var(--rule);
  border-radius: 12px; padding: 18px 20px; margin: 20px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* A short, scannable answer to "what does it collect" beats a wall of prose. */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-dim); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.scroll-x { overflow-x: auto; }

footer.site {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule);
  color: var(--ink-dim); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
footer.site a { color: var(--ink-dim); }

a:focus-visible, nav.site a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* This site is dark by design — it is the product's own surface, and the app
 * is dark-only (UIUserInterfaceStyle: Dark). Every colour is therefore stated
 * explicitly rather than inherited, so it holds on any host ground. */
