/* Nightjar marketing site.
 * Values mirror design/tokens.css. Kept as a standalone file because this
 * deploys to static hosting with no build step. */

:root {
  --ink: #0E0D14;
  --surface: #191824;
  --surface-2: #22212F;
  --hairline: #2E2C3B;
  --bone: #EDE9E2;
  --ash: #A19B95;
  --slate: #6B6670;
  --ember: #E4883C;
  --moss: #7FA96B;
  --rust: #C4573F;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em;
  color: var(--bone); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.nav-links a { color: var(--ash); text-decoration: none; }
.nav-links a:hover { color: var(--bone); }

.btn {
  display: inline-block; background: var(--ember); color: #17110A;
  font-weight: 600; font-size: 14.5px; padding: 10px 18px;
  border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #F0964C; }
.btn--ghost {
  background: transparent; color: var(--bone);
  border: 1px solid var(--hairline); font-weight: 500;
}
.btn--ghost:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 76px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.025em;
  margin: 0 auto 22px; max-width: 15ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--ember); }
.hero p.sub {
  font-size: 18px; color: var(--ash); max-width: 52ch;
  margin: 0 auto 34px; text-wrap: pretty;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 16px; font-size: 13.5px; color: var(--slate); }

/* ---------- Trust strip ---------- */
.trust {
  display: flex; gap: 14px 34px; justify-content: center; flex-wrap: wrap;
  padding: 26px 0 84px; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .06em; color: var(--slate);
}
.trust span { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none; }

/* ---------- Sections ---------- */
section { padding: 76px 0; border-top: 1px solid var(--hairline); }
.sec-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.018em;
  margin: 0 0 14px; text-wrap: balance;
}
.sec-lede { color: var(--ash); max-width: var(--measure); margin: 0 0 44px; font-size: 16.5px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 24px;
}
.card h3 {
  margin: 0 0 9px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 9px;
}
.card p { margin: 0; color: var(--ash); font-size: 14.5px; line-height: 1.6; }
.card code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--surface-2); padding: 2px 5px; border-radius: 4px; color: var(--bone);
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); max-width: 860px; margin: 0 auto; }
.tier {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 13px; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.tier--best { border-color: rgba(228,136,60,.5); position: relative; }
.tier-badge {
  position: absolute; top: -10px; left: 24px; background: var(--ember); color: #17110A;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 5px;
}
.tier-name { font-size: 12.5px; color: var(--ash); letter-spacing: .09em; text-transform: uppercase; }
.tier-price { font-family: var(--font-display); font-size: 42px; line-height: 1.1; }
.tier-price small { font-family: var(--font-body); font-size: 14px; color: var(--ash); }
.tier-note { font-size: 13.5px; color: var(--slate); margin-bottom: 16px; }
.tier .btn { margin-top: auto; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); }
details {
  border-bottom: 1px solid var(--hairline); padding: 18px 0;
}
summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ember); font-size: 20px; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ash); font-size: 15px; margin: 12px 0 0; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline); padding: 44px 0 60px;
  color: var(--slate); font-size: 13.5px;
}
.foot-row { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ash); text-decoration: none; }
.foot-links a:hover { color: var(--bone); text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { max-width: var(--measure); padding: 60px 0 80px; }
.legal h1 {
  font-family: var(--font-display); font-weight: 400; font-size: 38px;
  letter-spacing: -.02em; margin: 0 0 8px;
}
.legal .updated { color: var(--slate); font-size: 13.5px; margin: 0 0 40px; font-family: var(--font-mono); }
.legal h2 {
  font-size: 18px; font-weight: 600; margin: 38px 0 10px; letter-spacing: -.01em;
}
.legal p, .legal li { color: var(--ash); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--bone); font-weight: 600; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 62px 0 52px; }
  section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
}
