/* ===== Shared design system for subpages (pilot, privacy, terms, security) ===== */
/* Tokens mirror :root in index.html. Keep in sync if tokens change. */

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

:root {
  --forest: #1a3d2e;
  --forest-hover: #0f2a1f;
  --forest-ice: #f0ebe1;
  --forest-wash: #f7f4ec;
  --cream: #faf7f0;
  --cream-deep: #f0ebe1;
  --ink: #0f1f17;
  --text-body: #2a3630;
  --text-muted: #6b7a72;
  --text-light: #8a9890;
  --white: #ffffff;
  --amber: #c77d3a;
  --amber-soft: #e8c9a3;
  --sage: #7a9184;
  --border: rgba(26, 61, 46, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(250, 247, 240, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo .accent { color: var(--forest); font-style: italic; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-body);
  text-decoration: none; transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--forest); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 26px; background: var(--forest); color: var(--cream);
  border-radius: 50px; font-family: var(--font-body); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--forest-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,61,46,0.2); }

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 38px; background: var(--forest); color: var(--cream);
  border: none; border-radius: 50px; font-size: 16px; font-weight: 600;
  font-family: var(--font-body); text-decoration: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-cta:hover { background: var(--forest-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,61,46,0.22); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-cta .arrow { font-size: 16px; transition: transform 0.2s ease; }
.btn-cta:hover .arrow { transform: translate(2px, -2px); }

.btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 38px; background: transparent; color: var(--ink);
  border: 1px solid rgba(26,61,46,0.15); border-radius: 50px;
  font-size: 16px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; cursor: pointer; transition: all 0.25s ease;
}
.btn-cta-secondary:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-2px); }

/* ===== PAGE HEADER (subpage heros) ===== */
.page-header {
  padding: 160px 48px 60px; text-align: center;
  background: linear-gradient(180deg, var(--forest-ice) 0%, var(--cream) 100%);
}
.page-header .kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--forest);
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 20px;
}
.page-header h1 em { color: var(--forest); font-style: italic; font-weight: 500; }
.page-header p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto;
}
.page-header .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ===== PROSE (legal pages) ===== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 48px 120px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.prose a:hover { color: var(--forest-hover); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}
.prose .note {
  background: var(--forest-ice);
  border-left: 3px solid var(--forest);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
}
.prose code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9em;
  background: var(--forest-ice);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); padding: 72px 48px 36px; color: rgba(250,247,240,0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; max-width: 1200px; margin: 0 auto 56px; }
.footer-brand .nav-logo { color: var(--cream); margin-bottom: 18px; display: inline-block; }
.footer-brand .nav-logo .accent { color: var(--amber-soft); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--cream);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(250,247,240,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 32px; border-top: 1px solid rgba(250,247,240,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(250,247,240,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .page-header { padding: 130px 24px 50px; }
  .prose { padding: 60px 24px 80px; }
  .site-footer { padding: 56px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
