/* ClearScope Lens — shared site styles
 * Used by index.html and all sub-pages (features / architecture / security / use-cases).
 * Brand tokens mirror landing/index.html. Keep changes in sync.
 */

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

:root {
  --blue:       #4e76b9;
  --gold:       #cea25a;
  --white:      #ffffff;
  --blue-dark:  #3d5d96;
  --gold-dark:  #b38a47;
  --text-body:  #2c3e60;
  --text-muted: #5a6e8c;
  --surface:    #f6f8fc;
  --border:     #e3e8f1;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--blue); }

/* ── NAV ───────────────────────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transform: translateZ(0);
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
}
nav.site-nav .nav-logo {
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none;
}
nav.site-nav .nav-logo img { height: 28px; display: block; }
nav.site-nav .nav-logo .cs   { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }
nav.site-nav .nav-logo .lens { font-size: 1.2rem; font-weight: 800;  color: var(--blue);       letter-spacing: -0.02em; }

nav.site-nav .nav-links {
  display: flex; gap: 1.4rem; align-items: center;
}
nav.site-nav .nav-links a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
nav.site-nav .nav-links a:hover,
nav.site-nav .nav-links a.active { color: var(--blue); }

nav.site-nav .nav-badge {
  font-size: 0.72rem; font-weight: 600;
  background: var(--gold); color: var(--white);
  padding: 0.2rem 0.65rem; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── PAGE HERO (subpages) ─────────────────────────────────────────────── */
.page-hero {
  background: var(--blue);
  color: var(--white);
  padding: 7rem 2rem 4rem;
  text-align: center;
}
.page-hero .eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--white); max-width: 820px; margin: 0 auto 0.8rem;
}
.page-hero h1 span { color: var(--gold); }
.page-hero .lead {
  max-width: 640px; margin: 0 auto;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.82); line-height: 1.6;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
section { padding: 4.5rem 2rem; }
section.alt { background: var(--surface); }
.inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--blue);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 0.9rem;
}
h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-body); margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
p { color: var(--text-muted); }
.section-lead {
  font-size: 1.02rem; color: var(--text-muted);
  max-width: 680px; line-height: 1.65;
}
.divider {
  width: 48px; height: 3px; background: var(--gold);
  margin: 1.1rem 0 1.6rem; border-radius: 2px;
}

/* ── CARDS / GRIDS ────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(78,118,185,0.10);
  border-color: rgba(78,118,185,0.35);
}
.card .icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(78,118,185,0.10);
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.card p { font-size: 0.92rem; line-height: 1.55; }

/* Variant: gold-accented hero card */
.card.featured {
  background: linear-gradient(180deg, #fbf7ee 0%, #ffffff 70%);
  border-color: rgba(206,162,90,0.45);
}
.card.featured .icon {
  background: rgba(206,162,90,0.18);
  color: var(--gold-dark);
}

/* ── TWO-COLUMN BLOCK ─────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ── BULLET LIST ──────────────────────────────────────────────────────── */
ul.checks {
  list-style: none; padding: 0; margin: 1rem 0 0;
}
ul.checks li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
}
ul.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.35rem;
  color: var(--gold); font-weight: 800;
}

/* ── INLINE CALLOUT ───────────────────────────────────────────────────── */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-top: 1.5rem;
}

/* ── ARCHITECTURE DIAGRAM (SVG container) ─────────────────────────────── */
.diagram {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
}
.diagram svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* ── CTA BAR ──────────────────────────────────────────────────────────── */
.cta-bar {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
}
.cta-bar h2 { color: var(--white); }
.cta-bar p { color: rgba(255,255,255,0.78); max-width: 540px; margin: 0.6rem auto 1.6rem; }
.cta-bar a.btn {
  display: inline-block;
  background: var(--gold); color: var(--white);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.75rem 1.8rem; border-radius: 6px;
  text-decoration: none; transition: background 0.2s;
}
.cta-bar a.btn:hover { background: var(--gold-dark); }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.75rem 2rem;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
}
footer.site-footer .footer-logo { display: flex; align-items: baseline; gap: 0.4rem; }
footer.site-footer .footer-logo .cs   { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.55); }
footer.site-footer .footer-logo .lens { font-size: 1rem;  font-weight: 800; color: var(--white); }
footer.site-footer .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer.site-footer .footer-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 0.2s;
}
footer.site-footer .footer-links a:hover { color: var(--gold); }
footer.site-footer .footer-copy {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  width: 100%; text-align: center; margin-top: 0.25rem;
}
footer.site-footer .footer-trademarks {
  font-size: 0.7rem;
  margin-top: 0.35rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Stack the nav so the logo never gets covered by the link row */
  nav.site-nav {
    height: auto;
    padding: 0.55rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  nav.site-nav .nav-logo { justify-content: flex-start; }
  nav.site-nav .nav-logo img { height: 24px; }
  nav.site-nav .nav-links {
    width: 100%;
    gap: 0.9rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  nav.site-nav .nav-links::-webkit-scrollbar { display: none; }
  nav.site-nav .nav-links a {
    font-size: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  nav.site-nav .nav-badge { display: none; }

  /* Push page content down so it isn't hidden under the taller nav */
  section { padding: 3rem 1rem; }
  .page-hero { padding: 6.5rem 1rem 3rem; }
}

/* ── SCREENSHOT BLOCK ─────────────────────────────────────────────────── */
.screenshot {
  margin: 2.5rem auto 0;
  max-width: 1100px;
}
.screenshot figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px -18px rgba(44, 62, 96, 0.35),
              0 4px 12px -6px rgba(44, 62, 96, 0.18);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}
.screenshot figcaption {
  padding: 0.85rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  letter-spacing: 0.02em;
}
.screenshot.compact { max-width: 880px; }
