/* ═══════════════════════════════════════════════════════════════════
   RetainCLM site chrome - the floating nav and the footer
   ------------------------------------------------------------------
   ONE definition, shared by the landing page (auth/login.html) and by
   every page under /charts. These rules used to live inline in
   login.html; they were moved here rather than copied so the two never
   drift apart. login.html links this file above its own <style> block,
   so anything it still declares inline continues to win - the move is
   cascade-neutral.

   The markup that goes with it is emitted by
   api/scripts/generate_chart_pages.py (NAV / FOOTER) for the chart
   pages, and is written inline in login.html for the landing page.
   Same classes, same behaviour, page-appropriate hrefs: the landing
   footer links to in-page anchors (#pricing), the chart pages link to
   the same anchors on the home page (/#pricing).

   Nav state, for reference: .at-top swaps the section-scroll links in
   and the auth buttons out. Only the landing page has sections to
   scroll to, so it is the only page that sets that class - chart pages
   render the nav without it and therefore always show Sign In and
   Book a Demo, which is exactly what they need.
   ═════════════════════════════════════════════════════════════════ */

/* Tokens the two rulesets below reference. Identical values to the ones
   login.html declares inline; declared here so the chart pages, which do
   not load login.html's <style>, resolve them too. */
:root {
  --emerald:   #059669;
  --emerald-l: #10B981;
  --slate-900: #0F172A;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-100: #F1F5F9;
  --shadow:    0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
}

/* ── FLOATING SITE NAV (always visible, so Sign In/Sign Up are always
   reachable) ── */
.site-nav {
  position: fixed; top: 18px; left: 50%; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 18px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s, box-shadow .3s;
  max-width: calc(100vw - 24px);
}
.site-nav.nav-scrolled { box-shadow: 0 2px 24px rgba(15,23,42,.07); }
/* Two swappable content groups sharing one grid cell (.site-nav-slot),
   crossfaded by scroll position (see the SITE NAV script): .at-top
   shows the section-scroll links and hides the auth buttons,
   everywhere else is the reverse. Sharing a cell means the swap fades
   in place instead of jumping the nav's width/layout around. */
.site-nav-slot { display: grid; }
.site-nav-links, .site-nav-actions {
  grid-area: 1 / 1; display: flex; align-items: center; gap: 8px;
  transition: opacity .25s ease, transform .25s ease;
}
.site-nav-links { gap: 2px; opacity: 0; transform: translateY(4px); pointer-events: none; }
.site-nav-actions { opacity: 1; transform: none; }
.site-nav.at-top .site-nav-links { opacity: 1; transform: none; pointer-events: auto; }
.site-nav.at-top .site-nav-actions { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.nav-btn-ghost.nav-link { padding: 8px 12px; font-size: 13px; }
@media (max-width: 640px) {
  .nav-btn-ghost.nav-link { padding: 7px 9px; font-size: 12.5px; }
}
.site-nav-brand {
  display: flex; align-items: center; gap: 9px; background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0;
  text-decoration: none;
}
/* The chart pages render the brand and the two actions as links rather
   than buttons, so the anchor defaults have to be reset. No effect on
   the landing page's buttons. */
a.site-nav-brand, a.nav-btn-ghost, a.nav-btn-fill {
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.site-nav-mark {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-l));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(5,150,105,.25);
}
.site-nav-name { font-size: 14.5px; font-weight: 800; letter-spacing: -.4px; color: var(--slate-900); white-space: nowrap; }
.site-nav-name span { color: var(--emerald); }
.site-nav-divider { width: 1px; height: 22px; background: rgba(15,23,42,.10); flex-shrink: 0; }
.site-nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn-ghost {
  background: none; border: none; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--slate-600); cursor: pointer; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-btn-ghost:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-btn-fill {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-l)); border: none; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(5,150,105,.25); transition: transform .15s, box-shadow .15s;
}
.nav-btn-fill:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(5,150,105,.32); }
@media (max-width: 480px) {
  .site-nav { gap: 10px; padding: 7px 8px 7px 12px; top: 12px; }
  .site-nav-name { display: none; }
  .nav-btn-ghost { padding: 7px 11px; }
  .nav-btn-fill { padding: 8px 14px; }
}

/* ── FOOTER (section 8) ── */
.lp-footer { background: var(--slate-900); padding: 26px 24px; position: relative; z-index: 1; }
.footer-row {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.footer-brand { justify-self: start; display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.footer-brand .brand-mark {
  width: 26px; height: 26px; border-radius: 7px; box-shadow: none;
  /* Restated in full: the base .brand-mark rule is a landing-page
     hero style that the chart pages never load. */
  background: linear-gradient(135deg, var(--emerald), var(--emerald-l));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-brand-name { font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.footer-brand-name span { color: var(--emerald-l); }
.footer-links-center { justify-self: center; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links-center a { font-size: 13.5px; font-weight: 600; color: var(--slate-400); text-decoration: none; white-space: nowrap; transition: color .15s; }
.footer-links-center a:hover { color: #fff; }
.footer-copyright { justify-self: end; font-size: 12px; color: var(--slate-500); white-space: nowrap; }
@media (max-width: 780px) {
  .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .footer-brand, .footer-links-center, .footer-copyright { justify-self: center; }
}
