/* Key Surveillance — field manual (dark only) — imported for landing page */

:root {
  --bg: #121816;
  --bg-elevated: #1b2420;
  --ink: #e6efe9;
  --ink-muted: #9bb0a4;
  --line: #2d3b34;
  --accent: #3ecfaf;
  --accent-soft: rgba(62, 207, 175, 0.14);
  --warn: #e0a05a;
  --sidebar-w: 18.5rem;
  --site-nav-h: 4.5rem;
  --topbar-h: 3.5rem;
  --chrome-gap: calc(var(--site-nav-h) + var(--topbar-h));
  --lp-accent: #38bdf8;
  --lp-border: rgba(56, 189, 248, 0.2);
  --radius: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --content-max: 46rem;
  --page-pad: clamp(0.75rem, 3vw, 3rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--chrome-gap) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 207, 175, 0.1), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1412 0%, var(--bg) 30%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #0b1512;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1100;
  background: var(--lp-accent);
  transition: width 80ms linear;
}

/* Landing-page site chrome */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lp-border);
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 5%;
  flex-wrap: wrap;
}

.site-header .nav-left,
.site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-header a {
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  font-family: Inter, var(--font-sans);
  font-size: 0.95rem;
}

.site-header a:hover,
.site-header a.active {
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.site-header .brand {
  font-family: "Space Grotesk", var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--lp-accent) !important;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.site-header .nav-sep {
  color: #3a5a7a;
}

.site-header .dropdown {
  position: relative;
}

.site-header .dropbtn {
  background: none;
  border: none;
  color: #94a3b8;
  font-weight: 500;
  font-family: Inter, var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-header .dropbtn:hover {
  color: #f8fafc;
}

.site-header .dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  padding: 0.45rem 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-header .dropdown:hover .dropdown-content,
.site-header .dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .dropdown-content a {
  display: block;
  padding: 0.7rem 1.15rem;
  color: #94a3b8;
  font-size: 0.92rem;
  white-space: normal;
}

.site-header .dropdown-content a:hover,
.site-header .dropdown-content a.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--lp-accent);
}

.site-header .nav-call-to {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: none !important;
}

.site-header .nav-call-to:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.55);
  color: #fff !important;
}

.site-menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid var(--lp-border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  touch-action: manipulation;
}

.site-menu-toggle span {
  display: block;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}

.site-footer {
  margin-top: auto;
  background: rgba(3, 7, 18, 0.92);
  border-top: 1px solid var(--lp-border);
  padding: 2.5rem 5%;
  text-align: center;
  color: #94a3b8;
  font-family: Inter, var(--font-sans);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--lp-accent);
  text-decoration: none;
}

.site-footer a:hover {
  color: #7dd3fc;
}

/* Additional styles for reader continue from source */
.topbar {
  position: sticky;
  top: var(--site-nav-h);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: var(--topbar-h);
  padding: 0.45rem 1rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  flex: 1;
}

.sidebar {
  position: sticky;
  top: var(--chrome-gap);
  height: calc(100vh - var(--chrome-gap));
  overflow: auto;
  padding: 1.25rem 0.85rem 2rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.doc {
  max-width: calc(var(--content-max) + 8rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #0b1512;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.callout {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

/* Truncated for initial import; full styles from source will be refined as needed */

/* ---- Free preview + full field guide offer (camera-manual-freemium) ---- */
.fg-preview-note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: .75rem 1rem; border-radius: var(--radius); margin: 1.25rem 0; }
.fg-locked { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.fg-locked li { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .85rem; background: var(--bg-elevated); }
.fg-locked li span { display: block; color: var(--ink-muted); font-size: .9em; }
.fg-offer { border: 1px solid var(--lp-border); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; background: var(--bg-elevated); }
.fg-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.fg-tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.fg-tier p { margin: 0; }
.fg-tier-name { font-weight: 600; }
.fg-tier-price { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.fg-tier-blurb { color: var(--ink-muted); flex: 1; }
.fg-pay { align-self: flex-start; margin-top: .5rem; }
.fg-steps { color: var(--ink-muted); }
