/* Shared styles for the three HarpPilot public pages.
 *
 * These pages are plain hand-written HTML with no build step, so this file is
 * linked directly with <link rel="stylesheet" href="/style.css">. Keeping the
 * styles in one file rather than repeating a <style> block in each page means
 * a change to the look happens in exactly one place.
 *
 * Colors are defined once as CSS custom properties (the `--name` syntax) on
 * :root, then referenced with var(). The prefers-color-scheme media query
 * below re-defines those same properties for readers whose device is set to
 * dark mode, so every rule that uses var() adapts without being written twice.
 */

:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --text: #333333;
  --heading: #222222;
  --subheading: #444444;
  --muted: #6a6a6a;
  --link: #0066cc;
  --border: #e2e2e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1e2126;
    --text: #d7dae0;
    --heading: #f2f4f7;
    --subheading: #c2c7d0;
    --muted: #9098a4;
    --link: #6cb6ff;
    --border: #2e333b;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  color: var(--heading);
  margin-bottom: 10px;
}

h2 {
  color: var(--subheading);
  margin-top: 34px;
  margin-bottom: 14px;
}

h3 {
  color: var(--subheading);
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 30px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Screenshot strip on the marketing page. `flex-wrap` lets the three phone
 * images drop onto separate rows on a narrow screen instead of overflowing,
 * and `max-width: 100%` keeps any single image inside the viewport. */
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

.shots figure {
  margin: 0;
  flex: 0 1 240px;
}

.shots img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
}

.shots figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

/* Used for the contact block on the support page. */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p:first-child {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  margin-right: 14px;
}
