/* Shared: top nav, Get Started modal, footer. Used by index and legal pages. */

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

:root {
  --red: #C41B2E;
  --black: #111110;
  --white: #FFFFFF;
  --off: #F6F5F2;
  --g100: #E2E1DC;
  --g400: #9B9A93;
  --g600: #5C5B54;
  --mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--g100);
  isolation: isolate;
}

.nav-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: #111110;
  letter-spacing: -0.02em;
  text-decoration: none;
  -webkit-text-fill-color: #111110;
  visibility: visible;
  opacity: 1;
}

.nav-logo-mark {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
  flex-shrink: 0;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  nav.site-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--g600);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-cta {
  background: #111110 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 500 !important;
  border: 1px solid #111110;
}

.nav-cta:hover {
  background: var(--red) !important;
}

.btn-dark {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-size: 0.925rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  background: #111110;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-weight: 500;
  border: 1px solid #111110;
}

.btn-dark:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(17, 17, 16, 0.45);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  padding: 1.5rem;
}

.modal.is-success {
  max-width: 460px;
}

.modal.is-success .modal-head,
.modal.is-success .modal-form {
  display: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.modal-sub {
  margin-top: 0.6rem;
  color: var(--g600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-close {
  border: 1px solid var(--g100);
  background: var(--white);
  color: var(--g600);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--black);
  border-color: var(--black);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field > label,
.field-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--g600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--g100);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--black);
  background: var(--off);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-hint {
  color: var(--g600);
  font-size: 0.78rem;
  line-height: 1.5;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-option {
  position: relative;
}

.chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--g100);
  border-radius: 999px;
  background: var(--off);
  color: var(--g600);
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.chip-label:hover {
  border-color: var(--black);
  color: var(--black);
  transform: translateY(-1px);
}

.chip-input:checked + .chip-label {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.chip-input:focus-visible + .chip-label {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.modal-note {
  color: var(--g600);
  font-size: 0.82rem;
  line-height: 1.6;
}

.modal-submit {
  border: none;
}

.modal-success {
  display: none;
  padding: 0.5rem 0 0.25rem;
}

.modal-success.is-visible {
  display: block;
}

.modal.is-success .modal-success {
  padding: 0;
}

.modal-success.is-error p {
  color: var(--red);
}

.modal-success h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.modal-success p {
  margin-top: 0.85rem;
  color: var(--g600);
  font-size: 0.95rem;
  line-height: 1.7;
}

footer {
  position: relative;
  z-index: 20;
  isolation: isolate;
  mix-blend-mode: normal;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 5%;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.foot-bottom p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.foot-nav {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.foot-nav a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  -webkit-text-fill-color: #ffffff;
  font-weight: 500;
}

.foot-nav a:hover {
  color: #ffffff;
  opacity: 0.85;
}

.foot-nav .sep {
  opacity: 0.45;
  padding: 0 0.2rem;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
