/* Nightjar Automation — shared styles */
:root {
  --ink: #0f1424;
  --ink-2: #171e33;
  --ink-3: #222b45;
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --text: #1c2030;
  --muted: #5d6475;
  --amber: #f0a43a;
  --amber-deep: #c97c12;
  --line: rgba(15, 20, 36, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber-deep); }
a:hover { color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: #c9cede; text-decoration: none; font-size: 16px; }
.nav a:hover { color: #fff; }
.nav .btn { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber); color: var(--ink);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #ffb954; color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(240,164,58,0.18), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 96px 0 112px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px; font-weight: 600; color: var(--amber);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05;
  margin: 0 0 22px; letter-spacing: -0.01em;
}
.hero p.lede { font-size: 20px; color: #c9cede; max-width: 34ch; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone illustration */
.phone {
  background: #0a0e1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 34px;
  padding: 22px 18px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  max-width: 340px; margin-left: auto;
}
.phone-top { text-align: center; font-size: 13px; color: #8a91a6; margin-bottom: 18px; }
.missed {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #ff8a7a; margin: 0 4px 16px;
}
.missed svg { width: 16px; height: 16px; }
.bubble {
  border-radius: 18px; padding: 11px 14px; font-size: 15px; line-height: 1.45;
  margin-bottom: 10px; max-width: 88%;
}
.bubble.out { background: var(--amber); color: var(--ink); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.in { background: var(--ink-3); color: #e7e9f1; border-bottom-left-radius: 6px; }
.stamp { font-size: 12px; color: #6f7790; text-align: center; margin: 4px 0 12px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--amber-deep); }
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15;
  margin: 0 0 16px; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.problem { background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.stat h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.stat p { margin: 0; color: var(--muted); }

.how { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: #fff; border-radius: 16px; padding: 30px 28px;
  border: 1px solid var(--line);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--amber);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

.who .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.trade-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-weight: 600; color: var(--ink);
}

.pilot {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff; text-align: center;
}
.pilot h2 { color: #fff; }
.pilot p { color: #c9cede; max-width: 56ch; margin: 0 auto 32px; font-size: 19px; }
.pilot .eyebrow { color: var(--amber); }
.pilot-points {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0 0 40px; color: #e7e9f1; font-size: 16px;
}
.pilot-points li::before { content: "✓"; color: var(--amber); margin-right: 8px; font-weight: 700; }

.contact .wrap { max-width: 720px; text-align: center; }
.contact p { color: var(--muted); font-size: 19px; }
.contact-email {
  display: inline-block; margin-top: 8px;
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px);
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--amber);
}
.contact-email:hover { color: var(--amber-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #8a91a6; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #c9cede; text-decoration: none; margin-left: 22px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: #fff; }

/* Legal pages */
.legal-hero { background: var(--ink); color: #fff; padding: 64px 0 52px; }
.legal-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 48px); margin: 0 0 8px; }
.legal-hero p { color: #8a91a6; margin: 0; }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; color: var(--ink); }
.legal p, .legal li { color: #333848; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.callout {
  background: #fff; border-left: 4px solid var(--amber);
  border-radius: 8px; padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap, .who .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .wrap > *, .who .wrap > * { min-width: 0; }
  .phone { margin: 0 auto; }
  .stats, .steps { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .trade-list { grid-template-columns: 1fr; }
  .site-footer a { margin-left: 0; margin-right: 18px; }
}
