@import url("/fonts/fonts.css");

:root {
  --hn-blue: #005efb;
  --hn-blue-hover: #0050d9;
  --hn-ink: #0f172a;
  --hn-border: rgba(15, 23, 42, 0.14);
  --hn-separator: rgba(15, 23, 42, 0.14);
  --hn-muted: rgba(15, 23, 42, 0.72);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body header.hn-public-header,
body footer.hn-public-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

body header.hn-public-header {
  background: #ffffff;
  border-bottom: 0;
}

body header.hn-public-header .hn-public-header-inner {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  row-gap: 10px;
  padding: 14px 0;
}

.hn-public-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hn-public-brand img {
  height: 34px;
  width: auto;
  display: block;
}

body header.hn-public-header .hn-public-nav {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  width: auto;
}

.hn-public-btn-label--mobile {
  display: none;
}

.hn-public-nav-links {
  display: none;
}

.hn-public-nav-link {
  text-decoration: none;
  color: var(--hn-ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}

.hn-public-nav-link:hover {
  text-decoration: underline;
}

.hn-public-separator {
  display: none;
}

.hn-public-auth {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hn-public-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hn-public-btn:focus-visible {
  outline: 3px solid rgba(0, 94, 251, 0.25);
  outline-offset: 2px;
}

.hn-public-btn--login {
  background: #ffffff;
  border: 1px solid var(--hn-blue);
  color: var(--hn-blue);
}

.hn-public-btn--login:hover {
  background: rgba(0, 94, 251, 0.06);
}

.hn-public-btn--join {
  background: var(--hn-blue);
  border: 1px solid var(--hn-blue);
  color: #ffffff;
}

.hn-public-btn--join:hover {
  background: var(--hn-blue-hover);
  border-color: var(--hn-blue-hover);
}

.hn-public-menu-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--hn-ink);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hn-public-menu-btn:focus-visible {
  outline: 3px solid rgba(0, 94, 251, 0.25);
  outline-offset: 2px;
}

.hn-public-menu-icon {
  width: 18px;
  height: 12px;
  display: inline-flex;
  position: relative;
}

.hn-public-menu-icon::before,
.hn-public-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hn-public-menu-icon::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.hn-public-menu-icon::after {
  bottom: 0;
}

.hn-public-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 20;
}

.hn-public-menu[hidden] {
  display: none;
}

.hn-public-menu-link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--hn-ink);
  font-weight: 700;
  font-size: 14px;
}

.hn-public-menu-link:hover {
  background: rgba(0, 94, 251, 0.06);
}

.hn-public-menu-sep {
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 10px 6px 12px;
}

.hn-public-menu-action {
  width: 100%;
}

.hn-public-header-inner {
  position: relative;
}

body footer.hn-public-footer {
  background: #ffffff;
  border-top: 1px solid var(--hn-border);
  padding: 18px 16px 22px;
  color: var(--hn-muted);
  text-align: left;
}

.hn-public-footer-inner {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
}

.hn-public-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hn-public-footer-links a {
  color: inherit;
  text-decoration: none;
}

.hn-public-footer-links a:hover {
  text-decoration: underline;
}

.hn-public-footer-sep {
  color: rgba(15, 23, 42, 0.22);
}

@media (max-width: 720px) {
  body header.hn-public-header .hn-public-header-inner {
    padding: 12px 0;
  }

  body header.hn-public-header .hn-public-nav {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .hn-public-nav-links,
  .hn-public-separator {
    display: none;
  }

  .hn-public-auth {
    gap: 10px;
  }

  .hn-public-btn--login {
    display: none;
  }

  .hn-public-menu-btn {
    display: inline-flex;
  }

  .hn-public-btn-label--desktop {
    display: none;
  }

  .hn-public-btn-label--mobile {
    display: inline;
  }
}

@media (min-width: 900px) {
  body.home-page main.site-main > .container {
    padding-top: 26px;
  }

  body.pricing-page main.site-main > .pricing-embed {
    padding-top: 26px;
  }
}

/* Basic waitlist modal styling (used on auth pages and legal pages). */
.waitlist-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.waitlist-modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  z-index: 1;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.modal-title {
  color: var(--hn-ink);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.modal-copy {
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
  margin: 0 0 14px;
}

.modal-handle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  color: var(--hn-ink);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.modal-input-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.modal-input-group input {
  flex: 1;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hn-ink);
  background: #ffffff;
}

.cta-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--hn-blue);
  background: var(--hn-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cta-btn:hover {
  background: var(--hn-blue-hover);
  border-color: var(--hn-blue-hover);
}

.cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 10px;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
}

.form-status.error {
  color: #b00020;
}

.form-status.success {
  color: #1b8a3d;
}

@media (max-width: 640px) {
  .hn-public-separator {
    display: none;
  }

  .hn-public-btn {
    padding: 10px 14px;
  }

  .modal-card {
    padding: 22px 20px 18px;
  }

  .modal-input-group {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }
}
