/* Shared site navigation + beta access modal.
   Loaded on every page via <link rel="stylesheet" href="nav.css"> (or "../nav.css" from subfolders).
   Kept self-contained (no reliance on host-page CSS variables) so it renders identically everywhere. */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,17,17,.14);
}

.nav-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { height: 48px; width: 48px; display: block; }
.brand-text { height: 23px; width: auto; display: block; }

.nav-links { display: flex; gap: 32px; font-size: 14px; letter-spacing: .02em; }
.nav-links a { text-decoration: none; color: rgba(17,17,17,.62); transition: color .15s ease; }
.nav-links a:hover { color: #000; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 9px;
  background: transparent;
  color: #111;
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; display: block; }
.nav-toggle:hover { background: rgba(17,17,17,.05); }
.nav-toggle.open { background: #000; color: #fff; border-color: #000; }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  width: 100%;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  padding: 14px 24px;
  border-top: 1px solid rgba(17,17,17,.1);
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}
.nav-mobile-panel a:hover { background: rgba(17,17,17,.03); }

@media (min-width: 981px) {
  .nav-mobile-panel { display: none !important; }
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-get-started:hover { box-shadow: 0 0 24px rgba(0,0,0,.28); transform: translateY(-1px); }

/* ---------- Beta access modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }

.modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(17,17,17,.14);
  padding: 32px 30px 28px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(17,17,17,.35);
  text-align: left;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 50%;
  background: rgba(17,17,17,.03);
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(17,17,17,.08); }

.modal-kicker {
  margin: 0 0 14px;
  color: rgba(17,17,17,.5);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-align: left;
}

.modal h3 { margin: 6px 0 10px; font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: #000; }
.modal .modal-sub { margin: 0 0 24px; color: rgba(17,17,17,.62); font-size: 14.5px; line-height: 1.55; }

.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #000; }
.modal label .optional { font-weight: 400; color: rgba(17,17,17,.62); text-transform: none; letter-spacing: 0; }
.modal label input {
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: #000;
  background: rgba(17,17,17,.02);
}
.modal label input:focus { outline: 2px solid #000; outline-offset: 1px; }
.modal button[type="submit"] { margin-top: 6px; width: 100%; justify-content: center; }

.modal-success { display: none; }
.modal-overlay.submitted .modal-body { display: none; }
.modal-overlay.submitted .modal-success { display: block; }
.modal-success p { margin: 0; color: rgba(17,17,17,.62); font-size: 15px; line-height: 1.6; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 10px 18px; }
  .brand-icon { height: 36px; width: 36px; }
  .brand-text { height: 17px; }
  .btn-get-started { padding: 9px 14px; font-size: 13px; }
  .nav-toggle { width: 34px; height: 34px; }
}
