/* ─────────────────────────────────────────────────────────────
   Brand surfaces

   --ask-* are the product's real Ask-mode sidenav values, lifted from
   the shipped UI (--nav / --nav-2 / --nav-soft) 2026-08-29.

   --answer-black is provisional, pending the Answer-mode sidenav value.
   Swap it and every Answer surface follows.

   --ai is the product's AI/analysis accent. It appears inside the
   product screenshots (the ✦ Analysis affordance, the Analyze button),
   so it is documented here even where the marketing pages don't use it.
   ───────────────────────────────────────────────────────────── */

:root {
  --ask-blue: #3e68ee;
  --ask-blue-deep: #254dcc;
  --ask-blue-soft: #c7d3fa;
  --answer-black: #0d0d0d;
  --answer-black-soft: #1a1a1a;
  --ai: #5b4be1;

  /* The "both sides" hero. Every page that covers Ask *and* Answer shares it:
     About, Resources, Contact, the papers and the job postings. Ask and Answer
     keep their own single-brand heroes. Defined once here so the six consumers
     cannot drift apart. */
  --hero-both: linear-gradient(107deg,
      var(--ask-blue) 0%,
      #0b3ccb 22%,
      #101c3a 52%,
      #0f1119 76%,
      var(--answer-black) 100%);
  --hero-both-veil:
    radial-gradient(ellipse 74% 82% at 50% 50%, rgba(0, 0, 0, 0.30) 0%, transparent 72%),
    radial-gradient(ellipse at 16% 22%, rgba(255, 255, 255, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 84% 82%, rgba(62, 104, 238, 0.26) 0%, transparent 58%);

  /* Product flag semantics — reuse these in any diagram that shows flags */
  --flag-ok: #2cb51e;
  --flag-attn: #f07f18;
  --flag-red: #d02b2b;
  --flag-none: #979797;

  /* Neutral grounds — the homepage runs on these */
  --paper: #ffffff;
  --paper-alt: #f7f8fc;
  --anchor: #12141a;
  --hairline: rgba(17, 20, 32, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Sticky so the nav is always reachable without scrolling back up.
   The bar spans the viewport; .header-inner holds the 960px content column. */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  position: relative;
}

/* anchor targets must clear the sticky bar */
[id] {
  scroll-margin-top: 6rem;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
}

nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 0.5rem;
  gap: 0.1rem;
  z-index: 50;
}

.nav-toggle-input:checked ~ nav {
  display: flex;
}

nav a {
  margin-left: 0;
  padding: 0.65rem 0.75rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  border-bottom: 1px solid #eee;
}

nav a:last-of-type {
  border-bottom: none;
}

nav a:hover {
  color: #0057ff;
  background: rgba(0, 0, 0, 0.03);
}

nav a.nav-login {
  display: inline-flex;
  justify-content: center;
  margin: 0.4rem 0 0;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

nav a.nav-login:hover {
  color: #0057ff;
  border-color: #0057ff;
  background: rgba(0, 87, 255, 0.04);
}

/* Desktop nav needs room for seven items; below this the hamburger takes over. */
@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 1.5rem 2rem;
  }

  .nav-toggle {
    display: none;
  }

  nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  nav a {
    margin-left: 1.15rem;
    padding: 0;
    border-bottom: none;
  }

  nav a:hover {
    background: none;
  }

  nav a.nav-login {
    margin: 0 0 0 1.15rem;
  }
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header .brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  height: 1.5rem;
  width: auto;
}

main section {
  margin-bottom: 0;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover {
  color: #0057ff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-social a {
  display: inline-flex;
}

.footer-social-icon {
  display: block;
  height: 22px;
  width: auto;
}

/* SOC 2 trust badge. Groups with the copyright on the left; margin-right:auto
   pushes the social icons to the far right. 56px is the floor: the AICPA seal
   carries internal type ("AICPA / SOC 2") that turns to mush below it.
   The Type 2 claim lives in the alt text, because answer engines cannot read a
   badge and "SOC 2 Type 2 certified" is a fact worth being retrievable. */
.footer-soc {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  margin-left: 0.9rem;
  margin-right: auto;
}
