/* The site's own layer, on top of the vendored OpenApps tokens.
   Nothing here invents a colour or a spacing step: every value below resolves to a
   token in tokens/css/, which is the same set the app itself is built from. A hex
   literal in this file would be the moment the site and the product start drifting. */

:root {
  color-scheme: dark;

  --bg: var(--black);
  --surface: var(--gray-950);
  --border: var(--white-10);
  --text: var(--white);
  --text-muted: var(--gray-400);
  --text-faint: var(--gray-500);
  --accent: var(--blue);

  --measure: 68ch;
  --page: 1040px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--gray-200);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--space-6); }

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

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

/* The suite wordmark. Not a heading — the design system carries a separate set of
   `--logo-*` tokens for exactly this, and using `--tracking-heading` here is what made
   this lockup read as a different family from opencapture.app and openpdfedit.com.
   `--logo-tracking` is -0.04em, appreciably tighter than heading tracking, and the
   trailing dot in the product accent is the mark both of those sites end on. */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font: var(--weight-medium) var(--text-lg) / 1 var(--font-display);
  letter-spacing: var(--logo-tracking);
  white-space: nowrap;
}
/* The wordmark is one flex item, not two. Left as a bare text node beside the dot's
   span, the container's `gap` lands between the word and its own full stop — which is
   why opencapture.app wraps the whole lockup in an outer span. */
.brand > span { display: inline; }
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
}
/* `--logo-dot` resolves to the suite's green, which is right for OpenApps' own mark and
   wrong here: this product's accent is the blue its logo is drawn in, and both reference
   sites end on their own accent rather than the suite's. */
/* Two-tone, as every wordmark in the suite is: the shared "Open" recedes so the
   product's own name carries the mark, then the accent full stop. */
.brand .prefix { color: var(--text-muted); }
.brand .dot { color: var(--accent); }

nav.top-nav { display: flex; gap: var(--space-5); align-items: center; }
nav.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
nav.top-nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: var(--space-16) 0 var(--space-12); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}

h1 {
  font: var(--weight-medium) clamp(34px, 5.2vw, 58px) / 1.06 var(--font-display);
  letter-spacing: var(--tracking-display);
  color: var(--text);
  margin: 0 0 var(--space-5);
  max-width: 17ch;
  text-wrap: balance;
}

.lede {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: var(--measure);
  margin: 0 0 var(--space-4);
}

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: var(--border-width, 1px) solid var(--border);
  text-decoration: none;
  font: var(--weight-medium) var(--text-sm) / 1 var(--font-sans);
  color: var(--text);
  transition: background var(--duration-fast, 120ms) var(--ease-standard, ease);
}
.btn:hover { background: var(--white-04); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  /* Near-black on the light blue: white does not clear contrast on this accent. */
  color: var(--black);
}
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--black)); }

/* ---------- sections ---------- */

section { padding: var(--space-16) 0; border-top: 1px solid var(--border); }

h2 {
  font: var(--weight-medium) clamp(24px, 3vw, 34px) / 1.15 var(--font-display);
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  margin: 0 0 var(--space-4);
  max-width: 24ch;
  text-wrap: balance;
}

section > p { color: var(--text-muted); max-width: var(--measure); margin: 0 0 var(--space-4); }

/* Four features, so four columns where they fit and two where they do not — an
   auto-fit that lands on three leaves the fourth alone in its own row. */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card h3 {
  font: var(--weight-medium) var(--text-base) / var(--leading-snug) var(--font-display);
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.card p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }

/* A claim list, where each line is a thing the product does not do. */
ul.claims { list-style: none; padding: 0; margin: var(--space-6) 0 0; max-width: var(--measure); }
ul.claims li {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
ul.claims li strong { color: var(--text); font-weight: var(--weight-medium); display: block; }

dl.faq { margin: var(--space-8) 0 0; max-width: var(--measure); }
dl.faq dt {
  font: var(--weight-medium) var(--text-base) / var(--leading-snug) var(--font-display);
  color: var(--text);
  margin-top: var(--space-7);
}
dl.faq dd { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-sm); }

a { color: var(--accent); text-underline-offset: 2px; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-950);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
}

footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-16);
  color: var(--text-faint);
  font-size: var(--text-sm);
}
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-4); }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
