/* Shared site chrome: the floating pill nav and the footer.
   Inlined on every page by layouts/application so it paints with the HTML
   (the nav floats over the top of the page, so it can't wait for the async
   stylesheet). Hand-maintained; markup lives in shared/_nav and shared/_footer. */

.site-nav, .site-footer {
  --sc-ink: #14161a; --sc-soft: #5b5f68; --sc-faint: #9a9ea6; --sc-line: #ececec;
  --sc-signal: #006d2c; --sc-bg: #fafafa;
  --sc-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --sc-mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 26px;
  width: min(720px, calc(100% - 24px));
  padding: 11px 11px 11px 26px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--sc-line); border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .05);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, border-color .3s;
}
/* frosted glass once the page has scrolled */
.site-nav.scrolled {
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 32px rgba(20, 22, 26, .08);
}
/* pages without a full-height hero get this spacer so content starts below the floating nav */
.site-nav-spacer { height: 76px; }

.site-nav a.site-logo, .site-footer a.site-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sc-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em;
  color: var(--sc-ink, #14161a); text-decoration: none; margin-right: auto;
}
.site-logo .mark { width: 15px; height: 18px; color: var(--sc-signal, #006d2c); flex: none; }

.site-nav a.site-link { font-size: 14px; font-weight: 500; color: var(--sc-soft); text-decoration: none; white-space: nowrap; }
.site-nav a.site-link:hover { color: var(--sc-ink); }

/* "Start free": hidden until the page scrolls past its hero (.show-cta),
   always shown on pages without one */
.site-nav a.site-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sc-signal); color: #fff; font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .15s, max-width .3s, padding .3s, opacity .25s, margin .3s;
}
.site-nav a.site-cta:hover { background: #005a24; color: #fff; transform: translateY(-1px); }
.site-nav a.site-cta.deferred {
  max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; overflow: hidden; margin-left: -26px; pointer-events: none;
}
.site-nav.show-cta a.site-cta.deferred { max-width: 140px; padding-left: 16px; padding-right: 16px; opacity: 1; margin-left: 0; pointer-events: auto; }

@media (max-width: 720px) {
  .site-nav { gap: 14px; padding-left: 20px; }
  .site-nav a.site-link { padding: 12px 4px; margin: -12px 0; }
  .site-nav a.site-link.login { margin-right: 6px; }
  .site-nav a.hide-sm { display: none; }
  .site-nav.show-cta a.site-cta.deferred { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 430px) {
  .site-nav a.site-link:not(.login) { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sc-bg); border-top: 1px solid var(--sc-line); padding: 80px 0 40px; color: var(--sc-ink); }
.site-footer-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) 4.4fr; gap: 48px; }
.site-footer-brand .site-logo { font-size: 20px; gap: 9px; margin-right: 0; }
.site-footer-brand .site-logo .mark { width: 18px; height: 22px; }
.site-footer-brand p { margin: 14px 0 0; color: var(--sc-soft); font-size: 14.5px; line-height: 1.5; max-width: 300px; }
.site-footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; font-size: 13.5px; }
.site-footer-h { font-family: var(--sc-mono); font-size: 11px; letter-spacing: .1em; color: var(--sc-faint); text-transform: uppercase; margin: 0 0 12px; font-weight: 500; }
.site-footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .site-footer-col a { display: block; padding: 3px 0; color: #3b3f47; text-decoration: none; }
.site-footer .site-footer-col a:hover { color: var(--sc-signal); }
.site-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 56px; font-size: 12px; color: var(--sc-faint); }
.site-footer-bottom .copyright { margin: 0; }
.site-footer-bottom nav { display: flex; }
.site-footer .site-footer-bottom nav a { margin-left: 16px; color: inherit; text-decoration: none; }
.site-footer .site-footer-bottom nav a:hover { color: var(--sc-ink); }
@media (max-width: 900px) {
  .site-footer .site-footer-col a { padding: 8px 0; }
  .site-footer .site-footer-bottom nav a:first-child { margin-left: 0; }
  .site-footer .site-footer-bottom nav a { padding: 8px 0; }
  .site-footer { padding: 64px 0 32px; }
  .site-footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .site-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
