@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

html,
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.onfinga-header {
  width: 100%;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.onfinga-header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 64px;
  padding: 0 22px;
}

.onfinga-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.onfinga-header__logo {
  display: block;
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.onfinga-header__nav {
  order: 3;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.onfinga-header__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4169e1;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.onfinga-header__pill:hover {
  background: rgba(65, 105, 225, 0.92);
}

.onfinga-header__cta {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #bf1e2e;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .onfinga-header__inner {
    min-height: 56px;
    padding: 0 14px;
    gap: 12px;
  }

  .onfinga-header__logo {
    height: 28px;
    max-height: 28px;
    max-width: 180px;
  }

  .onfinga-header__pill {
    font-size: 12px;
    padding: 8px 11px;
  }

  .onfinga-header__cta {
    font-size: 11px;
    padding: 7px 10px;
  }
}

@media (min-width: 640px) {
  .onfinga-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    padding: 14px 22px;
    gap: 14px;
  }

  .onfinga-header__nav {
    order: 2;
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .onfinga-header__cta {
    order: 3;
    margin-left: 12px;
  }
}

.onfinga-footer {
  width: 100%;
  background: #ffffff;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 28px 0 36px;
  text-align: left;
}

.onfinga-footer__inner {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onfinga-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
}

.onfinga-footer__links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.onfinga-video {
  position: relative;
}

.onfinga-video iframe {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.onfinga-video.is-loaded iframe {
  opacity: 1;
  pointer-events: auto;
}

.onfinga-video__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
}

.onfinga-video.is-loaded .onfinga-video__placeholder {
  display: none;
}

.onfinga-video__load {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4169e1;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.onfinga-video__load:hover {
  background: rgba(65, 105, 225, 0.92);
}

.onfinga-video__note {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #475569;
}

.onfinga-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 12px;
}

.onfinga-cookie__inner {
  max-width: 1152px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.onfinga-cookie__text {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #0f172a;
}

.onfinga-cookie__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.onfinga-cookie__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.onfinga-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}

.onfinga-cookie__btn--primary {
  background: #4169e1;
  color: #ffffff;
}

.onfinga-cookie__btn--primary:hover {
  background: rgba(65, 105, 225, 0.92);
}

.onfinga-cookie__btn--ghost {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.onfinga-cookie__btn--ghost:hover {
  background: #f8fafc;
}

.onfinga-founder-photo {
  display: block;
  width: clamp(120px, 32vw, 180px);
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 0 18px auto;
}

@media (min-width: 640px) {
  .onfinga-founder-main {
    position: relative;
  }

  .onfinga-founder-photo {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    width: clamp(140px, 20vw, 200px);
  }

  .onfinga-founder-content {
    padding-right: clamp(160px, 24vw, 240px);
  }
}
