/* V·I·G·I·L marketing site — shared styles.
   The home page is its own two-act experience (see index.html); this file
   covers the plain dark "VIGIL mode" identity used there and on the
   secondary API/Privacy pages. */

:root {
  --bg: #000000;
  --bg-raised: #0d0d0d;
  --bg-card: #111111;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-tertiary: #888888;
  --accent: #ff6b6b;
  --border: rgba(255, 255, 255, 0.14);
  --serif: "Cinzel", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
}

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

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

main > *:first-child { margin-top: auto; }
main > *:last-child { margin-bottom: auto; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

/* ---------- logo lockup ----------
   Pixel-exact copy of the app's own "returning user" settled state
   (components/LedgerScreen.js ~L584-809, styles/AppStyles.js headerText /
   backronymText). Values are the app's literal px, not rescaled for web —
   this is not a place to improvise proportions. */

.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-lockup .wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 32px;
}

.logo-lockup .wordmark .dot {
  display: inline-block;
  margin: 0 6px;
  color: var(--accent);
  transform: scale(1.2);
}

.logo-lockup .rule {
  width: 340px;
  max-width: 85vw;
  height: 1px;
  background: var(--text);
  margin-bottom: 32px;
}

.logo-lockup .backronym {
  width: 300px;
  max-width: 100%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
}

/* ---------- section rhythm (api / privacy) ---------- */

.section {
  padding: clamp(56px, 10vh, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 clamp(28px, 5vh, 48px);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-head p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  flex: 0 0 auto;
  padding: clamp(20px, 3.5vh, 32px) clamp(20px, 5vw, 40px);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .legal {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 24px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-footer .foot-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-footer .foot-links a:hover,
.site-footer .foot-links a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
