/* Night Agent marketing site
   ---------------------------------------------------------------------------
   Brand tokens are lifted from the product's own static/style.css so the site
   and the application read as the same thing. No webfont, no CDN, no external
   request of any kind — which is also what the security page claims, so it
   needs to stay true. */

:root {
  /* Header emblem size. The nav bar height and the wordmark scale from it, so
     this is the only number to change — moving one without the others is what
     makes a header look off-balance.

     88px is double the first attempt. Much past ~100px the bar starts eating
     a serious share of a laptop screen, and on a phone it competes with the
     content it sits above; --brand-size-sm handles that separately. */
  --brand-size: 96px;
  --brand-size-sm: 56px;

  --c-primary:      #0066cc;
  --c-primary-dark: #0052a3;
  --c-primary-soft: #e8f1fb;
  --c-ink:          #0d1b2a;   /* product header colour — dark sections */
  --c-ink-soft:     #16293d;
  --c-text:         #1a1f2e;
  --c-muted:        #5b6577;
  --c-muted-light:  #9fb0c4;
  --c-bg:           #f2f4f8;
  --c-card:         #ffffff;
  --c-border:       #dde1e7;
  --c-border-dark:  #26384d;
  --c-success:      #1a7a1a;
  --c-warn:         #c47000;
  --c-error:        #c0392b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Consolas", "SFMono-Regular", "Courier New", monospace;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 10px rgba(13, 27, 42, .07);
  --shadow-lg: 0 18px 50px rgba(13, 27, 42, .16);

  --wrap:   1160px;
  --gutter: 1.5rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-card);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); }

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

.skip-link {
  position: absolute; left: -9999px;
  background: var(--c-ink); color: #fff;
  padding: .7rem 1.1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }

p { color: var(--c-muted); }
.lede { font-size: 1.12rem; max-width: 62ch; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--c-primary);
}
.eyebrow-light { color: #6fb2f5; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-dark { background: var(--c-ink); color: #fff; }
.section-dark p { color: var(--c-muted-light); }
.section-tint { background: var(--c-bg); }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .5rem 0 .75rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: .72rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-ghost-light {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.32);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  /* Derived from the emblem, not a fixed 68px: a bigger mark in a fixed bar
     either overflows it or gets cropped. */
  min-height: calc(var(--brand-size) + 16px);
}
@media (max-width: 640px) {
  .nav-inner { min-height: calc(var(--brand-size-sm) + 14px); }
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--c-primary);
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
/* The EMBLEM, square, beside the wordmark — the shape a nav bar is built for.
   44px in a 68px bar reads clearly without crowding the links.

   This was briefly the full lockup at height:40px, which rendered 77px wide
   and put an emblem, a wordmark and a tagline into the width of a thumbnail.
   No CSS could have rescued that; the artwork was the wrong shape for the
   slot. make_logo.py now cuts the emblem out for here and keeps the lockup
   for places that have room. */
/* Rectangular, height-driven: the artwork is a lockup, so the height is what
   should be controlled and the width has to follow it. Forcing a square either
   letterboxes it to a fraction of the box or crops the wordmark off — both
   were tried before this.

   Both artwork files are fully opaque, so each background gets the variant
   that matches it: the white lockup here, the navy one in the footer. */
.brand-logo {
  height: var(--brand-size); width: auto;
  flex: none; object-fit: contain; display: block;
  /* No radius: the header artwork is white on a white bar, so there is no
     block to soften. The radius was there for the dark-on-white version. */
}
.footer .brand-logo {
  height: calc(var(--brand-size) * .8);
  /* The footer is already this navy, so the block disappears into it and the
     radius has nothing to soften. */
  border-radius: 0;
}
@media (max-width: 640px) {
  .brand-logo,
  .footer .brand-logo { height: var(--brand-size-sm); }
}
.brand-name { color: var(--c-ink); }
.brand-light { color: #fff; }
.brand-light .brand-name { color: #fff; }

.nav-menu {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-menu a {
  text-decoration: none; color: var(--c-text);
  font-size: .93rem; font-weight: 500;
}
.nav-menu a:hover { color: var(--c-primary); }
.nav-menu a[aria-current="page"] { color: var(--c-primary); font-weight: 600; }
.nav-cta { color: #fff !important; }

.nav-toggle {
  margin-left: auto;
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--c-ink); border-radius: 2px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(0,102,204,.30), transparent 62%),
    var(--c-ink);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
  overflow: hidden;
}
.hero h1 { margin: .85rem 0 1.1rem; }
.hero-sub {
  font-size: clamp(1.02rem, 1.9vw, 1.19rem);
  color: #c3d3e6;
  max-width: 60ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .85rem;
  margin: 2rem 0 1rem;
}
.hero-foot {
  font-size: .87rem; color: var(--c-muted-light);
  display: flex; align-items: center; gap: .5rem;
}

.hero-shot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border-dark);
  border-bottom: 0;

  /* A quarter narrower, and centred. The status screenshot is 818x843 —
     practically square — and at full container width it was not only too big,
     it was being UPSCALED past its own resolution and going soft with it.
     At 75% it renders close to 1:1.

     Percent rather than a pixel max-width so it stays proportional to the
     container at every breakpoint; the mobile rule below takes it back to
     full width, where 75% of a phone screen would just be small. */
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .hero-shot { width: 100%; }
}

/* ── Stat strip ───────────────────────────────────────────────────────────── */

.stats {
  background: var(--c-ink-soft);
  border-top: 1px solid var(--c-border-dark);
  padding: 2.25rem 0;
}
.stats-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-value {
  font-size: 2.1rem; font-weight: 700; color: #fff;
  letter-spacing: -.03em; line-height: 1.1;
}
.stat-label { color: #fff; font-weight: 600; font-size: .95rem; }
.stat-detail { color: var(--c-muted-light); font-size: .84rem; margin-top: .2rem; }

/* ── Cards / grids ────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; }

.icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.icon svg { width: 22px; height: 22px; }

/* Pillars: alternating full-width rows */
.pillar {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--c-border);
}
.pillar:last-child { border-bottom: 0; }
.pillar:nth-child(even) .pillar-media { order: -1; }
.pillar h2 { margin: 1rem 0 .85rem; }

.checklist { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.checklist li {
  position: relative; padding-left: 1.75rem;
  color: var(--c-text); font-size: .95rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.05rem; height: .55rem;
  border-left: 2.5px solid var(--c-success);
  border-bottom: 2.5px solid var(--c-success);
  transform: rotate(-45deg);
}

/* Negation list. A checkmark beside "log files" under a heading of "where a
   password never goes" reads as confirmation of the opposite — on a security
   page that is worse than no icon at all. */
.crosslist { list-style: none; margin-top: 1.25rem; display: grid; gap: .6rem; }
.crosslist li {
  position: relative; padding-left: 1.75rem;
  color: var(--c-text); font-size: .95rem;
}
.crosslist li::before,
.crosslist li::after {
  content: ""; position: absolute; left: .12rem; top: .72em;
  width: .95rem; height: 2.5px; border-radius: 2px;
  background: var(--c-error);
}
.crosslist li::before { transform: rotate(45deg); }
.crosslist li::after  { transform: rotate(-45deg); }

/* ── Screenshots ──────────────────────────────────────────────────────────── */

.shot { border-radius: var(--radius); overflow: hidden; }
.shot img {
  width: 100%; height: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.shot figcaption {
  font-size: .86rem; color: var(--c-muted);
  margin-top: .7rem; text-align: center;
}

/* Placeholder shown until a real screenshot is dropped in. Deliberately
   obvious — an empty frame on a live site would look broken, and this makes
   it unmistakable that an asset is still outstanding. */
.shot-placeholder {
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f7f9fc 0 12px, #eef2f7 12px 24px);
  display: grid; place-content: center; gap: .35rem;
  text-align: center; padding: 1.5rem;
}
.shot-placeholder strong { color: var(--c-muted); font-size: .9rem; }
.shot-placeholder span { color: var(--c-muted); font-size: .8rem; font-family: var(--mono); }
.hero-shot .shot-placeholder { border-color: var(--c-border-dark); background: #16293d; }
.hero-shot .shot-placeholder strong,
.hero-shot .shot-placeholder span { color: var(--c-muted-light); }

/* ── Steps ────────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--c-border);
}
.step:last-child { border-bottom: 0; }
.step-n {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step-shot { margin-top: 1.25rem; max-width: 720px; }

/* ── Mode cards ───────────────────────────────────────────────────────────── */

.mode {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--c-card);
  scroll-margin-top: 90px;
}
.mode h3 { color: var(--c-ink); }
.mode-summary { color: var(--c-text); font-weight: 500; margin: .4rem 0 .7rem; }
.mode p { font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tag {
  font-size: .78rem; font-weight: 500;
  background: var(--c-primary-soft); color: var(--c-primary-dark);
  padding: .28rem .6rem; border-radius: 100px;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.plans {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  align-items: start;
}
.plan {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--c-card);
}
.plan-featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft), var(--shadow);
  position: relative;
}
.plan-badge {
  position: absolute; top: -.75rem; left: 2rem;
  background: var(--c-primary); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 100px;
}
.plan-price {
  font-size: 2.1rem; font-weight: 700; color: var(--c-ink);
  letter-spacing: -.03em; margin: .75rem 0 .15rem;
}
.plan-price-note { font-size: .88rem; }
.plan-summary { margin: 1rem 0 1.5rem; font-size: .95rem; }
.plan .btn { width: 100%; text-align: center; }

.compare { width: 100%; border-collapse: collapse; margin-top: 3rem; }
.compare caption {
  text-align: left; font-weight: 700; font-size: 1.15rem;
  color: var(--c-ink); padding-bottom: 1rem;
}
.compare th, .compare td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left; font-size: .94rem;
}
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.compare td.mark, .compare th.mark { text-align: center; width: 8.5rem; }
.yes { color: var(--c-success); font-weight: 700; }
.no  { color: var(--c-border); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--c-border);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  color: var(--c-ink); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--c-primary); font-weight: 400;
  font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: .75rem; font-size: .96rem; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--c-ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.cta-inner h2 { margin-bottom: .6rem; }
.cta-inner p { color: var(--c-muted-light); max-width: 46ch; }
.cta-actions { text-align: right; }
.cta-note { font-size: .84rem; margin-top: .6rem; }

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: .4rem; color: var(--c-text);
}
.field .req { color: var(--c-warn); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit; font-size: .95rem;
  background: #fff; color: var(--c-text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.field-hint { font-size: .82rem; color: var(--c-muted); margin-top: .35rem; }
.field-count { font-variant-numeric: tabular-nums; }
.field-count-warn { color: var(--c-error, #c0392b); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .92rem; }
.form-status[hidden] { display: none; }
.form-status.ok  { background: #e8f5e8; border: 1px solid #a8d5a8; color: #14601a; }
.form-status.err { background: #fdf1ef; border: 1px solid #f5c6c0; color: #96271a; }

/* Honeypot — bots fill it, humans never see it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Prose (legal pages) ──────────────────────────────────────────────────── */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.prose h3 { margin: 1.75rem 0 .5rem; }
.prose p, .prose li { color: var(--c-muted); font-size: .97rem; }
.prose ul, .prose ol { margin: .75rem 0 .75rem 1.35rem; display: grid; gap: .4rem; }
.prose a { text-decoration: underline; }

.notice {
  background: #fff8e6; border: 1px solid #f0c878;
  border-radius: var(--radius); padding: 1rem 1.15rem;
  font-size: .92rem; color: #7a4a00; margin-bottom: 2rem;
}

/* ── Page header ──────────────────────────────────────────────────────────── */

.page-head {
  background: var(--c-ink); color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-head h1 { margin: .7rem 0 1rem; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.page-head p { color: #c3d3e6; max-width: 62ch; font-size: 1.06rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--c-ink); color: #fff;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--c-border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-tagline { color: #fff; font-weight: 600; margin: .9rem 0 .4rem; }
.footer-note { color: var(--c-muted-light); font-size: .89rem; max-width: 34ch; }
.footer-col h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted-light); margin-bottom: .9rem; font-weight: 700;
}
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a {
  color: #dbe6f2; text-decoration: none; font-size: .92rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--c-border-dark);
  display: grid; gap: .6rem;
}
.footer-bottom p { color: var(--c-muted-light); font-size: .84rem; }
.footer-disclaimer { max-width: 78ch; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar-media { order: 0; }
  .plans { grid-template-columns: minmax(0, 420px); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { text-align: left; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav[data-open] .nav-menu { display: flex; }
  .nav-menu a { padding: .8rem 0; border-bottom: 1px solid var(--c-border); }
  .nav-cta { margin-top: .9rem; text-align: center; border-bottom: 0 !important; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: .85rem; }
  .compare th, .compare td { padding: .7rem .5rem; font-size: .88rem; }
  .compare td.mark, .compare th.mark { width: 4.5rem; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */

@media print {
  .nav, .cta-band, .footer, .skip-link { display: none; }
  body { background: #fff; }
  .hero, .page-head, .section-dark { background: #fff !important; color: #000 !important; }
}
