/* ==========================================================================
   Nativs — shared stylesheet
   Extracted from the original builder bundles. Previously this CSS (plus
   ~515 lines of @font-face and 204KB of React) was inlined into every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted variable fonts.
   One file per family covers the whole weight range. unicode-range means
   the latin-ext file is only fetched when a page actually needs those glyphs.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Reset and design tokens
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }
html, body { margin: 0; }

:root {
  --violet: #635bff;
  --violet-deep: #4a42d9;
  --violet-soft: #ece9ff;
  --ink: #1a1d2e;
  --slate: #525771;
  --mist: #f6f9fc;
  --line: #e4e2dc;
  --anno: flex;

  /* agent-detail accents (board-pl) */
  --fin: #2E8B6F;
  --fin-s: #e4f1ec;
  --data: #3D6CB5;
  --data-s: #e6eef9;
}

body {
  background: #fff;
  font-family: 'Inter Tight', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--slate);
}

input::placeholder,
textarea::placeholder { color: #9aa0b4; }

/* Anchor targets sit below the sticky nav rather than under it, and ease in
   rather than snapping. */
[id] { scroll-margin-top: 96px; }

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

/* The agent library sits on the tinted background */
body.page-store { background: var(--mist); }

/* --------------------------------------------------------------------------
   Components — previously inline style bindings driven by React state
   -------------------------------------------------------------------------- */

/* Pill tabs (home page) and chip toggles (brief builder, agent library) */
.tab,
.chip {
  font-family: inherit;
  font-size: inherit;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--line);
}

.tab {
  padding: 11px 26px;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.chip {
  background: #fff;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
}

.chip[aria-pressed="true"] {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-weight: 600;
}

.tab:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */

.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #c9cbd6;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 18px 44px rgba(20, 23, 31, 0.32);
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(.2, .7, .2, 1);
}

.consent-banner.is-visible { opacity: 1; transform: translateY(0); }

.consent-banner__text { flex: 1 1 300px; }
.consent-banner__text strong { color: #fff; font-weight: 600; }

.consent-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }

.consent-btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.consent-btn--solid { background: var(--violet); color: #fff; border: 1.5px solid var(--violet); }
.consent-btn--ghost { background: transparent; color: #c9cbd6; border: 1.5px solid #3a3f52; }

.consent-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; transform: none; }
}

@media (max-width: 560px) {
  .consent-banner { gap: 14px; padding: 16px 18px; }
  .consent-banner__actions { width: 100%; }
  .consent-btn { flex: 1; }
}

.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;
}

/* Group-by toggle (agent library) */
.toggle {
  font-family: inherit;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  color: var(--slate);
  border: none;
}

.toggle[aria-selected="true"] {
  background: var(--violet);
  color: #fff;
}

.toggle:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Agent library
   Cards carry both palettes as custom properties; the container's data-mode
   decides which one applies, so cards can be regrouped without re-styling.
   -------------------------------------------------------------------------- */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.agent-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(20, 23, 31, 0.06);
  transition: transform 140ms cubic-bezier(.2, .7, .2, 1), box-shadow 140ms;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 23, 31, 0.14);
}

.agent-card[data-popular] {
  border: 2px solid var(--violet);
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.14);
}

[data-mode="dept"] .agent-card { --acc-c: var(--dept-c); --acc-s: var(--dept-s); }
[data-mode="job"]  .agent-card { --acc-c: var(--job-c);  --acc-s: var(--job-s); }

.agent-mono {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--acc-s);
  color: var(--acc-c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.agent-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc-c); }
.group-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--acc-c); }

.agent-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

@media (max-width: 960px) {
  .agent-grid { grid-template-columns: 1fr !important; }

  /* Hero visuals stack, so the overlapping "floating" chip becomes inline. */
  .hero-chip {
    position: static !important;
    display: inline-block;
    margin-top: 16px;
    transform: none !important;
  }
  [data-mob="herovis"] { padding: 24px 0 0 !important; }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Prose — long-form Markdown content (blog posts)
   -------------------------------------------------------------------------- */

.prose { font-size: 18px; line-height: 1.65; color: var(--slate); }

.prose h2,
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 44px 0 14px;
}

.prose h2 { font-size: 30px; }
.prose h3 { font-size: 22px; }

.prose p { margin: 0 0 22px; }

.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

.prose ul,
.prose ol { margin: 0 0 22px; padding-left: 24px; }

.prose li { margin-bottom: 10px; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--violet);
  color: var(--slate);
}

.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.prose pre {
  background: var(--ink);
  color: #e7e9f0;
  border-radius: 12px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.prose pre code { background: none; border: 0; padding: 0; color: inherit; }

.prose img { max-width: 100%; height: auto; border-radius: 12px; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* --------------------------------------------------------------------------
   Animation
   -------------------------------------------------------------------------- */

@keyframes typeReveal {
  0%, 8%    { clip-path: inset(0 100% 0 0); }
  46%, 84%  { clip-path: inset(0 0 0 0); }
  100%      { clip-path: inset(0 100% 0 0); }
}

@keyframes blink {
  0%, 46%, 100% { opacity: 1; }
  60%, 84%      { opacity: 0.15; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — union of the per-page rules from the original bundles
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  main { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; }
  main > * { padding-left: 20px !important; padding-right: 20px !important; }
  main > section { padding-top: 56px !important; padding-bottom: 56px !important; }

  nav { flex-wrap: wrap !important; gap: 10px 16px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
  nav > div { flex-wrap: wrap !important; gap: 14px !important; }

  footer { flex-direction: column !important; gap: 14px !important; text-align: center !important; align-items: center !important; }

  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  h1 { font-size: 30px !important; line-height: 1.15 !important; }
  h2 { font-size: 26px !important; line-height: 1.18 !important; }
  h3 { font-size: 22px !important; }

  /* hero door cards -> stacked */
  [data-mob="doorbox"] { height: auto !important; }
  a[data-depth] {
    position: static !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    width: auto !important;
    margin: 0 0 14px !important;
    transform: none !important;
  }
  [data-mob="btnrow"] { flex-wrap: wrap !important; }

  /* five-step loop -> wrap, hide arrows */
  [data-mob="loop"] { flex-wrap: wrap !important; }
  [data-mob="loop"] > [data-mob="arrow"] { display: none !important; }
  [data-mob="loop"] > div:not([data-mob="arrow"]) { flex: 1 1 100% !important; max-width: none !important; }

  /* constellation hidden on small screens */
  [data-mob="constel"] { display: none !important; }

  /* trust-bar logos wrap */
  [data-mob="logos"] { flex-wrap: wrap !important; justify-content: center !important; row-gap: 10px !important; }

  /* pod cycle -> stacked list */
  [data-mob="pod-ring"] { display: none !important; }
  [data-mob="pod-list"] { display: flex !important; }
}
