/* FairGate landing — standalone static site styles.
   Shared by index.html and privacy.html. Plain global CSS, no build step. */

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #424242;
  --muted: #616161;
  --faint: #8a8a8a;
  --border: #e3e3e3;
  --accent: #5c6ac4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.subtext {
  margin: 1rem auto 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Install form ---------- */
.form {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.label {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.label-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.input {
  width: 22rem;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--faint);
  border-radius: 8px;
}

.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.button {
  padding: 0.6rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.button:hover {
  background: #303030;
}

/* Render an anchor styled as .button (App Store install link) like the button. */
a.button {
  display: inline-block;
  text-decoration: none;
}

.hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ---------- Sections ---------- */
.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section h2 {
  margin: 0 0 1.75rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.grid-3 {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.feature strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.step-title {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer .brand {
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.copyright {
  font-size: 0.875rem;
  color: var(--faint);
}

/* ---------- Privacy document ---------- */
.doc {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.doc h1 {
  margin: 1rem 0 0.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--faint);
}

.doc .lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.doc h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.doc li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.doc strong {
  color: var(--ink);
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.1rem 0.35rem;
  background: #f0f0f2;
  border-radius: 5px;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 48rem) {
  .hero h1 {
    font-size: 2rem;
  }

  .doc h1 {
    font-size: 1.875rem;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .form {
    align-items: stretch;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}
